| Main page | Research | Utilities | Links

GNU/Linux Utilities

The lines below are a reminder for me, but may be helpful for someone. In this lines I describe the steps that I do in order to install and configure Debian.

The procedure below is from September 2010. This may be outdated!

Installation and configuration in an ASUS EeePC 1005PE netbook.
Netbook main specifications: lspci:
lsusb:
/proc/cpuinfo:

Installation:

Download the latest daily builds of the debian testing (64-bit) netinst ISO image from here.
Put the ISO in a USB pendrive, for example by doing
$ wget http://d-i.debian.org/daily-images/amd64/daily/hd-media/boot.img.gz
$ ...
You can download the official "netinst" image for the stable release from here. At the boot prompt, type: expert bootkbd=es. The installation process begins:

- Choose language: english
- Choose country: spain
- Choose a locale: en_US.UTF-8
- Keyboard layout: PC-Style keyboard
- Keymap: spanish
- Detect and mount CD-ROM: modules to load: all enabled
- Start PC card services? (PCMCIA) -> No
- Load Installer components from CD: all disabled
- Detect network hardware: modules to load -> all enabled
- Configure the network: eth1: Broadcom corporation...
- autoconfigure? No
- write your IP, broadcast, gateway...
- is this correct? Yes
- hostname: debian, domain name: (left empty)
- Detect disks: modules to load: all disabled
- Partition disks: manual
- select sda#2 ("swap") and sda#3 ("ext3", "/" , "label:debian") - (sda#1 is at this moment using WinXP)
- Configure time zone: Madrid
- Configure the clock: UTC? No
- Setup users and passwords: Enable shadow passwords? Yes
- Allow login as root? Yes
- Write your root password
- Create normal account? Yes, write name, password
- Install the base system: kernel to install: linux-image-2.6-686
- Configure the package manager: Use a mirror? Yes, http, Spain, ftp.rediris.es, http proxy? (left empty)
- Use non-free software? No
- Use contrib software? No
- Select and install software:
- Participate in the package survey? -> No
- Continue without a valid swap partition? -> No
- Install the GRUB boot loader on hard disk: Install on Master boot record? Yes
- GRUB password: (left empty)
- Finish the installation.

Configuration:

login: root

Removing the beep,
# rmmod pcspkr
# echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist
# rmmod snd_pcsp
# echo "blacklist snd_pcsp" >> /etc/modprobe.d/blacklist

Configuring grub,
# vim /boot/grub/menu.lst
- timeout 2
- comment the pretty colours line

Setting the time,
# date -s hh:mm:ss
# hwclock --systohc

Keeping the system up to date,
# aptitude update && aptitude upgrade

Installing sudo package,
# aptitude install sudo
# vim /etc/sudoers
- add privileges for the users

Firewall and ssh,
# iptables -F
# ./firewall.sh
# iptables -L
# iptables-save > /etc/firewall1.conf
# echo '#!/bin/bash' > /etc/network/if-up.d/firewall
# echo 'iptables-restore < /etc/firewall1.conf' >> /etc/network/if-up.d/firewall
# chmod +x /etc/network/if-up.d/firewall
# aptitude install ssh
# vim /etc/ssh/sshd_config
- PermitRootLogin no

Graphic environment,
# aptitude install xorg
# aptitude install screen ratpoison

Nvidia stuff, (add contrib and non-free to /etc/apt/sources.list)
# aptitude install module-assistant
# m-a a-i nvidia
# vim /etc/X11/xorg.conf
- add Driver "nvidia" to video-device
# aptitude install mesa-utils
$ glxinfo | grep direct

Installing additional and useful packages,
# aptitude install zip unzip bzip2
# aptitude install gcc g++ gfortran make
# aptitude install links2 iceweasel
# aptitude install tor privoxy iceweasel-torbutton iceweasel-vimperator
# aptitude install gimp imagemagick djview zgv
# aptitude install vlc mplayer
# aptitude install wcalc
# aptitude install vim boxes xpdf pdftk
# aptitude install wakeonlan ethtool dosfstools
# aptitude install xtrlock

Multimedia packages, (add multimedia repository to /etc/apt/sources.list)
# aptitude update && aptitude install debian-multimedia-keyring
# aptitude update && aptitude install libdvdcss2 flashplayer-mozilla
# aptitude install acroread acroread-plugins

LaTeXing,
# aptitude install texlive texlive-latex-extra
# aptitude install vim-latexsuite ipe gnuplot epstool gv
$ vim-addons install latex-suite
$ vim-addons install editexisting
$ vim-addons install justify
$ vim-addons install matchit

Office,
# aptitude install openoffice.org

Printing,
# aptitude install cupsys hplip
- go to http://localhost:631

Autologin, autostartx, and other configuration files,
# vim /etc/inittab
- comment the 1:2345:respawn:/sbin/getty 38400 tty1 line, and just above add
1:2345:respawn:/bin/login -f USERNAME tty1 </dev/tty1 >/dev/tty1 2>&1
# vim .profile
- add the following lines
if [ -z "DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi
- here is my ~/.profile.
# vim ~/.xinitrc
- exec ratpoison, xset s 300, ...
- here is my ~/.xinitrc.
# vim ~/.bashrc
- aliases, color prompt, ...
- here is my ~/.bashrc.
# vim ~/.ratpoisonrc
- escape, bind, ...
- here is my ~/.ratpoisonrc.
# vim ~/.screenrc
- escape, hardstatus, ...
- here is my ~/.screenrc.
$ mkdir ~/.vim
$ mkdir ~/.vim/ftplugin
$ vim ~/.vim/ftplugin/tex.vim
- here is my ~/.vim/ftplugin/tex.vim .
# cp /usr/share/vim/vim71/colors/elflord.vim /usr/share/vim/vim71/colors/elflord2.vim
# vim /usr/share/vim/vim71/colors/elflord2.vim
- my vim colorscheme "elflord2" is here.
# cp /usr/share/vim/addons/ftplugin/latex-suite/folding.vim /usr/share/vim/addons/ftplugin/latex-suite/folding2.vim
# sed -i 's/^/"/' /usr/share/vim/addons/ftplugin/latex-suite/folding.vim
# vim /etc/vim/vimrc
- here is my /etc/vim/vimrc.
# vim /etc/boxes/boxes-config
- here is the default /etc/boxes/boxes-config file, but slightly modified.