User Tools

Site Tools


Sidebar

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

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

start

Touchpad

Use

synclient TouchpadOff=1

To turn the bloody touchpad off on laptop.

Bind

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.

#!/bin/bash
# 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
REPO=/home/svnadmin/repoBackup
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
        fi
 
 
    fi
done

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

#!/bin/bash
MACHINE=fdcga.com
APP=/usr/bin/rdiff-backup
#/usr/bin/rdiff-backup
DEST=/backup2/$MACHINE/ 
Directory=/home/
cat >/tmp/exclude$$ <<EOFa
**tmp
**deb
**rpm
**exe
EOFa
IP=$MACHINE
$APP --exclude-globbing-filelist /tmp/exclude$$  ${IP}::$Directory ${DEST}/
rm /tmp/exclude$$
#echo $APP --exclude-globbing-filelist /tmp/exclude$$  ${IP}::$Directory ${DEST}/
Directory=/etc/
DEST=/backup2/$MACHINE/etc/
$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.

start.txt · Last modified: 2015/12/26 10:16 by admin