vim:tw=0: Thayer's install notes for Debian (Squeeze) =========================================== A series of notes-to-self for installing Debian to either of my netbooks; an Acer Aspire One (AOD150) and an MSI Wind U120. Window management is handled by a local install of dwm in ~/.dwm, with other startup apps defined in ~/.xinitrc; both are available via http://cinderwick.ca Installation ------------ * download the netinst ISO file (debian-6.0.4-i386-netinst.iso) * dd if=debian.iso of=/path/to/usb-stick-device (e.g. sdd not sdd1) * restart computer and boot from usb stick * create partition to be encrypted * configure encryption - yes to wipe - password setup * configure LVG - yes to format * create group & volumes - lv0 for / and lv1 for swap Disk layout ----------- sda1 /windows (35gb ntfs) sda2 /other (10gb ext4 for test distros) sda3 /boot (128mb ext2) sda4 crypto (112gb luks container) - LVG system - LV root - LV swap Sources ------- edit /etc/apt/sources.list - add nonfree/contrib repos - add multimedia repo (will need public key from debian-multimedia.org): deb http://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/ squeeze main contrib non-free deb-src http://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/ squeeze main contrib non-free deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free # squeeze-updates, previously known as 'volatile' deb http://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/ squeeze-updates main deb-src http://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/ squeeze-updates main # debian multimedia repo (k9copy and other rippers) deb http://www.debian-multimedia.org squeeze main non-free Packages -------- Assumes a base install: ssh server, laptop and basic system tasks -- NOT GUI Add the above sources, update, upgrade, and then: apt-get --no-install-recommends install build-essential xorg gnome-core wicd brasero cheese \ gcalctool gconf-editor gksu gnome-media gnome-nettool gnome-search-tool gnome-system-log \ gnome-system-monitor gucharmap zenity gnome-games synaptic rtorrent moc update-notifier \ openoffice.org-gnome vim-gtk conky xdotool keepassx htop rsync git gmrun stalonetray rxvt-unicode \ feh vlc x11-xserver-utils mplayer flashplugin-nonfree xbindkeys pm-utils parcellite file-roller \ wine gedit dmz-cursor-theme gnome-themes cups foomatic-db foomatic-db-engine foomatic-filters \ xdg-utils gnome-control-center screen alsa-utils python-gpgme xpdf gparted lynx gtk-redshift \ libfuse2 gcolor2 acroread scrot Other packages -------------- google-chrome - official deb from google (deps: xdg-utils) dropbox - official deb from dropbox (deps: python-gpgme) k9copy - multimedia repo acidrip - multimedia repo dzen2 - built from svn source with Xft and xdotool support Adobe Digital Editions - download and install via WINE truecrypt - official tar from website (deps: libfuse2 Package cleanup (purge to remove daemon scripts) --------------- portmap evolution evolution-data-server epiphany-browser totem eog exim4 bluez exim4-base exim4-config exim4-daemon-light then purge 'rpcbind' Disable recommends ------------------ /etc/apt/apt.conf: // Recommends are as of now still abused in many packages APT::Install-Recommends "0"; APT::Install-Suggests "0"; Dropbox ------- $ dropbox start -i # sets up the daemon for the first time Post-install notes ================== Sudo ---- add user(s) to sudo group for admin/PolicyKit integration update /etc/sudoers file: %sudo ALL=(ALL) ALL %sudo ALL = (ALL) NOPASSWD:/usr/bin/aptitude %sudo ALL = (ALL) NOPASSWD:/usr/bin/apt-get %sudo ALL = (ALL) NOPASSWD:/usr/bin/dpkg %sudo ALL = (ALL) NOPASSWD:/sbin/shutdown %sudo ALL = (ALL) NOPASSWD:/sbin/poweroff %sudo ALL = (ALL) NOPASSWD:/usr/sbin/pm-* Wicd wifi --------- Run wicd-client, add wifi interface under prefs (wlan0) Refresh listings, connect and enter details when prompted suspend-to-ram -------------- For suspend from console, uncomment 'LID_SLEEP=true' in: /etc/default/acpi-support /etc/acpi/lid.sh will now suspend if GUI pm tools aren't running, otherwise acpid will repect GUI tools settings. Grub2 ----- Grub is configured by /etc/default/grub and the templates in /etc/default/grub.d Run 'update-grub2' after making any changes. gdm3 customization ------------------ Edit the following lines in /etc/gdm3/greeter.gconf-defaults: /desktop/gnome/background/picture_filename /path/wallpaper.png /desktop/gnome/interface/gtk_theme Aurora The file must be world-readable; then run: # dpkg-reconfigure gdm3 ~/.xsessionrc overrides all session selections from the Display Manager. ~/.xinitrc is ignored by the display manager entirely Create a separate X11 session file for xinitrc execution? Gnome session loads the complete gnome-session environment Dwm session simply loads dwm on its own System Default loads what exactly? Running sid ----------- # pin your Debian to unstable (sid), but fall back to testing and stable as default, # if required package dependency are not exist in sid # # source: http://edin.no-ip.com/blog/hswong3i/fast-and-safe-upgrade-debian-sid-stable-or-testing Package: * Pin: release a=stable Pin-Priority: 600 Package: * Pin: release a=testing Pin-Priority: 650 Package: * Pin: release a=unstable Pin-Priority: 700 # apt-get update # apt-get -y upgrade # apt-get -y dist-upgrade # apt-get clean # apt-get autoclean # apt-get autoremove Xmonad+GNOME ------------ Replace metacity: gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string Reinstate metacity: gconftool-2 -s /desktop/gnome/session/required_components/windowmanager metacity --type string Jekyll+Pygment+Rdiscount ------------------------ $ sudo apt-get install ruby ruby1.8-dev rubygems python-pygments $ sudo gem install jekyll rdiscount or sudo gem install rdiscount -s http://gemcutter.org (for newer versions) add /var/lib/gems/1.8/bin/ to PATH