Monday, July 5, 2010

ubuntu - stucked in graphical mode without an editor

well for some reason I thought it was smart to install on a freshly installed ubuntu linux server the gdm package in a VMWare console.

20 Seconds later it turned out that I had

- no terminal application
- could not switch to a virtual terminal, vmware kept ignoring the commands
- had ssh disabled

short I was stuck. Till I remembered to write a simple script to just install xterm and execute it. But wait I need to enter parameters and passwords after the prompt.

Quick forward

#! /bin/bash
echo 'password' | sudo -S apt-get --yes install xterm > log.txt

as script in a simple text file, which was set to be executable gave me all I need to install my xterm and be happy again.

No comments:

Post a Comment