Install .NET on Manjaro

.NET Core
If you only want to run .NET Core managed applications, install the dotnet-runtime package.
To build apps with .NET Core, install dotnet-sdk as well.
Microsoft recommends using Visual Studio Code , their Electron-based FOSS IDE, to build & debug .NET Core apps.

Tip: Add ~/.dotnet/tools to PATH, otherwise dotnet tools with not work from shell.
Install the mono package.


Improve font rendering in Manjaro

sudo nano /etc/fonts/local.conf
<match target="font">
  <edit name="autohint" mode="assign">
  <edit name="hinting" mode="assign">
  <edit mode="assign" name="hintstyle">
  <edit mode="assign" name="lcdfilter">
cp ~/.Xresources ~/.Xresources.bak
nano ~/.Xresources
Xft.dpi: 120
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
xrdb -merge ~/.Xresources

Make sure that Anti aliasing is On, and Hiting is set to Slight in System Settings (Appearence).


Install Tor with torsocks and proxychains on Ubuntu 18.04

sudo apt install tor torsocks proxychains
tor --hash-password "passwordhere"

CookieAuthentication OR HashedControlPassword (if you choose to uncomment HashedControlPassword, copy the hashed password you got in the previous step and paste it next to HashedControlPassword in the torrc file)

nano /etc/tor/torrc
# This provides a port for our script to talk with. If you set this then be
# sure to also set either CookieAuthentication *or* HashedControlPassword!
# You could also use ControlSocket instead of ControlPort, which provides a
# file based socket. You don't need to have authentication if you use
# ControlSocket. For this example however we'll use a port.

ControlPort 9051 # <--- uncomment this ControlPort line

# Setting this will make Tor write an authentication cookie. Anything with
# permission to read this file can connect to Tor. If you're going to run
# your script with the same user or permission group as Tor then this is the
# easiest method of authentication to use.

CookieAuthentication 1 #either uncomment this or below HashedControlPassword line

# Alternatively we can authenticate with a password. To set a password first
# get its hash...
# % tor --hash-password "my_password"
# 16:E600ADC1B52C80BB6022A0E999A7734571A451EB6AE50FED489B72E3DF
# ... and use that for the HashedControlPassword in your torrc.

HashedControlPassword 16:E600ADC1B52C80BB6022A0E999A7734571A451EB6AE50FED489B72E3DF #if you choose to uncomment this line, paste your hashed password here
sudo /etc/init.d/tor restart


curl ''
torsocks curl ''
proxychains curl ''


Make iptables rules persistent after reboot on Ubuntu 18.04

sudo apt install iptables-persistent netfilter-persistent
netfilter-persistent save
netfilter-persistent start

iptables-save  > /etc/iptables/rules.v4
ip6tables-save > /etc/iptables/rules.v6

iptables-restore  < /etc/iptables/rules.v4
ip6tables-restore < /etc/iptables/rules.v6

systemctl stop    netfilter-persistent
systemctl start   netfilter-persistent
systemctl restart netfilter-persistent

Remove persistent iptables rules

To remove persistent iptables rules simply open a relevant /etc/iptables/rules.v* file and delete lines containing all unwanted rules.


Block ping using iptables in Ubuntu

nano /etc/sysctl.conf
sysctl -p
sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
sudo iptables -A OUTPUT -p icmp --icmp-type echo-reply -j DROP

then Make iptables rules persistent after reboot on Ubuntu 18.04


Install NVIDIA (non-free) on Manjaro

Install NVIDIA Drivers

sudo mhwd -a pci nonfree 0300

Configure The Resolution/Refresh Rate

sudo nvidia-settings

Save to X Configuration File button and save to /etc/X11/mhwd.d/nvidia.conf

sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf

Configure X Screen settings (OpenGL Settings, Antialiasing, X Server XVideo)

Troubleshooting: X-Server Failed to Start and Install

sudo mhwd -r pci video-nvidia    

Reboot your computer

sudo gedit /etc/mkinitcpio.conf 

delete the word nouveau from the following line:

MODULES=" nouveau" 
# sudo mkinitcpio -p [linux kernel version]
sudo mkinitcpio -p linux419
sudo mhwd -a pci nonfree 0300