Author Topic: [Solved] How can I reinstall from command prompt vboxvideo and vboxmouse?  (Read 1565 times)

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello,
Sorry but I made a big mistake, I was desperate working with my LXDE VM without been able to switch to seamless mode, and following some forum topics I uninstalled from Synaptic the Guest Additions, but I also uninstalled these other 2 files:
     X11-driver-input-vboxmouse
     X11-driver-video-vboxvideo

I upgraded VirtualBox in the Host and when restarting the LXDE Guest I got:

"Failed to start de X server (your graphical interface) It is likely that it is not set up correctly. Would you like to view the X server output to diagnose the problem?
    Log file /var/log/Xorg.0.log  
    config file /etc/X11/xorg.conf
    confir directory: /etc/X11/xorg.conf.d
    Failed to load module vboxvideo
    no devices detected"

And now my LXDE VM goes directly to command prompt, that is terrible for me because I only use Linux via GUI.

So I guess I have to reinstall,
     X11-driver-input-vboxmouse
     X11-driver-video-vboxvideo

But from the command line I do not have Synaptic available and with Google I have not found a way to do it, so

How can I install those files and if I have to do any other maintenance task in order to have my VM back to normal?

My last VM backup is one week old and I have many new files in the VM.

Thanks for your appreciated help.
joejac
« Last Edit: March 30, 2012, 02:54:52 PM by joejac »

Offline pags

  • Hero Member
  • *****
  • Posts: 2519
  • Keep it clean.
Re: How can I reinstall from command prompt vboxvideo and vboxmouse?
« Reply #1 on: March 30, 2012, 01:34:00 PM »
Log in as root.

Make sure you're updated, first
Code: [Select]
apt-get update
apt-get dist-upgrade

Install your missing items
Code: [Select]
apt-get install X11-driver-input-vboxmouse X11-driver-video-vboxvideo

Try loading the GUI
Code: [Select]
/etc/init.d/dm restart

If that doesn't work, re-configure X from the console
Code: [Select]
XFdrake

This is off the top of my head, so if you have any questions, ask away!

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Re: How can I reinstall from command prompt vboxvideo and vboxmouse?
« Reply #2 on: March 30, 2012, 02:54:18 PM »
Great pags, it worked!   :D

In the repos the correct name is x11...., my mistake again.
I found this useful link:
http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html
To find a package: apt-cache search {package-name}

Thanks a lot
Best regards
joejac
« Last Edit: March 30, 2012, 09:40:33 PM by joejac »