# # # Debian 2.2 (Potato) # Debian 2.3 (Woody) # # # XFree86 -configure # # # http://www.debian.org/distrib/packages # # lists.debian.org/search.html # # # http://linuxmafia.com/faq/Debian/installers.html # # # Equivalent Commands # ------------------- # ar -x pkg.deb # tar zxvfp pkg.tar.gz # # # Lots of links # ------------- # http://debianlinux.net/debian.html # # Example sources.list # ---------------------- # http://www.rap.ucar.edu/staff/tres/sources.list # # # Mirror # ------------ # http://www.debianplanet.org/node.php?id=375 # http;//www.linuxforum.com/forums/index.php?showtopic=98150 # # # Creating a Local Mirror # ----------------------- # www.togaware.com/linux/survivor/Maintaining_Distribution.shtml # # # # lynx -dump http://security.debian.org/apt | sh # # # apt-get check # apt-get update # apt-get -u upgrade # apt-get dist-upgrade # # # dpkg is the workhorse behind the front-end ( apt-get ) # ------------------------------------------ # dpkg --purge packagename # # # What changed # ------------- # ls -lt --time=use /var/cache/apt/archives|less # ls -lrt --time=ctime /var/cache/apt/archives # deb ftp://ftp.at.debian.org/debian/ woody main non-free contrib deb-src ftp://ftp.at.debian.org/debian/ woody main non-free contrib deb http://non-us.debian.org/debian-non-US woody non-US/main non-US/contrib non-US/non-free deb-src http://non-us.debian.org/debian-non-US woody non-US/main non-US/contrib non-US/non-free # # # X11 Config # ----------- apt-get install x-window-system # apt-get install gnome gdm # apt-get install kde kdm # # # X11 reconfig # ------------- dpkg-reconfigure xserver-xfree86 # # # Latest X11 # ---------- deb http://debian.lcs.mit.edu/debian/ testing main # update-alternatives --config x-session-manager # # # # 20-Jun-02 amo NEW ones for potato... hostname name changes ... # deb http://security.debian.org/debian-security/ potato/updates main contrib non-free deb http://non-US.debian.org/debian-non-US/ potato/non-US main contrib non-free # # # ==================== # # Testing version # deb http://http.us.debian.org/debian/ testing main deb http://non-us.debian.org/debian-non-US testing/non-US main # deb ftp://ftp.debian.org/debian/ testing main # # deb-src http://http.us.debian.org/debian/ testing main deb-src http://non-us.debian.org/debian-non-US testing/non-US main # deb-src ftp://ftp.debian.org/debian/ testing main # deb http://security.debian.org/ stable/updates main # # ==================== # # # http://www.digitaltux.com/ # # ftp://ftp.debian.org/woody/main/disks-i386/3.0.13-2001-08-25/images-1.44/{rescue,root}.bin # ftp://ftp.debian.org/debian/dists/woody/main/disks-i386/current/images-1.44/ # # # Every couple months ( JC ) # =================== apt-get update && apt-get autoclean && apt-get -q -d -y -u dist-upgrade # # # -------------------------------------------------------------------------------- # # Apply security stuff regularly # apt-get -qq update && apt-get -dqq upgrade && apt-get -sqq upgrade # # (assuming your machine is 24/7 connected to the internet and you have # securiy.debian.org in your /etc/apt/sources.list) # # This will update your packages list, and then simulate an # upgrade. Schedule it using a cron job, and you will only receive mail if # new packages are available. I use this to maintain a network of about 50 # Debian servers (potato and woody). # # -------------------------------------------------------------------------------- # # # Upgrading from potato to woody # ------------------------------- # To upgrade to woody you should change your /etc/apt/sources.list file. # You should change all potato or stable entries to woody except for those # dealing with security updates. Then do an: # apt-get update apt-get install apt apt-utils dpkg dselect apt-get dselect-upgrade apt-get -f install apt-get -f dist-upgrade # # # Installing kernel/ ncurses # -------------------------- # apt-get update # apt-get install binutils bzip2 fileutils libc6-dev gcc make # apt-get install libncurses5-dev kernel-package # apt-cache show kernel-source-2.4.18 # # apt-get --reinstall install courier-imap # apt-get install --reinstall bash # # # # To clear /var/cache/apt/archives # -------------------------------- # apt-get autoclean - safer # apt-get clean # # # dd if=rescue.bin of=/dev/fd0 bs=512 conv=sync cmp if=rescue.bin /dev/fd0 dd if=root.bin of=/dev/fd0 bs=512 conv=sync dd if=driver-1.bin of=/dev/fd0 bs=512 conv=sync # # # for info only.. loop device: losetup /dev/loop0 resc1440.bin mount /dev/loop0 /mnt umount /mnt # # dpkg -S /usr/bin/mail # dpkg -S Software-RAID ... list of html docs # # dpkg -l | grep -i mailx # # # # # Unpacking ar -x *.deb [g]mc *.deb # # apt-get install bash dpkg -i bash # # # List of packages dpkg -L ntp # # # Reinstall # apt-get --reinstall install xfonts-base # # # Ignoring dependencies # dpkg -i --ignore-depends=giflib2 package.deb # # # List of packages # ---------------- # Save system dpkg --get-selections * > /root/backup/pkg.lst # # Restore system dpkg --set-selections < /root/backup/pkg.lst apt-get update apt-get dist-upgrade # # # # to restore /var/cache/apt # ------------------------- # http://www.debian.org/distrib/packages apt-cache gencaches # # # apt-cache show stunnel # # # Finding a package # ------------------ apt-cache policy stunnel # # # # Erase / Removing / Deleting # --------------------------- # dpkg --remove package # apt-get remove package # # dpkg --purge unwanted_packages # # # # Installing KDE ( http://www.kde.org/install-source.html ) # =============== # ftp.au.debian.org/debian-kde # http://www.kde.org/documentation/userguide/installing-debian.html # apt-get install kdebase # dpkg --install koffice.deb # # # ~branden/woody exists...but not ~/branden/potato # # deb http://samosa.debian.org/%7Ebranden potato/i386/ # deb http://people.debian.org/%7Ebranden woody/i386/ # apt-get install task-x-window-system-core # dpkg -s xserver-svga # # # deb http://people.debian.org/~cpbotha xf403_potato i386 # apt-get install kdebase # # deb http://kde.tdyc.com stable kde2 # deb http://kde.debian.net stable main crypto optional # # # # Installing gnome ( http://www.gnome.org/start ) # ================= # # deb http://red-carpet.ximian.com/debian stable main # apt-get update # apt-get upgrade # apt-get install task-ximian-gnome # # # vi /etc/apt/sources.list to include: # .... # deb http://spidermonkey.helixcode.com/distributions/debian unstable main # # apt-get update. # apt-get install task-helix-core to get the core parts of it, or # apt-get install task-helix-gnome to get all the applications # apt-get dist-upgrade upgrading a current GNOME system # # # update-rc.d -f xdm remove # # # More KDE/Gnome stuff # ------------------------------------- # http://jason.pepas.com/linux/notes/ # # # mplayer # ------ # apt-get install libogg0 libogg-dev libvorbis0 libvorbis-dev libpng3 libpng2-dev liblogfile-rotate-perl libconfhelper-perl debhelper fakeroot g++ libgtk1.2 libgtk1.2-dev svgalibg1 svgalibg1-dev aalib1 aalib1-dev libsdl1.2-dev # # # # end of file