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
Last revision Both sides next revision
linux:system_config [2016/08/04 18:00]
tkilla
linux:system_config [2018/10/08 17:05]
tkilla [Date, Time and Timezones]
Line 2: Line 2:
  
 Debian & Ubuntu style 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
 +
 +
  
  
 ===== 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 16: Line 35:
      
      
-== set timezone ==+==== set timezone ====
  
   dpkg-reconfigure tzdata   dpkg-reconfigure tzdata
  
  
-== fix locale ==+ 
 +==== fix locales ====
  
   apt-get install locales   apt-get install locales
Line 27: Line 47:
   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 --p <various pids of fail2ban processes+
  
  
linux/system_config.txt · Last modified: 2019/01/24 21:43 by tkilla