Ubuntu guest in VirtualBox - some tips

TE7

New member
Member
Local time
11:41 AM
Messages
35
Location
Myrtle Beach, SC
1. Getting a high or fullscreen resolution for your Ubuntu guest:

If installing the Guest Additions doesn't give you a high enough resolution for a decent sized window, or nor a fullscreen resolution, try the following link:

Ubuntu In VirtualBox – Set A High Screen Resolution - Linux/Unix Tutorials | Dream.In.Code

I found I had to edit my xorg.conf (/etc/X11/xorg.conf) to give me fullscreen resolution. After you make the change, just reboot, and you will have your desired resolution (windowed or fullscreen). If fullscreen, just choose Fullscreen from the virtualbox view menu option.

2. Sharing a Windows folder with Ubuntu:

- In settings for the guest, choose your Windows folder to share.
- In your home folder in Ubuntu you can create a new folder (VBoxShared for example).
- Open the terminal in Ubuntu, and type the following command:

sudo mount -t vboxsf NameofYourWindowsFOlder ~/NameofYourFolderToShareInUbuntu

For example, if in the guest settings your choose a Windows folder called VirtualBoxShared, and created a folder called VBoxShared in Ubuntu in your home folder , you would use the following command:

sudo mount -t vboxsf VirtualBoxShared ~/VBoxShared

Just type in your password when prompted, and hit enter.

To make things quicker,

- You can open gedit, enter your command, and save it to the Desktop.
- Then right click on the saved file, choose Properties, then Permissions,
and check "Allow executing file as program"
- Then just double click, and choose Run In Terminal, and enter your password.

If you want to automatically access your Windows share every time you boot into your Ubuntu guest, you can do the following:

Add yourself (username) to the vboxsf group using the following command:

sudo usermod -a -G vboxsf username

Then logout and log back in, and your Windows shared folder should show up /media in the filesystem with read/write permissions.

Make sure that in the settings in VirtualBox for your Ubuntu guest, you select the Windows shared folder as auto-mount.

3. Create desktop launchers (for those who like desktop icons, in the Gnome Classic desktop, for example):

How To Create Desktop Launchers in Ubuntu 11.10(Oneiric)*|*Ubuntu Geek

To make things quicker, open gedit, paste the command into it, save to desktop, and make executable, as in step 2 above. Most all of your program executables will be in /usr/bin when your browse for your command.

I hope these tips help.

Tom
 
Last edited:

My Computer My Computer

Computer Manufacturer/Model Number
Dell XPS 8300
OS
Microsoft Windows 7 Home Premium 64-bit SP1
CPU
Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz
Motherboard
Dell Inc. 0Y2MRG
Memory
8.00 GB
Graphics Card(s)
AMD RADEON HD 6670
Sound Card
(1) AMD High Definition Audio Device (2) Sound Blaster X-F
Monitor(s) Displays
23" LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) WDC WD10EALX-759BA1 (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device
good info for those that run Ubuntu in virtual box
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Windows 10 64bit
CPU
AMD Phenom II X4 925 (Deneb)(2.8GHz) OC 3.4GHz
Motherboard
M5A78L-MLX Plus
Memory
Corsair Vengeance DDR3 4GBX2 (8192MB)
Graphics Card(s)
XFX HD 6870 1GB (OC)- 940MHz core, mem 1150MHz
Monitor(s) Displays
Vizio 26' 1920x1080 / Acer 1336x768
Screen Resolution
1920x1080 60Hz /1336x768
Hard Drives
Kingston Digital 60GB SSDNow V300/500gb HDD Western Digital 7200rpm (/WD 160GB HDD 7200rpm
PSU
CORSAIR CX600 600w
Case
AZZA Orion 202 EVO
Cooling
cooler master hyper TX3 cpu cooler
Keyboard
Razer DeathStalker
Mouse
Logitech Optical Gaming Mouse G400
Antivirus
Defualt on win 10
Browser
Firefox
Other Info
cpu is overclocked in bios
Thanks.
 

My Computer My Computer

Computer Manufacturer/Model Number
Dell XPS 8300
OS
Microsoft Windows 7 Home Premium 64-bit SP1
CPU
Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz
Motherboard
Dell Inc. 0Y2MRG
Memory
8.00 GB
Graphics Card(s)
AMD RADEON HD 6670
Sound Card
(1) AMD High Definition Audio Device (2) Sound Blaster X-F
Monitor(s) Displays
23" LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) WDC WD10EALX-759BA1 (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device
I added how to auto-mount your Windows shared folder.
 

My Computer My Computer

Computer Manufacturer/Model Number
Dell XPS 8300
OS
Microsoft Windows 7 Home Premium 64-bit SP1
CPU
Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz
Motherboard
Dell Inc. 0Y2MRG
Memory
8.00 GB
Graphics Card(s)
AMD RADEON HD 6670
Sound Card
(1) AMD High Definition Audio Device (2) Sound Blaster X-F
Monitor(s) Displays
23" LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) WDC WD10EALX-759BA1 (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device
Back
Top