GNU Linux firewalls – there is not one – there are many – iptables – nftables...
firewall & the GNU-Linux Pinguin: firewalls: where do thy go? and does thee protect from DDoS? as always in software development and as always in GNU Linux, there is not “one” firewall system, no,...
View Articlegnu linux bash terminal – how to get all informations about one’s harddisk –...
for good overview it makes sense to label the harddisk partitions according to functionality (what is their purpose?) GNU Linux bash – how to label partitions tune2fs (xfs & ext4) all infos about...
View Articlegnu linux bash – ls ll full date – display files and folders with full year
ls -lah --color --time-style=+%F # will output year-month-day like: 2020-02-06 # if one needs the actual TIMESTAMP: go --full-time # ls -lah --color --full-time will output time in format: # 2020-02-04...
View Articlesoftware development programming – dev – choosing the right C / C++ Text...
Update: 2020-02 added “geany” is there an ideal IDE for every task? Nope. Of course just as programming languages every IDE has their pros and cons. (build for a specific purpose? might serve other...
View Articlegnu linux bash – how to disable wifi wlan card nic
hostnamectl; # tested on Icon name: computer-desktop Chassis: desktop Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-8-amd64 Architecture: x86-64 su - root; # become root apt...
View Articlegnu debian linux ffmpeg avconv – how to screen record and convert mp4 to gif
ffmpeg / avconv is pretty nice. it can even do mp4 to gif conversion! 🙂 so what the user can do is: use SimpleScreenRecorder, to record a fixed rectangle of the screen to mp4 and then use ffmpeg /...
View Articlegnu linux – nice visual side-by-side diff – with eclipse gui and terminal –...
(plain) text is (still) the universal “interface” or “format” processing, viewing, diffing text is important to stop small changes in otherwise extensive and identical config files. the heavy weight...
View ArticleGNU Linux Bash Terminal retro games: very very retro game Moon Buggy (a...
as retro as it gets… seems to be a clone of MoonPatrol. hostnamectl; # tested on Static hostname: lenovo Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-16-amd64 Architecture:...
View ArticleGNU Linux how to make bootable usb stick from iso – making usb sticks with...
making usb sticks with GNU Linux and dd: WARNING! one single wrong drive letter and data could be irreversible destroyed! (it has happened many times before!!!) so this script make_stick.sh (download...
View ArticleGNU Linux bash – count how many files in the current directory
# count how many FILES are in this FOLDER and ALL SUBFOLDERS find . -type f|wc -l # count how many FILES are in this FOLDER only (maxdepth 1) find . -maxdepth 1 -type f | less; # check what lines will...
View ArticleGNU Linux Bash – a script to sort pictures into sub folders
this script is suppsed to be started in a folder full of images that need sorting. (it is even possible to ssh -X into a machine and do this remotely) # requirements su - root apt update # install...
View ArticleGNU Linux bash – script to generate thumbnails
# requirements su - root apt update # has the convert command apt install imagemagick vim /scripts/create_thumbs.sh #!/bin/bash THUMBS_FOLDER=/path/to/images/thumbnails for file in /path/to/images/* do...
View ArticleGNU Linux bash – analyze get detailed info on hardware summary with inxi
inxi – Command line system information script for console and IRC DESCRIPTION It is also used a debugging tool for forum technical support to quickly ascertain users’ system configurations and...
View ArticleBE CAREFUL WITH find + delete – find . -delete -name vs find . -name -delete
equals to: one neat function of the find command, it that what it found can be passed to another program for further processing. or: it can delete the file by adding the option -delete BUT (!!!) THIS...
View ArticleGNU Linux – how to wake on lan (WoL) – wake up other PCs on after startup boot
get the mac address of the interface of the target PC(T) enable wake on lan in bios of the target PC(T) pace shure PC(T) has done a clean shutdown (it might be in an unkown state, so boot it up and...
View ArticleGNU Linux Debian 12 – bash – setup and optimize “install_basics.sh” script
straight after (Debian based) GNU Linux OS setup, usually doing those modifications to: speed up boot & start of programs grub timetout 1sec shotcuts for faster start of programs in MATE Desktop...
View ArticleGNU Linux bash – get root partition
hostnamectl|grep Op Operating System: Debian GNU/Linux 10 (buster) # and also on lsb_release -d Description: Debian GNU/Linux 11 (bullseye) su - root df -m | grep " \+/$" | awk '{print $1;}' # because...
View ArticleGNU Linux bash – get distribution OS version
this might sound trivial, but there are multiple approaches: # for (theoretically every) Debian, but not every Debian based system: cat /etc/debian_version 11.3 # for Debian 10 and prior...
View ArticleGNU Linux how to – quick tmux tutorial – alternative to screen – multi tab...
tmux in action the lower pane is running https://dwaves.de/2017/06/15/linux-monitor-all-logs-in-real-time-d-follow-all-show-changes-to-log-files-under-varlog/ su - root apt update apt install tmux #...
View Articlegnu linux – bash console – animated ascii art – sl steam locomotive
just one of those programs, that makes users smile 🙂 written in C 🙂 compile it from src or go lsb_release -d; # tested on Description: Debian GNU/Linux 11 (bullseye) su - root apt update apt install sl
View ArticleGNU Linux bash – notebook laptop test battery runtime script
how long (many hours) will this notebook-laptop battery last? some sensors/softwares report/calculate things like this… 5days on one charge is a very very optimistic estimate for most intel or amd...
View ArticleGNU Linux Bash – simple backup web root and mysql mariadb database in one go...
# run this crontab -e # run backups at 2:00 0 2 * * * /root/scripts/backup.sh # daily updates at 3:00 0 3 * * * /scripts/update.sh mkdir /root/backups vim /root/scripts/backup.sh #!/bin/bash # what to...
View ArticleGNU Linux bash – optimizing basics – the ll alias to ll
ok an alias is simply an appreviation (ll) of a longer command (ls -lah –color) defined in one of those files: user@Debian8:~$ bash -l; # simulates a login 1. hello from /etc/bash.bashrc 2. hello from...
View ArticleGNU Linux bash – tar – how to pack compress backup folder create tar.gz and...
# this will create a new compressed version of 'folder-to-pack' # but will not include any pdf fiels tar fcvz /path/to/package.tar.gz --exclude='*.pdf' /path/to/folder-to-pack # automatically include...
View ArticleGNU Linux bash – global search replace string in all files in all...
WARNING! MAKE BACKUP of current folder before proceeding! that being said, this search replace script works with the tool sed which required to escape all special characters. This tool will help with...
View ArticleGNU Linux how to – reduze filesize of mp4 film movie file by 30% to 50% via...
what to expect? while x264 and x265 are surely great codecs, the re-encoding of x264 to x265 is very CPU and thus time and energy intense and on preset -crf 28 + mp3 audio (for material of high...
View ArticleGNU Linux howto – merge concat all mp4 videos in the current directory into...
hint! this script works! BUT: it can not deal with complex filenames, it needs “easy filenames” (yes no kidding). so something like: 2.mp4 and 3.mp4 in the same directory will work. or it will output:...
View Articletested on – official way – alternative way – busybox way – argument list too...
Debian runs well even on systems with as little as 512 MBytes of RAM. so imho even on a QNAP NAS there should be no more “argument list too long” for whatever reason. lsb_release -d; # official way:...
View ArticleGNU Linux (Debian) – how to – find the largest 30 duplicate files wasting...
This is actually VERY usefull to find files that waste disk space. lsb_release -a; # tested on Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) the solution: czkawka_cli install rust...
View ArticleGNU Linux bash – maximum best compression for binary data – xz (LZMA) vs zstd...
once upon a time, compressing massive amounts of binary was required. hostnamectl; # tested on Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-12-amd64 Architecture: x86-64 lscpu |...
View Article
More Pages to Explore .....