User Tools

Site Tools


linux:system_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:system_config [2016/09/01 23:25]
tkilla
linux:system_config [2019/01/24 21:43] (current)
tkilla [APT / dpkg]
Line 8: Line 8:
 get installed packages: get installed packages:
  
-  dpkg --get-selections > dpkg_selection+  dpkg --get-selections > dpkgselections
      
 set & install packages from file: set & install packages from file:
  
-  dpkg --set-selections < dpkg_selection+  dpkg --set-selections < dpkgselections
  
-  aptitude install+  dselect update   # fixes packages not found in db errors 
 +  apt-get -u dselect-upgrade
  
   # or:   # or:
-  apt-get -u dselect-upgrade+  aptitude install 
 + 
 + 
 +==== Apt Redirect MITM Bug 01.2019 ==== 
 + 
 +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768073 
 + 
 +**Workaround:** 
 + 
 +Sources List: 
 +  deb http://cdn-fastly.deb.debian.org/debian-security stable/updates main contrib non-free 
 + 
 +'Secure' Update: 
 +  apt -o Acquire::http::AllowRedirect=false update 
 +  apt -o Acquire::http::AllowRedirect=false upgrade 
 + 
 + 
 +  wget http://ftp.de.debian.org/debian/pool/main/l/lz4/liblz4-1_0.0~r131-2+b1_amd64.deb 
 +  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 
 + 
 + 
 + 
 + 
  
  
Line 24: Line 53:
 ===== Date, Time and Timezones ===== ===== Date, Time and Timezones =====
  
-== get date & time ==+==== get date & time ====
  
   date   date
      
-== set date & time ==+==== set date & time ====
  
   date --set 1998-11-02    date --set 1998-11-02 
Line 34: Line 63:
      
      
-== set timezone ==+==== set timezone ====
  
   dpkg-reconfigure tzdata   dpkg-reconfigure tzdata
  
  
-== fix locale ==+ 
 +==== fix locales ====
  
   apt-get install locales   apt-get install locales
Line 45: Line 75:
   locale   locale
  
 +If you still get "unable to set locale, falling back to the default locale", try this:
  
-===== fail2ban ===== +  export LANGUAGE=en_US.UTF-8 
- +  export LANG=en_US.UTF-8 
-debugging: +  export LC_ALL=en_US.UTF-8 
- +  locale-gen en_US.UTF-8
-if the service doesn't start +
- +
-for some useful error messages: +
-  fail2ban-client -x start +
- +
-too much cpu / ram usage maybe a problem with /etc/localtime +
- +
-trace which files are opened / closed all the time by one of the server threads:+
  
-  strace -f -p <various pids of fail2ban processes 
  
-try to delete the database in /var/lib/fail2ban 
linux/system_config.1472765124.txt.gz · Last modified: 2016/09/01 23:25 by tkilla