<?xml version="1.0" encoding="iso-8859-1"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<?xml-stylesheet type="text/css" href="http://www.sharons.org.uk/taste//"?>


<title type="html">A taste of Linux.</title>
<subtitle type="html">My thoughts on linux and other random thoughts.</subtitle>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste/"/>
<link rel="self" type="application/atom+xml" href="http://www.sharons.org.uk/taste//atom.xml"/>
<updated>2012-05-19T03:38:04+01:00</updated>
<author>
<name>Sharon</name>
<uri>http://www.sharons.org.uk/taste/</uri>
</author>
<id>http://www.sharons.org.uk/taste//</id>
<generator uri="http://nanoblogger.sourceforge.net" version="3.4.2">
NanoBlogger
</generator>

<entry>
<title type="html">Grep.</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-19T03_24_43.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-19T03_24_43.txt</id>
<published>2012-05-19T03:24:43+01:00</published>
<updated>2012-05-19T03:24:43+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
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!<p>

Grep works as   <blockquote>grep pattern file-name1 file-name2 </blockquote> as in 
<blockquote>grep 'Bin 01' /home/boztu/Music/* </blockquote>
 Which shows all instances of 'Bin 01'. Simple to use, and much more powerful than just plain locate! <p>

More information and further examples can be found at http://bulba.sdsu.edu/grephelp.html <p>
</div>
</content>

</entry>
<entry>
<title type="html">Datapacker.</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-18T03_53_37.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-18T03_53_37.txt</id>
<published>2012-05-18T03:53:37+01:00</published>
<updated>2012-05-18T03:53:37+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
For about a week now I've been struggling with 'datapacker' which is a tool to pack files into the minimum number of bins as you specify to burn as a CD or a DVD, and who's homepage is at https://github.com/jgoerzen/datapacker/wiki . The programs author, John Goerzen, has been very kind and helpful with a guiding hand and advice as I struggled to master the program.<p>

It is a very good program but needs you to be precise in what you're trying to achieve. I wanted to know the minimum number of DVD's that I would need for a certain directory containing mp3s. So I ran it as this command line;- <blockquote>  datapacker -b ~/Music/irish_celtic_music_collection_version_2/%03d -s 4000m -a hardlink ~/Music/irish_celtic_music_collection_version_2/*.mp3 </blockquote> It gave me three bins, so I know that I need three DVD's for them to be burnt to. <p>

Again it will not work if there are spaces in the titles of the album, so you need to replace them with underscores, as detailed elsewhere in this blog. <p>

However, it has shown up one odd thing which I dont know the answer to yet. When I use 'konqueror' as my main file program it does not show the bins named '001', '002', etc that datapacker creates. Using 'krusader' or 'dolphin' does show them! <p>
</div>
</content>

</entry>
<entry>
<title type="html">Mind-mapping software.</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-17T03_08_34.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-17T03_08_34.txt</id>
<published>2012-05-17T03:08:34+01:00</published>
<updated>2012-05-17T03:08:34+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
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. <p>

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. Mind maps are used to generate, visualize, structure, and classify ideas, and as an aid to studying and organizing information, solving problems, making decisions, and writing. Further information about mind-mapping can be found at http://en.wikipedia.org/wiki/Mind_mapping .<p>

Kdissert was developed by Thomas Nagy but is no longer in active development, but is still available in debian squeeze, but not in wheezy. It is very easy to use and quite complex documents can be created with minimal effort. <p>

Semantik followed on from kdissert, and again developed by Thomas Nagy, but seems to have stalled in its development since August 2009. It can be found at http://www.freehackers.org/~tnagy/kdissert.html but is not available for debian squeeze or wheezy due to it requiring qmake and uic3. <p>

Freemind is a java based programme and is available in debian squeeze and wheezy, and is in active development. It can be found at http://freemind.sourceforge.net/wiki/index.php/Main_Page . It is slightly more complex to use than kdissert but gives very elegant mind-maps which seem to be easier to follow. It is available cross-platform and produces consistently good results.<p>

Another clone of freemind is freeplane which is available for squeeze and wheezy. It uses the same commands as does freemind and also saves its mind-maps with the same suffix, so they can be read and used by either programme. It can be found at http://freeplane.sourceforge.net/wiki/index.php/Main_Page .<p>

For myself, I'm having to get used to using freemind/freeplane instead of kdissert, but I think that the results look better and more professional. 
</div>
</content>

</entry>
<entry>
<title type="html">Feeds!!!!</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-09T23_51_53.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-09T23_51_53.txt</id>
<published>2012-05-09T23:51:53+01:00</published>
<updated>2012-05-09T23:51:53+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
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
it works, so who cares ? :)   <p>

Finally, normal service has been resumed! :)
</div>
</content>

</entry>
<entry>
<title type="html">Renaming to mp3</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-08T02_11_12.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-08T02_11_12.txt</id>
<published>2012-05-08T02:11:12+01:00</published>
<updated>2012-05-08T02:11:12+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
As 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.<p>

First, flac to mp3, is done at the command line by cd'ing in to the directory in
the terminal, and then use this command ...
 <blockquote>for file in *.flac; do
flac -cd "$file" | lame -h - "${file%.flac}.mp3"; done </blockquote> 
then sit back and watch the fun. Once its completed you can either listen to the
resulting mp3s or just delete the flac's straight away. <p>

With the wavs to mp3s, you create a 'wav2mp3.sh' program in your cron directory
which contains the following
<blockquote> #!/bin/sh <br>
# name of this script: wav2mp3.sh <br>
# wav to mp3 <p>

for i in *.wav; do <br>
&nbsp;if [ -e "$i" ]; then <br>
&nbsp;&nbsp;   file=`basename "$i" .wav` <br>
&nbsp;&nbsp; lame -h -b 192 "$i" "$file.mp3" <br>
&nbsp; fi <br>
done </blockquote><p>

Once this is saved and made executable by running the command <br>
<blockquote> chmod 777 wav2mp3.sh </blockquote>
Then its copied and pasted to the directory where the wav files are and run as
wav2mp3.sh, where it will continue to convert all the wav files to mp3s. Again
you can listen to them before deletion if you so desire.<p>

One thing you must be careful of though in both cases is that the directories
are correctly named, in other words they dont contain these characters >= &,
space, - . Any spaces should be renamed as underscores, which should make life
simpler for you. 
</div>
</content>

</entry>
<entry>
<title type="html">Some Useful emacs key presses</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-06T04_18_36.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-06T04_18_36.txt</id>
<published>2012-05-06T04:18:36+01:00</published>
<updated>2012-05-06T04:18:36+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
C here equals the CONTROL key<p>

<table>
<tr>
	<td>C-x C-f	</td>
	<td>find-file	</td>
	<td>Find a file and read it to screen</td>
</tr>
<tr>
	<td>C-x C-v	</td>
	<td>find-alternate-file	</td>
	<td> Read a different file.</td>
</tr>
<tr>
	<td>C-x i</td>
	<td> insert-file</td>
	<td> Insert a file at the cursors position.</td>
</tr>
<tr>
	<td>C-x C-s	</td>
	<td>save-buffer</td>
	<td>Save the current buffer.</td>
</tr>
<tr>
	<td>C-x C-w	</td>
	<td> write-file</td>
	<td> Write the contents of the buffer to a file.</td>
</tr>
<tr>
	<td>C-x C-c	</td>
	<td> save-buffers-kill-emacs</td>
	<td>Save all open buffers and get out of emacs.</td>
</tr>
<tr>
	<td>C-z</td>
	<td>suspend-emacs	</td>
	<td>Suspend emacs.</td>
</tr>
<tr>
  <td>C-y </td>
  <td> <br> </td>
  <td>Paste </td>
</tr>
</table>
</div>
</content>

</entry>
<entry>
<title type="html">Backing up my mp3 music collection.</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-01T00_50_12.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/05/index.html#e2012-05-01T00_50_12.txt</id>
<published>2012-05-01T00:50:12+01:00</published>
<updated>2012-05-01T00:50:12+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
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.iso.<p>

But there is a problem, genisoimage truncates the file names at the first space
that it encounters. To get round this I use the following script;-
<blockquote>#!/bin/bash<br>
# From James Morris, Kent Linux Users Group, 2012 <p>

find $1 -type f \(  -name '*.mp3'    \<br>
                -o -name '*.MP3'    \) | <br>
while IFS= read -r NAME; <br>
do <br>
DEST=`echo "$NAME" | tr ' ' '_'` <br>
mv -v "${NAME}" "${DEST}" <br>
done <br>
</blockquote>
This is saved in my cron folder and called 'renamemp3s.sh' and is called from
the command line with the folder you wish to work on after its name. So this
script is run first and then genisoimage is used afterwards. <p>


Then I used split to make it into 4gb files, as .... split -b 4000m
/home/boztu/irishceltic.iso ...... and the resulting files were 3.9gbs. They
were saved as xaa,xab, xac, etc and just had to be renamed xaa.iso, xab.iso,
etc.<p>

Then I used k3b to burn the image onto DVDs very easily, which now means that i
can play them from the DVD drive and can delete the originals leaving me with
more space for more music. <p>

But k3b also creates a problem, in that it truncates the file names to the first
12 characters, and I suspect that there is no way round that, unfortunately. 
</div>
</content>

</entry>
<entry>
<title type="html">Keyboard Shortcuts.</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/04/index.html#e2012-04-19T10_48_38.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/04/index.html#e2012-04-19T10_48_38.txt</id>
<published>2012-04-19T10:48:38+01:00</published>
<updated>2012-04-19T10:48:38+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
WINDOWS.<p>

The following short cuts will focus primarily on open windows.<p>

<i>Alt-tab</i> : 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.<p>

<i>Ctrl-alt-d</i> : This combination minimizes all open windows to the far corners of
the screen. To get them back just hit the combination again.<p>

<i>Alt-F9</i> : Minimizes the focused window.<p>

<i>Ctrl-Alt-s</i> : Shade window. To unshade window hit the same combination.<p>

  DESKTOP.<p>

The following combinations effect the desktop.<p>

<i>Ctrl-Alt-Backspace </i>: This combination will restart X Windows (this logs you out).<p>

<i>Ctrl-Alt-l </i>: This combination will lock the screen. You will need your user
password to unlock the screen.<p>

<i>Alt-F2 </i>: This combination opens the “run” dialog. From here you can enter a
command to run (similar to the “cmd” Windows command).<p>

<i>Alt-F1 </i>: This combination opens the main menu.<p>

<i>Print Screen </i>: This key will take a screenshot of the whole desktop.<p>

<i>Alt-Print Screen </i>: This combination will take a screenshot of a single window.<p>

<i>Ctrl-Alt-left arrow</i>: This combination will move one desktop to the left.<p>

<i>Ctrl-Alt-right arrow </i>: This combination will move one desktop to the right.<p>

<i>Ctrl-Alt-down arrow </i>: Show all desktops on one screen. Because there are more
desktops than will fit across your screen (even in this small size), you use the
left and right arrow keys to move one way or the other.<p>

MENUS.<p>

<i>Alt F1 </i>: This will open up the Applications menu on the GNOME desktop. Once open
you can use your arrow keys on your number pad.<p>

<i>Alt F </i>: This opens up the file menu in your current working window. Once open you
can use your arrow keys on your number pad.<p>

<i>Alt E </i>: This open up the Edit menu in your current working window. Once open you
can use your arrow keys on your number pad.<p>

<i>Alt Space </i>: This brings up the Window Menu (where you can select a window to be
“Always on Top” and more. Once open you can use your arrow keys on your number
pad.<p>

WINDOWS.<p>

These particular shortcuts always pertain to the current working window.<p>

<i>Alt F7 </i>: Initiates window movement. Once you press this combination you can use
your arrow keys to move the window where you want it.<p>

<i>Alt F8 </i>: Resizes a window. Once pressed, use your arrow keys to resize the
window. Hit Enter when finished.<p>

<i>Alt F10 </i>: Maximizes a window.<p>

<i>Alt F5 </i>: Returns a window to previous or normal size.<p>

<i>Alt F4 </i>: Closes the window.<p>

NAUTILUS.<p>

Nautilus is the default GNOME file manager.<p>

<i>Ctrl W </i>: Close the current working Nautilus window.<p>

<i>Ctrl R </i>: Reload the Nautilus window.<p>

<i>Alt Up Arrow </i>: Open parent folder.<p>

<i>Alt Left Arrow </i>: Move back one folder.<p>

<i>Alt Right Arrow </i>: Move forward one folder.<p>

<i>Alt Home </i>: Return to your home directory (~/).<p>

<i>Ctrl L </i>: Show/hide the location bar.<p>

<i>F9 </i>: Show/hide the side pane.<p>

<i>Ctrl H </i>: Show/hide hidden files.<p>

<i>Ctrl + </i>: Zoom in.<p>

<i>Ctrl - </i>: Zoom out.<p>

<i>Ctrl 0 </i>: Normal size.<p>
</div>
</content>

</entry>
<entry>
<title type="html">Upgrading to wheezy?</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/04/index.html#e2012-04-19T02_23_21.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/04/index.html#e2012-04-19T02_23_21.txt</id>
<published>2012-04-19T02:23:21+01:00</published>
<updated>2012-04-19T02:23:21+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
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 i learnt from 'lspci'. and it uses the nouveau driver under squeeze but not
under wheezy. So I would need to;-<p>
<blockquote> disable nouveau in /etc/modprobe.d/blacklist.conf and in
/etc/modules.<br>
Then to load nvidiafb i would need to create a file with this in it;-<br>
Section "Device"<br>
   Identifier "my gpu"<br>
   Driver "fbdev"<br>
EndSection#<br>
then save it as "20-fbdev.conf" in /etc/x11/xorg.conf.d/ and i'll probably have
to mkdir it. </blockquote><p>

It seems such a lot of hoops to jump through to get an unstable system where
things do occasionally get broken, and to use it to replace a stable rock-solid
system where stuff doesn’t get broken unless i break it. So I've decided to
stick with my current setup until wheezy becomes stable. </p>
</div>
</content>

</entry>
<entry>
<title type="html">vnstat</title>
<author>
<name>Sharon</name>
</author>
<link rel="alternate" type="text/html" href="http://www.sharons.org.uk/taste//archives/2012/04/index.html#e2012-04-10T13_33_04.txt"/>

<id>http://www.sharons.org.uk/taste//archives/2012/04/index.html#e2012-04-10T13_33_04.txt</id>
<published>2012-04-10T13:33:04+01:00</published>
<updated>2012-04-10T13:33:04+01:00</updated>

<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">

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. 
</div>
</content>

</entry>

</feed>

