Installing an Encrypted Partition with LVM dual boot on Ubuntu 16.04

The Ubuntu 16.04 installer has the option to install full disk encryption using LVM if you are erasing everything on the hard drive. However, if you want to dual boot (use some of the hard drive for Windows, and the rest for Linux) the automated installer won’t allow you to automagically use full disk encryption.

You can still make it work, but have to do a lot of manual work using a terminal from the Live CD environment.  Here is a log of what I had to do to get it working for me.

Continue reading

HOWTO: Full Disk encryption on Ubuntu 10.04

How to set up an entirely encrypted disk using Ubuntu 10.04 (LTS):

    Use the Alternative installer (text based) ISO image so that you have access to the LVM and Encrypted Disk options.
    Assuming you want to keep a windows partition or some other pre-existing partitions intact, you will have to manually partition things instead of using the guided partitioner, so select “manual”.

Continue reading

IBM Think pad X31 Radeon M6 – Suspend Screen Fix

My Thinkpad X31 laptop with a Radeon M6 graphics chip had a problem with ACPI Suspend/Resume. About every five resumes, the graphics card would get messed up, making the screen unusable.
The computer would suspend/resume fine otherwise, but I’d be forced to reboot just to get X working again. (Just shutting down X and re-starting it wasn’t enough.)

The easy solution is to pass a “nomodeset” option to the kernal upon boot, but to do this on different versions of Ubuntu you need to do modify files in different places.

9.04: Edit the /boot/grub/menu.lst file, and look for the defoptions= line. Add nomodeset to the end. Run sudo update-grub afterwards to save your changes.

9.10: Edit the /etc/grub.d/10_linux file to add a line such as:
GRUB_CMDLINE_EXTRA = "$GRUB_CMDLINE_EXTRA nomodeset"
or just add “nomodeset” to the end of a previous GRUB_CMDLINE_EXTRA entry. After this, run sudo update-grub.

10.04: Edit the /etc/defaults/grub file and change GRUB_CMDLINE_LINUX="" to
GRUB_CMDLINE_LINUX="nomodeset"
(You may have to run sudo update-grub again, or it may be taken care of for you)

Commentary: I find it funny that in each of the last three version’s of UBUNTU the name and location of the grub configuration file has changed…

Running Ventrilo under Wine in Ubuntu Linux

Wine will install and run the ventrilo VOIP client very well. To get this working, follow these steps:

apt-get install wine wine-dev msttcorefonts

download ventrilo-3.0.5-Windows-i386.exe

run “wincfg” to prepare things

run “wine ventrilo-3.0.5-Windows-i386.exe”
(go through the install, using all the defaults)

Now, everything works with one quirk.
Push to talk works only when the ventrilo window “has focus”
This is somewhat understandable, but annoying, in that you have
to focus the ventrilo window before you can talk.
The other option is to use voice-detection, but that takes up a bit more cpu-time, and you may accidentally broadcast something you don’t want to.

A program that listens for keypreses and directs them to the ventrilo window fixes this problem:

http://np1.pp.fi/ventriloctrl/
http://np1.pp.fi/ventriloctrl/ventriloctrl-0.3.tar.gz

To compile it, you’ll need xorg headers:
sudo apt-get install xorg-dev

Moving NTFS paritions using Ubuntu (Vista, XP)

This guide gives a good step by step procedure for moving a windows partition from one drive to another:
http://ubuntuforums.org/showthread.php?p=7742172

If you get an “autochk.exe not found” error message just after windows XP boots, it probably means that you have the partition type set incorrectly. Using fdisk under linux just use the “T” option to change the partition type to NTFS (hex 0x07 or number 7 in fdisk).

Ubuntu 8.04 SSH login slow

SSH Login to my Ubuntu 8.04 machine was slow. (It would delay about 5 seconds after I issued the ssh command for the remote machine to request a password.) I believe this is because the remote machine is on my home network, and I have set up it’s hostname using host entries instead of having a true DNS name.
I edited the /etc/init.d/sshd_config file and added the single line:
UseDNS no
which fixed this problem as soon as I restarted the SSH server, with
sudo /etc/init.d/ssh restart

Ubuntu 9.04 (Jaunty Jackalope) Annoyances

I upgraded to Ubuntu 9.04 from 8.10 over the weekend.
The good:
Faster boot up. (worth the upgrade all by itself)
New notification “bubbles” that appear and then disappear again without any fuss.
OpenOffice 3.0 and other software upgrades.

The Bad:
Required tweaks to my pam_mount.conf.xml file to get my encrypted home directory to work. (Not an issue for most users.)

Bluetooth communication ports (serial over bluetooth) started giving errors because standard users no longer had permissions to use them. Adding the following code to an /etc/udev/rules.d/rfcomm.rules file allowed all users in the “dialout” group to access the /dev/rfcommXXX serial over bluetooth ports. (Ubuntu developers know about this problem and it will be fixed eventually.)

KERNEL=="rfcomm*", GROUP="dialout"

Java support for MIDI music failed until I installed timidity again with the following command:
sudo apt-get install timidity pmidi

The Annoying:
The hardware buttons on my thinkpad (brightness, volume, etc) still work, but no longer have an on screen display. I could fix this by installing the tpb (thinkPadButtons) package, but it takes up extra CPU cycles and power. I found that the packagers are actively discussing this issue and have decided to wait until they fix the issue within the default packages.

When running Pidgin (IM client), an “envelope” icon appears inside a “indicator-applet 0.1” to show that it’s running. Of course, Pidgin itself pops up another icon to show that it’s running on my gnome panel at the same time. I’ve thought about removing the indicator-applet from my panel to remove the duplicate items, but worried about what else I may miss if it’s not there to “hold all of the system indicators”. I eventually decided to go into the Pidgin preferences and select “Show System Tray Icon” only “on unread messages” which mostly fixed this annoyance, although now I need two button clicks to bring the IM window to the top instead of just one.

The ATI M6 graphics processor on my IBM X31 laptop was not automatically configured to use hardware acceleration. To use ppracer and other applications that require hardware acelleration to work well (such as the new version of lyx!) I had to edit my xorg.conf file following directions I found here.

Mythtv gotchas when upgrading from Ubuntu 7.04 (Feisty) to 7.10 (Gutsy)

I upgraded my Mythtv server from Feisty to Gutsy for no good reason (other than I like the pain).

Gotchas I ran into when trying to get MythTV working again:

1. The upgrade lost/removed the libqt3-mysql support from my computer. This resulted in the MythTV applications (frontend and backend) giving "unable to connect to database" errors. As the upgrade had also upgraded my MySQL install, I spent a good amount of time checking that the mythtv user still existed and had the proper permissions before I figured out it was a QT database library problem.
  apt-get install libqt3-mt-mysql fixed it.

2. LIRCD stopped receiving commands from my HDHomeRun receiver from SiliconDust. Turns out you have to change the LIRCD_ARGS="-d 5000" line in the /etc/lirc/hardware.conf file to LIRCD_ARGS="-H udp -d 5000".  After this, typing irw showed that LIRCD was now receiving the command codes as it was supposed to.

3. The module name for my D-Link GWL-G122 usb wifi-adaptor have changed, so I had to change entry in the /etc/modprobe.d/blacklist  file to reflect the new name(s) of: rt2x00usb and rt2500usb.

On the fly external monitor support (mirroring / spanning) on Ubuntu 7.10

My IBM X31 laptop has the capability to drive an external VGA monitor in addition to it's built in XGA (1024×768) Laptop Video Display Screen (LVDS). The new xrandr extension allows non-privlidged users to change monitor layouts on-the-fly. And now, thanks to my friend Tracy, I know the "extra magic" to make it all work.

Continue reading