How to Set an IP address to an interface ?

with the command ifconfig -a you’ll see all the network interfaces which are installed.
To set an IP address make:

$ ifconfig "interfaces" x.x.x.x netmask x.x.x.x
$ ifconfig ath1 172.0.0.2 netmask 255.255.255.0 up

these commands as root.
T0 set a default gateway

$ route add default gw x.x.x.x

To add the dns resolve address locate the resolv.conf file and write them on it.

$ nano /etc/resolv.conf
nameservers 200.00.00.00

save and close.
sooo ping google.com

Advertisements

How to Encrypt a folder ?

First you need to install encfs and fuse-utils packages

$ apt-get install encfs fuse-utils

So

$ encfs  "secret path folder" "mount point with encfs filesystem"
$ encfs /home/joe/Desktop/secret /media/crypt-files

Now
you have mounted a encfs filesystem and you can paste or save all
information to encrypt in the “/media/crypt-files” mount point.
To hide the information (unmount the cifs filesystem):

$ fusermount -u /media/crypt-files

Now if you open the /home/joe/Desktop/secret folder you’ll see the files encrypted.
For mount it one more time and use or read the info

$ encfs /home/joe/Desktop/secret /media/crypt-files

give the pass and it’s done

handy linux and technology info