Jump to content

ubuntu in virtualbox.


Recommended Posts

hi

Im currently running linux ubuntu inside oracle virtualbox.

Is there any helpful guides to using this please.

Im completely new to ubuntu and i do like it but im having trouble finding myself way round it sometimes.

Is it true i dont need a anti virus or firewall to use ubuntu?

Its a massive learning curve for me as im used to windows7.

I really like the linux and would like to learn more of its use.

everyone has to start somewhere and i would like to familiarise myself with ubuntu more.

im also under the impression that linux is more secure than windows.is this true?

Many thanks. :wacko:

Link to post
Share on other sites

hi

Im currently running linux ubuntu inside oracle virtualbox.

Is there any helpful guides to using this please.

Im completely new to ubuntu and i do like it but im having trouble finding myself way round it sometimes.

Is it true i dont need a anti virus or firewall to use ubuntu?

Its a massive learning curve for me as im used to windows7.

I really like the linux and would like to learn more of its use.

everyone has to start somewhere and i would like to familiarise myself with ubuntu more.

im also under the impression that linux is more secure than windows.is this true?

Many thanks. :wacko:

Hi,

have you read through the virtualbox documentation I posted for you in your other topic? Have you got the VirtualBox Expansion Pack and Guest Addtions installed?

VirtualBox Extension Pack

VirtualBox comes in many different packages, and installation depends on your host operating system. If you have installed software before, installation should be straightforward: on each host platform, VirtualBox uses the installation method that is most common and easy to use. If you run into trouble or have special requirements, please refer to Chapter 2, Installation details for details about the various installation methods.

Starting with version 4.0, VirtualBox is split into several components.

  1. The base package consists of all open-source components and is licensed under the GNU General Public License V2.
  2. Additional extension packs can be downloaded which extend the functionality of the VirtualBox base package. Currently, Oracle provides the one extension pack, which can be found at http://www.virtualbox.org and provides the following added functionality:

    1. The virtual USB 2.0 (EHCI) device; see the section called “USB settings”.
    2. VirtualBox Remote Desktop Protocol (VRDP) support; see the section called “Remote display (VRDP support)”.
    3. Intel PXE boot ROM with support for the E1000 network card.
    4. Experimental support for PCI passthrough on Linux hosts; see the section called “PCI passthrough”.

      VirtualBox extension packages have a .vbox-extpack file name extension. To install an extension, simply double-click on the package file, and the VirtualBox Manager will guide you through the required steps.
      To view the extension packs that are currently installed, please start the VirtualBox Manager (see the next section). From the "File" menu, please select "Preferences". In the window that shows up, go to the "Extensions" category which shows you the extensions which are currently installed and allows you to remove a package or add a new one.
      Alternatively you can use VBoxManage on the command line: see
the section called “VBoxManage extpack” for details.



Note - You must use the extension pack for the version of VirtualBox that you have installed.
Also only use the extension packs available from the Virtualbox website site. DO NOT install an extension pack from an unknown/unstusted source as these can contain system level software that could be potentially harmful to your (host) system.
VirtualBox Guest Additions
For any serious and interactive use, the VirtualBox Guest Additions will make your life much easier by providing closer integration between host and guest and improving the interactive performance of guest systems.
As mentioned in the section called “Some terminology”, the Guest Additions are designed to be installed inside a virtual machine after the guest operating system has been installed. They consist of device drivers and system applications that optimize the guest operating system for better performance and usability. Please see the section called “Supported guest operating systems” for details on what guest operating systems are fully supported with Guest Additions by VirtualBox.
The VirtualBox Guest Additions for all supported guest operating systems are provided as a single CD-ROM image file which is called VBoxGuestAdditions.iso. This image file is located in the installation directory of VirtualBox. To install the Guest Additions for a particular VM, you mount this ISO file in your VM as a virtual CD-ROM and install from there.
The Guest Additions offer the following features:
  • Mouse pointer integration
    To overcome the limitations for mouse support that were described in the section called “Capturing and releasing keyboard and mouse”, this provides you with seamless mouse support. You will only have one mouse pointer and pressing the Host key is no longer required to "free" the mouse from being captured by the guest OS. To make this work, a special mouse driver is installed in the guest that communicates with the "real" mouse driver on your host and moves the guest mouse pointer accordingly.
  • Shared folders
    These provide an easy way to exchange files between the host and the guest. Much like ordinary Windows network shares, you can tell VirtualBox to treat a certain host directory as a shared folder, and VirtualBox will make it available to the guest operating system as a network share, irrespective of whether guest actually has a network. For details, please refer to the section called “Shared folders”.
  • Better video support
    While the virtual graphics card which VirtualBox emulates for any guest operating system provides all the basic features, the custom video drivers that are installed with the Guest Additions provide you with extra high and non-standard video modes as well as accelerated video performance.
    In addition, with Windows, Linux and Solaris guests, you can resize the virtual machine's window if the Guest Additions are installed. The video resolution in the guest will be automatically adjusted (as if you had manually entered an arbitrary resolution in the guest's display settings). Please see the section called “Resizing the machine's window” also. Finally, if the Guest Additions are installed, 3D graphics and 2D video for guest applications can be accelerated; see the section called “Hardware-accelerated graphics”.
  • Seamless windows
    With this feature, the individual windows that are displayed on the desktop of the virtual machine can be mapped on the host's desktop, as if the underlying application was actually running on the host. See the section called “Seamless windows” for details.
  • Generic host/guest communication channels
    The Guest Additions enable you to control and monitor guest execution in ways other than those mentioned above. The so-called "guest properties" provide a generic string-based mechanism to exchange data bits between a guest and a host, some of which have special meanings for controlling and monitoring the guest; see the section called “Guest properties” for details.Additionally, applications can be started in a guest from the host; see the section called “Guest control”.
  • Time synchronization
    With the Guest Additions installed, VirtualBox can ensure that the guest's system time is better synchronized with that of the host. For various reasons, the time in the guest might run at a slightly different rate than the time on the host. The host could be receiving updates via NTP and its own time might not run linearly. A VM could also be paused, which stops the flow of time in the guest for a shorter or longer period of time. When the wall clock time between the guest and host only differs slightly, the time synchronization service attempts to gradually and smoothly adjust the guest time in small increments to either "catch up" or "lose" time. When the difference is too great (e.g., a VM paused for hours or restored from saved state), the guest time is changed immediately, without a gradual adjustment. The Guest Additions will re-synchronize the time regularly. See the section called “Tuning the Guest Additions time synchronization parameters” for how to configure the parameters of the time synchronization mechanism.
  • Shared clipboard
    With the Guest Additions installed, the clipboard of the guest operating system can optionally be shared with your host operating system; see the section called “General settings”.
  • Automated logons (credentials passing)
    For details, please see the section called “Automated guest logons”.

Each version of VirtualBox, even minor releases, ship with their own version of the Guest Additions. While the interfaces through which the VirtualBox core communicates with the Guest Additions are kept stable so that Guest Additions already installed in a VM should continue to work when VirtualBox is upgraded on the host, for best results, it is recommended to keep the Guest Additions at the same version.

Starting with VirtualBox 3.1, the Windows and Linux Guest Additions therefore check automatically whether they have to be updated. If the host is running a newer VirtualBox version than the Guest Additions, a notification with further instructions is displayed in the guest.

To disable this update check for the Guest Additions of a given virtual machine, set the value of its /VirtualBox/GuestAdd/CheckHostVersion guest property to 0; see the section called “Guest properties” for details.

Guest Additions are available for virtual machines running Windows, Linux, Solaris or OS/2. The following sections describe the specifics of each variant in detail.

Guest Additions for Linux

Like the Windows Guest Additions, the VirtualBox Guest Additions for Linux are a set of device drivers and system applications which may be installed in the guest operating system.

The following Linux distributions are officially supported:

  • Fedora as of Fedora Core 4;
  • Redhat Enterprise Linux as of version 3;
  • SUSE and openSUSE Linux as of version 9;
  • Ubuntu as of version 5.10.

Many other distributions are known to work with the Guest Additions.

The version of the Linux kernel supplied by default in SUSE and openSUSE 10.2, Ubuntu 6.10 (all versions) and Ubuntu 6.06 (server edition) contains a bug which can cause it to crash during startup when it is run in a virtual machine. The Guest Additions work in those distributions.

Note that some Linux distributions already come with all or part of the VirtualBox Guest Additions. You may choose to keep the distribution's version of the Guest Additions but these are often not up to date and limited in functionality, so we recommend replacing them with the Guest Additions that come with VirtualBox. The VirtualBox Linux Guest Additions installer tries to detect existing installation and replace them but depending on how the distribution integrates the Guest Additions, this may require some manual interaction. It is highly recommended to take a snapshot of the virtual machine before replacing pre-installed Guest Additions.

Installing the Linux Guest Additions

The VirtualBox Guest Additions for Linux are provided on the same virtual CD-ROM file as the Guest Additions for Windows described above. They also come with an installation program guiding you through the setup process, although, due to the significant differences between Linux distributions, installation may be slightly more complex.

Installation generally involves the following steps:

  1. Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules. This works similarly as described in the section called “The VirtualBox kernel module”, except that this step must now be performed in your Linux guest instead of on a Linux host system, as described there.
    Again, as with Linux hosts, we recommend using DKMS if it is available for the guest system. If it is not installed, use this command for Ubuntu/Debian systems:
    sudo apt-get install dkms
    or for Fedora systems:
    yum install dkms
    Be sure to install DKMS before installing the Linux Guest Additions. If DKMS is not available or not installed, the guest kernel modules will need to be recreated manually whenever the guest kernel is updated using the command
    /etc/init.d/vboxadd setup
    as root.
  2. Insert the VBoxGuestAdditions.iso CD file into your Linux guest's virtual CD-ROM drive, exactly the same way as described for a Windows guest in the section called “Installation”.
  3. Change to the directory where your CD-ROM drive is mounted and execute as root:
    sh ./VBoxLinuxAdditions.run

For your convenience, we provide the following step-by-step instructions for freshly installed copies of recent versions of the most popular Linux distributions. After these preparational steps, you can execute the VirtualBox Guest Additions installer as described above.

Ubuntu

  1. In order to fully update your guest system, open a terminal and run
    apt-get update
    as root followed by
    apt-get upgrade
  2. Install DKMS using
    apt-get install dkms
  3. Reboot your guest system in order to activate the updates and then proceed as described above.

Graphics and mouse integration

In Linux and Solaris guests, VirtualBox graphics and mouse integration goes through the X Window System. VirtualBox can use the X.Org variant of the system (or XFree86 version 4.3 which is identical to the first X.Org release). During the installation process, the X.Org display server will be set up to use the graphics and mouse drivers which come with the Guest Additions.

After installing the Guest Additions into a fresh installation of a supported Linux distribution or Solaris system (many unsupported systems will work correctly too), the guest's graphics mode will change to fit the size of the VirtualBox window on the host when it is resized. You can also ask the guest system to switch to a particular resolution by sending a "video mode hint" using the VBoxManage tool.

Multiple guest monitors are supported in guests using the X.Org server version 1.3 (which is part of release 7.3 of the X Window System version 11) or a later version. The layout of the guest screens can be adjusted as needed using the tools which come with the guest operating system.

If you want to understand more about the details of how the X.Org drivers are set up (in particular if you wish to use them in a setting which our installer doesn't handle correctly), you should read the section called “Guest graphics and mouse driver setup in depth”.

Updating the Linux Guest Additions

The Guest Additions can simply be updated by going through the installation procedure again with an updated CD-ROM image. This will replace the drivers with updated versions. You should reboot after updating the Guest Additions.

Above information from VirtualBox Documentation

=========

Firewall on Ubuntu

Linux has a firewall built in and generally ready to use "out of the box"

The Linux kernel includes the netfilter subsystem, which is used to manipulate or decide the fate of network traffic headed into or through your computer. All modern Linux firewall solutions use this system for packet filtering. The kernel's packet filtering system would be of little use to users or administrators without a user interface with which to manage it. This is the purpose of iptables. When a packet reaches your computer, it is handed off to the netfilter subsystem for acceptance, manipulation, or rejection based on the rules supplied to it via iptables. Thus, iptables is all you need to manage your firewall (if you're familiar with it). Many front-ends such as UFW(Uncomplicated Firewall) are available to simplify the task, however.

iptables

iptables is the userspace command line program used to configure the Linux 2.4.x and 2.6.x IPv4 packet filtering ruleset. Since Network Address Translation is also configured from the packet filter ruleset, iptables is used for this, too. The iptables package also includes ip6tables. ip6tables is used for configuring the IPv6 packet filter. iptables is the database of firewall rules and is the actual firewall used in Linux systems. The traditional interface for configuring iptables in Linux systems is the command-line interface terminal. The other utilities in this section simplify the manipulation of the iptables database.

UFW

UFW (Uncomplicated Firewall)is a front-end for iptables and is particularly well-suited for host-based firewalls. UFW was developed specifically for Ubuntu (but is available in other distributions), and is also configured from the terminal.

Gufw is a graphical front-end to UFW, and is recommended for beginners.

UFW was introduced in Ubuntu 8.04 LTS (Hardy Heron), and is available by default in all Ubuntu installations after 8.04 LTS.

=========

Anti-Virus On Linux

You'll get differant opinions on this subject depending on who you talk to. In my opinion YES you should definatly install an anti-virus on Linux. Esspecially if your going to be sharing files with Windows and other other OS's

Although Linux is a very secure system, is designed to be resisteant to viruses, they are not immune. Its difficult for viruses and other malware to install/run on Linux, but not entirely impossible. For a Linux binary virus to infect executables, those executables must be writable by the user activating the virus. That is not likely to be the case. Chances are, the programs are owned by root and the user is running from a non-privileged account. To modify system files the user must be running as root.That is why its very important to use extreame caution when your running as root or with root's permissions using sudo (By default, the Root account is locked in Ubuntu).Never run an unknown program, script or command as root/superuser. As long as its not run with root privleges, anything you do open or run from your user account is ussually confined to your /home directory. Your /home directory is usually the only place where normal users are allowed to write files. This can be modified through permissions though, so don't do anything funky to the permissions with chown or chmod you should be alright.

When you install software, use the reposiitories. There's tons of software in there for just about everything. Don't add unknown or untrused sources to your sources list.

Documentation for Ubuntu

Official Ubuntu Documentation

User/Community Documentation

Ubuntu Support Forum

https://help.ubuntu.com/community/Security

https://help.ubuntu.com/community/Firewall

https://help.ubuntu.com/community/Antivirus

https://help.ubuntu.com/community/Linuxvirus

this post on Ubuntu's Forum

http://ubuntuforums.org/showthread.php?t=510812

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
Back to top
×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.