yet another blog about computer, technology, programming, and internet

Tuesday, November 24, 2009

Changing Screen Resolution in Ubuntu under VirtualBox

Tuesday, November 24, 2009 Posted by Ismail Habib , , , 35 comments
This problem has caused me a relatively severe headache today. I'm doing a project which require me to use a Linux OS. Since I don't have Linux in my office PC, I decided to install one (Ubuntu 9.10) in a VirtualBox instead of creating a double booting configuration. The installation procedure was easy and painless, but then the problem is coming. The installed Ubuntu does not have any option to increase the screen resolution other than 800x600 and 640x480.

I tried to install the suitable driver with no result except destroying my X Window which forces me to reinstall the Ubuntu again (thank God I use virtual machine...). Then I started looking around for a solution and several forums and websites point me to this:

  • Choose Devices -> Install Guest Additions... on the VirtualBox menu
  • It will mount a CD which will appear on the Desktop
  • Go to your terminal (Applications -> Accessories -> Terminal)
  • Go to the CD directory by typing "cd /media/cdrom0" (without the quotes)
  • Type "sudo sh ./", again, without the quotes. At the first try I couldn't find this file instead just a directory "OS2". If you experience the same thing, this is probably because you set your VirtualBox OS type as "Ubuntu" instead of "Linux 2.6". In this case, shut down your VirtualBox, change the OS type and redo the whole stuffs from the beginning
  • Restart your VirtualBox

Now, this has successfully gave me another resolution, which is 1024x768. Not bad, but I'm rather greedy and I want something more! (Hey, my PC could do better!). Continue with this:
  • Go to the terminal again
  • Edit the xorg.conf by typing "sudo gedit /etc/X11/xorg.conf" (yes, no quotes)
  • If you can find some already existing screen resolution, then you can add more, otherwise you can include something like this:
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        Subsection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1280x1024" "1024×768"

  • Be really careful when you're doing this. It is always nice to make a backup beforehand
  • Restart your VirtualBox and enjoy the new screen resolution



  1. Distributor plat besi hitam
    Distributor plat besi hitam
    undangan pernikahan bentuk tas
    Distributor plat kapal besi baja
    Agen besi beton interworld steel is
    undangan pernikahan modern
    Toko Plat Bordes Kembang
    <a href="

  2. I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post. Keep working, great job!

  3. شركة عزل خزانات بمكة
    ارخص شركة غسيل خزانات بجدة شركة عزل خزانات بجدة
    ارخص شركة غسيل خزانات بالدمام شركة عزل خزانات بالدمام
    ارخص شركة غسيل خزانات بالمدينة المنورة شركة عزل خزانات بالمدينة المنورة
    ارخص شركة تنظيف منازل بالدمام ارخص شركة تنظيف منازل بالدمام

  4. The author of this post is very talented, I greatly admire you, hope you will succeed in the next post. I would love to keep track of your posts, It is really a useful source of information, wish you success.
    cá koi mini, abcya for kids, friv Games for kids 2019, jogos io 2019