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

Puppet

Installation
1. Install and configure Puppet on server (/etc/puppet/fileserver.conf)
http://www.panticz.de/install-puppet-server-puppetmaster
2. On client: Install Puppet client
http://www.panticz.de/install-puppet-client
3. On client: apply for certificate (puppet agent --test)
4. On server: confirm certificate (puppet cert sign dev2.lab)
5. On server: configure modules (/etc/puppet/modules/MODULE_NAME/manifests/init.pp)
6. On server: prepare files (/etc/puppet/modules/MODULE_NAME/files)
7. Configure clients (/etc/puppet/manifests/site.pp)

Config files
/etc/puppet/puppet.conf
/etc/puppet/fileserver.conf
/etc/puppet/manifests/site.pp
/etc/puppet/autosign.conf

Certificate on puppet master (server)

# list all certificate

puppet cert list --all

# remove certificate

puppet cert clean dev2.lab

Monitor log on server
tail -f /var/log/puppet/masterhttp.log

On client

rm -f /var/lib/puppet/ssl/certs/dev2.lab.pem

puppet agent -t

Links
http://docs.puppetlabs.com/references/latest/configuration.html#runinte…

Install Cinnamon

# add PPA
sudo add-apt-repository -y ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
# install cinnamon
sudo apt-get install -y cinnamon
# OPTIONAL: install nemo
sudo apt-get install -y nemo
# Links

http://wiki.ubuntuusers.de/Cinnamon
http://wiki.ubuntuusers.de/Paketquellen_freischalten/PPA#PPA-hinzufuegen

IpFire

http://wiki.ipfire.org/de/addons/net-snmp/start - SNMP Daemon for IpFire

Edit Cron jobs on IpFire
fcrontab -e
/etc/init.d/fcron restart

# force update dyndns every day

#9 2 * * 0 [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f
0 19 * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f

Upgrade
pakfire update
pakfire upgrade

Install Addons
pakfire install -y iftop

Update XEN VM

mount /dev/vg1/fw-boot /mnt/
# add XEN boot entry in GRUB configuration
cat <<EOF>> /mnt/boot/grub/grub.conf

title IPFire (legacy XEN-Kernel 2.6.32.61)
kernel /vmlinuz-2.6.32.61-ipfire-xen root=UUID=2b205431-3429-45eb-a023-5d3b0cf55ddd panic=10 console=xvc0 ro
initrd /ipfirerd-2.6.32.61-xen.img
EOF

# copy kernel and initrd
cp /media/backup/daily.0/fw/boot/*2.6.32.61* /mnt/
umount  /mnt/
# copy kernel modules
mount /dev/vg1/fw-root /mnt/
cp -a /media/backup/daily.0/fw/lib/modules/2.6.32.61-ipfire-xen/ /mnt/lib/modules/
umount  /mnt/
# start vm

xm create -c fw

Update to beta

sed -i 's/2.13/2.15/g' /opt/pakfire/etc/pakfire.conf

pakfire update --force
pakfire upgrade

Links
http://wiki.ipfire.org/de/addons/start

Pogoplug: Install Debian

Install Debian

# connect to PogoPlug
ssh root@192.168.2.155

ceadmin

# prepare USB flash (1GB root, 256MB swap)

printf "o\nn\np\n1\n\n+1G\nn\np\n2\n\n+256M\nt\n2\n82\nw\n" | fdisk /dev/sda

# download and execute debian installation script
cd /tmp
wget http://projects.doozan.com/debian/dockstar.debian-squeeze.sh
chmod +x dockstar.debian-squeeze.sh
export PATH=$PATH:/usr/sbin:/sbin
./dockstar.debian-squeeze.sh

ok

# login to new debian intallation
ssh root@192.168.1.X

pass: root

# change root password

passwd

Configure netconsole

# configure uBoot netconsole

fw_setenv serverip 192.168.2.199 # your desktop IP
fw_setenv ipaddr 192.168.2.1 # PogoPlug IP
fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'

# start output netconsole (require http://packages.ubuntu.com/quantal/amd64/netcat-openbsd/download)

xterm -title "netconsole output" -e nc -l -u -p 6666 &

# start input netconsole

xterm -title "netconsole input" -e nc -u 192.168.2.1 6666 &

Install more programs see:
http://www.panticz.de/Pogoplug-Debian-extra-programs

# todo

diff /etc/fstab.old /etc/fstab
tmpfs /tmp tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults,size=512M 0 0

Links
http://projects.doozan.com/debian/
http://forum.doozan.com/read.php?4,8277 - Rescue System V3.0
http://forum.doozan.com/read.php?3,14,14 - Use netconsole to troubleshoot uBoot without a serial cable
http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html
http://forum.doozan.com/read.php?2,6300 - How To: Create an 802.11n AP (Access Point) w/ Debian on a Dockstar/Pogoplug/kirkwood device

Arch Linux

# AIF Configuration File

https://wiki.archlinux.org/index.php/AIF_Configuration_File

# PXE

https://releng.archlinux.org/pxeboot/#undi_pxeimage
http://releng.archlinux.org/pxeboot/boot/cfg/release64.inc.cfg

lyc - Linux Yamaha receiver control (over serial / RS232 interface)

Yamaha RX-V3800 and some older models like DSP-AX1 are great AV-Receiver, but unfortunately they have no control / web interface to manage it from outside. With a USB-Serial adapter connected to the reciver RS-232 interface, a computer or router and lyc you can control the reciver. In addition, a web interface can be created with wlyc to provide a web access to all network devices like PC, smartphone or tablet.

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

Download binary
http://dl.panticz.de/lyc/i386/lyc - i386 compiled
http://dl.panticz.de/lyc/ar9132/lyc - Atheros AR9132 (TP-LINK TL-WR1043ND / TL-WDR4300 router)

HowTo compile and run
1. download lyc.c and Makefile
2. compile with: make
3. set up USB Serial adapter http://www.panticz.de/USB-Serial-adapter
4. run command:

./lyc input dvd
./lyc volume up

Run on OpenWrt router
1. download sources
2. comile with
make mips
4. copy lyc to OpenWRT router:

scp lyc root@OPENWRT_IP:/root/lyc

5. login to root@YOUR_OPENWRT_IP
6. download wlyc (OpenWrt wget can not access https, use http redirection)

wget -q http://dl.panticz.de/wlyc/wlyc -O /www/cgi-bin/wlyc
chmod 755 /www/cgi-bin/wlyc

7. Open im broser:
http://OPENWRT_IP/cgi-bin/wlyc
Example: http://ROUTER_IP/cgi-bin/wlyc?p1=input&p2=dvd

cros-compile script for OpenWRT
http://dl.panticz.de/lyc/compile_openwrt_ar9132.sh

http://raw.githubusercontent.com/panticz/lyc/master/lyc.c - lyc source code
<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/lyc.c";

echo "<div><pre>";
</pre></div>

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);

echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

https://raw.githubusercontent.com/panticz/lyc/master/rxvx700.h - Yamaha RS232 codes
<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/rxvx700.h";

echo "<div><pre>";
</pre></div>

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);

echo htmlspecialchars(curl_exec($c));

curl_close($c);

Ubuntu: temperature monitoring with TEMPer USB sensor / thermometer

lsusb
Bus 005 Device 012: ID 0c45:7401 Microdia

download already compiled version

sudo wget -q http://dl.panticz.de/pcsensor/pcsensor -O /usr/local/bin/pcsensor
sudo chmod a+x /usr/local/bin/pcsensor
sudo watch /usr/local/bin/pcsensor

compile self

# install libs
sudo apt-get install -y libusb-dev libusb-1.0-0 make #libhid-dev
# get source

#wget http://www.isp-sl.com/pcsensor-0.0.1.tgz -O /tmp/pcsensor-0.0.1.tgz
#tar xzf /tmp/pcsensor-0.0.1.tgz -C /tmp
#cd /tmp/pcsensor-0.0.1

mkdir /tmp/pcsensor
wget -q "http://raw.githubusercontent.com/padelt/pcsensor-temper/master/src/pcsensor.c" -O /tmp/pcsensor/pcsensor.c
wget -q "http://raw.githubusercontent.com/padelt/pcsensor-temper/master/src/Makefile" -O /tmp/pcsensor/Makefile
# compile (optional)

cd /tmp/pcsensor/
make

# install
sudo cp ./pcsensor /usr/local/bin/
sudo cp 99-tempsensor.rules /etc/udev/rules.d
# insert

(re)insert TEMPer device

get teperature
pcsensor

create cron script

echo '*/5 * * * * root /usr/local/bin/pcsensor -c >> /var/log/pcsensor.log' | sudo tee /etc/cron.d/pcsensor

#sudo /etc/init.d/cron restart

compile for OpenWrt

export STAGING_DIR=~/develop/OpenWRT/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin
wget -q http://raw.githubusercontent.com/padelt/pcsensor-temper/master/src/pcsensor.c

~/develop/OpenWRT/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc pcsensor.c -o pcsensor

Errror:
pcsensor.c:33:17: fatal error: usb.h: No such file or directory
compilation terminated.

# ?

DEPENDS:=+libusb

Linux Kernel benchmark results

Results extract
8x
real 0m22.993s
user 0m20.720s
sys 0m9.100s

2600
real 0m11.023s
user 0m10.773s
sys 0m1.548s

Quad-Core AMD Opteron(tm) Processor 2347 HE (4x)
real 0m31.517s
user 0m29.330s
sys 0m5.500s

Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz (12x)
real 0m11.230s
user 0m11.185s
sys 0m0.584s

2400 (amd64)
real 0m36.775s
user 0m29.718s
sys 0m3.376s

2400 (dom0)
real 0m39.682s
user 0m32.146s
sys 0m6.668s

2400 (domU)
real 0m39.397s
user 0m32.314s
sys 0m6.708s

2400 amd64 1core
real 15m40.146s
user 14m41.987s
sys 1m34.486s

2400 dom0 1 core
real 17m36.938s
user 15m8.849s
sys 3m16.648s

2400 amd64 2 core
real 8m9.580s
user 14m47.403s
sys 1m39.838s

2400 dom0 2 core
real 9m17.205s
user 15m19.617s
sys 3m25.037s

Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (Dual socket 2x 12)
real 0m14.903s
user 0m14.877s
sys 0m0.932s

Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (extract)
real 0m10.711s
user 0m10.661s
sys 0m0.592s

Intel(R) Xeon(R) CPU E31275 @ 3.40GHz
real 0m10.531s
user 0m10.513s
sys 0m0.716s

Compile single core
8x
real 10m10.814s
user 8m30.330s
sys 1m3.050s

AMD Athlon(tm) X2 Dual Core Processor BE-2400 (2 core)
real 15m1.344s
user 13m23.778s
sys 1m25.857s

2600
real 6m49.296s
user 6m24.936s
sys 0m37.874s

Quad-Core AMD Opteron(tm) Processor 2347 HE (4x)
real 17m42.093s
user 15m15.260s
sys 1m43.370s

Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz (12x)
real 7m8.080s
user 6m1.343s
sys 0m43.571s

Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz (1x)
real 7m10.401s
user 6m3.999s
sys 0m47.039s

Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (1x)
real 9m9.715s
user 7m43.290s
sys 0m39.340s

Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (Dual socket 2x 12)
single
real 9m5.139s
user 7m50.973s
sys 0m53.519s

Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (single core)
real 6m45.798s
user 5m55.910s
sys 0m33.274s

Intel(R) Xeon(R) CPU E31275 @ 3.40GHz
real 6m31.963s
user 5m38.065s
sys 0m34.722s

Compile multicore
amd8x (8)
real 2m9.966s
user 13m56.180s
sys 1m14.190s

AMD Athlon(tm) X2 Dual Core Processor BE-2400 (2 core)
real 7m46.407s
user 13m20.810s
sys 1m25.769s

2600 (8)
real 1m32.145s
user 10m46.932s
sys 0m46.923s

Quad-Core AMD Opteron(tm) Processor 2347 HE (4x)
real 3m58.058s
user 13m2.270s
sys 1m10.470s

Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz (12x)
real 1m3.192s
user 10m16.151s
sys 0m43.691s

Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz (32x)
real 0m29.367s
user 10m38.836s
sys 0m51.827s

Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (24x)
real 0m49.441s
user 14m2.550s
sys 1m3.300s

Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (24x, dual socket 2x 12)
real 0m45.677s
user 13m38.707s
sys 1m5.080s

Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (multicore 8x)
real 1m27.512s
user 9m59.665s
sys 0m40.419s

Intel(R) Xeon(R) CPU E31275 @ 3.40GHz (multicore 8x)
real 1m28.220s
user 10m1.358s
sys 0m40.291s

Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (2 core + HT) extract
real 0m15.271s
user 0m15.353s
sys 0m0.948sResults extract
8x
real 0m22.993s
user 0m20.720s
sys 0m9.100s

Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz (2x)
real 0m23.250s
user 0m20.697s
sys 0m2.840s

2600
real 0m11.023s
user 0m10.773s
sys 0m1.548s

Quad-Core AMD Opteron(tm) Processor 2347 HE (4x)
real 0m31.517s
user 0m29.330s
sys 0m5.500s

Auto install Xen Dom0 server with RAID1 and LVM2 under Debian Squezze

# get Debain boot files for PXE

http://www.panticz.de/Debian

# PXE net boot file

http://installit.googlecode.com/hg/preseed/debian-preseed.seed

# 1th stage

http://www.panticz.de/pxe/preseed/xen.seed

# 2th stage

http://www.panticz.de/pxe/preseed/rc.local

# 3th stage

http://www.panticz.de/pxe/preseed/late_command.txt

# configure locale (broken)

http://installit.googlecode.com/hg/scripts/fix.locale.sh

# install xen

http://code.google.com/p/installit/source/browse/install.xen.sh

Create Boot CD
http://www.panticz.de/Ubuntu_customized_preseed_NetBoot_CD

AX88772A Fast Ethernet USB Adapter

Set fixed ethernet device

cat <> /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ATTR{address}=="00:11:22:33:44:55",KERNEL=="eth*", NAME="eth1"

EOF

Configure IP

cat <> /etc/network/interfaces

auto eth1
iface eth1 inet dhcp
EOF

lsusb
...
Bus 002 Device 003: ID 0b95:772a ASIX Electronics Corp. AX88772A Fast Ethernet
...

lsmod | grep asix
asix 27650 0
usbnet 31879 1 asix

Perfomance

scp root@srv:/media/ubuntu-13.04-desktop-amd64.iso /tmp/

ubuntu-13.04-desktop-amd64.iso 100% 785MB 9.9MB/s 01:19

Pagination

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