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

Compile IPFire (on 32bit system)

sudo apt-get install -y git

#sudo apt-get install -y git-core gcc g++ realpath make patch bzip2 byacc python-urlgrabber bison gawk texinfo

sudo apt-get install -y git-core g++ realpath patch make python-urlgrabber bison gawk texinfo autoconf screen
# byacc
wget http://mirrors.kernel.org/ubuntu/pool/universe/b/byacc/byacc_20130925-1_i386.deb
dpkg -i byacc_20130925-1_i386.deb
git config --global color.ui auto
# check out source
git clone git://git.ipfire.org/ipfire-2.x.git
ln -sf /bin/bash /bin/sh

cd ipfire-2.x/

./make.sh downloadsrc
./make.sh gettoolchain
git remote update
./make.sh build

http://wiki.ipfire.org/de/development/git
http://wiki.ipfire.org/de/development/build

Java: Add autocompletion to a (editable) JComboBox

1. Download this source code and add to your Java project:
http://www.orbital-computer.de/JComboBox/source/AutoCompletion.java

2. Add folowing code to enable autocompletion for your JComboBox:

AutoCompletion.enable(yourComboBox);

For further information about JComboBox and AutoCompletion see:
http://www.orbital-computer.de/JComboBox/
https://today.java.net/pub/a/today/2007/07/19/adding-auto-completion-to-swing-comboboxes.html

How Linux is Built

Magento: featured items

./app/design/frontend/default/default/template/catalog/product/featured.phtml
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/featured.phtml";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Create cms page
Admin > CMS > Pages > Add new page
Page Title: featured
URL Key: featured
Content: {{block type="featured/featured" name="product_featured" as="product_featured" template="catalog/product/featured.phtml"}}

view on other page
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/featured.view.phtml";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Links
http://inchoo.net/ecommerce/magento/featured-products-on-magento-frontpage/

Update Ubuntu PXE files

Update pxe configuration

wget http://installit.googlecode.com/hg/preseed/preseed.squeeze.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.squeeze.amd64.conf
wget http://installit.googlecode.com/hg/preseed/preseed.wheezy.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.wheezy.amd64.conf
wget http://installit.googlecode.com/hg/preseed/preseed.precise.i386.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.i386.conf
wget http://installit.googlecode.com/hg/preseed/preseed.precise.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.amd64.conf
wget http://installit.googlecode.com/hg/preseed/preseed.quantal.i386.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.quantal.i386.conf
wget http://installit.googlecode.com/hg/preseed/preseed.quantal.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.quantal.amd64.conf

vi /var/lib/tftpboot/pxelinux.cfg/default
MENU SEPARATOR
MENU BEGIN
MENU TITLE + Preseed
MENU INCLUDE pxelinux.cfg/preseed.oneiric.i386.conf
MENU INCLUDE pxelinux.cfg/preseed.oneiric.amd64.conf
MENU INCLUDE pxelinux.cfg/preseed.precise.i386.conf
MENU INCLUDE pxelinux.cfg/preseed.precise.amd64.conf
MENU INCLUDE pxelinux.cfg/preseed.quantal.i386.conf
MENU INCLUDE pxelinux.cfg/preseed.quantal.amd64.conf

MENU SEPARATOR
LABEL Back
MENU EXIT
MENU END

Compile FFmpeg

[embed_url: http://dl.panticz.de/scripts/install.ffmpeg.sh]

Install Scribus under Ubuntu

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.scribus.sh";

echo "wget $URL -O - | bash -";
echo "<div><pre>";
</pre></div>

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
$result = curl_exec($ch);
curl_close($ch);
htmlspecialchars($result);

echo "";

?>

Links
http://wiki.scribus.net/canvas/Debian

Install SQuirreL SQL

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.squirrel-sql.sh";

echo "wget $URL -O - | bash -";
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 "";

?>

LTSP Nvidia thin client

# build client (copy of default amd64 image)
# backup amd64-nvidia
tar czf /opt/ltsp/amd64-nvidia.bkp.$(date -I).tar.gz /opt/ltsp/amd64-nvidia
cp /opt/ltsp/images/amd64-nvidia.img /opt/ltsp/images/amd64-nvidia.img.bkp.$(date -I)
# copy amd64 to amd64-nvidia
rm -r /opt/ltsp/amd64-nvidia/
cp -a /opt/ltsp/amd64/ /opt/ltsp/amd64-nvidia
# install nvidia driver
export LTSP_HANDLE_DAEMONS=false

ltsp-chroot -p -a amd64-nvidia

LANG=en_US.UTF-8
# apt-get update -y
# apt-get install -y linux-headers-generic
# apt-get install -y nvidia-173
# apt-get install -y nvidia-304
apt-get install -y nvidia-current-updates

exit

# update image

ltsp-update-image amd64-nvidia

### v2

# ION thin client
export LTSP_HANDLE_DAEMONS=false

chroot /opt/ltsp/i386/

mount -t proc proc /proc
# upgrade system
apt-get update
apt-get dist-upgrade -y
# view avaiable dirver

apt-cache search nvidia

# install nvidia driver
# sudo apt-get install -y nvidia-current-updates
# apt-get install -y nvidia-96  nvidia-96-updates nvidia-173 nvidia-173-updates nvidia-current nvidia-current-updates
# exit chroot
umount /proc

exit

ltsp-update-image --arch=i386

sudo ltsp-update-image -a i386-ion
sudo ltsp-update-kernels

### wget http://www.panticz.de/ion.xorg.conf -O /opt/ltsp/i386/etc/X11/ion.xorg.conf

# edit /var/lib/tftpboot/ltsp/i386/lts.conf

[ion]

XSERVER=nvidia

### X_CONF = /etc/X11/ion.xorg.conf

# nvidia
apt-get install -y nvidia-current
# ati

#apt-get install -y fglrx

#####

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

Pagination

  • First page
  • Previous page
  • …
  • Page 35
  • Page 36
  • Page 37
  • Page 38
  • Page 39
  • Page 40
  • Page 41
  • Page 42
  • Page 43
  • …
  • Next page
  • Last page
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