pdfbuild’ - from tex to PDF

This is my ‘pdfbuild’ bash script that converts ‘tex’ files to a PDF. You generate the ‘.tex’ files in any way you want to build them. I =used= to build the latex files by hand, which was very slow and laborious, but gave extremely good results. Currently I’m building ...

more ...


An updated radio feeds script

The BBC are changing their radio feeds, and BBC national radio streams in both WMA and AAC+ have now been retired. This means that they are now all being sent in a mp3 format. As my previous script’s BBC feeds failed to work, this is now the updated working ...

more ...

mpd super-feed!

Following on from yesterday’s post about getting BBC feeds working and playing with mpc, this one is used in mpd itself -

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 ...
more ...

My `gitcron’ script

As I’m now using git for version control of my latex documents that I am writing I have automated the committing to git. This is the script that I’m using, called gitcron -

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16 ...
more ...

beeb’-v4.0

Another release of beeb which takes it to even greater heights! :) And just as an experiment I’m “self-hosting” the ‘tar.gz’ file so that it can be downloaded from here.

Documentation

This is the documentation for beeb [version 4.0] the all-singing, all-dancing, upgrade to get-iplayer!

The BBC has ...

more ...

lrs - logoff/reboot/shutdown?

I’ve been using this script for quite some time and it works very well and is nice and simple to use. But, it didn’t log what I did and when, until now! :)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16 ...
more ...

mengen’ and ‘fluxmenu’

I’ve recently been working on two new fluxbox scripts and both are concerned with menu generation. First up is mengen -

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/bin/bash
#: Title            : mengen
#: Date             : November 2013
#: Author           : Sharon Kimble, James Morris
#: Version ...
more ...


Show - a new command

For a long time I’ve been using an alias to shortcut the usage of apt-get show, but I wasn’t happy with it. So today I’ve written a new script that shows a description of the programme you’re interested in, and then shows whether you’ve already ...

more ...

reinstall-ubuntu

The reinstall script that I use so succesfully has been amended by Markus Kalb, and his version is shown here, and will be in the git repo too’

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22 ...
more ...

Backup v5.6

I’m still using this backup script to back up ~/cron/ as its got my reinstall.sh script in which I need for installing, so it seems sensible to keep access to it.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17 ...
more ...

Amended backup script - now version 5.1!

Having recently had to create a new user for my computer due to several things going wrong, I took the opportunity of putting in several things that I’d been considering for some time, so here it is, finally! As far as I can see, the only times that you ...

more ...

More streaming radio - in Spanish!

I recently came across this script for streaming radio written in Spanish and using Spanish stations, but it looks to be quite easy to adapt it to English stations. If I knew Spanish it would be very good, but its an interesting item showing another way of getting streaming radio ...

more ...

Bash aliases

I’ve recently become a convert to the use of aliases which make life so much simpler and more enjoyable. Its so nice to just enter into a terminal upgrade and it executes the command sudo apt-get upgrade!

It saves time using these short-cuts, but you do have to remember ...

more ...


Amended backup script

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
#    Keith Edwards, GLLUG, December 2011.
#    Additions from moggers87
#shell script for use with ...
more ...

More bash scripting

My backup script has been amended so that if the external USB hard drive ceases to be mounted for any reason then the script will send an email telling me so, and its been commented as well to explain what each section does. It now reads as -

 1
 2
 3 ...
more ...

More bash scripts

One new script and one amended script, first cab off the rank is an amended backup script.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash 
#(c) Keith Edwards, GLLUG, December 2011.
#    Additions from moggers87 ...
more ...

Renaming to mp3

A part of my plan is to backup all my mp3’s to dvd, and then maybe even delete some of them such that I can play them from the dvd I’ve been busy converting from flac to mp3 and wav to mp3.

flac to mp3

First, flac to ...

more ...

Backing up my mp3 music collection

I’ve decided to back up my music collection to DVD, and one folder contained 2976 mp3s, which came to 18.9gbs, much too big for one DVD. so I used genisoimage with the command -

genisoimage -o ~/irishceltic.iso /home/boztu/Music/Irish_Celtic_Music_Collection_Version_2 .

This gave me a single file called ...

more ...

rsync and USB - part 3

I’ve moved over to Gnome from KDE and I now prefer it and find it easy to use. As part of the move over I’ve changed my backup script, which is now -

USB_DIR="/media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_"
 BACKUP_DIR="$USB_DIR/$(/bin/date +%Y%m%d)"
 if [ -d $USB_DIR ]; then
 [ -d $BACKUP_DIR ...
more ...

rsync and USB - part 2

I spent a couple of hours backing up some of my cd’s onto my hard drive where I can easily play them too. I used ‘Sound Juicer’ to do this and it more or less succeeded. But I didn’t want to back them up to my external USB ...

more ...

rsync and USB

Because my external USB drive has differing paths, seemingly arbitrary, when it is plugged in I’ve had to change the commands for my backup.sh. It now says -

if [ -d /media/disk/ ]; then
 /usr/bin/rsync -av /home/boztu/ /media/disk/`/bin/date +%Y%m%d`/ \ >> /home/boztu/cron ...
more ...

Tweaks - 1

A new addition to my root.crontab is -

00 3 * * * /home/boztu/cron/cache.sh

which calls the file ‘cache.sh’.

1
2
3
#!/bin/bash -x
 #shell script for use with rsync in root crontab
 /usr/bin/rsync -av /var/cache/apt/archives/ /media/disk/cache/ >> /home/boztu/cron ...
more ...

Bash prompt

Date Tags bash

If you add this line to the end of your .bashrc file, you will get the date and the time showing in your prompt -

PS1="[\u:\d \t @\w]$>; "

And if you add this … [\!] …onto the end of that line like this;-

PS1="[\u:\d \t @\w]$ [\!]>; "

you get a ...

more ...

Backups and rsync

I’ve now automated my backups with the following line in my users crontab - 00 */3 * * * /home/boztu/cron/backup.sh - which is calling the file backup.sh which consists of -

1
2
3
#!/bin/bash -x
 #shell script for use with rsync in user crontab
 /usr/bin/rsync -av ...
more ...