Monthly Server Update – August`19

A few days later. It is a busy week.

Server Update

pikaur -Syu

 

Raspberry Pi only

You need to change one PKGBUILD:
:: warning: Not showing diff for libselinux package (installing for the first time)
Do you want to edit PKGBUILD for libselinux package? [Y/n] Y

arch=('i686' 'x86_64' 'armv6h')
to
arch=(any)

 

Arch and Raspberry

Don't worry about this warning.

(43/89) upgrading graphviz [##################################################################################] 100%
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gtk.so.6" - file not found
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gdk.so.6" - file not found
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gtk.so.6" - file not found
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gdk.so.6" - file not found

 

FreshRSS

Check out the news from July 30.

 

Pi-hole

Update gravity

pihole -g

 


 

Pacnew

resolvconf

File: /etc/resolvconf.conf.pacnew
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
5) Save update as example config
Please select from the menu above (-1 to ignore this update): 3
/etc/resolvconf.conf.pacnew /etc/resolvconf.conf /tmp/etc-update-19110/etc/resolvconf.conf.merged
Merging /etc/resolvconf.conf.pacnew and /etc/resolvconf.conf
| > resolv_conf=/etc/resolv.conf
%2
name_servers=127.0.0.1 | #name_servers=127.0.0.1
%1
1) Replace /etc/resolvconf.conf with merged file
2) Show differences between merged file and original
3) Remerge original with update
4) Edit merged file
5) Return to the previous menu
Please select from the menu above (-1 to exit, losing this merge): 1
Replacing /etc/resolvconf.conf with /tmp/etc-update-19110/etc/resolvconf.conf.merged
mv: overwrite '/etc/resolvconf.conf'? y
rm: remove regular file '/etc/resolvconf.conf.pacnew'? y

 

PHP

File: /etc/php/php.ini.pacnew
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
5) Save update as example config
Please select from the menu above (-1 to ignore this update): 3
/etc/php/php.ini.pacnew /etc/php/php.ini /tmp/etc-update-10094/etc/php/php.ini.merged
Merging /etc/php/php.ini.pacnew and /etc/php/php.ini
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/ | ;open_basedir =
%1
> ; raw (like "all", but messages are not split at newlines)
%2
extension=gd | ;extension=gd
%1
extension=gmp | ;extension=gmp
%1
extension=mysqli | ;extension=mysqli
%1
extension=pdo_mysql | ;extension=pdo_mysql
%1
extension=pdo_sqlite | ;extension=pdo_sqlite
%1
extension=sockets | ;extension=sockets
extension=sqlite3 | ;extension=sqlite3
%1
sqlite3.defensive = 1 | ;sqlite3.defensive = 1
%1
1) Replace /etc/php/php.ini with merged file
2) Show differences between merged file and original
3) Remerge original with update
4) Edit merged file
5) Return to the previous menu
Please select from the menu above (-1 to exit, losing this merge): 1
Replacing /etc/php/php.ini with /tmp/etc-update-10094/etc/php/php.ini.merged
mv: overwrite '/etc/php/php.ini'? y
rm: remove regular file '/etc/php/php.ini.pacnew'? y

 

Arch x86_64 only

mirrorlist

Change it to your needs.

 


 

Keep the system clean

 

Logs

  1. sudo rm btmp btmp.1 faillog lastlog openvpn.log pacman.log tallylog wtmp fail2ban.log pacman.log nginx/* samba/log.smbd
  2. sudo find /var/log -type f -regex ".*\.gz$" -delete && sudo find /var/log -type f -regex ".*\.[0-9]$" -delete
  3. pihole -f

 

Caches, history and wget

sudo rm /root/.cache/* /root/.bash_history /root/.wget-hsts ; sudo rm /srv/seafile/.bash_history /srv/seafile/.wget-hsts /srv/seafile/.cache/*

 

Orphans

sudo pacman -Rns $(pacman -Qtdq)

 

Pacman & pikaur caches

pikaur -Scc

 

Journal

sudo journalctl --vacuum-size=1M && sudo journalctl --verify

 


 

Reboot

sudo reboot now -h
 
 
 
 

Arch Linux x86_64:

Already Downgraded Software:

  • nothing

PwOSS - ISO:

Download

Wiki

 

Raspberry Pi:

Already Downgraded Software:

  • nothing

PwOSS - Image:

Download

Wiki

 

Other ARM devices:

PwOSS - Wiki