Sep 222012
 

VirtualBox is “a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use.” meaning that it emulates a computer graphically within your installed OS, allowing you to use different operating systems and applications virtually without the need to install on “real metal”

Whichever OS you use out of Windows/Linux/*BSD there is a version available for you to use.

For the sake of this blog post I will assume that you are using a *BSD or Linux Operating system (sorry windows user , I don’t use windows at all , I am sure with some research you may get the second part working within windows, the first part should work ok). My second assumption is that you have already downloaded and installed VirtualBox, set up a virtual machine with an operating system in place and ready to use. if you have not then read this blog post and decide if this is something you would like to try and install VirtualBox from ports or your distribution’s repository (or the VirtualBox site.)

The first part of this article is to show the terminal command-line version to launch your virtual machine directly into a window (or tile if using a tiling window manager), the second part will show you how to launch your VirtualBox image into a separate Xserver, the third part explains a couple of great practical applications of using this within your desktop environment or current window manager

    Part1.

Starting a VirtualBox image from the command-line, this is actually remarkably simple. start up a terminal and type:

VBoxManage startvm <Virtualbox Image Name>

for example if I have created a virtualbox machine called “vbrowser”

VBoxManage startvm vbrowser

this would launch the virtual image directly into its own window.

how simple is that?

    Part2.

Ok moving on… in order to launch your chosen virtualbox within its own (second or higher) Xserver we need to set up a file called .vboximage you can do this by using a text editor and add the following lines:

VBoxManage startvm <Virtualbox Image Name> &
exec <windowmanager>

or without a editor you can use the following directly from a terminal

echo “VBoxManage startvm <Virtualbox Image Name> &” >> .vboximage
echo “exec <windowmanager>” >> .vboximage

be careful to use >> and not > as the former appends to the file the latter will over write the file

the <windowmanger entry will be the one to host the virtual image, its best for it to be as small and light as possible I have chosen “tinywm” although “matchbox”, “ratpoison”, “dwm” or similar would do just as well install one on your realworld install

so my .vboximage file looks like

VBoxManage startvm vbrowser &
exec tinywm

If you think this looks like a .xinitrc file it is, but one for a dedicated virtual machine running in a seperate Xserver.

once you have your .vboximage file written we can move to the cli command to launch it again this is surprisingly simple:

startx /home/user-name/.vboximage — :1

so to launch my Virtualbox image I would use

startx /home/mrmysteryguest/.vboximage — :1

this tells the xserver to start up in the next tty (so if your X is currently in “alt+ctl F8″ it will start in “alt+ctl+F9″, leaving your current Xsession untouched.

    Part3.

OK so now you know how to launch VirtualBox from the terminal, why would you want to?

one reason is Keybindings, you could add either of the terminal commands to your main DE or WM keybindings configuration file allowing you to launch your virtual machine seamlessly without having to launch the full VirtualBox control center to launch it.

I use SpectrWM so to set up the keybindings I just add the following to my .spectrwm.conf and restart the windowmanger using MOD+Q

program[vbrowse] = VBoxManage startvm vbrowser #starts in a window
bind[vbrowse] = MOD+F4
program[newxvbox] = startx /home/mrmysteryguest/.vboximage — :1 #starts in new X
bind[newxvbox] = MOD+F5

this means that to launch the vbrowser virtual machine within a seperate “window/tile”
and whichever virtual machine (windows even) is stipulated in .vboximage in a different Xserver.

I use these methods within freebsd to launch a cut down linux iso I remastered just to have Firefox & browser-plugins launch at starting ratpoison ad a browser appliance, essentially serving as an alternative to adding the linux-binary-compatibility layer (which causes my machine to overheat somewhat).

Please let me know if you have any other tips and tricks of this type, sign up to the forum and share.

Aug 252012
 

I originally started The FOSS Convergence to celebrate those things that *BSD, Linux and Other OS’s have in common.

So I thought to myself “what would be the best way to highlight these similarities?”, most of us will be using a Unix-Like OS, most probably a type of BSD or a distro of Linux, both of which can be described as having a stable base with a GUI layered over this, so with this in mind the obvious place to start would be with CLI applications and commands that are used in an almost identical way on all unix-like operating systems.

I also thought that as we are all “end users” that i would approach this from the perspective of what we as end users require of a environment and how we can do that regardless of which environment we choose to work in.

Talking of CLI applications, I will clarify – for the sake of this article that CLI refers to an application that you can use without X in a tty console, as well as in a terminal emulator within a Window Manager (WM) or Desktop Environment (DE).

We will look at several areas/sections of typical usage within any given WM or DE.

1.Browsing the internet
2.Reading/Accessing Email
3.Viewing Pictures
4.Watching/Listening to (multi-)Media
5.File Management
6.Chatting online
7.Text Editing/Word processing

In order to keep things cleaner I will limit myself to discussing up to 3 alternatives within each section, there are many more to each area, if anyone has a good suggestion for such apps, please let me know – either by adding a comment, or by joining the forum, where I will also post this article.
Ok so to get started we have


1.Browsing the internet

We have a plethora of options here as prior to having graphical browsers this s how we saw the ‘net’, even within text/cli mode browsers there is scalability, there are minimal browsers, full web browsers and even ones that will show pictures within a text environment

a> retawq homepage:http://retawq.sourceforge.net/

is a minimal text mode ncurses based web browser, its written in C, is fast works in very low ram low resource machines – has some great features

b> Lynx homepage: http://lynx.isc.org/

is often referred to as ‘THE text web browser’, it is fully featured is SSL capable and will display HTML, local documents and will read content on systems using http, gopher,ftp, wais, nntp, finger or cso/ph/qi servers and services accessible via telnet among others, it can even be used to build information systems intended for local access. its extensive documentation can be found here

c> w3m homepage:http://w3m.sourceforge.net/

is a combined web-browser, pager (like less, man,more) and can convert html into plain text it can also be configured to display images in-line too


2. Reading/Accessing Email

a> mailx homepage: http://heirloom.sourceforge.net/mailx.html

is similar to the ‘mail’ command is included in many unix-like operating systems however the mailx command is able to directly contact imap based email accounts with “mailx -f imaps://

b> mutt homepage: http://www.mutt.org/

is a super configurable email user agent (email client) that is extremely powerful in use, yet light on systems resources.

c> alpine homepage: http://www.washington.edu/alpine/acquire/

(and re-alpine) is the (A)lternativly (L)icenced (P)rogram for (I)nternet (N)ews and (E)mail (see what they did there), its a very capable alternative to mutt


3.Viewing Pictures

This is a particularly poor area of knowledge for me, it seems that dedicated image viewers are either console or X related,please let me know if there are applications that do both well, you could always use a cli web browser that renders images – like w3m or links-g

a> zgv homepage: http://www.svgalib.org/rus/zgv/#desc

(or xzvg when using X) is a console mode picture viewer using svgalib with a thumbnail-based file selector. (xzgv is uasable in X)

b> seejpeg homepage: http://www.icewalkers.com/Linux/Software/5130/Seejpeg.html

A console graphics viewer using the svga console graphics library

c> feh homepage: http://feh.finalrewind.org/

is an X image viewer that can do nmore than just view pictures (I realise this is a cheat app as it is not usable within teh console/tty)


4.Watching/Listening to (multi-)Media

There is 100′s of CLI apps for music and video limiting it to 3 is difficult…

a> abcde homepage: http://code.google.com/p/abcde/

a cd ripper that is able to encode into several different auto formats

b> mpg123 homepage: http://www.mpg123.de/

a small easy to use mp3 player

c> mplayer homepage: http://www.mplayerhq.hu/design7/news.html

works as well from the command line as it does from a GUI front end. and can output via framebuffer , aalibs or caca (ascii movies)


5.File Management

a> cdls homepage: unknown (please let me know!)

is a curses-based file manager for quickly browsing directories and files

b> commands ls cd mv rm ,

learn the commands in the shell of your choice – they will work in console also

c> mc homepage: https://www.midnight-commander.org/wiki

is a great toolbox, containing file management, ssh and ftp to remote servers , editor and more ….


6.Chatting online

a> weechat homepage: http://www.weechat.org/

is a irc chat client , extensible including other chat protocols (via BitlBee – )

b> mcabber homepage: http://mcabber.com/

is a small console jabber client with features such as SASL/SSL/TLS support, MUC (Multi-User Chat) support, history logging, command completion, OpenPGP encryption, OTR (Off-the-Record Messaging) support, dynamic modules and external action triggers

c> centerim homepage: http://www.centerim.org/index.php/Main_Page

a multi protocol instant messenger capable of connecting with many of teh most popular protocols.


7.Text Editing/Word processing

a> vi homepage: http://docs.freebsd.org/44doc/usd/12.vi/paper.html

a modal text editor, some state that if a unlx-like OS does not have vi included then its not unix-like

b> nano homepage: http://www.nano-editor.org/

a small easy to master text editor, ( a gnu rewrite of pines pico)

c> wordgrinder: homepage: http://wordgrinder.sourceforge.net/

a console mode word processor ,for processing words! – also what I have used to write this blog post, prior to formatting..

Ok so that’s it (so far), there are a multitude of other commands and applications that many operating systems use in common, just try ‘cal -3′.
% cal -3

you can respond below or if a forum member here

Aug 052012
 

For a while I have been trying to find a simple but effective method to offer each forum member a small web-space to call their own to be used as a blog or a gateway to their own projects.

I would like to introduce you to The FOSS Convergence Blogs, a place that community members can post about their experiences, thoughts or projects and act as a staging point for all three.

Should you have an idea for a project and are looking for a front page for it then this is ideal, for hosting of files I would suggest using a sourceforge account as your project will get seamlessly mirrored around the world.

Please bare in mind the nature of any content on your Blog page, it has to be family friendly, not breach any copyright or licensing terms or be overtly political, If content strays away from these simple guidelines then I reserve the right to remove the blog.

I hope you like this small but useful addition to The FOSS Convergence.

If you are not already a member , please visit the forum and sign up today!

Jase

Jul 062012
 

Its been a while since my first post, I have had to attend to a slice of real life, which has slowed my progress with the FOSS Convergence, I am hoping to pick up speed again soon, The Forum is open for all users of all operating systems.

I have also been slowed down by my uptake of a *BSD, I did look at dragonfly and OpenBSD first unfortunately neither liked the target hardware out of the box, and as this was to be a new adventure into a new OS I wanted to start with a great out of the box experience, so I then tried NetBSD – which is great I decided to go the route of using pkg_src to compile my applications, I built what was a very nice desktop environment although did have a minor issue with Firefox where my chosen addons were continually requiring to be reinstalled on start up, so I searched tried a few things and failed to fix that issue (BSD and Linux may look similar , but they are miles apart). I then purchased what I think is a great book after reading I decided to try FreeBSD.

FreeBSD is a very “clean” OS you install a minimal core without X and then you can either add packages or compile ports to get it where you need it to be, great for servers and equally great for Desktop purposes.
My FreeBSD install has a remarkable amount of “bling” attached to it (you would call it KDE4 and Firefox), which is not as minimal as I would normally use, but it is fast, I have chosen NOT to use teh Linux binary compatibility, as I found it raised the in use temperature of my laptop by 20c, so I am using the FreeBSD “native” Firefox.

All in all I am loving FreeBSD and would welcome existing FreeBSD users to join the Forum
and post some hints and tips for me to try (like how to view flash using only native BSD apps)

OK thats it til next time, not sure when that will be but hopefully not as long between posts

Jun 042012
 

This is a very quick note about this , my new project. All too often Distributions of Linux and Alternate Operating systems get caught up in their differences and it often gets negative and causes frustrations and arguments.

The FOSS Convergence is a project that focuses on what those operating systems have in common, with the various community members working together cross-OS, sharing idea’s, workarounds and solutions, while having fun and creating a bigger more cohesive environment

Join our friendly forum – its not complete as yet but its getting there, all are welcome there , even windows and Mac users curious about the FOSS word

Thanks for reading.

Jase

EDIT:
due to an error I lost the original of this post which was posted on 26 May 2012, I also lost teh comments too which I was not able to recover