- Used Control-Alt-F1 to get an alternate terminal and log in.
- sudo apt-get install --reinstall ubuntu-desktop
- sudo reboot
Update: Well, this didn't work. Next time I booted, I had the same problem...
My ongoing experiences with Ubuntu, and later Mythbuntu, as a media center with MythTV. I'm also using the system for a virtual machine server, a mediawiki server and a general all around home infrastructure base.
sudo apt-get update && sudo apt-get upgrade sudo apt-get install --reinstall gdm xorg
sudo apt-get update sudo apt-get remove nvidia-* sudo apt-get install linux-headers-'uname -r' sudo apt-get install nvidia-current sudo nvidia-xconfig sudo apt-get update echo options nouveau modeset=0 | sudo tee --append /etc/modprobe.d/nouveau-kms.conf echo RUN+="/sbin/modprobe nvidia" | sudo tee --append /etc/udev/rules.d/90-modprobe.rules sudo update-initramfs -u sudo reboot
# lsmod | grep usb usbhid 36882 0 hid 67742 1 usbhid
# modprobe usb_storage WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release. # lsmod | grep usb usb_storage 40172 1 usbhid 36882 0 hid 67742 1 usbhid
# grep vbox /etc/group
vboxusers:x:128:
# usermod -G vboxusers -a vonIn order to get this group change to take effect in my login session, I had to logout and back in again.# vi /etc/fstab
# tail -2 /etc/fstab
#/dev/bus/usb /proc/bus/usb usbfs auto 0 0
none /proc/bus/usb usbfs devgid=128,devmod=644 0 0I had to unmount the old /proc/bus/usb and then remount it:# umount /proc/bus/usb
# mount -aAt this point I restarted VirtualBox and was able to mount USB devices.% sudo apt-get update
...
Err http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Error reading from server - read (104 Connection reset by peer)
...
Err http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Error reading from server - read (104 Connection reset by peer)
...
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/i18n/Translation-en_US.bz2 Error reading from server - read (104 Connection reset by peer)
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/i18n/Translation-en_US.bz2 Error reading from server - read (104 Connection reset by peer)
E: Some index files failed to download, they have been ignored, or old ones used instead.
GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 248DD1EEBC8EBFE8Answer, kudos to Gentoo Blog:% gpg --keyserver subkeys.pgp.net --recv 248DD1EEBC8EBFE8
gpg: requesting key BC8EBFE8 from hkp server subkeys.pgp.net
gpg: key BC8EBFE8: public key "Launchpad PPA for Network-manager" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
% gpg --export --armor 248DD1EEBC8EBFE8 | sudo apt-key add -
OK
# cp /etc/cron.daily/ddclient /etc/cron.weekly/
# vi /etc/cron.weekly/ddclient
#!/bin/sh
/usr/sbin/ddclient -syslog -force
deb http://download.virtualbox.org/virtualbox/debian jaunty non-free
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
apt-get install virtualbox-3.0
sudo apt-get install python-django
sudo apt-get install libapache2-mod-wsgicd /usr/local
sudo django-admin startproject django_siteimport os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_site.settings'
sys.path.append('/usr/local')
sys.path.append('/usr/local/django_site')
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()sudo mkdir /usr/local/django_db
sudo chown www-date /usr/local/django_dbDATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '/usr/local/django_db/database.db'sudo -u www-data ./manage.py syncdbWSGIScriptAlias /django_site /usr/local/django_site/django.wsgi
Alias /media /var/lib/python-support/python2.6/django/contrib/admin/media
sudo a2ensite django.conf
sudo apache2ctl restart# /usr/bin/vmware-uninstall.plThen I downloaded VMWare 1.0.9 from the VMWare website.
deb http://download.virtualbox.org/virtualbox/debian jaunty non-freewget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
apt-get install virtualbox-2.2
apt-get install bridge-utils
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# Configured per https://help.ubuntu.com/community/VirtualBox/Networking
# Address of br0 should be the same as eth0
auto br0
iface br0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports eth0 vbox0 vbox1
/etc/init.d/networking restart
# ifconfig br0
br0 Link encap:Ethernet HWaddr 00:18:8b:76:32:11
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::218:8bff:fe76:3211/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:87 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6130 (6.1 KB) TX bytes:11447 (11.4 KB)vi /etc/vbox/interfacesvbox root br0/etc/init.d/vboxdrv restartVBoxManage -q createvm -name Ubuntu-Server -register
VBoxManage -q modifyvm Ubuntu-Server -memory 384MB -acpi on -ostype ubuntu -pae on -nic1 bridged -bridgeadapter1 br0
VBoxManage -q createhd -filename "Ubuntu-Server.dvi" -size 8192 -register
VBoxManage -q modifyvm Ubuntu-Server -hda Ubuntu-Server.dviwget http://osmirrors.cerias.purdue.edu/pub/ubuntu-releases/hardy/ubuntu-8.04.2-server-i386.iso
VBoxManage -q registerimage dvd /path/to/ubuntu-8.04.2-server-i386.iso
VBoxManage -q modifyvm Ubuntu-Server -dvd /path/to/ubuntu-8.04.2-server-i386.isoVBoxManage -q startvm Ubuntu-Server --type vrdp
rdesktop server-name
VBoxManage -q modifyvm Ubuntu-Server -dvd none
subsystem request for sftpSo for some reason my sftp-server subsyst is immediately failing. No idea why. Will update here when I figure it out.
debug1: subsystem: exec() /usr/lib/openssh/sftp-server
debug1: Received SIGCHLD.