Debian
April 1, 2017

Check debian version

1
lsb_release -a

Update the system

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

1
2
3
4
# 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

1
apt-get update && apt-get upgrade

Changing Locale

1
$ nano /etc/locale.gen

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

1
$ locale-gen

Changing Time Zone

1
$ dpkg-reconfigure tzdata

Cleaning up deinstalled packages

See the list of all the currently installed and deinstalled

1
dpkg --get-selections

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

1
dpkg --get-selections | grep deinstall | wc -l

To purge all of these packages at once:

1
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

1
update-rc.d -f gdm remove

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

1
startx

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

1
update-rc.d -f gdm defaults