System Config

Debian & Ubuntu style

APT / dpkg

get installed packages:

dpkg --get-selections > dpkgselections

set & install packages from file:

dpkg --set-selections < dpkgselections
dselect update   # fixes packages not found in db errors
apt-get -u dselect-upgrade
# or:
aptitude install

Apt Redirect MITM Bug 01.2019


Sources List:

deb stable/updates main contrib non-free

'Secure' Update:

apt -o Acquire::http::AllowRedirect=false update
apt -o Acquire::http::AllowRedirect=false upgrade
dpkg -i liblz4-1_0.0~r131-2+b1_amd64.deb
rm -f liblz4-1_0.0~r131-2+b1_amd64.deb
apt install apt apt-transport-https apt-utils libapt-pkg5.0 libapt-inst2.0 libapt-pkg5.0
apt -o Acquire::http::AllowRedirect=false upgrade

Date, Time and Timezones

get date & time


set date & time

date --set 1998-11-02 
date --set 21:08:0

set timezone

dpkg-reconfigure tzdata

fix locales

apt-get install locales
dpkg-reconfigure locales

If you still get “unable to set locale, falling back to the default locale”, try this:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
Back to top
linux/system_config.txt · Last modified: 2019/01/24 21:43 by tkilla