Saturday, 9 March 2013

Backup fstab (Manjaro)


First create the respective folders in /media
#
# /etc/fstab: static file system information
#
#


UUID=547fd19a-66be-46b0-8323-815b7adfeb76 / ext4 defaults 0 1
UUID=8978dd1d-1867-4ced-ad55-87e3e939dc4c swap swap defaults 0 0
UUID=fe17cdfb-7b6e-4cd8-8eb1-016daedae010 /home ext4 defaults 0 1
#added mount points
/dev/sda4 /media/backup ntfs defaults 0 0
/dev/sdb1 /media/audio ntfs defailts 0 0
/dev/sdb2 /media/archives ntfs defaults 0 0
/dev/sdb5 /media/television ntfs defaults 0 0
/dev/sdb6 /media/comics ntfs defaults 0 0
/dev/sdb7 /media/video ntfs defaults 0 0

Wednesday, 23 January 2013

Reinstalling GRUB2 (Manjaro)

Load up a live distro of Manjaro. Determine the partition where Manjaro is installed. (Example /dev/sda2).
blkid
Mount the partition:
mount /dev/sda5 /mnt
Mount the swap:
swapon -a

Sunday, 13 January 2013

Sigil - WYSIWYG Codes

The insert a blank line in SIGIL, rather than using <br> or <p> -- which won't show up in epub on certain devices -- use: <div>&#160;<br />&#160;<br /></div>

Saturday, 3 November 2012

Installing Handbrake (Xubuntu & Ubuntu)

For 32 bit:
wget https://launchpad.net/~stebbins/+archive/handbrake-releases/+files/handbrake-gtk_0.9.8ppa1~precise1_i386.deb
For 64 bit:
wget https://launchpad.net/~stebbins/+archive/handbrake-releases/+files/handbrake-gtk_0.9.8ppa1~precise1_amd64.deb
Then to install:
sudo dpkg -i handbrake*
If that fails, the:
sudo apt-get install -f



Tuesday, 23 October 2012

Installing Sigil (Ubuntu 13.04)


To install Sigil, in a terminal, type...
sudo add-apt-repository ppa:sunab/sigil-git
sudo apt-get update
sudo apt-get install sigil

Monday, 8 October 2012

Change ripping bitrate in K3b

Go to Settings>Configure K3b>Plug-ins>K3b external audio encoder  and edit the configured encoder line by inserting your chosen bitrate before the -h. See example.
lame -r --bitwidth 16 --little-endian -s 44.1 -b 192 -h --tt %t --ta %a --tl %m --ty %y --tc %c - %f

Wednesday, 3 October 2012

Stop Totem Saving Your History

To permanently remove the recent file list from totem, edit /usr/share/totem/totem.ui as root and change the following line: (Change square brackets with angle brackets.)
[separator name="recent-separator"/]
[placeholder name="recent-placeholder"/] 
to:
[!--[separator name="recent-separator"/]
[placeholder name="recent-placeholder"/]--] 
N.B. Remove the part that you added to reactive history.

Wednesday, 19 September 2012

Fixing a Broken Encrypted Swap Partition (Ubuntu and Xubuntu 12.04)

For some reason, with all of the Ubuntu derivatives I end up with a busted SWAP partition. This manifests itself in no defined SWAP at all, and a blacked out SWAP partition when viewed in Gparted. The solution is to redefine the SWAP partition, as follows. (If in doubt where your SWAP partition is, run 'sudo fdisk -l'.)
sudo swapoff -a
sudo cryptsetup remove /dev/mapper/cryptswap1
sudo gedit /etc/crypttab
Remove the SWAP line (e.g. /dev/sda3)
sudo /sbin/mkswap /dev/sda3
sudo swapon /dev/sda3
sudo gedit /etc/fstab 
Replace /dev/mapper/cryptswap1 with /dev/sda3.

If you're feeling brave and fancy trying to re-encrypt it, use...
sudo ecryptfs-setup-swap
If it all goes wrong, just repeat the process above.

N.B. Obviously /dev/sda3 in the above example is just that, an example. Replace it with whatever you find in your 'sudo  fdisk -l' results.

** To test whether swap is enabled use:
free -m

Sunday, 9 September 2012

How to Set Up IMAP on a Nokia N95 Phone

Go to Messaging -> Options -> Settings -> Email -> Mailboxes and add a new mailbox. Follow the Wizard.

Screenshot0004Screenshot0003 
Select IMAP4:

Saturday, 8 September 2012

CPU Sensor (Ubuntu 12.04)

To install a panel CPU applet in Ubuntu 12.04 type:
sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload
... and then run 'System Load Indicator' from the dash.

Tuesday, 19 June 2012

Fixing Blue Tint Video (Linux Mint 13 and Ubuntu 12.04)

Open 'gstreamer-properties' by typing into a terminal...  
$ gstreamer-properties 
 Click on the 'Video' tab. Under 'Default Output' choose the 'Plugin' dropdown and select 'Custom'. Add the following line to the 'Pipeline' box. 
videobalance hue=-1 ! autovideosink
 If that doesn't work, it might be worth turning off  'Xv optimizations'. Under the same tab choose... 
X Window System (No Xv)  
 If this method doesn't work... try the following here.

Sunday, 17 June 2012

Installing nVidia GT640 Graphics Driver (Mint 13 and Ubuntu 12.04)

Add the following lines to your repositories list...

deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu precise main
deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu precise main

By doing...

gksudo gedit /etc/apt/sources.list

And then import the GPG key with...
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x643dc6bd56580ceb1ab4a9f63b22ab97af1cdfa9
Refresh packages list in Synaptic and install.

More here.

Tuesday, 12 June 2012

ntfs-config fstab backup

# /etc/fstab: static file system information.
#
#              

#Entry for /dev/sda5 :
UUID=279fac8b-181e-45c4-8065-b1987f60af18    /    reiserfs    defaults    1    1
#Entry for /dev/sda6 :
UUID=fd1ddbf7-fd4e-45e3-8f49-eecbe79364d1    /home    reiserfs    defaults    1    2
#Entry for /dev/sdb2 :
UUID=7C4E91931FB789D8    /media/Archives    ntfs-3g    defaults,nosuid,nodev,locale=en_GB.UTF-8    0    0
#Entry for /dev/sdb1 :
UUID=1FE78CC5354CF414    /media/Audio    ntfs-3g    defaults,nosuid,nodev,locale=en_GB.UTF-8    0    0
#Entry for /dev/sdb8 :
UUID=74C0A9D0654C02BB    /media/Video    ntfs-3g    defaults,nosuid,nodev,locale=en_GB.UTF-8    0    0
none    /proc    proc    defaults    0    0
#Entry for /dev/sda7 :
UUID=47562d14-80e8-4cb9-9907-2847bfdc4550    swap    swap    defaults    0    0