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

ZFS filesystem on Linux

Create ZFS filesystem

apt install -y zfsutils-linux
zpool create tank /dev/system/lxd 
zfs create -o mountpoint=/var/lib/lxd2 tank/lxd

Boot Ubuntu LiveCD

terminal
sudo apt-get install -y ssh
sudo passwd ubuntu
ip a

Mount all datasets

zfs mount -a

ZFS on Ubuntu 23.04
https://github.com/Sithuk/ubuntu-server-zfsbootmenu

SSH login to Ubuntu LiveCD

Grub

ip l add link enp24s0f0np0 name dev3633 type vlan id 3633
ip l set dev dev3633 up
dhclient dev3633 

apt update
apt install mdadm
mdadm --assemble --scan

mount /dev/mapper/system-root /mnt/

mount --bind /dev/ /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys

chroot /mnt
mount -a

#modprobe nvram

update-grub

Fix "failed to connect to lvmetad"
https://askubuntu.com/questions/745218/ubuntu-wont-boot-because-of-lvmetad

vi /etc/lvm/lvm.conf
use_lvmetad = 0

Links
https://wiki.gentoo.org/wiki/GRUB2/Chainloading
https://wiki.ubuntuusers.de/GRUB/GRUB-Shell/
https://wiki.archlinux.org/index.php/GRUB/Tips_and_tricks#Alternative_installation_methods

Glassfish

https://glassfish.java.net/download.html
http://download.oracle.com/glassfish/4.1/promoted/index.html

# parameter
grep pass /etc/init.d/glassfish
ASADMINOPTS="--user admin --passwordfile /opt/glassfish/pass"

#  asadmin
http://docs.oracle.com/cd/E19798-01/821-1758/6nmnj7pso/index.html
/opt/glassfish/bin/asadmin --user admin --passwordfile /opt/glassfish/conf/pass list-jvm-options | grep Dcom.sun.management.jmxremote.port
/opt/glassfish/bin/asadmin --user admin --passwordfile /opt/glassfish/conf/pass create-jvm-options -Dcom.sun.management.jmxremote.port=1234
/opt/glassfish/bin/asadmin --user admin --passwordfile /opt/glassfish/conf/pass delete-jvm-options -Dcom.sun.management.jmxremote.port=1234
/opt/glassfish/bin/asadmin --user admin --passwordfile /opt/glassfish/conf/pass list-applications

asadmin list-applications
asadmin list-applications customer-service-instance

# show system properties
list-system-properties

 get
/opt/glassfish/bin/asadmin --user admin --passwordfile /opt/glassfish/conf/pass get secure-admin.enabled

# remote
ssh foo@glassfish.example.com -t "bash -ic 'asadmin list-instances'"

# logs
tail -f /opt/glassfish/domains/domain1/logs/*.log

Alternatives
http://www.payara.fish/

Fix grub on btrfs partition

# mount the btrfs root subvolume
mount /dev/sda1 /mnt -o subvol=/

# (optional) set the default subvolume
btrfs sub set @ /mnt

mount /proc /mnt/proc --bind
mount /dev /mnt/dev --bind
mount /sys /mnt/sys --bind

chroot /mnt

grub-install /dev/sda
update-grub /dev/sda

# activate first partition
fdisk -l /dev/sda

tv

RustDesk - free TeamViewer alternative
http://www.panticz.de/Install/rustdesk

Install prerequrements

sudo apt-get install -y \
  libdbus-1-3 libqt5gui5 libqt5widgets5 libqt5qml5 libqt5quick5 \
  libqt5webkit5 libqt5x11extras5 qml-module-qtquick2 \
  qml-module-qtquick-controls qml-module-qtquick-dialogs \
  qml-module-qtquick-window2 qml-module-qtquick-layouts xz-utils libminizip1 wget

Start TeamViewer QS (server)

wget -q https://download.teamviewer.com/download/teamviewer_qs.tar.gz -O - | \
  tar -C /tmp/ -xz && \
    /tmp/teamviewerqs/teamviewer license accept

Create Teamviewer QS (server only) starter script

sudo wget "https://upload.wikimedia.org/wikipedia/commons/3/31/TeamViewer_Logo_Icon_Only.svg" -qO /usr/share/themes/Default/teamviewer.svg

#wget -q https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz -O - | tar -C /tmp/ -Jx && /tmp/teamviewer/teamviewer
cat << EOF | sudo tee /usr/local/sbin/teamviewer
#!/bin/bash

wget -q https://download.teamviewer.com/download/teamviewer_qs.tar.gz -O - | tar -C /tmp/ -xz && /tmp/teamviewerqs/teamviewer license accept
EOF

sudo chmod a+rx /usr/local/sbin/teamviewer

Create starter

cat << EOF | sudo tee /usr/share/applications/teamviewer.desktop
[Desktop Entry]
Name=TeamViewer
Exec=/usr/local/sbin/teamviewer
Icon=/usr/share/themes/Default/teamviewer.svg
Type=Application
Categories=GNOME;GTK;Network;
EOF

Start TeamViewer client

# debug libs
./tv-setup checklibs

sudo apt install libminizip1

wget -q https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz -O - | \
  tar -C /tmp/ -Jx && \
    /tmp/teamviewer/teamviewer
# get id
grep userID /tmp/teamviewer/logfiles/*.log

# start teamviewer over ssh (test)
DISPLAY=:0 /tmp/teamviewer/teamviewer info

# get id and set password (test)
teamviewer --passwd newPassword
teamviewer -info

Create starter script

Squid: Compile with SSL support under Debian Wheezy / Jessie

[embed_url: https://raw.githubusercontent.com/panticz/scripts/master/compile.squid.with.ssl.support.sh]

Install packages

apt-get install logrotate
dpkg -i *.deb
apt-get install -f

Test configuration

# squid3 -v
Squid Cache: Version 3.4.8
configure options:  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=${prefix}/lib/squid3' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--datadir=/usr/share/squid3' '--sysconfdir=/etc/squid3' '--mandir=/usr/share/man' '--enable-inline' '--disable-arch-native' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth-basic=DB,fake,getpwnam,LDAP,MSNT,MSNT-multi-domain,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=fake,smb_lm' '--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group' '--enable-url-rewrite-helpers=fake' '--enable-eui' '--enable-esi' '--enable-icmp' '--enable-zph-qos' '--enable-ecap' '--disable-translation' '--with-swapdir=/var/spool/squid3' '--with-logdir=/var/log/squid3' '--with-pidfile=/var/run/squid3.pid' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-ssl' '--with-open-ssl=/etc/ssl/openssl.cnf' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'

Links
http://ubuntuforums.org/showthread.php?t=2171061

Create Ubuntu / Debian SSH network install ISO

[embed_url: https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/create.network.install.iso.sh]

LXC: create Ubuntu Xenial container

[embed_url: https://raw.githubusercontent.com/panticz/lxc/master/create_ubuntu_xenial.sh]

Allow root SSH login with password

sed -i 's|PermitRootLogin without-password|PermitRootLogin yes|' /etc/ssh/sshd_config
sed -i 's|PasswordAuthentication no|PasswordAuthentication yes|' /etc/ssh/sshd_config
service ssh restart

Brother MFC-1910W

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

Check for newer DEB packages
http://support.brother.com/g/b/downloadlist.aspx?c=as_ot&lang=en&prod=mfc1910w_eu_as&os=128

Install OpenRA (Command & Conquer Red Alert) under Ubuntu

Install openRA with snap

sudo snap install openra

Install original videos for C&C
https://github.com/OpenRA/OpenRA/wiki/Game-Content
https://cncnz.com/features/freeware-classic-command-conquer-games/

sudo snap connect openra:removable-media

sudo apt install unrar

sudo mkdir /media/openra

# C&C
wget https://files.cncnz.com/cc1_tiberian_dawn/full_game/GDI95.zip -q -P /tmp
wget https://files.cncnz.com/cc1_tiberian_dawn/full_game/NOD95.zip -q -P /tmp
wget https://files.cncnz.com/cc1_tiberian_dawn/full_game/CovertOps_ISO.zip -q -P /tmp

unzip /tmp/GDI95.zip -d /tmp/
unzip /tmp/NOD95.zip -d /tmp/
unzip /tmp/CovertOps_ISO.zip -d /tmp/

sudo mount /tmp/GDI95.iso /media/openra

openra.cnc

# Manage Content > Detect Disc or Installation > Select content > Continue

sudo umount /media/openra
sudo mount /tmp/NOD95.iso /media/openra

# Detect Disc or Installation > Select content > Continue

sudo umount /media/openra
sudo mount /tmp/covert.iso /media/openra

# Detect Disc or Installation > Select content > Continue

sudo umount /media/openra

Install original videos for RedAlert

wget https://files.cncnz.com/red_alert/full_game/RedAlert1_AlliedDisc.rar -qP /tmp/
wget https://files.cncnz.com/red_alert/full_game/RedAlert1_SovietDisc.rar -qP /tmp/

unrar x /tmp/RedAlert1_AlliedDisc.rar /tmp/
unrar x /tmp/RedAlert1_SovietDisc.rar /tmp/

sudo mount  /tmp/RedAlert1_AlliedDisc/RedAlert1_AlliedDisc/CD1_ALLIED_DISC.ISO /media/openra

opnera.ra
Manage Content > Detect Disc or Installation

sudo umount /media/openra
sudo mount  /tmp/RedAlert1_SovietDisc/RedAlert1_SovietDisc/CD2_SOVIET_DISC.ISO /media/openra

Retry

sudo umount /media/openra

rm -r /media/openra
rm -r /tmp/RedAlert1_*

Check for latest version
https://snapcraft.io/openra

Pagination

  • Previous page
  • 7
  • 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