Disable ssh root access - Debian / Ubuntu

Open /etc/ssh/sshd_config if find entry similar to this:
PermitRootLogin yes
and change it to:
PermitRootLogin no
then restart your sshd service with:
/etc/init.d/ssh restart

Mount command to mount Samba or Windows share on linux

First make sure that you have support for smbfs by installing smbfs package thenĀ  issue command:
mount -t smbfs -o username=your-username,password=your-password //samba-windows-share-server/shared-folder /your/mount/point
To List shares on windows machine or samba server:
smbclient -L samba-windows-share-server

Set Debian / Ubuntu network interfaces file to DHCP or Static IP address

To set DHCP or Static IP address edit your /etc/network/interfaces file.
eth0 network interface DYNAMIC / DHCP IP address configuration:
auto eth0
iface eth0 inet dhcp
eth0 network interface STATIC IP address configuration:auto eth0
iface eth0 inet static
address 10.1.1.2
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.255.255.255
gateway 10.1.1.1