Raspbian Installation

Download Raspbian

$ wget --content-disposition https://downloads.raspberrypi.org/raspbian_latest
$ unzip 2016-05-27-raspbian-jessie.zip

Insert the SD card

$ dmesg | tail
...
[...] mmc0: new ultra high speed SDR50 SDHC card at address aaaa
[...] mmcblk0: mmc0:aaaa SL08G 7.40 GiB 
[...]  mmcblk0: p1 p2 < p5 p6 > p3

Take a note the SD card device name, here the name is /dev/mcblk0.

Write the image to SD card

$ su
# dd bs=4M if=2016-05-27-raspbian-jessie.img of=/dev/mmcblk0

Install Xubuntu 16.04

Installation

  • Boot from Xubuntu CD or flash drive, press F1, F12 (Lenovo), or Esc (HP) to go to boot menu.
  • Disconnect from the internet to speed up the installation process.
  • Click Install Xubuntu.
  • Uncheck all option and Click Continue.
  • Choose Erase disk and Install Ubuntu, Click Install Now, and then Continue.
  • Choose Jakarta and then Continue.
  • Click Continue.
  • Fill the user information:
    • name: Admin Lab
    • hostname: lab1-01
    • username: adminlab
    • password: *****
    • confirm password: *****
    • and then click Continue.
  • Click Restart Now.

Network

Now, connect the network cable and add a static IP address configuration for ethernet interface enp1s0 (do not use NetworkManager, else a user can override the setting).

$ sudo editor /etc/network/interfaces
auto enp1s0
iface enp1s0 inet static
  address 172.18.78.101
  netmask 255.255.255.0
  gateway 172.18.78.1
  dns-nameservers 172.17.5.14 172.17.0.2
$ sudo service networking restart

Repository

Edit and replace the sources.list with local Ubuntu repository.

$ sudo editor /etc/apt/sources.list
deb http://sg.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 
deb http://sg.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb http://sg.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse

Update the list and upgrade to the latest application package.

$ sudo apt update
$ sudo apt upgrade

Install SSH.

$ sudo apt install ssh

Format USB Flash Drive

Attach the flash drive and check the name assigned to this device immediately using dmesg. In this example, the device name was /dev/sdb1.

$ dmesg | tail
...
[...] sd 12:0:0:0: [sdb] Write cache: disabled, ...
[...]  sdb: sdb1
[...] sd 12:0:0:0: [sdb] Attached SCSI removable disk

Format it to FAT or NTFS filesystem and give a label (optional).

# mkfs.fat -n 'Label' -I /dev/sdb1
# mkfs.ntfs --fast --label 'Label' /dev/sdb1

Debian 8 Xfce Post-Installation

editor /etc/apt/sources.list
    deb http://apps.cs.ipb.ac.id:8820/debian/ jessie main contrib non-free 
    deb http://security.debian.org/ jessie/updates main contrib non-free
apt-get update
apt-get upgrade

apt-get install htop tree ntpdate nmap clusterssh
apt-get install libreoffice
apt-get install iceweasel flashplugin-nonfree transmission
apt-get install gimp inkscape dia vym camorama
apt-get install mplayer2 libav-tools
apt-get install virtualbox

apt-get install geany
apt-get install pandoc pandoc-citeproc
apt-get install texlive texlive-lang-arabic texlive-lang-other
apt-get install cups hplip system-config-printer
apt-get install fonts-lato fonts-noto fonts-droid

apt-get install build-essential gdb ddd
apt-get install mpi-default-bin mpi-default-dev openmpi-doc
apt-get install ns2 ns2-doc ns2-examples nam nam-examples gnuplot
apt-get install libtclcl1/wheezy

apt-get install nvidia-driver nvidia-xconfig
apt-get install intel-microcode firmware-atheros firmware-realtek
nvidia-xconfig
editor /etc/X11/xorg.conf
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BusID          "PCI:01:00:0"
        Option         "NoLogo" "true"
    EndSection