PC Doctor Godalming

Dedicated to Fixing Computers of all Shapes and Sizes
01483 424378
07876 476990

Category: Linux

Linux based Operating Systems

Downgrade Linux Thunderbird

For those who have upgraded to latest Thunderbird to find Calendar add-on is suddenly not compatible. The quick fix is to roll-back to last version as follows:

Display Thunderbird available versions

apt-cache show thunderbird | grep Version

Select last version to rollback to, e.g.

sudo apt-get install thunderbird=1:52.9.1+build3-0ubuntu0.14.04.1

Mount EFI Partition from Linux

This blog (http://www.pjc.me.uk/efi-gpt/) is the only one that gets to anywhere close to answering this question. However you need to substitute “auto” instead of “fat32” in the mount command to get it to work. “xfs” and “fat32” threw out errors – actually the mount command after mounting shows it was “vfat”!

Here’s how I mounted the EFI partition on my external 500GB drive:

sudo parted -l print
Model: ATA ST3500630AS (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name                  Flags
1      1049kB  135MB   134MB                                          bios_grub
2      135MB   345MB   210MB   fat32                                  boot
3      345MB   479MB   134MB   fat32                                  msftres
4      479MB   54.2GB  53.7GB  ntfs                                   msftdata
5      54.2GB  108GB   53.7GB  ntfs                                   msftdata
6      108GB   162GB   53.7GB  ntfs                                   msftdata
7      162GB   172GB   10.7GB  ext4
8      172GB   184GB   11.8GB  ext4
9      184GB   185GB   1074MB  linux-swap(v1)
10      185GB   228GB   42.8GB  hfs+            Apple_HFS_Untitled_2
11      228GB   282GB   53.6GB  hfs+            Apple_HFS_Untitled_3
12      282GB   335GB   53.6GB  hfs+            Apple_HFS_Untitled_4
13      335GB   389GB   53.6GB  hfs+            Apple_HFS_Untitled_5
14      389GB   488GB   99.2GB  hfs+            Apple_HFS_Untitled_6
15      488GB   489GB   650MB   hfs+            Recovery HD
16      489GB   500GB   10.9GB  hfs+            Apple_HFS_Untitled_2

sudo mount -t auto /dev/sdb2 /mnt/test

cd /mnt/test/
ls
boot  EFI

Use kdesudo Dolphin (as Root) to view and edit files on the EFI partition

Note use of Parted (supports GPT drives) to get the partition number

Continue Reading

Increase VirtualBox Hard Disk Size

From the Host Command line use the VboxManage resize option to increase the disk capacity

VBoxManage modifyhd \path-to-vdi-location\Windows\ 10\ Pro.vdi --resize 35840

This example is from a Linux host and increases the total size of the disk to 35GB (35 * 1024MB)

Once this is completed start the image and and use Windows Disk Manager to extend the volume to use the unused partition space.

How to mount NTFS volume

  • ls /media
  • If you don’t see a folder for your Windows partition, you should create one with the following command:

    sudo mkdir /media/windows

  • Next, mount the partition in read-only mode onto this folder with this command:

    mount -t ntfs-3g -o ro /dev/sda3 /media/windows

Remove VirtualBox from Ubuntu

If you need to completely remove VirtualBox, e.g. because a new version install fails preventing future installations then from the Console run commands below:

List VirtualBox installations

sudo dpkg -l | grep virtualbox

Example below

sudo dpkg -l | grep virtualbox
rc virtualbox-4.3 4.3.30-101610~Ubuntu~raring amd64 Oracle VM VirtualBox
iW virtualbox-5.0 5.0.28-111378~Ubuntu~trusty amd64 Oracle VM VirtualBox

Purge these installations in sequence replacing 4.3 and 5.0 with your versions  and answering ‘Y” to questions

sudo  apt-get purge virtualbox-4.3 virtualbox-qt

sudo  apt-get purge virtualbox-5.0 virtualbox-qt

After reboot you should be able to reinstall VirtualBox without errors

Continue Reading

Download project folder from GitHub using subversion

Install Subversion (SVN) as follows:

sudo apt-get install subversion

This command exports the GitHub PROJECT folder and subfolders and to DEST

svn export https://github.com/USER/PROJECT/trunk/PATH DEST

Suffix the PROJECT folder with /trunk and append the folder /PATH you wish to download. If the DEST folder does not exist it is automatically created.

For example the following command copies Tutsplus 30-days-to-jquery/lessons folder to lessons folder on the local drive:

svn export https://github.com/tutsplus/30-days-to-jquery/trunk/lessons lessons

Continue Reading

Firefox about:config Locale Settings

In Firefox URL box enter about:config to view | edit your default locale search and language settings:

  • general.useragent.locale
  • browser.search.countryCode
  • browser.search.region
  • browser.search.isUS

UK values for above  = en.GB, GB, GB, False

Create ISO file from CD/DVD using DD

In Linux/Ubuntu to create an ISO from a CD/DVD is simplicity itself using the DD command

Use lsbk to determine the CD device name

lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   1.8T  0 disk
├─sda1   8:1    0    50G  0 part /
├─sda2   8:2    0    10G  0 part [SWAP]
├─sda3   8:3    0   1.6T  0 part /home
└─sda4   8:4    0    50G  0 part
sdb      8:16   0   1.8T  0 disk
├─sdb1   8:17   0   100G  0 part
├─sdb2   8:18   0    20G  0 part
├─sdb3   8:19   0   250G  0 part
├─sdb4   8:20   0     1K  0 part
├─sdb5   8:21   0    50G  0 part
├─sdb6   8:22   0  1000G  0 part /media/NTFS_DATA
└─sdb7   8:23   0   443G  0 part
sr0     11:0    1  25.6M  0 rom  /media/mike/NEW 
loop1    7:1    0  25.6M  1 loop /media/iso

Create ISO file with DD

dd if=/dev/sr0 of=/home/mike/Downloads/test.iso

Create Mount Point

sudo mkdir /media/iso

Mount ISO file

sudo mount -o loop /home/mike/Downloads/test.iso /media/iso

Unmount ISO File

sudo umount /media/iso

Remove Mount Point

sudo rmdir /media/iso

Continue Reading