Debian Tips & Tricks
Total Page:16
File Type:pdf, Size:1020Kb
Linux-Kurs Theme - Debian Tips & Tricks - 14. Feb. 2008 Michel Bisson Debian Linux Tips and Tricks Table of Contents Basic configuration program.................................................................................................. 4 Install package groups...........................................................................................................4 Install individual packages.....................................................................................................4 Configuration program for system......................................................................................... 4 To configure postscript fonts for a postscript printer.............................................................4 Configuration for kdm to manage remote X servers..............................................................4 Xserver DPI settings ca be changed..................................................................................... 4 Edit the following files to allow TrueType fonts..................................................................... 4 Configuration of X-Server access control..............................................................................4 X-Server keyboard symbols for keys layout meanings......................................................... 4 To get rid of all the unused libraries ..................................................................................... 4 To search for a package name in All available packages.....................................................4 To list information about a NOT installed package............................................................... 4 To search for a filename in installed packages.....................................................................4 To search for a package name through already installed packages.................................... 4 To list all already installed packages.....................................................................................5 To display the files installed from an installed package........................................................5 To display header information about an installed package...................................................5 To reconfigure a package...................................................................................................... 5 To fix not finished installations and configuration................................................................. 5 To load the cache of internet packages install sources........................................................ 5 To upgrade the curent version of Debian.............................................................................. 5 To de-install a package:.........................................................................................................5 Get a list of installed packages with their sizes sorted by size............................................. 5 To change temporarily the terminal keyboard layout............................................................ 5 To change permanently the terminal keyboard layout.......................................................... 6 To force all kernel messages (klogd) to be sent only to syslog............................................ 6 To install the IDS system on Debian..................................................................................... 6 To allow e-mailing of received faxes (hylafax) in a PDF format............................................6 Where are Pre and Post the install scripts for packages...................................................... 6 To Install webmin on Debian 3.0 with SSL............................................................................ 6 To search through the bash history with the page-up and page-down key.......................... 6 Exim Mail server:....................................................................................................................7 Network setup........................................................................................................................ 7 To create Runlevel links for daemons................................................................................... 7 X-Server Symbolic links......................................................................................................... 7 GUI for APT and deb packages.............................................................................................7 To install a Knoppix on Hard disk:.........................................................................................7 Downgrading from unstable to stable after regretting an apt-get dist-upgrade....................7 The command "apt-get update"............................................................................................. 8 The command "apt-get upgrade"........................................................................................... 8 The command "apt-get dist-upgrade".................................................................................... 8 dpkg -i --force-downgrade......................................................................................................8 The command "apt-get autoclean"......................................................................................... 8 The command "apt-get remove --purge packagename"........................................................8 The file /var/lib/dpkg/availabe ...............................................................................................8 82_Debian_tips_trics.sxw - 1 Linux-Kurs Theme - Debian Tips & Tricks - 14. Feb. 2008 Michel Bisson The file /var/lib/dpkg/status....................................................................................................8 The directory /var/lib/dpkg/info.............................................................................................. 8 Possible content(files)of a package:......................................................................................8 Command apt-file: .................................................................................................................9 Command apt-cache: ............................................................................................................9 Command findpkg:................................................................................................................. 9 Command synaptic:................................................................................................................9 To change the timezone of the system..................................................................................9 To reboot with another grub menu item only once:............................................................... 9 To finish an aborted packages upgdate................................................................................ 9 To change the timezone of the system:.................................................................................9 To change the timezone of the system:.................................................................................9 Fixing the locales(language) in Etch for squirrelmail............................................................ 9 To force remove a broken package.....................................................................................10 Installation of ClamAV, Spamassassin and Amavis in Debian Etch................................... 10 Setting up awstats with Postfix............................................................................................ 10 Activate an init script with default runlevels:....................................................................... 11 Correct the locales:.............................................................................................................. 11 Always get MC in english:....................................................................................................11 Verify integrity of all installed packages:............................................................................. 11 VGA Resolution and Color Depth reference Chart:............................................................ 11 Create an SSL certificate for vsftpd.....................................................................................11 To repair the locales in system............................................................................................11 Create an SSL self signed certificate for Apache2.............................................................. 12 Chapter 6 - Debian package management (long but useful............................................... 15 6.1 Introduction................................................................................................................ 16 6.1.1 Main package management tools...................................................................... 16 6.1.2 Convenience tools..............................................................................................16 6.2 Beginning Debian package management................................................................. 16 6.2.1 Set up APT......................................................................................................... 16 6.2.2 Installing tasks....................................................................................................17 6.2.3 aptitude...............................................................................................................17 6.2.4 dselect...............................................................................................................