Kategorie: Maintenance

Split Files on embedded Linux Systems

If you run a embedded Linux PC like raspi often some Linux Commands fail without error messages, cause the hardware performance is low tech. Same i have seen on the split command.. to split a 50GB Photos-Archive File to 4Gb on a USB Drive i found out that: sudo split -b 4096m -d -u Photos.tgz Photos-Archive_ fix the job.. Cause option -u disable IO-Caching over the 2.0 USB Port to the RAM of the raspi that the Data of the Output Stream is written direct to the Drive.

Apache MEMCACHED UDP Protection

Current a lot of sites blogging about memcached attacks on Servers here some details: Memcached Servers need a installed and running Service called „memcached“ Websites need a php-plugin like php7.0-memcached to connect via API to the memcached Service The Memcached Service uses a own Config File at debian /etc/memcached.conf By default it MUST listen to localhost or socket Admins MUST setup a FIREWALL like „ufw“ (iptables) and MUST check own Server for OPEN PORTS with nmap The Problem is that Attackers can run Scripts against to your Server in a 10^6 Range like a BOTNET !! with ONE PC cause […]

DSL ISP check daily speed

​#dsl #telekom #speed #einundeins #router #settings do weekly #check the webinterface of your #Internet #connection somtimes #lower than you pay by #isp #provider #contract #malfunction  :-( no #DSL100 

Debian: without sytemd

If you run Debian Servers, you read last weeks about security problems of systemd service manager. On several tests i have seen much systems having problems on service starts on boot like on debian, raspian .. This is a result of not clean redesigned scripts of the services by the Maintainers like the Proxy Server „privoxy“ Package… For Tests i decided to try the new Debian Fork Replacement DEVUAN  for Desktop and a standard Debian Server Setup without systemd! Howto purge Systemd on a Debian System read this external Wiki: http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation or try Devuan for Server and Desktop: https://devuan.org/ Remark: […]

Debian: Auto Update System Daily without special Tools

If you want to have a full automatic Update on your System then open a Gnome Terminal / Linux Console run (# Comments): $sudo nano /root/update.sh enter: #/!bin/bash apt-get update #pull updates apt-get dist-upgrade -y # install updates apt-get clean #clean update database for next pull to have clean source urls exit 0 save with CTRL+X # save+Exit $sudo chmod 755 /root/update.sh # make able to run Setup Timeplan: $sudo su –  # change to root users console with environment $crontab -e  # open root timer enter: @daily sh /root/update.sh > /dev/null 2>&1 save with CTRL+X and be happy the […]

Debian Ubuntu: Delete Packages which are marked as „rc“

Problem: If you up/downgrade a Debian most of unneeded files are always on your disk Solution: To check: $sudo dpkg -l | more To cleanup: dpkg –list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg –purge If you like run the command twice cause sometimes deps are new taken or install deporphan to: $sudo deborphan | xargs sudo apt-get -y remove –purge If you like run the command twice cause sometimes deps are new taken

Debian Ubuntu Update Script with Switch OFF after update

Problem: I f you work on you PC daily Patches must be checked and installed. At Debian / Ubuntu the Gnome-Update-Manager does this. But there is NO Shutdown possible after update. Solution: – create Script #sudo nano /root/upgrade-off.sh add inside: apt-get update           //for update Patches Database PC apt-get dist-upgrade -y         //install Patches automatic apt-get clean      //cleanup PC /sbin/init 0      //shutdown PC automatic or reboot Server = init 6 exit You can now after work set it to crontab or start manual by #sudo sh /root/upgrade-off.sh On Servers name it upgrade-reboot.sh and set root cron to run the job @hourly/@daily