Posts Tagged ‘ Debian

Install the proprietary Closed source version of Virtualbox on Debian Lenny

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

add this to sources.list

deb http://download.virtualbox.org/virtualbox/debian lenny 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 Debian 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/linux/debian/debian/ lenny main
deb-src http://mirror.cc.columbia.edu/pub/linux/debian/debian/ lenny main

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

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

In the device section, add

Driver "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.

Debian Samba share. no password. read only

Just install samba server:

apt-get install samba

edit the config:

nano /etc/samba/smb.conf

set security to “share”

security = share

and guest account to nobody

guest account = nobody

then you just need to create your share like this:

[guest share]
comment = a guest share
path = /path/to/files
browseable = yes
read only = yes
guest ok = yes

Zabbix 1.6 Proxy with Debian

I set up a Zabbix Proxy today on a little VM. looks to work nicely. Intructions will be kept up to date on this page.

Uninstall MySQL 5 from Debian

I completely. completely messed up MySQL. Badly. I wiped out the data directory (/var/lib/mysql in Debian) and the went to remove mysql …
apt-get remove --purge mysql-server

That only deleted something like 86K. dissapointing. It looks like “mysql-server” is a shortcut pointing to the latest version of the software. The real software is foundĀ  under the name “mysql-server-50″. So what made it happen was:
apt-get remove --purge mysql-server*

That’ll wipe out whatever mysql install is in place.

 

Switch to our mobile site