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

LXC: create Ubuntu Bionic container

sudo lxc-create -t ubuntu -n bionic -- template-options -r bionic

Upgrade SSH to v7.3 (with include support)

echo "deb http://old-releases.ubuntu.com/ubuntu yakkety main" > /etc/apt/sources.list.d/yakkety.list
apt-get update
apt-get install -y ssh
rm /etc/apt/sources.list.d/yakkety.list
apt-get update
ssh -V
OpenSSH_7.3p1 Ubuntu-1, OpenSSL 1.0.2g  1 Mar 2016
mkdir ~/.ssh/config.d
sed -i '1iInclude config.d/*' ~/.ssh/config

Links
https://superuser.com/questions/247564/is-there-a-way-for-one-ssh-config-file-to-include-another-one

Debian / Ubuntu mass dist-upgrade with Ansible (with fallback and logging)

ansible-playbook dist-upgrade.yml -i your_inventory [-l host_name]

[embed_url: https://raw.githubusercontent.com/panticz/ansible/master/dist-upgrade.yml]

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

LXC: create Ubuntu Trusty container

[embed_url: https://raw.githubusercontent.com/panticz/lxc/master/create.trusty.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

)

Journalctl

# display logs from current boot
journalctl -b

sudo journalctl --since yesterday
journalctl --since "2015-01-10" --until "2015-01-11 03:00"
journalctl --since 09:00 --until "1 hour ago"

journalctl -u ssh --since "2019-11-04"

journalctl -u nginx.service

# journals disc usage
sudo journalctl --disk-usage

# show errors
journalctl -p err -b
journalctl -p 3 -xb

# show dmesg
journalctl has a --dmesg

journalctl --disk-usage

# Clear systemd journals older than X days
journalctl --vacuum-time=31d

# Clear systemd journals if they exceed X storage
journalctl --vacuum-size=1G

# show NetworkManager logs
journalctl -u NetworkManager

# show cron logs
journalctl -f -u cron

Links
https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs
http://0pointer.de/blog/projects/journalctl.html
http://blog.delouw.ch/2013/07/24/why-journalctl-is-cool-and-syslog-will-survive-for-another-decade/

Ubuntu: Install Gnome classic

[embed_url: https://raw.githubusercontent.com/panticz/installit/master/install.gnome-fallback.sh]

Install LXC (Linux Containers) under Ubuntu

Installation

apt install -y bridge-utils debootstrap lxc-templates lxc

http://www.panticz.de/install_lxc

Create container

export LANG=en_US.UTF-8
export CONTAINER=wheezy

sudo sudo lxc-destroy -n ${CONTAINER}
sudo lxc-create -t debian -n ${CONTAINER}
sudo lxc-start -d -n ${CONTAINER}

echo 'Acquire::http::Proxy "http://apt-cacher:3142/";' | sudo tee /var/lib/lxc/${CONTAINER}/rootfs/etc/apt/apt.conf

sudo lxc-attach -n ${CONTAINER} -- apt-get clean
sudo lxc-attach -n ${CONTAINER} -- apt-get update
sudo lxc-attach -n ${CONTAINER} -- apt-get dist-upgrade -y
sudo lxc-attach -n ${CONTAINER} -- apt-get install -y wget vim

# start container in forderground
lxc-start -n vm1  -F

# optional
echo "lxc.start.auto = 1" | tee -a /var/lib/lxc/${CONTAINER}/config

# connect to container
ssh root@$(sudo lxc-info -i -H -n ${CONTAINER})

Install LXC from testing on Debian

echo "deb http://ftp.debian.org/debian testing main" >> /etc/apt/sources.list.d/testing.list
apt-get update
apt-get -t testing install -y lxc
sed -i 's|lxc.network.type = empty|lxc.network.type = veth|' /etc/lxc/default.conf
echo "lxc.network.link = lxcbr0" >> /etc/lxc/default.conf

Update LXC container templates

wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/lxc/master/scripts/lxc-update-templates.sh -O - | sudo bash -

# required for fedora container
sudo apt-get install -y yum  curl

OPTIONAL: install wget and vim by default under debian

sed -i '/iproute/a wget,\\\nvim,\\' /usr/share/lxc/templates/lxc-debian

OPTIONAL: enable apt-cache

Pagination

  • Previous page
  • 2
  • Next page
ubuntu
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