Tuesday, July 12, 2011

install debian squeeze with xfce4

Pre-install
===========
Some of firmware are free and open-source, and some of them are non-free.
For example, firmware-realtek is in the non-free archive area, so download them beforehand.
1) download the firmware tarball for your installation, extract, and have them available on removable storage.
When the installer starts, it will automatically find the firmware tarball on the removable storage and, if needed, install the firmware for your hardware.
http://packages.debian.org/firmware-linux-nonfree
http://packages.debian.org/firmware-realtek
2) the versions of the "netinst" CD images that also include all the non-free firmware packages directly
http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current/
More at Firmware during the installation


the sources.list file if you don't want to type the whole file yourself after fresh installation.

Plan you partitions
http://siripong-computer-tips.blogspot.com/2011/05/partitions-type-and-sizes.html


make a bootable usb
====================
as of http://www.debian.org/releases/stable/amd64/ch04s03.html.en
cat debian-6.0.2.1-amd64-netinst.iso > /dev/sdb
sync


Install base system
====================
follow instruction on
http://www.go2linux.org/linux/2011/01/debian-squeeze-6-0-installation-screen-shots-and-review-891
except


uncheck "Graphical desktop environment"
because default GUI is GNOME
(I also unchecked the "Standard system utilities")

after restart and login as root

connect network
================
ifconfig -a
ifconfig eth0 up
dhclient eth0

# ethtool -s eth0 speed 100 duplex full autoneg off
# ifrename: Rename network interfaces based on various static criteria
# echo 'eth0 mac e0:*' > /etc/iftab
# http://www.science.uva.nl/research/air/wiki/LogicalInterfaceNames
sudo apt-get install ethtool ifrename


Wireless
=========
http://wiki.debian.org/wl
http://siripong-computer-tips.blogspot.com/2011/09/commands-for-wireless-lan-in-debian.html
sudo apt-get install wpasupplicant


select the best mirror
=======================
apt-get install netselect
netselect -vv ftp.th.debian.org mirror1.ku.ac.th mirror.kku.ac.th debian.rmutsv.ac.th ftp.linux.in.th
แล้วดูที่ บรรทัดสุดท้าย ว่า mirror ไหนเร็วสุด
the best will be shown at the last line
more info http://www.debianclub.org/mirrors


modify sources.list
====================
vi /etc/apt/sources.list

# deb http://security.debian.org/ squeeze/updates main
# deb-src http://security.debian.org/ squeeze/updates main
deb http://ftp.linux.in.th/debian-security squeeze/updates main
deb-src http://ftp.linux.in.th/debian-security squeeze/updates main

deb http://ftp.linux.in.th/debian/ squeeze main contrib non-free
deb-src http://ftp.linux.in.th/debian/ squeeze main contrib non-free

# Some packages from proposed-updates may also be made available via the squeeze-updates mechanism.
# This path will be used for updates which many users may wish to install on their systems before the next point release is made.
deb http://ftp.linux.in.th/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.linux.in.th/debian/ squeeze-updates main contrib non-free

# Backports archive contains packages from testing and unstable that have been recompiled for stable.
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

# deb http://ftp.linux.in.th/debian/ testing main contrib non-free
# deb-src http://ftp.linux.in.th/debian/ testing main contrib non-free


increase cache size for repos
===============================
echo "APT::Cache-Limit "888388608";" >> /etc/apt/apt.conf


non-free firmware
==============
# Any firmware loaded during the installation will be copied automatically to the installed system.
# In most cases this will ensure that the device that requires the firmware will also work correctly after the system is rebooted into the installed system.
# However, if the installed system runs a different kernel version from the installer there is a slight chance that the firmware cannot be loaded due to version skew.
# If the firmware was loaded from loose firmware files, the firmware copied to the installed system will not be automatically updated
# unless the corresponding firmware package (if available) is installed after the installation is completed.
# Ref: http://d-i.alioth.debian.org/manual/en.i386/ch06s04.html
aptitude install firmware-linux-nonfree
aptitude install firmware-realtek

Install
========
apt-get update

apt-get install sudo
usermod -a -G sudo {username}

apt-get install alsa-base alsa-utils cpufrequtils

# to enable hibernate
apt-get install pm-utils

vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=/dev/sda6"
update-grub

apt-get install --no-install-recommends xorg xfce4

apt-get install xfce4-xkb-plugin xfce4-mixer xfce4-notifyd xfce4-clipman-plugin xfce4-datetime-plugin xfce4-power-manager
# xfce4-clipman-plugin keeps the clipboard contents around while it is usually lost when you close an application.
# xfce4-power-manager for enabling Hibernate and Suspend

# xfce4-wavelan-plugi xfce4-battery-plugin xfce4-indicator-plugin

# arandr is used for handling multi monitors
aptitude install arandr

# in order to avoid problem of http://forums.debian.net/viewtopic.php?f=6&t=63554
apt-get install --no-install-recommends lightdm

sudo apt-get install --no-install-recommends nautilus

apt-get install ttf-mscorefonts-installer ttf-thai-tlwg
apt-get install --no-install-recommends xfce4-artwork gnome-icon-theme
apt-get install --no-install-recommends thunar-archive-plugin

apt-get install xfce4-terminal xfce4-screenshooter leafpad

apt-get -t squeeze-backports install --no-install-recommends libreoffice libreoffice-presenter-console

# http://sourceforge.net/projects/ooop/files/Extension/
# extension that provides impress templates
# OOOP-templates-unified-en-US-2.6.0.2.oxt is valid for libreoffice 3.3.3

# http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List
# http://libreplanet.org/wiki/Group:OpenOfficeExtensions/NonFree

# Diagram editor = Visio
# http://gnomediaicons.sourceforge.net/ beauty icons to Dia program
apt-get install dia

http://www.xmind.net/


# gnome-system-monitor : display cpu usage graphs
apt-get install gnome-system-monitor

apt-get install xscreensaver xscreensaver-gl

apt-get install bzip2 zip unzip unrar-free unrar p7zip-rar file-roller
# thunar-archive-plugin : allows you to create and extract archive files using the file context menus
# apt-get install squeeze << archive manager for Xfce

# dnsutils : nslookup
# nmap : port scanning, ping scanning, and more
apt-get install telnet dnsutils nmap

# wired and wireless network manager
apt-get install wicd wicd-gtk
or network-manager-gnome

sudo iwconfig
and add the wireless interface name e.g. wlan0 or eth1 as shown in



apt-get install synaptic


# utilities
apt-get install gparted

# epiphany-browser using the WebKitGTK+ rendering engine
# (which is based on the engine used by Apple Safari and Google Chrome)
# http://thep.blogspot.com/2006/11/epiphany-guide-for-firefox-users-1.html
# http://thep.blogspot.com/2006/11/epiphany-guide-for-firefox-users-3.html
apt-get install epiphany-browser
apt-get install chromium-browser chromium-l10n

# Firefox (iceweasel)
# rendering engine = Gecko
http://mozilla.debian.net/
sudo echo 'deb http://mozilla.debian.net/ squeeze-backports iceweasel-release' > /etc/apt/sources.list.d/mozilla.list
wget -O- -q http://mozilla.debian.net/archive.asc | gpg --import
gpg --export -a 06C4AE2A | sudo apt-key add -
sudo apt-get update
sudo apt-get install -t squeeze-backports iceweasel flashplugin-nonfree

update-alternatives --list x-www-browser
sudo update-alternatives --set x-www-browser /usr/bin/iceweasel

# Fix: Firefox cannot load websites but other programs can
http://support.mozilla.com/en-US/kb/Firefox cannot load websites but other programs can

# IE's Render Engine = Trident
# Opera's Render Engine = Presto

# Related Info http://en.wikipedia.org/wiki/JavaScript_engine

# Thunderbird
sudo echo 'deb http://mozilla.debian.net/ squeeze-backports icedove-release' >> /etc/apt/sources.list.d/mozilla.list
sudo apt-get update
sudo apt-get install -t squeeze-backports icedove

sudo apt-get install filezilla

# thunar-thumbnailers : generates thumbnails for PDF, DVI, PSD, Video files etc.
apt-get install thunar-thumbnailers ffmpegthumbnailer

# gthumb : an ACDSee like image and video browser
# Fotoxx = photo editing and collection management
apt-get install geeqie gthumb fotoxx gimp

# Media player & codecs (Ref: http://wiki.debian.org/MultimediaCodecs)
# totem with gstreamer0.10-ffmpeg will be able to decode samr 3gp
wget http://debian-multimedia.org/gpgkey.pub -O - | sudo apt-key add -
echo 'deb http://www.debian-multimedia.org/ squeeze main non-free' > /etc/apt/sources.list.d/debian-multimedia.list
sudo apt-get update
aptitude install w64codecs libdvdcss2 gstreamer0.10-fluendo-mp3 gstreamer0.10-ffmpeg ffmpeg sox twolame vorbis-tools lame faad mplayer-gui vlc mozilla-plugin-vlc totem

# PDF ( acroread is in debian-multimedia repo)
apt-get install evince acroread

# Dropbox
wget -O dropbox.tar.gz http://www.dropbox.com/download\?plat=lnx.x86
wget -O dropbox.tar.gz http://www.dropbox.com/download\?plat=lnx.x86_64
tar -zxvf dropbox.tar.gz
wget -nd http://dl.dropbox.com/u/6995/dbmakefakelib.py
wget -nd http://dl.dropbox.com/u/6995/dbreadconfig.py
python dbmakefakelib.py
~/.dropbox-dist/dropboxd
thanks http://www.reddeadresolve.com/2010/04/how-to-install-dropbox-in-xfce.html

# a VNC Client for the GNOME Desktop
apt-get install vinagre

# Virtual Box
http://www.virtualbox.org/wiki/Linux_Downloads
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
echo 'deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free' > /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update && sudo apt-get install virtualbox-4.1
usermod -a -G vboxusers {username} <<<<< To Fix USB Error


SSH
====
sudo apt-get install openssh-client openssh-server


Network File System, Samba
======================
http://siripong-computer-tips.blogspot.com/2011/07/file-sharing-on-debian.html


lightdm Auto Login
=============
http://siripong-computer-tips.blogspot.com/2011/09/enable-lightdm-autologin-debian-wheezy.html


SLiM Auto Login
============
https://wiki.archlinux.org/index.php/SLiM#Autologin


# Purge unwanted program
====================
# avahi : With it, you can plug into a network and instantly find printers to print to, files to look at and people to talk to.
# cups : Common UNIX Printing System
# sane-utils : API library for scanners
sudo apt-get purge avahi-daemon cups cups-common sane-utils
apache2.2-bin
sudo apt-get autoremove


to enable compiz fusion on xfce
===============================
http://siripong-computer-tips.blogspot.com/2010/06/to-enable-compiz-fusion-on-xfce.html


Unable to mount an external drive
==================================
verify /etc/fstab to make sure that there is no a strange line like
/dev/sdb /media/cdrom0 udf,iso9660 user,noauto 0 0


Useful cmd for keyboard binding
===============================
Print Screen = xfce4-screenshooter -f


Thanks
=======
http://omnsproject.org/?p=1055
https://help.ubuntu.com/community/PowerManagement/Hiberate
https://wiki.archlinux.org/index.php/Xfce

1 comment:

  1. I want to install linux Debian, thanks already to guide how to install

    ReplyDelete