Fluxbox - part 3

Date Series Part 1 of Fluxbox Tags fluxbox / git

In my usermenu in Part 2 you'll see that I have these two lines in the Quit submenu.

      [exec] (Reboot) {gksudo /sbin/reboot}
      [exec] (Shutdown) {gksudo /sbin/shutdown -h now}

which are quite special ones. This requires the following two lines to be put into /etc/sudoers very near the …

more ...

Cairo-dock

Cairo-Dock is a pretty, fast and customizable desktop interface. You can see it as a good alternative/addition to Unity, Gnome-Shell, Xfce-panel, KDE-panel, etc. Its installable from the repos and has its home page at ’GLX-dock’ http://glx-dock.org/ where it has a good set of documentation, a wiki and …

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 go …

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

ctodo

One programme that I use everyday is ctodo which is to be found at https://github.com/Acolarh/ctodo ,and its a simple ncurses-based task list manager.

Figure 1

They say that pictures are worth a thousand words, so here we are, 'ctodo' in all its ncurses-glory! I do hope that you …

more ...

Desktop Environments

I'm afraid that I'm addicted to trying out various programmes and desktops, and one that I've tried before is Razor-qt which I've just revisited and its moved on and is now very workable, and I've moved over to it from LXDE. It is currently showing version 0.4.1-2 in …

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

LibreOffice errors

I recently had two errors crop up on my LibreOffice set-up where I'm running version 4.0.1.2. The first is -

Error loading BASIC of document 
file:///home/boztu/.config/libreoffice/4/user/basic/Standard/script.xlb/:
General Error.
General input/output error.

and this is the second one …

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 them …

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 buffering …
more ...

New Desktop - LXDE

Although I have a very modern and up-to-date computer with 4 gigs of RAM, I do like the desktop environment of LXDE, which has a very light footprint. I have customised it to my needs and preference, with a top panel for everything and cairo-dock in the bottom panel place …

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 in …
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 rate …

more ...

Wheezy and MATE

Yesterday I heard of someone running MATE on Debian wheezy, which is something that I've been wanting to do myself. MATE is a fork of Gnome 3, essentially going back to Gnome 2 but updating it slightly, and today I logged into it. And it works beautifully! I've long had …

more ...

New phone and Evernote

Date Tags evernote

I am now the proud owner of a Sony Xperia Miro, with my service provider being Vodafone. And with it being an android phone there is a plethora of programmes for it, or as they should be known as 'apps'. I didn't like the software keyboard that came with it …

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

Wheezy

I finally took the plunge and upgraded my debian box to testing, also known as 'wheezy' which is the next version of Debian. I changed my /etc/apt/sources.list so that everything that said squeeze was changed to wheezy, and then did a 'sudo aptitude update' and checked that …

more ...


Darkstat.

I installed Darkstat today, a packet sniffer which runs as a background process and displays its output as a web page in your browser. It installed with sudo apt-get install darkstat and gives a warning that it needs to be configured as part of its installation process. This is done …

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

Grep

I've used sudo updatedb and then locate foo to find things on my system, and that worked for some things but not others. I needed something more powerful, enter ........... Grep!

Grep works as

grep pattern file-name1 file-name2

as in

grep 'Bin 01' /home/boztu/Music/*

Which shows all instances of …

more ...


Mind-mapping software

I have been a fan of Tony Buzan's mind-mapping for many years, and have used several programmes for it, primarily kdissert and now freemind.

A mind map is a diagram used to represent words, ideas, tasks, or other items linked to and arranged around a central key word or idea …

more ...

Feeds!!!!

Date Tags feeds

After a gap of very nearly five years, actually 4 years and 11 months, I am at last able to upload xml files so that the RSS feeds are now working again! I'm sorry it took so long, and its a bit of a convoluted way of uploading them, but …

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 mp3, is …

more ...

Some Useful emacs key presses

Date Tags emacs

C here equals the CONTROL key

C-x C-f calls ’find-file’ which means that it finds a file and reads it to the screen

C-x C-v calls ’find-alternate-file’ which means that it reads a different file.

C-x i calls ’insert-file’ which means to insert a file at the cursors position.

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 "irishceltic …

more ...

Upgrading to wheezy?

I also started the groundwork to upgrade to wheezy from squeeze. I knew that I got a distorted screen under wheezy and it turns out to be my graphics card, which is a bit old, being a VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev a1) , as …

more ...

Keyboard Shortcuts

WINDOWS

The following short cuts will focus primarily on open windows.

Alt-tab

This combination cycles through the currently open windows. This is handy when you have a lot of windows open and you constantly are moving from one to another.

Ctrl-alt-d

This combination minimizes all open windows to the far …

more ...

vnstat

Vnstat has long been a favourite of mine, and I've used it for many years, but I've just learnt that when you set it up with vnstat -u -i eth0 run as root, that you must then reboot for it to have any effect and start recording.

more ...

Tasklist colours in KDE

Although I use GNOME there are certain programmes that I use from KDE, like Kontact and konqueror and krusader. I have long had a gripe that I can’t read the tasks in Kontact because the red colouring of them obscures the text. So today I did something about it …

more ...

A new installation

I recently had to do a fresh install of debian 6.0.4 due to trying to upgrade to wheezy [debian 7] and failing when my /usr got down to 7.5mbs and it still wasn't completed. So I reinstalled everything into one giant partition so I'm no longer worried …

more ...

Backing Up DVD's - part 2

To back up my collection of dvd's to my hard drive I use handbrake which creates a m4v file, and then winff to create the .avi file, which is on average about a quarter to a third smaller than the starting file. The quality is quite good working with the …

more ...

Backing up DVD's

I've recently started backing up my commercial DVD's to my hard drive, and I'm tending to use HandBrake for it. So far it produces a nice compact m4v file, but I've yet to see the fruits of my intensive labours with it. And its soooo slow!

VLC can also rip …

more ...

Password Keepers

I've recently discovered "Revelation" http://revelation.olasagasti.info/ which is a password keeper in active development, and its been added to my startup programs. I originally docked it into the system tray with "alltray" but I was unable to use it properly then, so now it just sits in the …

more ...

GNOME control center

Its easy to add programs to start when you start gnome from login, just run ALT+F2 and enter ......... gnome-control-center ...... and then click on 'startup applications' and then 'add'. Enter a short description of the program, and the path to its binary. Then close to bring you back to the …

more ...

Tweaks - 2

To create a new backup file for burning to dvd, use this command line tool -

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 …

more ...

Creating space

Date Tags backup

To create space on my external USB hard drive for new backups, I need to delete all the August entries. This is done as follows -

ls -l /media [#to check that it is root:boztu] sudo /home/boztu/cron/permissions.sh
[#to make it root:boztu if not already so …

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 ] || mkdir $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 hard drive …

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/backup …
more ...

pdftotext

I had a 96 page pdf file to convert to text, and it was named 'UK Households 2005.pdf' but pdftotext couldn't convert it at all. So I cd'd into the directory where the pdf file was located, and renamed the file as 'UKHouseholds2005.pdf', and then ran pdftotext on …

more ...

gmail and iceweasel

On logging into gmail yesterday morning on iceweasel I got the following message - "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 …

more ...

Elvis is dead!

Date Tags Elvis

Elvis Presley, the king of rock and roll, died on August 16th 1977, whilst sitting on the toilet! Regardless of where he was when he died, it was a great shame and pity that he did so. He was arguably the greatest rock and roll singer and performer that genre …

more ...

GTK-gnash

Date Tags tweaks

When running top from the command line, the process GTK-gnash always showed up usually with three instances of it. Killing it didn't seem to make much difference, it just reappeared again, and the killed ones became zombies. So, how to get rid of it?

The answer is to use apt-get …

more ...