Archive for the ‘ Linux ’ Category

Install the proprietary Closed source version of Virtualbox on Debian Lenny

I like the closed source version of . I just do. This is how to it quickly and simply:

add this to sources.list

deb http://download.virtualbox.org/virtualbox/  non-free

run this to get the public key and install it:

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -

then just install it

aptitude install virtualbox-2.1

this will automatically create the group “vboxusers” and add the user who installed it to the group. If you need to add others:

sudo adduser `[username]` vboxusers

Install Debian Lenny Nvidia Drivers using binary packages

As usual, the official wiki has a great writeup on getting the Drivers installed. http://wiki.debian.org/NvidiaGraphicsDrivers. Do yourself a favor and read the document. It will give you the full story and not just the regurgitated short version below. I use debian because I like the packaging system. I think it works well. why add the agony of recompiling drivers whenever you update kernels and whatnot. Since X was broken, The key was to switch to a console session BEFORE logging in using GDM. As soon as the login page comes up, press CTRL+ALT+F2. This is what I had to be able to log in and use my X session:

Login as root.

I used the netinst disk and had to add the “non-free” and “contrib” repositories. to do this, edit /etc/apt/sources.list.

nano /etc/apt/sources.list

Find the line line that has something like

deb http://mirror.cc.columbia.edu/pub//debian/debian/  main
deb-src http://mirror.cc.columbia.edu/pub/linux/debian/debian/  main

add “contrib non-free” to the end of both of these lines and then do a “aptitude update”

# apt-get  module-assistant -kernel-common
# m-a auto- nvidia-kernel${VERSION}-source
# apt-get  nvidia-glx${VERSION}

In the device section, add

 "nvidia"

Restart GDM (and subsequently X)

# invoke-rc.d gdm restart

Install The nvidia settings interface thingy if you want. This can also verify if the driver is actually running.

aptitude install nvidia-settings

In debian, the package doesn’t install a shortcut for some reason, so just launch it by typing “nvidia-settings” into the console.

Add a Single User mode entry in Grub bootloader.

All you need to do is add ‘single’ to the end of any entry to make it single user. So what you need to do is edit the /boot//menu.lst, copy one of the entries, and all ‘single’ to the end.

gksudo kate /boot/grub/menu.lst

take the ‘kernel’ line and add ‘single’ to the end. Like this:

kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=3699a36a-dd96-4186-8028-43776214c01e ro quiet splash single

Ubuntu recovery console with no root password

So your Ext3 root partition is corrupted. No matter how you try to log into your system, your system asks you for . But you are a good, obedient user. And you do not have a root password set. You can press , but that just reboots. Are you boned?

No. problem. press ctrl+alt+delete. You will get a messy screen about having trouble launching your X session, but you will get a login towards the bottom of the screen. So just use your normal user login and password. after that, I use
sudo su

Command line scp from linux(+BSD) to windows.

i traveling and wanted to copy over my logs to find out what was happening on my server. didn’t want to a client like filezilla or another GUI. Using the command line utility, you can grab remote files securely over . You can grab the executable from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html (pscp.exe is what you want) then, in the command line on the client machine, type something like this:

pscp -r -P 22 jimmy@johnscomputer.com:/home/jimmy/stuff "c:\documents and settings\jimmy\Desktop"

The “-r” makes it grab the whole folder, and everything under. the “-P” specifies a port (mostly useful if you aren’t using 22. make sure it is capital).