Changing DNS in Linux

For whatever reason, you want to change your DNS, you need to change it at resolv.conf

First change your directory to /etc.
cd /etc

if you type in ls -l, you will see resolv.conf file.

you have to sudo or su to make changes

sudo nano resolv.conf

if there is existing dns, you can hash it out. Just put # in front of the address

and then type in the new nameservers

you can use openDNS, Googles DNS or any DNS that you prefer.

OpenDNS 1: 208.67.222.222
OpenDNS 2: 208.67.220.220

ctrl + O
Enter

ctrl +x

Using Proxy Chains to tunnel traffic over network

First, install proxychains.

sudo apt-get update -y

$ sudo apt-get install -y proxychains

$ locate proxychains

Then change the config files. The config files are in the code below.


$ nano proxychains4.conf

If you wish, you can add more proxy address.
At the bottom of the conf file, add your proxy addresses.

Format should be
proxy type IP address Port Username password

Example socks5 101.2.3.123 12356

There are many websites which you can find proxy addresses. just search for socks proxy.


Use dynamic chain and link it with Tor
All you need to do is just unhash the lines that you want to enable.

$ service tor status

$ service tor stop /start

$ proxychains4 curl ipinfo.io/city #this will tell you where your current location is. Check this first to make sure you are hidden.

Now you can browse securely.

$ proxychain firefox google.com

You can also use proxychain with other services. You just need to run the proxychain command first.

Example proxychain nmap 213.12.123.12

Continue reading “Using Proxy Chains to tunnel traffic over network”

No Package MYSQL Server Available

If you have come across an issue of installing sql server on AWS Linux AMIs, especially when you are using one of those Free Tier Eligible AMIs, well its very likely that this is the solution for you. I came across this issue and got me stuck for a little while before I found the solution somewhere on the net. The problem is that the AMIs that you are using may not have the default repos in it.

Continue reading “No Package MYSQL Server Available”

Configuring Network on Linux VM, updating packages

Quick note on setting up Linux VMs on Hyper V.

Step 1: Check adapters, test internet connectivity
First, check if the network adapters are attached.

ifconfig

you will see Ethernet, loopback or WiFi adapters.
They look like eth0, lo, wi and you should be getting private IP on those adapters.

If you do, proceed on. If you don’t, please watch my video on how to set up Virtual Switch Manager for VMs.

Continue reading “Configuring Network on Linux VM, updating packages”

How to fix Operation not possible due to RF-kill in Linux

you cannot bring back your wireless interface back.

ifconfig wlan up wont work
you get the message
Operation not possible due to RF-Kill.

Error is due to soft block or hard block, wireless card has been switched off from the kernel.

Sudo rfkill list

find out what is being blocked

sudo rfkill unblock wifi
sudo rfkill unblock all


re run sudo rfkill list to check if the wireless has been unblocked.

Changing Desktop Environment on Linux or Laggy mouse cursor

It occurs to me that I had a very sluggish performance with Kali install on Hyper-V.

I have assigned plenty of CPU and memory for this particular VM but when I ran it, the mouse cursor seems to be a bit too laggy.

Continue reading “Changing Desktop Environment on Linux or Laggy mouse cursor”