Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Sunday, February 03, 2013

Issues with VirtualBox on Ubuntu 12.10


Problem:

Are you having issues starting virtual box after installing updates?  Annoying isn't it?  Errors like the following:
Kernel driver not installed (rc=-1908)The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing'/etc/init.d/vboxdrv setup'as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
Maybe you have an issue with the networking card when operating in bridged mode and get an error similar to the following (note might also say HostInterfaceNetworking-wlan0) :
Failed to open/create the internal network 'HostInterfaceNetworking-eth0' (VERR_PERMISSION_DENIED). Failed to attach the network LUN (VERR_PERMISSION_DENIED)

Solution:

VirtualBox recommends you run sudo /etc/init.d/vboxdrv setup but unfortunately this is not available on most Ubuntu installations.  I would recommend running the following:
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get --reinstall install virtualbox virtualbox-dkms 
sudo modprobe vboxdrv
sudo modprobe vboxnetflt
sudo modprobe vboxnetadp

Good luck!

Saturday, January 12, 2013

How to set Full Pixel on a Sony KDL-55EX720

I recently got a Monoprice mini DisplayPort to HMDI w/Audio adapter for my Dell XPS 13 running Ubuntu 12.10 Quantal Quetzal.  I am happy to report that audio over HDMI works just fine out of the box with no software to install as long as the device receiving the signal supports audio over HDMI such as my Sony KDL-55EX720. Unfortunately, the picture was overscanned (cut off on the edges).

In order to fix this, you have to set your Display Area to full pixel.  Unfortunately I could not find out for the life of me how to get to this option on my TV.  Fortunately, I ended up stumbling onto it.

  1. Hit the HOME button on your Sony remote.
  2. Scroll to the input connection that your computer or other overscanned device is on (mine is HDMI 3).
  3. Hit the RIGHT arrow on the circle pad until you get to the options menu (i-Manual, Preferences, Sound, Picture and Display, etc)
  4. Select Picture & Display by hitting the Select button (center of circle pad)
  5. Scroll down to Screen and hit Select
  6. Scroll down to Auto Display Area and hit Select and turn that option Off.
  7. Scroll down to Display Area and set this to Full Pixel
  8. Hit RETURN until you exit the menu.  Your display should now full fill the screen.
If you have issues with getting the picture to show up at all, then open you Display control panel and click Detect Displays.

Thursday, October 20, 2011

Installing Lubuntu 11.10 (Oneiric Ocelot) natively on a CR48

I started this because well, for one, ChromeOS is still not ready for prime time. Tabs would sad tab, machine would run slow, etc. Its not a dinky machine. Its a 1.66Ghz Atom processor with 2GB of RAM. Definitely nothing to scoff at. Ubuntu was a lot more stable however its fairly heavy weight so I got the idea to try something user friendly but lighter. Unfortunately, Lubuntu just came out this month and there are no CR48 specific guides for it. In the past 24hrs, this is what I have figured out.

Process
1.Generate a USB stick using UNetbootin and Lunbuntu and make sure to set at least 128MB free for "Space used to preserve files across reboots" else you will end up in a never ending loop of IO errors. http://unetbootin.sourceforge.net/
2. Install InsydeH20 using these instructions
3. Once loaded enter the BIOS by pressing the F2 key (-->) and then load Optimal Defaults, save, and exit.
4. Insert your USB drive in the CR48 and turn on the CR48. It should boot into Lubuntu. If not, hold down the power button to turn it off and then hit F10 (Vol+) to enter the boot menu.
5. I suggest trying before installing because then you can download updates and third party libraries as part of the install process since you can connect to a wireless network. I will assume you do the same
6. Once you connect to your wireless network, click the Install Lubuntu icon on the desktop. Choose your language, then select the options to download updates and and install third party software. Choose to erase all partitions (sometimes labeled as "Something else" so you can define your own partition layout)
7. Once you have the gparted running, click each partition and delete it. There are a lot of them. Don't stop till the drive is completely empty.
8. Once they are all deleted, click your free space, then click Add. Type: Primary, Size: 200MB, Beginning, Ext2, Mount Point: /Boot
9. Click add again: Accept the defaults except choose / as the mount point.
10. Click Install Now. If you get a warning about swap space, just click Continue. By not creating swap space, we are saving the SSD from excess writes. Follow the rest of the prompts while Lubuntu installs.
11. Once you finish with the prompts, open up the terminal, then run sudo gparted Click the your boot partition, and the click Partition -> Manage Flags. Click Boot. Then close gparted. Wait for the install to finish. [For some reason, the installer doesn't set this flag and grub then fails to install, therefore, you have to do this within the first few minutes after finishing step 11 else the grub portion of the installation will fail] Also, keep the mouse moving. When the screen blanks, the backlight doesn't turn back on. If this happens to you, use a flashlight to see the screen.

Hurray Lubuntu is now installed! Now to customize it for the CR48.

Add Sync option to /boot
Since we used ext2, there is no journaling on this partition so we want to make sure that any writes are flushed to disk before the IO call returns. This will keep things fast and reasonably safe from corruption.
1. Edit /etc/fstab as root in an editor.
2. Change defaults for the /boot partition to rw,suid,dev,exec,auto,nouser,sync without the quotes of course.

Add support for the Brightness and Volume keys
1. Open a root prompt (sudo -s in the terminal)
2. Install xbacklight apt-get install xbacklight)
3. Edit your keyboard short cut file (~/.config/openbox/lubuntu-rc.xml) Search for xbacklight. Notice that the entire section for Multimedia Keys and LCD backlight is commented out. Remove the --> and place it at the end of the <!-- comment line. Remove the first keybind section for C-F7. Change C-F10 to F6. Change C-F11 to F7 and change the -inc 10 in the execute section to -set 100
4. Search for amixer. Change XF86AudioRaiseVolume to F10. Change the XF86AudioLowerVolume to F9. Change the XF86AudioMute to F8.
5. Save and close the file.
6. On the root prompt, type openbox --reconfigure Your brightness and volume keys should work now.

Disable Track Pad while Typing
1. Open /etc/xdg/lxsession/Lubuntu/autostart in your favorite text editor and append the following

@/usr/bin/syndaemon -i1 -d
@/usr/bin/synclient PalmDetect=1
@/usr/bin/synclient PalmMinWidth=5
@/usr/bin/synclient PalmMinZ=200

2. Restart the computer.

This is the basics. Feel free to customize in other ways as well. The boot up time is amazing. About 10 seconds after the POST process. 88MB of RAM used after bootup!

--------------------------------------------------------------------
UPDATE NOV-19-2011
_______________________________________
I found that the syndaemon client would sometimes stop re-enabling the mouse after typing. This is likely a bug in syndaemon but rather than hope for a fix, when your mouse doesn't work, you want nothing more than for it to work again. I decided to write a little script and then bind it to the CTRL+ALT+SHIFT+M keyboard shortcut. Here is how I did this.

1. Make a directory in your home directory named scripts (hint, use lxterminal for the below)

mkdir ~/scripts

2. Create a file named fixmouse.sh

leafpad fixmouse.sh

3. Paste the following in, save it, and then close the text editor


#!/bin/bash
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 8 0
killall syndaemon 2>/dev/null
syndaemon -i1 -d


4. Now edit your keyboard shortcut file (~/.config/openbox/lubuntu-rc.xml) and search for </keyboard> Add the following line right above it but replace <USERNAME> with your actual username.


<keybind key="C-A-S-M"><action name="Execute"><execute>/home/<USERNAME>/scripts/fixmouse.sh</execute></action></keybind>


5. Now reconfigure openbox to pick up your changes

openbox --reconfigure

You should now be able to hit CTRL+ALT+SHIFT+M to restart your mouse!