Blog

Posted in: Family

Enabling PowerBlock on Batocera 41u: Step-by-Step Guide

The PowerBlock is a popular tool for managing safe power on/off operations for a Raspberry Pi. It adds functionality like a reset button and status signals. In this post, we’ll walk you through the steps to configure and enable PowerBlock on Batocera 41u, one of the most popular platforms for retro gaming. Introduction Integrating PowerBlock […]

Posted in: Linux

Editing Brother scantofile

I’m editing the scantofile for my new Brother DCP Scanner.  Hard Work searching the information. ———-#! /bin/shset +o noclobber##   $1 = scanner device#   $2 = friendly name# #  #       100,200,300,400,600#resolution=200device=$1BASE=$HOME/Documents/BrScanmkdir -p $BASEif [ “`which usleep  2>/dev/null `” != ” ];then    usleep 1000000else    sleep  0.01fioutput_tmp=$BASE/$(date +”%Y-%m-%d_%Hh%M”) echo “scan from $2($device)”scanimage –device-name “$device” –resolution $resolution –batch=”$output_tmp”_%04d.tiff  –format=tiff -x […]

Posted in: Linux

Samba Migration to a New Server

# OLD SERVER mkdir /root/move # Stop samba services service smb stop service nmb stop ckconfig smb off chkconfig nmb off # RHEL/CentOS/Fedora: Default is 500 and upper limit is 65534 (/etc/libuser.conf).# Debian/Ubuntu: Default is 1000 and upper limit is 29999 (/etc/adduser.conf). export UGIDLIMIT=500 awk -v LIMIT=$UGIDLIMIT -F: ‘($3>=LIMIT) && ($3!=65534)’ /etc/passwd > /root/move/passwd.mig awk -v LIMIT=$UGIDLIMIT -F: ‘($3>=LIMIT) && ($3!=65534)’ /etc/group > […]

Posted in: Linux

Updating XAMPP for Linux

cd /opt/lampp /opt/lampp/lampp stop mv /opt/lampp /opt/lampp.old ./xampp-linux-5.5.19-0-installer.run –mode text #latest xampp version /opt/lampp/lampp stop rsync -av /opt/lampp.old/cgi-bin /opt/lampp/ –deletersync -av /opt/lampp.old/htdocs /opt/lampp/ –deletersync -av /opt/lampp.old/var/mysql /opt/lampp/var/ –delete rsync -av /opt/lampp.old/phpmyadmin/config.inc.php /opt/lampp/phpmyadmin/rsync -av /opt/lampp.old/etc/freetds.conf /opt/lampp/etc/freetds.confrsync -av /opt/lampp.old/etc/httpd.conf /opt/lampp/etc/httpd.confrsync -av /opt/lampp.old/etc/php.ini /opt/lampp/etc/php.inirsync -av /opt/lampp.old/etc/extra/httpd-ssl.conf /opt/lampp/etc/extra/httpd-ssl.confrsync -av /opt/lampp.old/etc/extra/httpd-userdir.conf /opt/lampp/etc/extra/httpd-userdir.confrsync -av /opt/lampp.old/etc/extra/httpd-vhosts.conf /opt/lampp/etc/extra/httpd-vhosts.confrsync -av /opt/lampp.old/etc/extra/httpd-xampp.conf /opt/lampp/etc/extra/httpd-xampp.confrsync -av /opt/lampp.old/etc/my.cnf […]

Posted in: Linux

Enable java plugin on Fedora with icedtea

This is one of those “dead easy so why so hard” issues. I use Fedora on my home desktop. Here’s how to enable the java plugin under Fedora using icedtea (openjdk). sudo yum install icedtea-websudo mkdir -p /usr/lib64/firefox/pluginssudo ln -s /usr/lib64/IcedTeaPlugin.so /usr/lib64/firefox/plugins/libjavaplugin.soNow restart and go here to test the java plugin now works. Ref. http://blog.yo61.com/enable-chrome-java-plugin-on-fedora-18-with-icedtea

Posted in: Linux

Booting after updating from RHEL 5.8 to 5.9 on Hyper V guest fails with a kernel panic.

CentOS 5.9 upgrade leaves systems unbootable. Boot with a older kernel i.e. 2.6.18.308 and make a new initrd with the following command: mkinitrd /boot/initrd-2.6.18-348.el5.img 2.6.18-348.el5 –preload hv_storvsc –preload hv_vmbus –preload hv_utils -f Ref. https://www.centos.org/modules/newbb/print.php?form=1&topic_id=41048&forum=37&order=ASC&start=0

Back to Top