The Latest

Pandoc Beamer Background

On 2016-09-22, in Uncategorized, by auriza
title: ...
subtitle: ...
author: ...
institute: ...
date: ...
theme: ...
    - \usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{bg.jpg}}
Tagged with:

Raspbian Installation

On 2016-09-16, in Uncategorized, by auriza

Download Raspbian

$ wget --content-disposition
$ unzip

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
Tagged with:

Install Xubuntu 16.04

On 2016-08-10, in Uncategorized, by auriza


  • 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.


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
$ sudo service networking restart


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

$ sudo editor /etc/apt/sources.list
deb xenial main restricted universe multiverse 
deb xenial-security main restricted universe multiverse 
deb 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
Tagged with:

Prepare a Linux CD image (here we use Xubuntu 16.04) and the USB flash drive. Attach the drive and check its assigned device name using dmesg (here we get /dev/sdb). Then, copy the image to the drive using dd.

# dd if=xubuntu-16.04-*.iso of=/dev/sdb bs=4M; sync

Source: Debian CD FAQ.

Tagged with:

Format USB Flash Drive

On 2016-08-09, in Uncategorized, by auriza

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
Tagged with:

MPlayer Rotate 90 Degrees

On 2016-07-30, in Uncategorized, by auriza

Run mplayer with rotate video filter option.

$ mplayer -vf rotate=1 [file]

See: the MPlayer manual.

Tagged with:

MPlayer Display Timer

On 2016-07-30, in Uncategorized, by auriza

Add this line to ~/.mplayer/config.

osdlevel = 3
Tagged with:


On 2015-12-07, in Uncategorized, by auriza

Moved to GitHub.

Tagged with:

Debian 8 Xfce Post-Installation

On 2015-12-02, in Uncategorized, by auriza
editor /etc/apt/sources.list
    deb jessie main contrib non-free 
    deb 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
editor /etc/X11/xorg.conf
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BusID          "PCI:01:00:0"
        Option         "NoLogo" "true"
Tagged with: