Virtual Box: Shared Folder on Linux host and Linux guest

Much like setting up a shared folder on a Linux host and a Windows guest, you need to create the folder to share on your host system and add it to your shared folders list in Virtualbox. You also need a mountpoint inside your virtual system (in this case: /mnt/VirtualBoxExchange).
Mounting it is done with the command

mount -t vboxsf VirtualBoxExchange /mnt/VirtualBoxExchange

Done.

Using a SSH config file

Create the config file in your .ssh directory if it doesn’t already exist.

touch /home/pat/.ssh/config

Open the file and add your configuration:

Host xmp
HostName example.com
User username
Port 2222

Where Host is the name of the shortcut. You can also add other options like

PubkeyAuthentication yes
PasswordAuthentication no
ServerAliveInterval 25
ServerAliveCountMax 150

or another Host to your configuration. Take a look at the ssh_config manpage for more options.
You can now use your shortcut with

ssh xmp

Opera Mini on Android also a Proxy-Browser

Today Marc Ruef released an article about Opera Mini on the iPhone and pointed out that all traffic is routed through Opera’s own proxy server. Opera isn’t allowed to use his own rendering engine on the iPhone because of Apple’s strict license. Opera Mini just provides another frontend for Apple’s safari engine, while the rendering happens on Opera’s server.
Users of Opera Mini should be aware that all their traffic could be analysed and used for data mining.

A quick test reveals that the Android version of Opera Mini also uses Opera’s own server as a proxy.

t09-07.opera-mini.net – - [16/Apr/2010:13:27:39 +0200] “GET /blog HTTP/1.1″ 301 198 “http://www.carrier-lost.org/blog/about/” “Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18302/764; U; en) Presto/2.4.15″
t09-07.opera-mini.net – - [16/Apr/2010:13:27:39 +0200] “GET /blog/ HTTP/1.1″ 200 3886 “http://www.carrier-lost.org/blog/about/” “Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18302/764; U; en) Presto/2.4.15″
t09-07.opera-mini.net – - [16/Apr/2010:13:27:39 +0200] “GET /blog/wp-content/themes/decoder/img/bg-meta.gif HTTP/1.1″ 404 2400 “http://www.carrier-lost.org/blog/” “Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18302/764; U; en) Presto/2.4.15″

Where t09-07.opera-mini.net is the proxy server.

Virtual Box: Shared Folder on Linux host and Windows guest

1. Create the folder on your host you like to share with the virtual machine (e.g. /home/pat/VirtualBoxExchange).
2. Add the shared folder to your virtual machine.
Shared Folder 1

Shared Folder 2

3. Open the command prompt on the windows machine (Start -> Run -> cmd.exe) and type

net use x: \\vboxsvr\VirtualBoxExchange

Shared Folder 3

4. Have fun.

syslog-ng on vServer with Debian Lenny

Starting syslog-ng on a vServer with Debian Lenny fails with the message:

/etc/init.d/syslog-ng restart
Starting system logging: syslog-ng
Error opening file for reading; filename=’/proc/kmsg’, error=’Operation not permitted (1)’
Error initializing source driver; source=’s_all’ failed!
Error initializing source driver; source=’s_all’

You have to comment out a few lines in /etc/syslog-ng/syslog-ng.conf since syslog-ng doesn’t have direct access on the kernel messages. Under “Sources”

file(”/proc/kmsg” log_prefix(”kernel: “));

and

# kern.* -/var/log/kern.log
log {
source(s_all);
filter(f_kern);
destination(df_kern);
};

Syslog-ng should start just fine now.