Debian
Debian administration notes: versions, updates, locale and time zone, package cleanup and text-mode boot.
1 min read
Check debian version
lsb_release -aUpdate the system
Debian operating system is pre-installed. To update and upgrade it
# update the list of available packages and their versions, it does not install or upgrade any packages.$ apt-get update# install newer versions of the installed packages$ apt-get upgradeor combine both
apt-get update && apt-get upgradeChanging Locale
$ nano /etc/locale.genUncomment tr_TR.UTF-8 UTF-8, and run below to activate locale
$ locale-genChanging Time Zone
$ dpkg-reconfigure tzdataCleaning up deinstalled packages
See the list of all the currently installed and deinstalled
dpkg --get-selectionsSee how many packages are in the ‘deinstalled’ state with this command:
dpkg --get-selections | grep deinstall | wc -lTo purge all of these packages at once:
dpkg --get-selections | grep deinstall | sed 's/deinstall/\lpurge/' | dpkg --set-selections; dpkg -PaBoot debian in text mode instead of graphical mode (GUI)
To disable the login manager from automatically running at boot up, run the following command as root
update-rc.d -f gdm removeTo start X manually, you would then have to login at the command prompt and enter the command
startxTo reset your login manager so that it runs at boot up, do
update-rc.d -f gdm defaults