January 22, 2012 12:54 PM
Password Keepers
Another password keeper is "KeePassX" at http://www.keepassx.org/ which I’ve used previously but it doesn’t seem so intuitive as Revelation. One thing in its favour though is that it docks into the system tray which Revelation doesn't.
January 21, 2012 9:45 PM
GNOME control center
Using this method I've entered ;- kwikdisc, gdesklets, and gkrellm.
January 16, 2012 6:17 AM
Tweaks.
tar cvzf 20120115.tar.gz 20120115
which is very effective and quite quick too.
to log the output use the following command;-
tar cvzf 20120116.tar.gz 20120116 >> /home/boztu/cron/log.txt 2>&1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
to rename an external usb hard drive from
/media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_ to /media/backup
sudo umount /dev/sdb1
sudo e2label /dev/sdb1 backup
# disable the entry in fstab
sudo emacs /etc/fstab
unplug the drive
plug the drive back in
and lo and behold, its mounted as /media/backup and available for
backups again. with a much simpler, and more memorable name.
January 10, 2012 7:11 PM
Creating space
ls -l /media [#to check that it is root:boztu]This will erase all the August entries, thereby creating more space.
sudo /home/boztu/cron/permissions.sh [#to make it root:boztu if not already so]
cd /media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_
rm -rf ????08??
January 04, 2012 9:32 AM
rync and USB - part 3
USB_DIR="/media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_"As can be seen there is just one script and one target drive, which makes it very simple to maintain, and requires very little maintenance too.
BACKUP_DIR="$USB_DIR/$(/bin/date +%Y%m%d)"
if [ -d $USB_DIR ]; then
[ -d $BACKUP_DIR ] || mkdir $BACKUP_DIR \
>> /home/boztu/cron/backup.txt 2>&1
/usr/bin/rsync -avz \
--exclude-from '/home/boztu/cron/xclude.txt' \
/home/boztu/ $BACKUP_DIR \
>> /home/boztu/cron/backup.txt 2>&1
fi
But it now uses an external 'exclude' script, which contains the following;-
*.mp2But there is a problem with the external usb hard drive in that it reverts its permissions to "root:root" at odd intervals, for some unknown reason. My solution to this is to run this "permissions" script at 2355 every night, just before the backup starts which changes the permissions to "root:boztu".
*.ogg
*.part
*.avi
*.rar
*.mkv
*.mp3
*.mp4
*.wmv
*.nfo
*.deb
chown root:boztu /media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_
chmod 775 /media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_
September 29, 2011 7:57 PM
rsync and USB - part 2.
if [ -d /media/disk/ ]; thenIn the testing that I've done it has the album titles but totally excludes the tracks themselves, which is what I wanted.
/usr/bin/rsync -av --exclude *.mp2 --exclude *.ogg /home/boztu/ /media/disk/`/bin/date +%Y%m%d`/ \ >> /home/boztu/cron/backup.txt
fi
if [ -d /media/usb/ ]; then
/usr/bin/rsync -av --exclude *.mp2 --exclude *.ogg /home/boztu/ /media/usb/`/bin/date +%Y%m%d`/ \ >> /home/boztu/cron/backup.txt
fi
September 27, 2011 2:40 AM
rsync and USB
if [ -d /media/disk/ ]; thenSo I'm now testing it to see if it works as per the script, but the acid test will be when I reboot, we'll see for definite then.
/usr/bin/rsync -av /home/boztu/ /media/disk/`/bin/date +%Y%m%d`/ \ >> /home/boztu/cron/backup.txt
fi
if [ -d /media/usb/ ]; then
/usr/bin/rsync -av /home/boztu/ /media/usb/`/bin/date +%Y%m%d`/ \ >> /home/boztu/cron/backup.txt
fi
September 22, 2011 8:07 AM
pdftotext
And this is a good link for other linux programs that can work on pdf files ... http://en.wikipedia.org/wiki/List_of_PDF_software#Unix_.2F_Linux
September 10, 2011 4:35 PM
gmail and iceweasel
You are using an old version of Firefox that Gmail no longer supports. Some features may not work correctly..... are there any plans for upgrading iceweasel to get round this problem, or should i install a more updated firefox?
Thats what I sent to the #debian chatroom on irc, and I got various replies like "don't worry, just ignore it" and one directing me to http://mozilla.debian.net/.
When I went there it was a page showing how to get backports for debian squeeze [debian 6.0.2] and I ended up installing a beta version of iceweasel, which is working very well.
It wasn't a real showstopper, more of an irritation than anything, but debian had a solution before I had the problem. :)
August 17, 2011 2:30 AM
Elvis is dead!
But when he was conscripted into the army he went and performed his patriotic duty, serving his full time in the army, part of which was spent in Germany. When he left the army he was a sergeant, and he then went back to civvy street and to his music career.
As I said, I for one, will miss him and his songs. Although many of his songs still remain on vinyl and cd's, it wouldnt surprise me to hear that a back catalogue of his recordings have been found. Many people have tried to imitate him, but all fail to one degree or another, he was priceless!
Rest in peace, Elvis Aaron Presley.
August 12, 2011 11:53 PM
GTK-gnash
The answer is to use apt-get to remove 'gnash' which is a GNU Shockwave Flash [swf] player. This also removes 'browser-plugin-gnash'. As I don't like watching flash programs/videos it was an easy decision to get rid of it.
Running 'sudo apt-get autoremove' also removes the following orphan files ;- gnash-common gstreamer0.10-fluendo-mp3 libboost-date-time1.42.0 libboost-thread1.42.0 , but I've yet to see any benefit of removing them, except to get rid of unused files.
August 01, 2011 12:18 AM
Begone kmail date bars!
In kmail go to View -> Message List -> Aggregation and tick Standard mailing list. The result is to get rid of the grey bars completely and finally. Easy when you know how, its only taken me two months to find it out :).
July 31, 2011 2:37 AM
File Indexing.
And here it is - at the menu choose Settings -> system settings -> advanced tab -> desktop search -> disable Nepomuk Semantic. This kills it dead and should last until you either turn it back on again or you reinstall!
July 17, 2011 1:29 AM
Tweaks.
00 3 * * * /home/boztu/cron/cache.shwhich calls the file cache.sh
#!/bin/bash -xwhich copies the debs from /var/cache/apt/archives/ to /media/disk/cache/ and then writes /home/boztu/cron/archives.txt. This runs every night at 0300 and means that if i do have to do a reinstall I dont have to redownload all of them again, just do a local install instead.
#shell script for use with rsync in root crontab
/usr/bin/rsync -av /var/cache/apt/archives/ /media/disk/cache/ >> /home/boztu/cron/archives.txt
When I do a fresh install the first file that i install
afterwards is vnstat which monitors your downloads and tells you in
graphical form how much you've downloaded in the last 24
hours.
Then I install in no particular order ntp, logwatch and many
others.
I tend to use emacs for file editing as I prefer it over vi, but
I find it diffcult to remember the key sequences for various
events. So here is my aide memoire;-
ctrl-x ctrl-s to save
Ctrl-x ctrl-c to exit
Ctrl-x ctrl-w to save as.