DDoS attacks are nasty stuff. Even such simple programs as – autobench – Automates the benchmarking of web servers using httperf – can sufficiently choke a webserver by spawning hundreds and thousands of mysql processes – exhausting all resources of […]
Hardware Assembly: (i think 512MByte should be enough, 1GByte probably pretty good) Software Installation: including squid-proxy and web advertisement-filtering in the next part: OpenVPN 🙂 Thanks man! Amazing tutorials! by https://internetz.me Related Links: https://www.howtoforge.com/pfsense-squid-squidguard-traffic-shaping-tutorial http://www.shallalist.de/Downloads/shallalist.tar.gz
ip address add 192.168.100.200/24 dev eth0 will add ip 192.168.100.200 to your eth0 / LAN, in case you need to access more subnets than the default DHCP-subnet. please also checkout this amazingly cool youtube video tutorial on how to build […]
A PID is an acronym for process identification number on a Linux or Unix-like operating system. A PID is automatically assigned to each process when it is created. A process is nothing but running instance of a program and each […]
AMAZING! TRY THIS IN WINDOWS! 😀 <code> stat -c %s largefilelike.iso; # count bytes (1Byte = 8Bits) in this file 4700372991 truncate –size=-1 largefilelike.iso; # cut off last byte of this file stat -c %s largefilelike.iso; # count again bytes […]
from recording a webradio i had a load of those files, which were kind of tricky to delete. The trick is to use find instead of rm. [cc lang=”bash” escaped=”true” width=”600″] find -name “*————— – —————*”; #dry run ./————— – […]
output list of processes sorted for RAM USAGE” ps uax –sort %mem|tail; # output processes with most RAM usage vim /scripts/stats_ram_usage.sh; # create that file and fill it with: #!/bin/bash # output the top X processes consuming most RAM free […]
ps while being only two letters is a massively complex, complicated and powerful tool. per default it outputs all running processes sorted for Process ID (PID) but you can change that sorting. here are the “ps info page/man” ps.info.txt (2011) […]
stuff: GNU Linux -> How to Install TrueCrypt / VeraCrypt / ZuluCrypt Veracrypt command line usage: manpage: veracrypt.man.txt # start interactive command line wizard veracrypt -t -c # to create a new encrypted volume or usb stick Volume type: 1) […]
add user in general there is just one binary /usr/sbin/useradd on all three distros. # cross distribution Debian8, RedHat(CentOS7), Suse12 useradd -m username; # add user and create hom directory passwd username; # you will have to asign a password […]
you can either use wget to download the webpage or use Firefox Ctrl+S (Save As) [cc lang=”bash” escaped=”true” width=”600″] wget http://domain.com/website.html; # download webpage # become root sudo bash; # or su; apt-get update; apt-get install lynx; lynx -dump “website.html” […]
[cc lang=”bash” escaped=”true” width=”600″] #!/bin/bash md5=($(md5sum( $1)); echo $md5; [/cc]
backing up a mysql or mariadb database can be done with mysqldump. imho i would backup the whole database, but i would also advise to backup every database seperately, so you can restore them separately, if you maybe do not […]
mysql -u root -e ‘show databases’ -s –skip-column-names
apt-cache show evolution-common; # show info about package (if installed or not) Package: evolution-common Source: evolution Version: 3.12.9~git20141130.241663-1 Installed-Size: 45834 Maintainer: Debian Evolution Maintainers <pkg-evolution-maintainers@lists.alioth.debian.org> Architecture: all Depends: dconf-gsettings-backend | gsettings-backend Recommends: evolution Description-en: architecture independent files for Evolution Evolution […]
tested on: Linux laptop 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02) i686 GNU/Linux update: 2019-01: also tested on hostnamectl # Operating System: CentOS Linux 7 (Core) # CPE OS Name: cpe:/o:centos:centos:7 # Architecture: x86-64 if using one core is enough: # […]
tested with: ext3 and ext4 (does not work for xfs) MY RECOMMENDATION: WHO CARES IF THE NAS IS DOING A AUTOMATIC REBOOT AT SUNDAY 3 o’CLOCK IN THE MORNING AND CHECKING 2-3TB OF EXT3 FILESYSTEM? NO ONE! RELIABILITY SHOULD BE […]
you might often run your tar fcvz backup_filename.tar.gz files_to_backup but you would like to add the current date and time at the front of your backup-file. so what you can do is: [cc lang=”bash” escaped=”true” width=”600″] tar fcvz $(date +%Y-%m-%d)_backup_filename.tar.gz […]
update: safety first! when it comes to important files: safety comes first thus recommend to the user that wants to go pro the following backup system: https://www.ebay.de/itm/Intenso-Memory-Board-4-TB-Externe-Festplatte-8-9-cm-3-5-Zoll-USB-3-2-Gen-1/402584943201 have two complete backups at two different places: backupA: at the company, USB […]
I tried to build a tool (its a early beta 😀 (actually only escapes \ and / right now ) https://dwaves.de/tools/escape/
one go: example: find all xmlrpc.php and rename it to xmlrpc.php.disabled find . -type f -name ‘xmlrpc*’ -exec sh -c ‘x=”{}”; mv “$x” “${x}.disabled”‘ \; two chained scripts: one for loop. one for rename. renames all files in all subdirectories […]
lsb_release -a; # tested with Description: Debian GNU/Linux 12 (bookworm) # previously this was tested with cat /etc/os-release |grep PRETTY PRETTY_NAME=”Debian GNU/Linux 11 (bullseye)” why? duplicate files are a waste of disk space. every system experiences catastrophic failures, slow downs […]
once more The Penguin comes to aid the Windows (how nice of tux). General approach: # become root su – root # phase1) testing: list all files that match find /search/this/folder -iname “for*this*file*txt” -type f|less # phase2) delete: all the […]
searching effectively and easily for files and content of those files is key. this kind of content-search might take a while, because it searches EVERY file. this will output/generate a list of files with full path – that you then […]
[cc lang=”bash” escaped=”true” width=”600″] # example 1 find / -iname “*.mp3” -exec mv {} /mnt/mp3 \; # find all *.mp3 files and move them to /mnt/mp3 # example 2 – will preserve directory structure find /where/from -name *.mp3 | cpio […]
tested on: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux If you are under linux, you probably know find. Find is a powerful tool but it’s just as fast as your harddisk 😀 Locate is much quicker, because it […]
update: 2019-01 if you are having trouble getting VirtualBox Additions to run on your guest vm, you might want to checkout this article and compile your own kernel. how to compile latest kernel under debian: https://dwaves.de/2017/06/28/debian-compiling-the-latest-kernel-compile-customize-kernel-download-install-linux-kernel-headers/ it is a little […]
first things first: if it happens to the user to have a gigabyte mainboard… with a PS2 keyboard connector and a BIOS UEFI that does not allow USB keyboards to be used right after start… get a PS2 keyboard (the […]
under windows-ntfs if you special characters in a filename… you can get into trouble deleting them (from command prompt it should always work) under linux-ext3 you can run into similar problems if a filename (for whatever reason) contains “–” (two […]
its actually not that easy… but also not that hard to also backup larger files reliable and encrypted (!) over internet yourself. 0. setup ssh on your backup-server, so the backup-user can login without beeing prompted for password (safer and […]