Debian Installation

Debian Installation

Debian Installation and configuration


Download debian netinstall iso file

Burning ISO to USB in linux

# To know where your usb
sudo dd bs=4M if=debian.iso of=/dev/sdb
md5sum debian.iso
md5sum /dev/sdb/sdb1


Put the USB drive, and start installation, after you finish login as root

apt-get install sudo
adduser yourname sudo

sudo apt-get install xorg i3 git ssh nautilus alsa-base alsa-utils terminator vlock xscreensaver gparted htop cowsay figlet file-roller unrar evince gpicview ecryptfs-utils golang

# Security
sudo apt-get install chkrootkit rkhunter

Generic Configuration

# Disable ssh from outside
echo "SSHD: ALL" >> /etc/hosts.deny

# Set Clock
sudo date +%T -s "10:13:13"
# set the hardware clock to system clock
sudo hwclock --systohc

# git
git config --global "Your name"
git config --global ""
git config --global push.default simple

Google drive sync

go get -u





Reference: ecryptfs tutorial

# load ecryptfs kernel module
sudo modprobe ecryptfs
mkdir ~/victoria/secret
chmod 700 secret
sudo mount -t ecryptfs ~/victoria/secret ~/victoria/secret
sudo umount ./secret
sudo mount ./secret ./secret -o key=passphrase,ecryptfs_cipher=aes,

# To umount any folder
sudo umount -t ecryptfs ~/victoria/secret

Keyboard Language

setxkbmap us
setxkbmap ar

# OR in .i3/config
bindsym Ctrl+Shift+1 exec --no-startup-id setxkbmap us
bindsym Ctrl+Shift+2 exec --no-startup-id setxkbmap ar


Reference 1 Reference 2

sudo apt-get install cups cups-client "foomatic-db*"
sudo  /usr/sbin/adduser tesla lpadmin
sudo /etc/init.d/cups restart
sudo apt-get install samba samba-client
sudo /etc/init.d/samba restart
netstat -ant | grep 631

Then open system setting printers and add network printer. After restart you’ll need to start cups again; go to printers, choose socket, type printer ip, choose HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended) (grayscale, 2-sided printing)


# put this in the eclipse.ini:

Nodejs, NPM, Bower

apt-get install curl
curl -sL | bash -
apt-get install -y nodejs
apt-get install -y build-essential
su -
curl -L --insecure | bash
npm install bower


VBoxManage modifyhd <absolute path including the name and extension> --resize 50000

VBoxManage setextradata <vmname> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"

# To be able to use usb from the guest machine:
sudo adduser YOURUSERNAME vboxusers # Then log out and log in again.

# To uninstall extpack
vboxmanage extpack uninstall "Oracle VM VirtualBox Extension Pack"

# To install extpack
vboxmanage extpack install ...

Some Good References:


Debian as Guest

sudo mount -t vboxsf sharedFolder ~/sharedFolder
sudo mount -t vboxsf -o rw,uid=1000,gid=1000 share ~/host

Troubleshooting Q: I get a protocol error when mounting. Q: I get the error /sbin/mount.vboxsf: mounting failed with the error: No such device. A: You mount the SF on a mount point with the same name as the share itself, change the name or mount point. A: You’re sharing a personal folder like your Home Folder (Linux), or My Documents (Windows) on the Host. Define a new share, like a sub folder.

Q: I get an error “Unexpected error: Text file busy.” when trying to edit a file. A: When using gedit, this can happen on shared folders. This is a bug in gedit, not VB. Use a different editor.

comments powered by Disqus