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 ...

Life on the bleeding edge 2 – get_iplayer

Features

  • Downloads MP4 streams from BBC iPlayer site with better quality than Flash player streams
  • Downloads Flash AAC/MP3 and WMA streams for radio programmes
  • Allow multiple programmes to be downloaded using a single command
  • Indexing of all available iPlayer programs
  • Caching of Index (default 4h)
  • Regex search on programme ...
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 ...

ebuild- v2’

After having quite a few problems when I did my bi-daily, i.e. every other day, build of emacs, I’ve reworked my script which makes it easier to use.

Source code

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


Life on the bleeding edge 1 - emacs

This is part of a small series of postings about linux software being at the bleeding edge, i.e. the active development versions. And we kick off with emacs which went into development freeze on the 23rd December last year, and this is version 24.4.50.xx. This is ...

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 ...

Wallpaper” - v1

I have about 57 rather nice wallpapers in my ~/wallpapers directory, most of which I hardly ever see, so I’ve written a script that will randomly choose and display one every thirty minutes. For once it isn’t called from a cron job, but from an alias, and quite ...

more ...

radiostreams-v2.0” - A New MPD playlist

If you use this script you will get some amazing radio stations, from ones that just play Elvis Presley, or The Beatles, or solid Goon Shows! I’m currently listening to Elvis, and its stuff that I’ve never heard before, and I thought my Elvis collection was pretty comprehensive ...

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 ...

Fluxwant v3.0

I’ve just updated fluxwant to ask you if you want to quit at any time, so now you can answer ‘yes’ or ‘y’ and it will continue, you can answer ‘no’ or ‘n’ and it can continue without installing something, and ‘quit’ or ‘q’ and you exit cleanly. So ...

more ...


A ‘super’ command - want

For a long time I’ve been using various formats of apt-cache search and stuff, and its such a crushing bore having to type in commands one after another, so I’ve written a script to do it all for me, whilst I’ve been listening to “Dad’s Army ...

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 ...

Obnam unlock and force-lock

This is not a post showing how to unlock an account in obnam, but a down and dirty unlock script that I use for those occasions when I get a locked backup and I cant be bothered to work out the configuration of ‘force-lock’.

 1
 2
 3
 4
 5
 6 ...
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 ...

Obnam scripts

obnam.conf

[config]
repository = /media/boudiccas/backup/obnam-home/
root = /home/boudiccas/
exclude = ~/.thumbnails$, .iso$
exclude-caches = false
keep = 8h,14d,10w,12m
log = /home/boudiccas/cron/obnam/obnamhome.txt
log-level = info
log-keep = 5
log-max = 50 mb
log-mode = 0600

notify-send

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12 ...
more ...

Fluxbox, part 4 - usermenu

I now think that I have the perfect usermenu! Its got absolutely loads of styles, and also backgrounds, and they’re all available from the menu. And here it is -

[begin] (FluxBox)
         [exec] (Claws-Mail)    {claws-mail} 
         [exec] (google-chrome) {google-chrome} 
        [exec] (TEA Text Editor) {tea}
        [exec] (Pogo music ...
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 ...

Backing up with ‘Obnam’

I’ve recently been looking at my backup strategy, as I now believe that its very wasteful of resources to have 14 copies of something as I have at present. That’s 14 copies of an email, document, or anything really. So I’ve been looking about for something

  • that ...
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 ...

Tweaks

My scripts continue to grow and improve, and these are just the most recent additions -

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
export HISTTIMEFORMAT="%a %h %d – %r # "

bind "set completion-ignore-case on"
This is part of my .bashrc, and the export command ...
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 ...


MPD playlist

There are a lot of radio stations on the internet and I have made my list from various sources, starting with those from the programme Radio Tray. I’ve also included those from SomaFM, and the BBC for those in the UK.

Here is my list of sources -

more ...

Amended conky scripts

I have a new computer which means that I’ve had to upgrade my conkyrc and conky setup.

conkyrc

# Based on conky-jc and the default .conkyrc.
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no
# Use double ...
more ...

conky

I have a new computer which means that I’ve had to upgrade my conkyrc and conky setup.

# Based on conky-jc and the default .conkyrc. #

Create own window instead of using desktop (required in nautilus)

# Based on conky-jc and the default .conkyrc.
#

# Create own window instead of using desktop (required ...
more ...

Miscellany

Finding information about your mobile phone

Open the dial pad and type the following -

*# *#4636# *# *

And you’ll see various hidden things about your mobile.

Convert a .mkv file to a .avi

Command line to convert a MKV file to a smaller xVid AVI file, by reducing the video bit ...

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 ...

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 ...