Category: Administration / Server

self hosted wordpress setup script
07.02.2019

WARNING! BACKUP YOUR MACHINE! UNTESTED! before running this script change to your new web root: /home/UserName/web/domain.com/public_html then run it like /scripts/install_wordpress.sh it tries to: download and unpack the latest wordpress into the current directory disable xmlrpc.php disable wp-cron.php requirements: a […]

remote network mount directory via ssh – sshfs
04.02.2019

it is super slow, but for copying small files it works. if /mnt/cifs/here is owned by non-root user, also non-root users are allowed to mount. (which is rather tricky with mount cifs) # setup software apt install sshfs yum install […]

lnav – like less but more colorful output of log files
03.02.2019

how to monitor all logs… https://dwaves.org/2017/06/15/linux-monitor-all-logs-in-real-time-d-follow-all-show-changes-to-log-files-under-varlog/ as i was wondering what combination of less -R with or without ccze would allow me to view log files colorful (because a desert of black and white… does not give you a good […]

The Y2038 Problem – cars and embedded systems
23.01.2019

in comparison to Y2K: „The issue became when it became 2000 because that would be stored as 00 in the program. This caused many to believe that say, bank software wouldn’t be able to get your money out because it […]

08.01.2019

visit via browser: https://ipinfo.io/ or from bash: curl ipinfo.io { „ip“: „123.123.123.123“, „hostname“: „domain.com“, „city“: „City“, „region“: „Region“, „country“: „DE“, „loc“: „49.XXXX,10.XXXX“, „postal“: „12345“, „org“: „Hetzner Online GmbH“

08.01.2019

list all jails fail2ban-client status Status |- Number of jail: 1 `- Jail list: sshd get status: /scripts/fail2ban_status.sh echo „===== fail2ban status =====“ JAILS=`fail2ban-client status | grep „Jail list“ | sed -E ’s/^[^:]+:[ \t]+//‘ | sed ’s/,//g’` for JAIL in […]

debian and cups rename printer
08.01.2019

if you print from a laptop at home at at office, and it happens you have the same printer model here and there, you might to want to distinguish between them by name. # become root sudo bash # backup […]

backdoors in hardware – Intel Anti Theft Brick Code
16.12.2018

While „backdoors“ in hardware sound like a good idea… you don’t know how hackers are using it to sabotage infrastructure or extort bitcoins of another country’s companies… see „backdoor in cisco router„. IT IS F**** DANGEROUS! ESPECIALLY if it is […]

linux bash script – test if host is alive – internet connection test script – uptime test script
15.12.2018

tested with: tested with/on: Static hostname: CentOS1.localdomain Operating System: CentOS Linux 7 (Core) Kernel: Linux 4.15.9 Architecture: x86-64 bash -version GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu) ping -V ping utility, iputils-s20160308 usage: /scripts/count_host_uptime.sh domain.com cat /scripts/count_host_uptime.sh domain.com #!/bin/bash # ping -c […]

Intel BMC Java JViewer KVM Remote Control with Linux and Intel Mainboard S2600CWR
03.12.2018

(IPMI) https://en.wikipedia.org/wiki/Intelligent_Platform_Management_Interface IPMI is a series of specifications that provide standardized interfaces to the so-called “platform management” services. (src) ((BMC) Baseboard Management Controller) https://de.wikipedia.org/wiki/Baseboard_Management_Controller allows you to see the screen of your server via a simple java enhanced webbrowser – […]

Setup Bluetooth Headset under linux debian gnome2 mate desktop
23.08.2018

preparations on terminal: detect your hardware: you can get old but well supported notebooks/laptops here like the dell latitude e4310 with this intel-spy-on-me wifi/bluetooth module on board: lshw |grep lue description: Bluetooth wireless interface product: DW375 Bluetooth Module capabilities: bluetooth […]