User Tools

Site Tools


Remember you can't log in as admin unless you are using ssl.

This is a sidebar. It will have content eventually.Edit sidebar




synclient TouchpadOff=1

To turn the bloody touchpad off on laptop.

If that doesn't work, here's a script that works on my Dell Inspirion 11 3000 Series running Linux Mint Mate 20.

x=`xinput list | grep Synaptics|awk '{ $1=""; $2=""; $3="";$4="";$6="";$7="";$8=""; print}' | awk -F'=' '{$1="";print}' | xargs`

xinput set-prop ${x} 164 0 # '"Device Enabled"' 

xinput list will give you a list of devices you can control. In my case the Synaptics device is the one I wanted to disable. The command that I originally used was “xinput set-prop 12 “Device Enabled” 0” but I couldn't figure out how to script that so I used the xinput “list-props 12” to discover the equivalent numeric value.


Before using chroot from a live CD to fix a system, use:

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

Subversion (SVN) backup using svnadmin dump

This script is being run once a day to assure I have the most recent dump of the repositories on this system.

# this script looks for svn repos in /home/svnadmin and tests to see if they have been modified 
# since the last dump.  If so it does another svn dump.  This script will be run once a day 
# just before an offsite backup is performed
for dir in /home/svnadmin/*;do
    if [ -f $dir/format ];then
        echo $dir is a repo
        b=${dir##*/} # gets the base name
        i=$(find $dir -newer $REPO/$b.dump |wc -c|cut --delimiter=' ' -f 1)
        echo count is $i
        if [ $i \>  0  ] ;then
            echo dump away
            svnadmin dump $dir >$REPO/$b.dump

A backup script using rdiff-backup is run on another remote system daily.

cat >/tmp/exclude$$ <<EOFa
$APP --exclude-globbing-filelist /tmp/exclude$$  ${IP}::$Directory ${DEST}/
rm /tmp/exclude$$
#echo $APP --exclude-globbing-filelist /tmp/exclude$$  ${IP}::$Directory ${DEST}/
$APP  ${IP}::$Directory ${DEST}/

VirtualBox Resize XP disk

Find your .vdi file. Mine was in a VirtualBox directory. I am running on a Linux Mint distro.

VBoxManage modifyhd /home/jim/VirtualBox\ VMs/WinXP/WinXP.vdi --resize 20480

I added the XP disk to an existing Ubuntu virtual machine I had defined earlier, but using the VirtualBox manager, selecting the Ubuntu virtual machine, Clicked on Settings/Storage and click on Controller:IDE right click and select “Add hard drive”. In the dialog box select “Choose existing …” In the file chooser window that pops up, double click on the WinXP folder. Then choose the WinXp…vdi file.

Once you've selected and added it to your Linux virtual machine list of partitions and clicked all the OKs boot the Linux virtual machine.

Login as usual and from a command line run “gparted” if it's not there install it. On Ubuntu or Debian and derivatives “sudo apt-get install gparted” will work fine.

Now resize the windows partition, save and exit.

Shutdown Linux, boot XP. Checkdisk will probably run. After it boots it'll probably ask you to reboot, go ahead and do so. When you come back up you will have more disk space.


    var now=new Date();
    today=now.toString('MM/dd/yyyy HH:mm:ss');
    <script src="js/date.js"></script>
start.txt · Last modified: 2020/12/16 14:43 by admin