Make the Most of Firefox

Making the Most of Firefox

Firefox is the best web browser, and it has so many addons, whatever you want, you can always find the right firefox plugins to do it for you.

Firefox shortcut keys

Shortcut Keys

Description

CTRL + L,Alt+D

Address bar focus

Ctrl++

Zoom In

Ctrl+-

Zoom Out

Ctrl+0

Restore text size

Ctrl+[1-8]

Switch to the 1st, 2nd, 3rd, 4th, etc. tab

Alt+←,Backspace

Back

Alt+→

Forward

MiddleClick

Middle-clicking a tab will close it, even if it's not the active tab

F11

Display the current website in full screen mode. Pressing F11 again will exit this mode.

Ctrl+K

Move cursor to the Web Search widget (top right of screen)

Ctrl+T

Open a new tab

Ctrl+N

Open a new window

Ctrl+W

Close the current window/tab

Ctrl+Shift+T

Undo close tab (re-open the last closed tab)

CTRL + J

Downloads

Ctrl+Tab

Switch to the next tab

Ctrl+Shift+Tab

Switch to the previous tab


Firefox addons(this list is being continuously updated):

Enter Selects

Press enter in the AwesomeBar to select the first result (without pressing down)

Hide All Toolbars 1.0

Easily toggle visibility of your menu bar, location bar, bookmark bar, and status bar. That stuff is useful sometimes, and the rest of the time take valuable screen space. Hide them all with one key--F4!

Mozilla Labs - Ubiquity

An extension that allows for the use of dynamic commands in Firefox.

File Title

Use page title as default filename when we save web page.

Nightly Tester Tools

Very useful when you want to install some addons which don't support the latest firefox yet.

Gladder

A proxy tool.

Firebug http://getfirebug.com/

A great tool for web development, and it is going to support firefox 3.

Greasemonkey http://www.greasespot.net/

Customize a webpage as you like.

Selenium IDE

A tool used to auto-login/logout website to earn points.

TryAgain

Good tool for my damned slow network.

All-in-One Sidebar

It lets you quickly switch between sidebar panels, view dialog windows such as downloads, extensions,or view source or websites in the sidebar.

Open IT Online
Allow you to open your documents and images online without the need of any software to be installed.

Theme

Stylish

Customize the look of the application and of websites with Stylish, you can always find styles for any site, to remove ads or anything you want. Make the site totally different.

http://userstyles.org/

Personas for Firefox

Personas are lightweight, easy-to-install and easy-to-change "skins" for your Firefox web browser.

With Personas, you can individualize your browser with hundreds of artist-created designs or create your own design to share with a worldwide audience of millions.


FoxClocks

let you keep an eye on the time around the world, a great tool to cowork with overseas teams.

Read It Later

Allow you to save pages of interest to read later.

Gesture

FireGestures

Use mouse gestures to do many things, very cool.

All-in-One Gestures

This extension allows you to execute common commands using mouse gestures, rocker navigation, scroll wheel navigation and page...

Bookmark Addons

Delicious Bookmarks

Access your bookmarks from any computer at any time

del.icio.us IncSearch

A incremental search UI for http://del.icio.us/, You can find bookmarks very quickly.


PDF Addons

LOOP to PDF for Firefox
Convert and combine files to PDF from a tidy toolbar, without it getting in the way of your Web browsing.
http://apps.drawloop.com/loop/free-pdf-converter

PDF Download
Use PDF Download to do whatever you like with PDF files on the Web


Tab Addons

Tab Kit

Group tabs, Multi-row tabs,Vertical tab tree,Highlight unread tabs, an all-in-one tab addon.

FoxTab

FoxTab brings innovative and attractive 3D tab management to Firefox.

With its 5 fascinating eye candy layouts, FoxTab takes the tabbed-browsing experience to a new level. FoxTab enables grouping, filtering, closing and switching between tabs quickly and easily.

Search Addons

Search Cloudlet for Google, Yahoo and Twitter 0.7.3.73

Search Cloudlet inserts smart tag clouds into Google / Yahoo / Twitter interface to help you search faster. This free productivity-boosting add-on was featured at LifeHacker, PC World, Website Magazine, etc. Install it now to add magic to your search

KwiClick

KwiClick enhances the way you interact with content from your favorite services. KwiClick removes the need to open a new tab to view information from Google, Twitter, Wikipedia, Amazon, YouTube, FriendFeed and much more.

Hack&& Developer Tools

Add N Edit Cookies

Cookie Editor that allows you add and edit "session" and saved...

Tamper Data

Use tamperdata to view and modify HTTP/HTTPS headers and post parameters...

Live HTTP Headers

View HTTP headers of a page

HttpFox 0.8.2

An HTTP analyzer addon for Firefox

Download

Video DownloadHelper

A great tool to download and convert Web videos from hundreds of YouTube-like sites. This works also for audio and picture galleries.

FlashGot

The download manager.

pdf download

Easily download pdf instead of opening it in web browser.

Speed up Firefox

Tweak Network

Speed up the loading of web pages and increase the maximum number of simultaneous downloads from a site.

Fasterfox

Performance and network tweaks for Firefox.

Ads

Adblock Plus

Flashblock

Block Flash so it won't get in your way, but if you want to see it, just click on..

Security

WOT(Web of Trust)

Warn you about risky websites and protect computer against online threats.

NoScript

Allow JavaScript, Java and other executable content to run only from trusted domains of your choice.

Miscs

Answers

Point at any word, hold the Alt key and click. Upon letting go, an AnswerTip in the form of a pop-up "information bubble" appears on the screen explaining the term.

FireFTP

a FTP client for Mozilla Firefox which provides easy and intuitive access to FTP servers.

Reload Every

Automatically reload a page every few seconds

Sxipper

Forget your passwords! Sxipper accurately fills in forms, manages passwords and your OpenIDs.

It supports: Password Manager, Form Filler etc.

GooglePreview

Inserts preview images (thumbnails) and popularity ranks of web sites into the Google and Yahoo search results pages.

Flash Game Maximizer

Click a button or hit the hot-key to maximize (almost) any Flash content to the entire browser window.

Yoono - Socialize Your Browser

Yoono simplifies your social life on the web by centralizing all your social networks and instant messaging in one easy to use browser sidebar.

Evernote Web Clipper

This extension provides a toolbar button and context menus to easily add a selection or an entire page to Evernote.

Homepage: http://www.evernote.com/

Interclue

Interclue tells you everything you need to know before you open yet another tab.

Forecastbar Enhanced

IE Tab

Copy Plain Text

Useful GreaseMonkey Scripts

Hack Rapidshare

RS_Bundle [a rapidshare helper] Revived

A great script to bypass rapidshare's download limit.

Alert download ready

Alerts when the wait period is ended for a download

Download Video

Save video clips from YouTube, Google Video, Myspace, Metacafe, Break.com, Putfile, Dailymotion and Sevenload.

Gmail: Random Signature

YouTube

Youtube Prevent Autoplay

Prevents videos from playing automatically by replacing the default youtube.com player with the youtube player that doesn't autostart playback

YouTube Resizer

Move the YouTube player to a spot where it has more room, and make it bigger.

YouTube Googler

Make YouTube more like Google Video

Textarea Backup

Never retype lost emails, forum posts, feedback forms, blog comments, etc again. This addon automatically saves entered text after every 10 keystrokes so if the page is reloaded for whatever reason, be it browser crash or unintended exit, the text will be restored.Linkify ting 

Turn plain text links into real clikable links.

_blank Must Die

Removes the target attribute of hyperlinks that open a new browser window.

Search Greasemonkey scripts:

http://userscripts.org/

Also there are many themes to choose., such as Red Cats (green flavor).

Backup Firefox

Back up the bookmarks.html file from the profile folder of the Firefox application.

For windows, by default it is

C:\Documents and Settings\<your profile name>\

Application Data\Mozilla\Firefox\Profiles\<profile such as 63pa6x9w.default>\bookmarks.html

Speed Up Firefox

http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21

http://www.squidoo.com/speedupfirefox


Manage Pop-ups in Firefox

Select Tools -> Options -> Content -> Block pop-up Windows

Set blank page as home page
Go to Tools then Options. Click the Main tab and put in "about:blank" in the "Home Page" field.

Resources:

http://ceoworld.biz/ceo/2009/05/05/handy-mozilla-firefox-shortcut-keys/

http://support.mozilla.com/en-US/kb/Keyboard+shortcuts


Notes on Ubuntu

Notes on Ubuntu

Adding, Removing, and Updating Software

Ubuntu Repositories and Components

Ubuntu repositories contain four basic components: main, restricted, universe, multiverse.

Enabling Additional Repository Components

By default, only the main and restricted components of the Ubuntu repositories are enabled. /etc/apt/sources.list is the file that all of the package installation and management utilities consult when looking for new and updated software.

The /etc/apt/sources.list entries for this repository are the following:

deb ftp://cipherfunk.org/pub/packages/ubuntu/ dapper main

deb-src ftp://cipherfunk.org/pub/packages/ubuntu/ dapper main

We can add other repositorie here. Once you are done adding the repositories, run this command: apt-get update

Or we can use the Software Sources Tool: select the System > Administration > Software Sources

Exploring Your System Using dpkg

dpkg -l listing the Packages that are Installed on Your System

dpkg -l ‘emacs*’

aptitude search emacs

apt-cache search emacs

Listing Information About a Package aptitude show xemacs21

Listing the Contents of a Package dpkg -L emacs21

Determining What Package Provides an Existing File

dpkg --search /usr/bin/ar

dpkg --search `which ar`

dlocate -S /usr/bin/emacs

(dlocate utility is not installed on Ubuntu systems by default.)

Determining What Package Provides a Missing File

apt-file search libpowersave.so


Using apt-get to Add and Remove Software

apt-get [ -hvs ] [ -o=config string ] [ -c=file ] { update | upgrade | dselect-upgrade | install pkg ... | remove pkg ... | source pkg ... | build-dep pkg ... | check | clean | autoclean }

Upgrading Your System Using apt-get upgrade

The apt-get upgrade command searches all of the repositories in your /etc/apt/sources.list file for new versions of packages that are currently installed on your system, and downloads and installs those new versions.

Smart System Upgrades Using apt-get dist-upgrade

apt-get dist-upgrade will do its best to handle any new package requirements or the removal of any existing packages that mandated in order to install the latest versions of all of the software on your system.

Retrieving Package Source Code Using apt-get source

apt-get source mythtv

Satisfying Build Dependencies Using apt-get build-dep

apt-get build-dep mythtv


Using aptitude to Add and Remove Software

Using Synaptic to Add and Remove Software

System > Administration > Synaptic Package Manager

Using the Ubuntu Update Manager

System > Administration > Update Manager


Converting Packages from Other Package Formats

The alien application can convert packages to and from the following formats: DEB, RPM,PKG, LSB, SLP, TGZ.

Using alien to convert from one package format to another is easy. The alien application provides options such as --to-deb, --to-lsb, --to-rpm, and --to-tgz to specify the target output format.

alien --scripts --to-deb AdobeReader_enu-7.0.0-2.i386.rpm

Keeping your System Lean, Mean, and Pristine

deborphan and debfoster

deborphan utility produces a list of packages that are not used or referred to by any system package on your system, while the debfoster package builds its own database of which packages are required, tries to be smart about things that you may not need, and also asks lots of questions the first time you run it.

deborphan | xargs apt-get remove --purge -y


Connecting to Other Systems

OpenSSH

Use Synaptic Package Manager to install the OpenSSH server.

apt-get install openssh-server

OpenSSH allows different services to be passed through the connection. These services include interactive shell sessions (ssh), remote command execution (ssh), file copying (scp), FTP services (sftp), X11 client/server connections, and TCP/IP port tunneling.

Configuration

/etc/ssh: Global Files

~/.ssh: User Files

/etc/ssh/sshd_config

Two files list the hosts the local system has connected to and positively identified: ~/.ssh/known_hosts (user) and /etc/ssh/ssh_known_hosts (global).

ssh [options] [user@]host [command]

ssh user@host ls memos

ssh user@host cat memos/memo.draft | diff memos.new –

After you configure the OpenSSH server, call the ssh init script to restart the sshd daemon: sudo /etc/init.d/sshd reload

SSH login without password

Target: automatic login from host A / user a to Host B / user b

On machine A: do the following steps:

1. Generate a pair of authentication keys

ssh-keygen -t rsa

2. Create a directory ~/.ssh as user b on B

ssh b@B mkdir -p .ssh

3. Append a's new public key to b@B:.ssh/authorized_keys

cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'


Connecting to Other Systems Using VNC

VNC is a protocol that allows a desktop to be viewed and controlled remotely over the Internet. To use VNC, you need to run a VNC server on the computer sharing a destkop, and a VNC client on the computer accessing the shared desktop.

Getting VNC Client and Server Software for Your Other Platforms

The vino VNC server for Ubuntu

Vino is the default VNC server in Ubuntu to share your existing desktop with other users. To make sure that the vino VNC server is enabled for you, select the System ➪ Preferences ➪ Remote Desktop menu item.


Setup vnc4server

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

Installation

apt-get install vnc4server xinetd

Set the VNC passwd

vncpasswd /root/.vncpasswd

Reinitialize the service

sudo /etc/init.d/xinetd stop

sudo killall Xvnc

sudo /etc/init.d/xinetd start

Test the connection

vncviewer localhost:1


VNC Clients and Servers for Windows

TightVNC and RealVNC.

TightVNC is a small, highly optimized VNC client and server. TightVNC makes efficient use of network bandwidth through some clever tricks using JPEG compression for the display and differentiating between local cursor movement and cursor movement that needs to be communicated back to the VNC server. TightVNC also provides security features, including automatic SSH tunneling for security purposes.

TightVNC can be downloaded from www.tightvnc.com/download.html or from their SourceForge site at http://sourceforge.net/projects/vnc-tight.

Using vncviewer host:display


FTP

vsftpd

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

Installing vsftpd sudo apt-get install vsftpd

The configuration file for vsftpd is located in /etc/vsftpd.conf

Change its configuration as following

listen=YES

anonymous_enable=YES

local_enable=YES

write_enable=YES

anon_upload_enable=YES

anon_mkdir_write_enable=YES

dirmessage_enable=YES

xferlog_enable=YES

connect_from_port_20=YES

chown_uploads=YES

chown_username=whoever

ftpd_banner=Welcome to blah FTP service.

secure_chroot_dir=/var/run/vsftpd

pam_service_name=vsftpd

rsa_cert_file=/etc/ssl/certs/vsftpd.pem

anon_root=/home/ftp

Commands

sudo /etc/init.d/vsftpd start | stop | restart


Firestarter

http://www.howtogeek.com/howto/ubuntu/install-the-firestarter-firewall-on-ubuntu-linux/

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

Installation

apt-get install firestarter

User need enable the "universe" repository in the /etc/apt/sources.list file or in synaptic under Settings->Repositories.

After Installation, Select via System > Administration > Firestarter

Inbound Policy

The default inbound policy is to block all inbound connections except connections that are responding to outbound connections.

Allow connections from host Specifies a host or network that firestarter accepts any incoming connection from. Make sure you trust this system or network completely.

Allow service Specifies a service (port) that firestarter accepts inbound connections on. You can specify that firestarter accept inbound connections on the specified port from anyone, all clients, or a specific host or network on the Internet.

Forward service Specifies a service (port) that firestarter will accept inbound connections on. The firestarter firewall forwards these connections to the client you specify on the port you specify. Forwarding a service is appropriate if you are running a server on a client system and want systems on the Internet to be able to connect to the server.

Outbound Policy

Permissive by default, blacklist traffic

Restrictive by default, whitelist traffic


Samba

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

http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/

http://www.howtogeek.com/howto/ubuntu/share-ubuntu-home-directories-using-samba/

Installation

Server: sudo apt-get install samba

Client: sudo apt-get install smbfs

Server Configuration

For Ubuntu 8.04 and later, we can browse to the location of the folder we would like to share, right-click the folder, and choose Sharing Options.

Configuration file: /etc/samba/smb.conf

Uncomment the security line, and add another line to make it look like this:

security = user

username map = /etc/samba/smbusers

This will set Samba to use the smbusers file for looking up the user list.

Create a Samba User

First run the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a <username>

Next add that username to the smbusers file.

sudo gedit /etc/samba/smbusers

and add the user name map, The format is <ubuntuusername> = "<samba username>".

Configure /etc/samba/smb.conf to share Ubuntu directories

[Music]

path = /Music

comment = Music

available = yes

browseable = yes

public = yes

writable = yes

Then we are able to map a drive on windows using the following share format:

\\ubuntumachine\username(this is samba username)

Samba utilities and daemons

net smbd The Samba program, run as a daemon by default. Provides file and print services for Samba clients.

Smbclient Displays shares on a Samba server such as a Windows machine

smbd The Samba program, run as a daemon by default. Provides file and print services for Samba clients.

Smbpasswd Changes Windows NT password hashes on Samba and Windows NT servers

smbstatus Displays information about current smbd connections.

swat Samba Web Administration Tool. A browser-based editor for the smb.conf file

testparm Checks syntax of the smb.conf file.

/etc/init.d/samba restart | stop | start

Configuring a Samba Server Using shares-admin

smbpasswd

When you install Samba, it copies all Linux users to the list of Samba users. If you add a user after you install Samba, you need to use the –a option to instruct smbpasswd to add the user to the list of Samba users.

sudo smbpasswd sam

sudo smbpasswd -a max

If a user has different usernames on the Linux and Windows systems, you must map the Windows username to a Linux username, Make sure all Linux users who will log in using Samba have Samba passwords.

swat: Configures a Samba Server

The swat (Samba Web Administration Tool, swat package) utility is a browser-based graphical editor for the smb.conf file. pen a browser and enter either http://127.0.0.1:901 or http://localhost:901 in the location bar.

Accessing Linux Shares from Windows

Browsing Shares

enter \\ubuntumachine\username in location bar.

Mapping a Share

From the menu at the top select "Tools" -> "Map Network Drive".

Accessing Windows Shares from Linux

smbtree: Displays Windows Shares

The smbtree utility displays a hierarchical diagram of available shares.

smbclient: Connects to Windows Shares

The smbclient utility functions similarly to ftp (page 729) and connects to a Windows share.

smbclient //JAM/D

smb: \> ls(help)

List public SMB shares: smbclient -L //server -U user

Connect to a SMB share: smbclient //server/share -U user

or: smbclient //server/share -U user%password

Browsing Windows Networks

From Nautilus, enter smb:/// in the location bar to browse the Windows shares on the network.

Mounting Windows Shares

The mount utility with a –t cifs option mounts a Windows share as if it were a Linux directory hierarchy. When you mount a Windows share, you can write to the files on the share; you cannot write to files on a share using smbclient.

sudo mount -t cifs //jam/d /share -o username=sam

You can omit the username argument and provide a blank password to mount shares that are visible to the guest user. Use the uid, file_mode, and dir_mode mount options with type cifs filesystems to establish ownership and permissions of mounted files.

$ sudo mount -t cifs //jam/d /share -o username=sam,uid=sam,file_mode=0644,dir_mode=0755


NFS

HOWTO: NFS Server/Client

Install NFS Server

sudo apt-get install nfs-kernel-server nfs-common portmap

Install NFS client

sudo apt-get install portmap nfs-common

Configuring NFS Server

Using shares-admin

The shares-admin utility stores this information in /etc/exports.

Restart nfs-server

/etc/init.d/nfs-kernel-server restart

Sharing directory with /etc/exports

The /etc/exports file is the access control list for exported directory hierarchies that NFS clients can mount; it serves as the access control list for file systems which may be exported to NFS clients.

The exports file controls the following NFS characteristics:

Which clients can access the server (see also "Security" on page 802)

Which directory hierarchies on the server each client can access

How each client can access each directory hierarchy

How client usernames are mapped to server usernames

Various NFS parameters

Each line in the exports file has the following format:

export-point client1(option-list) [client2(option-list) ... ]

General Options

ro (rw) (readonly) Permits only read requests on an NFS directory hierarchy. Use rw to permit read and write requests.

sync (async) (synchronize) Specifies that the server should reply to requests only after disk

changes made by the request are written to disk. The async option specifies that the server does not have to wait for information to be written to disk and can improve performance, albeit at the cost of possible data corruption if the server crashes or the connection is interrupted.

Wdelay (no_wdelay) (write delay) Causes the server to delay committing write requests when it anticipates that another, related request will follow, thereby improving performance by

committing multiple write requests within a single operation. The no_wdelay option does not delay committing write requests and can improve performance when the server receives multiple, small, unrelated requests.

Examples

/data 192.168.1.0/24(rw,rsync)

/sales tom(ro,sync) jerry(ro,sync)

exportfs

usage: exportfs [-aruv] [host:/path]

Give the command exportfs without any options to display a list of exported directory hierarchies and the systems each is exported to:

$ exportfs

exportfs -r

Where the System Keeps NFS Mount Information

cat /etc/exports

$ exportfs

cat /var/lib/nfs/etab

/var/lib/nfs/rmtab (remote mount table) On the server, lists the directory hierarchies that are mounted by client systems:

cat /var/lib/nfs/rmtab

/proc/mounts

On the client, this pseudofile displays the kernel mount table, which lists filesystems

mounted by the local system.

grep nfs\ /proc/mounts

showmount: Displays NFS Status Information

Without any options, the showmount utility displays a list of systems that are allowed to mount local directories. You typically use showmount to display a list of directory hierarchies that a server is exporting. To display information for a remote system, give the name of the remote system as an argument.

showmount -a

Testing the Server Setup

From the server, run the nfs-kernel-server init script with an argument of status. /etc/init.d/nfs-kernel-server status.

Also check that mountd is running:

$ ps -e | grep mountd

Next, from the server, use rpcinfo to make sure NFS is registered with portmap:

rpcinfo -p localhost | grep nfs

Repeat the preceding command from the client, replacing localhost with the name of the server. The results should be the same.

Access shared directories from Linux client computer

First, create a mountpoint on client computer:

mkdir /mnt/data

Mount the server:

mount nfs-server:/data /mnt/data

To see mounted file system and available disk space: df -h

Mounting at boot using /etc/fstab

server.mydomain.com:/files /files nfs rsize=8192,wsize=8192,timeo=14,intr

9.123.247.113:/home/essniuser/yunyuan /mnt/essniuser nfs rsize=8192,wsize=8192,timeo=14,intr


Resources:

A Practical Guide to Ubuntu Linux

Ubuntu Linux Bible


Notes On Virtualization Tool -- Sun VirtualBox

Notes On Open Source Virtualization Tool -- Sun VirtualBox

VirtualBox is Sun's general-purpose full Virtualization Tool for All Major Operating Systems. It is of professional-quality, it is free and Open Source. It is great, easy to use with excellent UI, and absolutely worth trying.

We can download virtualbox from http://www.virtualbox.org/. Just install it, and learn from its well-documented User manual. Then we can create a new virtual machine, or reuse exsiting Microsoft's VHD or VMware's VMDK format image.


VirtualBox supports Disk image files (VDI, VMDK, VHD)

Normally, VirtualBox uses its own container format for guest hard disks – Virtual

Disk Image (VDI) files. In particular, this format will be used when you create a

new virtual machine with a new disk.

VirtualBox also fully supports the popular and open VMDK container format that

is used by many other virtualization products, in particular, by VMware.

Finally, VirtualBox also fully supports the VHD format used by Microsoft.

And we can aslo install VirtualBox Guest Additions which will make our life much easier by providing closer integration between host and guest and improving the interactive performance of guest systems.


The ways to Shutdwon VirtualBox

When you click on the "Close" button of virtual machine window, VirtualBox asks you whether you want to "save" or "power off" the VM.

There are three options:

Save the machine state:

VirtualBox would "freeze" the virtual machine by completely saving its state to local disk.

Send the shutdown signal:

This will send an ACPI shutdown signal to the virtual machine, which has the same effect as if you had pressed the power button on a real computer.

Power off the machine:

This is equivalent of pulling the power plug on a real computer without shutting it down properly. It may crash your VM.


The Guest Additions offer the following features

  • Better Mouse pointer integration.

  • Better video support.

  • Time synchronization.

  • Shared folders.

  • Seamless windows.

  • Shared clipboard.

  • Automated Windows logons.


Installing the Linux(Ubuntu) Guest Additions

Installation involves the following steps:

1. Before installing the Guest Additions, we will have to prepare our guest system for building external kernel modules. as with Linux hosts, we recommend using DKMS for Linux guests as well. If it is not installed, use this command:

sudo apt-get install dkms

2. Click Device > 'Install Guest Additions' to mount the VBoxGuestAdditions.iso file as Linux guest’s virtual CDROM drive.

3. Change to the directory where your CD-ROM drive is mounted and execute as root:

sh ./VBoxLinuxAdditions-x86.run

In a 64-bit Linux guest, use VBoxLinuxAdditions-amd64.run instead.


Problem

I am unable to install Ubuntu Guest Additions.

On http://forums.virtualbox.org/viewtopic.php?p=47963&sid=13ba1acf874ebeeef604e052e931e92e, I found the solution:

I'm unable to install virtualbox guest additions for Ubuntu 8.10 because: Kernel configuration is invalid. I think the guest addition installer cannot find linux kernel headers.

So I execute commands like:

sudo apt-get install linux-headers-2.6.27-7- ...


Virtual networking

Networking adapters can be separately configured to operate in one of the following four modes:

Not attached

Network Address Translation (NAT)

Host Interface Networking

Internal Networking


Shared folder between host and guest

Example: Shared Folders between XP host and Ubuntu guest

1. Add one folder to the shared folders properties of the Ubuntu VM.

we can do this via VirtualBox's GUI(please see http://servervirtualization.blogs.techtarget.com/2008/07/23/sun-xvm-virtualbox-easily-enables-folder-sharing/ )

or via command:

VBoxManage sharedfolder add "Ubuntu8.10-virtualbox" -name "shared2vb" -hostpath "D:\shared2vb"

2.Mount the shared folder to Ubuntu

2.1: For ubuntu, we have to first create the mount point folder:

sudo mkdir /media/shared2vb

otherwise, when we try to mount shared folder, we will get error like the following:

/sbin/mount.vboxsf: mounting failed with the error: No such file or directory

2.2: sudo mount -t vboxsf shared2vb /media/shared2vb


Alternative front-ends and remote virtual machines

VirtualBox has a very flexible internal design that allows you to use different front-ends to control the same virtual machines. To illustrate, you can, for example, start a virtual machine with VirtualBox’s easy-to-use graphical user interface and then stop it from the command line. With VirtualBox’s support for the Remote Desktop Protocol (VRDP), you can even run virtual machines remotely on a headless server and have all the graphical output

redirected over the network.

Main graphical user interface: VirtualBox

Command-line interface: VBoxManage

VBoxSDL is an alternative, simple graphical front-end with an intentionally limited feature set, designed to only display virtual machines that are controlled in detail with VBoxManage.

VBoxHeadless is yet another front-end that produces no visible output on the host at all, but merely acts as a VRDP server


Using VBoxManage to control virtual machines

VBoxManage list

The list command gives relevant information about your system and information about VirtualBox’s current settings.

VBoxManage list vms | runningvms

VBoxManage showvminfo

The showvminfo command shows information about a particular virtual machine.

VBoxManage showvminfo "Ubuntu8.10-virtualbox"

VBoxManage registervm / unregistervm

The registervm command allows you to import a virtual machine definition in an XML file into VirtualBox.

The unregistervm command unregisters a virtual machine. If -delete is also specified then the XML definition file will be deleted.

VBoxManage createvm

This command creates a new XML virtual machine definition file. The -name <name> parameter is required and must specify the name of the machine.

VBoxManage createvm -name 'Ubuntu8.10'

VBoxManage modifyvm

This command changes the properties of a registered virtual machine.

VBoxManage modifyvm "Windows XP" -memory "512MB"

VBoxManage startvm

This command starts a virtual machine that is currently in the "Powered off" or "Saved" states. This is provided for backwards compatibility only.

VBoxManage startvm "Ubuntu8.10-virtualbox"


VBoxSDL, the simplified VM displayer

VBoxSDL -vm "Ubuntu8.10-virtualbox"


Remote virtual machines (VRDP support)

VirtualBox has a built-in server for the VirtualBox Remote Desktop Protocol (VRDP). This allows you to see the output of a virtual machine’s window remotely on any other computer and control the virtual machine from there, as if it was running on the remote machine


Troubleshooting

Collecting debugging information For problem determination, it is often important to collect debugging information which can be analyzed by VirtualBox support.

Every time VirtualBox starts up a VM, a log file is created containing some information

about the VM configuration and runtime events. The log file is called Vbox.log and resides in the VM log file folder. Typically this will be a directory like this:

$HOME/.VirtualBox/Machines/{machinename}/Logs


Resources:

VirtualBox's User Manual(http://dlc-cdn-rd.sun.com/c1/virtualbox/2.1.0/UserManual.pdf)

http://servervirtualization.blogs.techtarget.com/2008/07/23/sun-xvm-virtualbox-easily-enables-folder-sharing/

http://vmetc.com/2008/08/06/virtualbox-shared-folders-protocol-error-in-ubuntu-guest/


Labels

Java (159) Lucene-Solr (110) All (60) Interview (59) J2SE (53) Algorithm (37) Eclipse (35) Soft Skills (35) Code Example (31) Linux (26) JavaScript (23) Spring (22) Windows (22) Web Development (20) Tools (19) Nutch2 (18) Bugs (17) Debug (15) Defects (14) Text Mining (14) J2EE (13) Network (13) PowerShell (11) Chrome (9) Continuous Integration (9) How to (9) Learning code (9) Performance (9) UIMA (9) html (9) Design (8) Dynamic Languages (8) Http Client (8) Maven (8) Security (8) Trouble Shooting (8) bat (8) blogger (8) Big Data (7) Google (7) Guava (7) JSON (7) Problem Solving (7) ANT (6) Coding Skills (6) Database (6) Scala (6) Shell (6) css (6) Algorithm Series (5) Cache (5) IDE (5) Lesson Learned (5) Miscs (5) Programmer Skills (5) System Design (5) Tips (5) adsense (5) xml (5) AIX (4) Code Quality (4) GAE (4) Git (4) Good Programming Practices (4) Jackson (4) Memory Usage (4) OpenNLP (4) Project Managment (4) Python (4) Spark (4) Testing (4) ads (4) regular-expression (4) Android (3) Apache Spark (3) Become a Better You (3) Concurrency (3) Eclipse RCP (3) English (3) Firefox (3) Happy Hacking (3) IBM (3) J2SE Knowledge Series (3) JAX-RS (3) Jetty (3) Restful Web Service (3) Script (3) regex (3) seo (3) .Net (2) Android Studio (2) Apache (2) Apache Procrun (2) Architecture (2) Batch (2) Build (2) Building Scalable Web Sites (2) C# (2) C/C++ (2) CSV (2) Career (2) Cassandra (2) Distributed (2) Fiddler (2) Google Drive (2) Gson (2) Html Parser (2) Http (2) Image Tools (2) JQuery (2) Jersey (2) LDAP (2) Life (2) Logging (2) Software Issues (2) Storage (2) Text Search (2) xml parser (2) AOP (1) Application Design (1) AspectJ (1) Bit Operation (1) Chrome DevTools (1) Cloud (1) Codility (1) Data Mining (1) Data Structure (1) ExceptionUtils (1) Exif (1) Feature Request (1) FindBugs (1) Greasemonkey (1) HTML5 (1) Httpd (1) I18N (1) IBM Java Thread Dump Analyzer (1) JDK Source Code (1) JDK8 (1) JMX (1) Lazy Developer (1) Mac (1) Machine Learning (1) Mobile (1) My Plan for 2010 (1) Netbeans (1) Notes (1) Operating System (1) Perl (1) Problems (1) Product Architecture (1) Programming Life (1) Quality (1) Redhat (1) Redis (1) Review (1) RxJava (1) Solutions logs (1) Team Management (1) Thread Dump Analyzer (1) Troubleshooting (1) Visualization (1) boilerpipe (1) htm (1) ongoing (1) procrun (1) rss (1)

Popular Posts