Friday, 18 October 2013

Chromium Browser Not Setting As Default

I had a problem with Chromium when it had a fatal error and wouldn't restart. I had to delete the default profile to make it start again.


To do this:
Close Chromium.
Launch the Terminal (Alt + Ctrl + T)
Type the following:    mv ~/.config/chromium/Default ~/.config/chromium/Backup
Launch the Chromium again.  This time is should open without an error.
Once you have verified it works, close Chromium again.
Go back into Terminal and type:  rm -rf ~/.config/chromium/Default
Then type:   cp -R ~/.config/chromium/Backup ~/.config/chromium/Default
Exit Terminal and open Chromium and verify your data has returned (bookmarks, etc.)

Once this was solved everytime I started Chromium it would not set as the default browser. I clicked on Set as Default browser and opened Settings > Settings Manager. I clicked on Preferred Applications and on the Internet tab set default web browser as Chromium.

This still didn't work. But with a little help from the Google search engine I found the following fix in Terminal.

mkdir -p ~/.local/share/applications
touch ~/.local/share/applications/mimeapps.list

Saturday, 5 October 2013

A Better CD Encoder (ABCDE)

This is a command line tool that works from the terminal. Just pop a CD into the drive, open up Terminal and type ABCDE.

ABCDE is available from the AppGrid and Ubuntu Software centres.

The only work here is to copy the /etc/abcde.conf file into your Home directory and save it as:
.abcde.conf

I configured my conf file to rip to 196 kbps  which is the optimum for my hearing:

# -----------------$HOME/.abcde.conf----------------- #
# MP3 format using abcde version 2.5.3
# -------------------------------------------------- #

# Specify the encoder to use for MP3. In this case
# the alternatives are gogo, bladeenc, l3enc, xingmp3enc, mp3enc.
MP3ENCODERSYNTAX=lame 

# Specify the path to the selected encoder.
# For example: /usr/bin/lame
LAME=lame

# Specify your required encoding options here. Multiple options can
# be selected as '--preset extreme --another-option' or constant bit rate '-b 320'
LAMEOPTS="-b 196" 

# Output type for MP3.
OUTPUTTYPE="mp3"

# The cd ripping program to use. There are a few choices here: cdda2wav,
# dagrab, cddafs (Mac OS X only) and flac.
CDROMREADERSYNTAX=cdparanoia            
                                     
# Give the location of the ripping program and pass any extra options:
CDPARANOIA=cdparanoia  
CDPARANOIAOPTS="--never-skip=40"

# Give the location of the CD identification program:       
CDDISCID=cd-discid            
                               
# Give the base location here for the encoded music files.
OUTPUTDIR="$HOME/Music/"               

# The default actions that abcde will take. Removed playlist
ACTIONS=cddb,read,encode,tag,move,clean
              
# Decide here how you want the tracks labelled for a standard 'single-artist',
# multi-track encode and also for a multi-track, 'various-artist' encode:
OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM} - ${TRACKFILE}'
VAOUTPUTFORMAT='Various/${ALBUMFILE}/${TRACKNUM} - ${ARTISTFILE}-${TRACKFILE}'

# Decide here how you want the tracks labelled for a standard 'single-artist',
# single-track encode and also for a single-track 'various-artist' encode.
# (Create a single-track encode with 'abcde -1' from the commandline.)
ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}'
VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'

# Create playlists for single and various-artist encodes. I would suggest
# commenting these out for single-track encoding.
# PLAYLISTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}.m3u'
# VAPLAYLISTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}.m3u'

# Put spaces in the filenames instead of the more correct underscores:
mungefilename ()
{
  echo "$@" | sed s,:,-,g | tr / _ | tr -d \'\"\?\[:cntrl:\]
}

# What extra options?
MAXPROCS=2                              # Run a few encoders simultaneously
PADTRACKS=y                             # Makes tracks 01 02 not 1 2
EXTRAVERBOSE=y                          # Useful for debugging
EJECTCD=y                               # Please eject cd when finished :-)


Wednesday, 4 September 2013

Defragging in Xubuntu

There is an inbuilt defragger in Xububtu called e4defrag.

 To get a count of files that are defragmented at the required location type

sudo e4defrag -c (location)
(location) can be:
a specified hard disk: sudo e4defrag -c /dev/sda1 or sudo e4defrag -c /dev/sda2

the root directory: sudo e4defrag -c /

the home directory: sudo e4defrag -c ~/

The program will supply a score and let you know if the specified location requires de fragmentation.

If it does then use the same command ommiting the switch -c, so to defrag root type:

sudo defrag /
or
sudo e4defrag /dev/sda1
or

sudo e4defrag ~/ 
To read the manual open a Terminal window and type:
man e4defrag

Sunday, 30 June 2013

How to install Format Junkie

Format Junkie is a program that can convert your media files (audio files, videos and pictures) to all the popular formats.

A Graphical User Interface user-friendly application with lots of options, which can convert your media files to all the popular formats! Unity integration has been bear in mind.

Specifically, it has the following features:
a) Audio:
Conversion between the audio formats: mp3, mp2, wav, ogg, wma, flac, m4r, m4a and aac

b) Video:
Conversion between the video formats: avi, ogv, vob, mp4, vob, flv, 3gp, mpg, mkv, wmv

c) Image:
Conversion between the image formats: jpg, png, ico, bmp, svg, tif, pcx, pdf, tga, pnm

d) Iso/Cso
Create an iso with selected files, convert iso to cso and vice versa.

So here's how to do it:
1) Open terminal emulator
2) To add the repository type:

sudo add-apt-repository ppa:format-junkie-team/release

3) Update the repository list type:

sudo apt-get update

4) To install the app under the multimedia menu group type:

sudo apt-get install formatjunkie

Friday, 31 May 2013

How to install .sh files

I was trying to install some flowchart software called yEd . The software was provided in an .sh format.

These are the steps to install .sh software:


1) Download the .sh file e.g. "filename.sh" and save it in on the Desktop

2) Open the Terminal from Menu -> Accessories -> Terminal Emulator

3) Type cd ~/Desktop

4) Type chmod +x filename.sh (makes the file executable).

5) Type sh ./filename.sh to execute the file.

6) Now install software as usual.

Friday, 8 March 2013

Installing Libreoffice 4

Libreoffice 4 has now been released by the Document Foundation, however, hasn't been added to the Ubuntu repositories so this is how to install on Xubuntu 12.04 LTS

1. Delete the current version of LibreOffice from your machine. Open the Terminal Emulator from the Accessories menu and type:

sudo apt-get purge libreoffice*

2. Visit LibreOffice webpage and download the current version for Debian. Pick either the 32 bit or 64 bit depending on your machine.

3. In Thunar file manager enter the Downloads directory and double lick the file in my case LibreOffice_4.0.1_Linux_x86-64_deb.tar.gz

4. Using the Archive Manager extract the files to the downloads directory.

5. In terminal type the location of your extracted files, in my case:

cd Downloads/LibreOffice_4.0.1_Linux_x86-64_deb/DEBS/

6. Now lets install Libreoffice by typing in Terminal:

sudo dpkg -i *.deb

7. Now we need to install the menus


cd desktop-integration

sudo dpkg -i *.deb

8. All you need to do now is delete the extracted directory and the tar.gz file.

Monday, 18 February 2013

Blank Screen Precise Puppy 5.4.3

As a back up to my previous windows machines and my current Xubuntu/Lubuntu machines I like to have an emergency backup USB with an OS on so I can get into any machine should there be issues.

My choice of OS for this task has always been Puppy Linux. Its light and lightening fast. The latest incarnation is Precise Puppy and it has been getting some very good reviews. So I downloaded the ISO and burnt it to CD using xfburn on Xubuntu.

Once I booted up I got the usual text screens and then the screen went blank. I use an Acer 5732Z for my main machine these days and this has always been a problem using Ubuntu derivatives as it uses an Intel graphics chip. In Ubuntu this is usually solved by adding:

"quiet splash nomodeset"

to the grub. However, Puppy is slightly difference. At the boot up screen I has to press F2 and then type the following:

puppy pfix=ram i915.modeset=0

This allowed Puppy to boot into the normal gui. I then installed Puppy onto USB drive in the normal way.

Once its installed in your favourite text editor edit the syslinux.cfg file. Change
pfix=copy 

to

pfix=ram i915.modeset=0

and the OS will boot fine with the GUI everytime on the Acer machine.

Friday, 15 February 2013

Install Adobe Reader

Occasionally when reading PDF's Xubuntu's Document Viewer can't handle some of the more modern PDF's.

Searching the Ubuntu repositries there is no install for Adobe Reader, however, a bit of google searching revealed the answer.

Open Terminal and type the following:

  • sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
  • sudo apt-get update
  • sudo apt-get install acroread

Reader is now installed under the Office Menu

Sunday, 27 January 2013

Pinta - Graphics

Although I have GIMP installed and it is really good for complex work on photographs. If you just want a quick fix or alteration in an image it seems a bit extreme to use the GIMP.

On perusing several Linux blogs I came across a recommendation of Pinta whose tag line is Painting. Simple.


For those familiar with Paint.net in Windows this is a close alternative.