Skip to content

Debian

Debian administration notes: versions, updates, locale and time zone, package cleanup and text-mode boot.

1 min read

Check debian version

Terminal window
lsb_release -a

Update the system

Debian operating system is pre-installed. To update and upgrade it

Terminal window
# 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 upgrade

or combine both

Terminal window
apt-get update && apt-get upgrade

Changing Locale

Terminal window
$ nano /etc/locale.gen

Uncomment tr_TR.UTF-8 UTF-8, and run below to activate locale

Terminal window
$ locale-gen

Changing Time Zone

Terminal window
$ dpkg-reconfigure tzdata

Cleaning up deinstalled packages

See the list of all the currently installed and deinstalled

Terminal window
dpkg --get-selections

See how many packages are in the ‘deinstalled’ state with this command:

Terminal window
dpkg --get-selections | grep deinstall | wc -l

To purge all of these packages at once:

Terminal window
dpkg --get-selections | grep deinstall | sed 's/deinstall/\lpurge/' | dpkg --set-selections; dpkg -Pa

Boot 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

Terminal window
update-rc.d -f gdm remove

To start X manually, you would then have to login at the command prompt and enter the command

Terminal window
startx

To reset your login manager so that it runs at boot up, do

Terminal window
update-rc.d -f gdm defaults

Related articles

1 min read

gnome

Making the GNOME login screen ask for a username instead of showing the user list.

  • Linux & Systems
2 min read

Jitsi

Self-hosting Jitsi Meet: installation, Let's Encrypt, firewall rules, secure meetings and monitoring.

  • Linux & Systems
1 min readTürkçe

Steam

Linux'ta Steam ve Counter-Strike 2: GPU ayarları ve başlatma seçenekleri.

  • Linux & Systems

Type to search the whole site.