Posts Tagged ‘ install

Install Open-VM-tools on Debian 6 squeeze

Installing Open Tools is a nice alternative to managing and installing the package that comes with ’s hypervisor products.  It allows you to use to manage all the dependencies and updates. Module assistant will recompile the kernel modules for you automatically when you update kernels too.

I have verified that this configuration works under ESXi 4.1.0, 260247 and a new . All of the essential functions like being able to see guest OS information on the Vsphere summary page and performing “Shut Down Guest” and “Restart Guest” all work as expected. If your experiences vary, please leave a comment

This should all be performed by the root user (otherwise prepend ‘sudo’ to the commands if you must use sudo).
The first thing you need to do is add the ‘contrib’ archive to your apt sources config:

nano /etc/apt/sources.list

Add the ‘contrib’ to the end of these source lines. I use the .uchicago.edu repository, so mine look like this on a new install:

deb http://debian.uchicago.edu/debian/ squeeze main contrib
deb-src http://debian.uchicago.edu/debian/ squeeze main contrib

After you save changes to the file, simply update your package list and perform the install:

apt-get update
apt-get install open--tools open--source

You might see an error that looks like this:

Loading open-vm-tools modules: vmhgfsFATAL: Module vmhgfs not found.
 vmmemctlFATAL: Module vmmemctl not found.
 vmsyncFATAL: Module vmsync not found.

Don’t worry, this is because we have not installed the kernel modules for some of the more advanced VMware functions like the vmhgfs file system, Memory Balloon (vmmemctl) , and vmsync, which helps freeze the VM while taking snapshots.
To install these kernel modules, we’re going to use module-assistant. It will compile the modules for your kernel:

module-assistant auto-install open-vm -i

The ‘-i’ puts module assistant into non-interactive mode. It wont ask you to confirm any additional package installs necesarry to set up the build environment.
If you’re running a server without a Graphical environment, you’re finished. If you want features such as automatically adjusting the VM’s monitor resolution or allowing your mouse to seamlessly move between your host system and the VM, you need to install one more package:

apt-get install open-vm-toolbox

Now you won’t need to use CTRL+ALT to switch back and forth.

Karmic install cannot login (gdm freezes) Nvidia

On a fresh of , using an 7800 GT. When I went to click on my username to log in, some artifacts would appear on the screen, then the system would freeze. hard. Couldnt even ctrl+alt to another console. Installing the fixed the issue. To fix it:

  1. Do a hard reset on the machine
  2. When you arrive at the screen, DO NOT CLICK ON ANYTHING.
  3. press CTRL + ALT + F5. Your screen will switch over to a text console.
  4. Log in.
  5. Install the Nvidia glx
  6. sudo aptitude install nvidia-glx-new
  7. Reboot the machine.
  8. sudo reboot

Uninstall ALL Versions of WinZip Batch Script

I have been struggling with this for quite a while, and ran into a lot of issues with all of the different versions on our network. There are people with 100 line .vbs to do this, and I think this is much simpler:

@echo off
REM
REM
REM    Detects winzip and silently uninstalls
REM    There is a un-stoppable pop-up window. so this will kill
REM    all instances of  IE after the UN-installation.
REM
REM
REM
 /F /IM wzqkpick.exe
 product where "name like '%%winzip%%'" call Uninstall
REM
REM This section is for WinZip <12
REM
If Exist "%programfiles(x86)%\Winzip\winzip32.exe" GOTO 64
If Exist "%programfiles%\Winzip\winzip32.exe" "%programfiles%\WinZip\Winzip32.exe" /Uninstallx
taskkill /F /IM iexplore.exe
GOTO :END
:64
"%programfiles(x86)%\WinZip\Winzip32.exe" /Uninstallx
taskkill /F /IM iexplore.exe
:END

For getting rid of WinZip 12, the magic happens in the 'wmic' line. It searches all of the installed product's names for "winzip" and will uninstall anything it finds. This only works for products that use MSI's. If you ran this outside of a batch file, you will have to use a single % percentage sign instead of the %% double percentage sign... scripting sucks, and that's just the way it is. Same thing that happens in "FOR" loops.

I never knew anything about the control (wmic) until now, but I will be sure to exploit it's features.

Tethered Blackberry Modem on Ubuntu Karmic

Using your as a 3G (in my case) proved to be Incredibly simple. There are five million different methods to do this and many have you compiling stuff and editing text files. I love those sorts of things, but this is much easier. I Wish that I had tried this sooner.

**Confirmed using Blackberry Tour (9630) on . **

What we will do is use a program called ‘barry’. http://www.netdirect.ca/software/packages/barry All we need to do is some packages from the repository below. These commands are from the terminal, so launch it from “Applications -> Accessories -> Terminal” in the Menu.

Edit /etc//sources.list

sudo nano /etc/apt/sources.list

add these lines:

deb http://ppa.launchpad.net/doctormo/barry-snapshot/  main
deb-src http://ppa.launchpad.net/doctormo/barry-snapshot/ubuntu  main

install the repositories key.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 113659DF

Now update your package list

sudo aptitude update

and install the programs:

sudo aptitude install libbarry0 barry-util barrybackup-gui

Thats it! now to create the connection, the command will vary depending on your provider. The ones they have preconfigured are: ATT Cingular, China Mobile, KPN Nederland, O2 Ireland, Rogers, Sprint, T-Mobile US, Verizon.
the syntax is :
sudo pppd call barry-{provider}

for Verizon:

sudo pppd call barry-verizon

You’ll see a bunch of output, and it’ll tell you that the connection is up. to close it down, press (CTRL+C). Make it pretty by creating an application launcher on your desktop.

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/ 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 -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