<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1121034922394057622</id><updated>2012-01-06T22:23:57.265+01:00</updated><category term='Ishinomaki'/><category term='Canna'/><category term='Pretty printing'/><category term='Windows XP'/><category term='KDE'/><category term='Ayukawa'/><category term='blurred fonts'/><category term='ferry'/><category term='Tohoku'/><category term='Samba'/><category term='Thunderbird'/><category term='VirtualBox'/><category term='SKIM'/><category term='locale'/><category term='KeyRig'/><category term='M-Audio'/><category term='Onagawa'/><category term='Microsoft IME'/><category term='FreeBSD'/><category term='Japanese printing'/><category term='Japanese display'/><category term='Japanese TrueType fonts'/><category term='travel'/><category term='Firefox'/><category term='KWord'/><category term='Kinkazan'/><category term='Japanese input'/><category term='MIDI'/><category term='xinitrc'/><category term='SCIM'/><category term='金華山'/><category term='font substitution'/><category term='Windows 7'/><title type='text'>Georges's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-9044626529007423690</id><published>2009-12-21T21:29:00.001+01:00</published><updated>2009-12-21T21:30:22.754+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MIDI'/><category scheme='http://www.blogger.com/atom/ns#' term='KeyRig'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='M-Audio'/><title type='text'>Installing the M-Audio KeyRig 49 MIDI keyboard and its virtual instrument software on Windows 7</title><content type='html'>&lt;ol&gt;&lt;li&gt;Start Windows 7.&lt;/li&gt;
&lt;li&gt;Plug in the KeyRig 49 keyboard and switch it on; it is detected and the driver is automatically installed.&lt;/li&gt;
&lt;li&gt;Install the KeyRig Virtual Instrument software from the CD that came with the keyboard (even if it's for Windows XP); close the installer's window.&lt;/li&gt;
&lt;li&gt;Download and run the KeyRig 1.1.0.4v6 updater; it also removes the need to certify the software. You can get it from &lt;a href="http://www.m-audio.com/index.php?do=support.drivers&amp;amp;f=1031"&gt;http://www.m-audio.com/index.php?do=support.drivers&amp;amp;f=1031&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Run "M-Audio Key Rig.exe", the virtual instrument software (KeyRig).&lt;/li&gt;
&lt;li&gt;In KeyRig: M-Audio Key Rig --&amp;gt; Preferences...: set the buffer size to a value that works well for you.&lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-9044626529007423690?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/9044626529007423690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=9044626529007423690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/9044626529007423690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/9044626529007423690'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/12/installing-m-audio-keyrig-49-midi.html' title='Installing the M-Audio KeyRig 49 MIDI keyboard and its virtual instrument software on Windows 7'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-8537193703764216184</id><published>2009-12-08T23:17:00.000+01:00</published><updated>2009-12-08T23:17:58.499+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blurred fonts'/><category scheme='http://www.blogger.com/atom/ns#' term='font substitution'/><category scheme='http://www.blogger.com/atom/ns#' term='Japanese printing'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Thunderbird'/><category scheme='http://www.blogger.com/atom/ns#' term='Canna'/><category scheme='http://www.blogger.com/atom/ns#' term='Japanese input'/><category scheme='http://www.blogger.com/atom/ns#' term='KWord'/><category scheme='http://www.blogger.com/atom/ns#' term='xinitrc'/><category scheme='http://www.blogger.com/atom/ns#' term='SKIM'/><category scheme='http://www.blogger.com/atom/ns#' term='locale'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='KDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Japanese display'/><category scheme='http://www.blogger.com/atom/ns#' term='Japanese TrueType fonts'/><category scheme='http://www.blogger.com/atom/ns#' term='SCIM'/><title type='text'>Japanese on FreeBSD (KDE)</title><content type='html'>This article explains how to set up Japanese display and input on FreeBSD in KWord, Thunderbird, Firefox, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DISCLAIMER&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This is just a compilation of what I learned by reading lots of Web pages written by other people (mainly for Linux), lots of mailing lists, the FreeBSD handbook, and by spending hours upon hours in trial and error. I am in no way an expert on these matters. This article gives all my current knowledge. Therefore, if you ask me a question about something not written here, I will not know the answer.&lt;br /&gt;
&lt;br /&gt;
This text very probably contains inaccuracies and/or describes suboptimal ways of achieving the desired result. Any suggested additions and corrections are welcome.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DISPLAY&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Displaying Japanese characters normally works without effort, you just have to have the appropriate fonts installed. In some applications such as Firefox you also must select the correct character encoding (ISO-2022-JP or, sometimes, UTF-8).&lt;br /&gt;
&lt;br /&gt;
Note (I'm not sure about that): it may be that you should have some of the big X fonts; they are installed during the installation of FreeBSD. Othrwise you can still installing them by running sysinstall (or /stand/sysinstall if you have an older version of FreeBSD).&lt;br /&gt;
&lt;br /&gt;
But there can be problems. One problem I've have is that KWord would correctly display hiragana and katakana (in crisp, bitmapped fonts) but KWord would display squares instead of kanji. I surmise it's a font problem. The weird thing is, this happened on my FreeBSD 7.0 configuration, but the same setup displayed perfectly in FreeBSD 6.&lt;br /&gt;
&lt;br /&gt;
A solution to the KWord squares problem is to install a Japanese TrueType font. Alas, TrueType fonts are anti-aliased and appear unpleasanly blurred. I vastly prefer pixelated but crisp bitmap fonts; blurred fonts are painful to my eyes. I recently&amp;nbsp; found an article explaining how to configure&amp;nbsp; fonts; it seems to cover how to disable anti-aliasing. I'll add information here as soon as I can. Probably over Christmas. In the meantime, if you want to display kanji in KWord, install a Japanese TrueType font (it seems any such font will do - all are similarly blurred):&lt;br /&gt;
&lt;br /&gt;
cd /usr/ports/japanese/font-kochi ; make install clean&lt;br /&gt;
&lt;br /&gt;
Alternative TT fonts with the same visual result: font-ipa, font-vlgothic, font-sazanami, etc.&lt;br /&gt;
&lt;br /&gt;
The font-mplus package is a "bitmap font set aimed for simple and readable design". It includes Japanese and latin fonts in 10 and 12points. Alas, it gives blurred (anti-aliased) characters in the mailbox listing panel in Thunderbird (oddly, not in the body of the message) and it does not solve the squares-instead-of-kanji problem of KWord. I probably missed something, but it does not work for me.&lt;br /&gt;
&lt;br /&gt;
In the end I installed the Sazanami font.&lt;br /&gt;
&lt;br /&gt;
Now if you start KWord (normally; no need for an export LC_CTYPE setting), it will display kanji. The blurring extends to other applications, including Firefox and Thunderbird.&lt;br /&gt;
&lt;br /&gt;
However, if you don't use KWord, but only want Japanese display and input in Firefox and Thunderbird, you don't need to install such a font. It will work perfectly with the bitmap fonts.&lt;br /&gt;
&lt;br /&gt;
If you instaled one of the TrueType fonts and you don't like the anti-aliasing, you can either wait for me to explain how to configure TrueType fonts (in a future update of this post) or you can uninstall the font by going to the font package folder and doing a "make deinstall". This solves the problem; no need to restart X, only restart the application(s) displaying Japanese.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;INPUT&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Install the input system&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This software is also called "input method editor" or "input method". I've been using Canna for years even though some people prefer the more recent Anthy.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;#cd /usr/ports/japanese/Canna; make install clean&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;#pkg_add -r skim&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
(alternative: &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;cd /usr/ports/textproc/skim; make install clean&lt;/span&gt;)&lt;br /&gt;
&lt;br /&gt;
This also installs scim (with a "c") as a dependency. Skim is a KDE application (front-end) using SCIM.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;#cd /usr/ports/japanese/scim-canna; make install clean&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Later, if you need to display again scim-canna's post-install configuration instructions, do pkg_info -D ja-scim-canna-1.0.0_6 (of course, use your actual version number).&lt;br /&gt;
&lt;br /&gt;
(In the past, I used to use Canna with kinput2.)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Have Canna start automatically&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In /etc/rc.conf, add this line:&lt;br /&gt;
&lt;br /&gt;
c&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;anna_enable="YES"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This will take effect upon reboot. Rebooting now is a huge overkill and may not be acceptable on a multi-user system, so for testing you can start Canna manually.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Configure SKIM/SCIM&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If you have KDE, do the following:&lt;br /&gt;
- right-click the SKIM taskbar icon: Configure: Frontend: General SCIM&lt;br /&gt;
- "General" tab: set your keyboard layout, and set keyboard shortcuts: Toggle On/Off&lt;br /&gt;
- "Other" tab: Panel Program: scim-panel-kde; Config Module: kconfig&lt;br /&gt;
&lt;br /&gt;
Sorry, I don't know the procedure for Gnome or other environments.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;.xinitrc&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;export GTK_IM_MODULE="scim"&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;export QT_IM_MODULE="scim"&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;export LC_CTYPE=en_US.UTF-8&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;export XMODIFIERS='@im=SCIM'&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;scim -d&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;startkde&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Application startup scripts / environment variables&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This is for sh/bash - for the other shells: display scim-canna's post-install instructions:&lt;br /&gt;
&lt;br /&gt;
KWord:&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;export LC_CTYPE="ja_JP.UTF-8" ; kword &amp;amp;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Firefox, Thunderbird:&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;export LC_TYPE="ja_JP.eucJP"; thunderbird &amp;amp;&lt;br /&gt;
&lt;/div&gt;or&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;export LC_CTYPE="ja_JP.UTF-8" ; thunderbird &amp;amp;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
That's right. For the Mozilla applications, either LC_CTYPE value works, but for KWord you must use ja_JP.UTF-8, otherwise Japanese input will not activate in KWord.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;QT font substitution (qtconfig)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To be exhaustive: I did not configure any font substitution whatsoever. My font substitution list in qtconfig/Fonts is empty. (=default).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Next...&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I'll refine and improve this post as time allows. In particular&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;find a way to have crisp fonts, at least up to a certain size.&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;how to print Japanese documents, including Web pages.Requires to be able to generate Japanese PostScript / PDFfiles.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-8537193703764216184?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/8537193703764216184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=8537193703764216184' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/8537193703764216184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/8537193703764216184'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/12/japanese-on-freebsd-kde.html' title='Japanese on FreeBSD (KDE)'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-8084122659975497608</id><published>2009-11-01T13:39:00.075+01:00</published><updated>2010-06-27T17:26:57.993+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ferry'/><category scheme='http://www.blogger.com/atom/ns#' term='Onagawa'/><category scheme='http://www.blogger.com/atom/ns#' term='Ayukawa'/><category scheme='http://www.blogger.com/atom/ns#' term='travel'/><category scheme='http://www.blogger.com/atom/ns#' term='Ishinomaki'/><category scheme='http://www.blogger.com/atom/ns#' term='Kinkazan'/><category scheme='http://www.blogger.com/atom/ns#' term='金華山'/><category scheme='http://www.blogger.com/atom/ns#' term='Tohoku'/><title type='text'>Japan - Travel in Tohoku (October 22 ~ November 6, 2009)</title><content type='html'>From 22 October to 6 November 2009, I visited the north of Japan (Kita-Tohoku) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sunday, November 1, 2009&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Today I got up quite early at 0530 to get the train of 0711 (JR Senseki line) from Sendai 仙台 to Ishinomaki 石ノ巻. From the station, I took the bus of 0915 at bus stop nr. 2 for Ayukawa port 鮎川港 (1430 yens, 90 minutes).&amp;nbsp; This is the first bus of the day from Ishinomaki to Ayukawa port. We arrived at Ayukawa port at 1044. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvooJLaGQAI/AAAAAAAAACk/vF_CZI5OSPk/s1600-h/Tohoku_2009_1101_104519_blog.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvooJLaGQAI/AAAAAAAAACk/vF_CZI5OSPk/s320/Tohoku_2009_1101_104519_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
At Ayukawa, I took the 1100 ferry to Kinkazan island (900 yens, 20 minutes), the first ferry being at 1030; this is a small boat maybe 15 metres long; it can accomodate 40 passengers.See http://www.kinkasan.com for the ferry timetables. In fact we arrived at Kinkazan port a little bit before 1130.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;[Picture of timetable at the Ayukawa bus stop]&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvopGqH5yFI/AAAAAAAAACs/poaIFgJj514/s1600/Tohoku_2009_1101_112053_blog.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvopGqH5yFI/AAAAAAAAACs/poaIFgJj514/s320/Tohoku_2009_1101_112053_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
A picture of the ferry I took after setting foot on Kinkazan island.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvopSaPyePI/AAAAAAAAAC8/T8LC2PEY2Vs/s1600-h/Tohoku_2009_1101_112136_blog.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvopSaPyePI/AAAAAAAAAC8/T8LC2PEY2Vs/s320/Tohoku_2009_1101_112136_blog.jpg" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvopN3SjaZI/AAAAAAAAAC0/d6S5J6XqdVU/s1600-h/Tohoku_2009_1101_112102_blog.jpg"&gt; &lt;img border="0" src="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvopN3SjaZI/AAAAAAAAAC0/d6S5J6XqdVU/s320/Tohoku_2009_1101_112102_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
There are many deer and monkeys on&amp;nbsp;Kinkazan island. Upon disembarking, we were greeted by a deer. Those deer are not dangerous.&amp;nbsp;They are very tame and their horns had been cut to make sure they were harmless. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/_bUm-fFi1XSM/Svoqe3nibeI/AAAAAAAAADE/vL1WKmLL73c/s1600-h/Tohoku_2009_1101_112326-Kinkazan-monkeys.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_bUm-fFi1XSM/Svoqe3nibeI/AAAAAAAAADE/vL1WKmLL73c/s320/Tohoku_2009_1101_112326-Kinkazan-monkeys.jpg" /&gt;&lt;/a&gt;I also took a picture of two monkeys that just happened to be there when we arrived. I didn't see any other monkeys on the island, though. These two monkeys looked similar to those I saw on Yakushima island.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left; width: 800px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a href="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvorQhOZCaI/AAAAAAAAADU/FtMzdBKUGh0/s1600-h/Tohoku_2009_1101_114119_blog.jpg"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvorQhOZCaI/AAAAAAAAADU/FtMzdBKUGh0/s320/Tohoku_2009_1101_114119_blog.jpg" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvorH9_idSI/AAAAAAAAADM/xDPbuS6TimM/s1600-h/Tohoku_2009_1101_112810_blog.jpg" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvorH9_idSI/AAAAAAAAADM/xDPbuS6TimM/s320/Tohoku_2009_1101_112810_blog.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;As soon as we disembarked, a van took most of the ferry passengers up the steep road to the shrine. I and a few others chose to do it the hard way and climb on foot. Near the shrine, there is a nice park, with many deer. On the precincts of the shrine, there are a couple of nice little red bridges.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left; width: 800px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvosYU5QtEI/AAAAAAAAADc/d96ECnsF7bA/s1600-h/Tohoku_2009_1101_115447_blog.jpg"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvosYU5QtEI/AAAAAAAAADc/d96ECnsF7bA/s320/Tohoku_2009_1101_115447_blog.jpg" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvotnelcYrI/AAAAAAAAAD0/5eOV8Yf_CPs/s1600-h/Tohoku_2009_1101_121649_blog.jpg" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvotnelcYrI/AAAAAAAAAD0/5eOV8Yf_CPs/s320/Tohoku_2009_1101_121649_blog.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the side of the shrine, there is a steep hiking path to the Oku no In (奥の院 - inner shrine) and to the top of the pyramid-shaped mountain that is the centre of the island. Unfortunately, upon arriving at the inner shrine, there was a panel saying that the path henceforth is hazardous and please do not go further.&amp;nbsp; So I couldn't reach the top. A view of the inner shrine.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left; width: 800px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_bUm-fFi1XSM/Svo1b9eqOQI/AAAAAAAAAFk/b4q2OI_S1VU/s1600-h/Tohoku_2009_1101_142417_blog.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_bUm-fFi1XSM/Svo1b9eqOQI/AAAAAAAAAFk/b4q2OI_S1VU/s320/Tohoku_2009_1101_142417_blog.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back down at the ferry pier, there is a gift shop and restaurant (金華山おみやげセンター). The owner told me that apparently I missed the correct path and that people often take the wrong path. Even though I scrupulously followed the signs on the wooden panels along the path. Oh well. He also gave me sketch maps of the hiking paths showing the right way. Well, there was another way, via the road from the boat pier, you turn right (instead of left to the shrine). It's 5&amp;nbsp; and a half kilometres long. I bought a ticket for the boat back, this time to Onagawa (not Ayukawa), so that I could directly get the train to Ishinomaki and avoid the bus.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://4.bp.blogspot.com/_bUm-fFi1XSM/Svo1J7IoghI/AAAAAAAAAFc/9ubjO3hx2h4/s1600-h/Tohoku_2009_1101_131728_blog.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_bUm-fFi1XSM/Svo1J7IoghI/AAAAAAAAAFc/9ubjO3hx2h4/s320/Tohoku_2009_1101_131728_blog.jpg" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_bUm-fFi1XSM/Svo1CvoM6GI/AAAAAAAAAFU/aYijyszgrRI/s1600-h/Tohoku_2009_1101_131913_blog.jpg"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_bUm-fFi1XSM/Svo1CvoM6GI/AAAAAAAAAFU/aYijyszgrRI/s320/Tohoku_2009_1101_131913_blog.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While waiting for the ferry departing at 1500, I ate a bowl of udon and discussed with the shop owner. He also gave me a few slices of whale meat for free. He said it was a rare and expensive treat. There were three sorts of whale meat on the plate: small rectangular slices or actual meat, red and maybe half a centimetre thick; then there were slices of blubber from the underside of the whale (the neck, sort of), and slices of blubber from the back of the whale. Apparently, it's rare to have all three on one plate. It was not bad, but not exceptional, either.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_bUm-fFi1XSM/SvoubEA4-tI/AAAAAAAAAEE/fhZ29IBqCco/s1600-h/Tohoku_2009_1101_144147_blog.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_bUm-fFi1XSM/SvoubEA4-tI/AAAAAAAAAEE/fhZ29IBqCco/s320/Tohoku_2009_1101_144147_blog.jpg" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvouTBvuMYI/AAAAAAAAAD8/o8UUnEb8c74/s1600-h/Tohoku_2009_1101_143954_blog.jpg"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvouTBvuMYI/AAAAAAAAAD8/o8UUnEb8c74/s320/Tohoku_2009_1101_143954_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Embarking on the ferry&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_bUm-fFi1XSM/Svouwor2TmI/AAAAAAAAAEM/kfs8d14gBXw/s1600-h/Tohoku_2009_1101_144212_blog.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_bUm-fFi1XSM/Svouwor2TmI/AAAAAAAAAEM/kfs8d14gBXw/s320/Tohoku_2009_1101_144212_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Who knows what is behind that door? Probably the engine room.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_bUm-fFi1XSM/Svou_ff3I-I/AAAAAAAAAEU/XIWHzLVpUeg/s1600-h/Tohoku_2009_1101_145852_blog.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_bUm-fFi1XSM/Svou_ff3I-I/AAAAAAAAAEU/XIWHzLVpUeg/s320/Tohoku_2009_1101_145852_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;It was very cold and windy here outside of the cabin. Only one other person and myself stayed outside to look at the view. Then after a few minutes it was really too cold so I climbed down into the cabin. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvovIssP4EI/AAAAAAAAAEc/SZfEikoqKlw/s1600-h/Tohoku_2009_1101_150132_blog.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_bUm-fFi1XSM/SvovIssP4EI/AAAAAAAAAEc/SZfEikoqKlw/s320/Tohoku_2009_1101_150132_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Inside the cabin. There is a screen displaying the route, updated in real time. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvoxH9YQyEI/AAAAAAAAAEk/E4_YhK61smQ/s1600-h/Tohoku_2009_1101_161623_blog.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvoxH9YQyEI/AAAAAAAAAEk/E4_YhK61smQ/s320/Tohoku_2009_1101_161623_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Back at Ishinomaki 石巻, I visited the "Mangattan Museum". Indeed, Ishinomaki is sort of a manga/anime town: there are statues and decorations everywhere, starting at the station.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvoxRKuzpwI/AAAAAAAAAEs/_pjsRQ2NNsM/s1600-h/Tohoku_2009_1101_162854_blog.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvoxRKuzpwI/AAAAAAAAAEs/_pjsRQ2NNsM/s320/Tohoku_2009_1101_162854_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvoxfHUTdLI/AAAAAAAAAE0/HuZM9RXrWrU/s1600-h/Tohoku_2009_1101_163052_blog.jpg"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_bUm-fFi1XSM/SvoxfHUTdLI/AAAAAAAAAE0/HuZM9RXrWrU/s320/Tohoku_2009_1101_163052_blog.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The museum building looks like a spaceship. The entrance of the museum is on the left.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_bUm-fFi1XSM/Svoxnte09zI/AAAAAAAAAE8/FqtJLBj-l9s/s1600-h/Tohoku_2009_1101_164135_blog.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_bUm-fFi1XSM/Svoxnte09zI/AAAAAAAAAE8/FqtJLBj-l9s/s320/Tohoku_2009_1101_164135_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The museum staff are dressed in uniforms from the Cyborg series of manga and animations. One of them kindly posed for me.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvoyKBnuYJI/AAAAAAAAAFE/YHl8SimyquY/s1600-h/Tohoku_2009_1101_173306_blog.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvoyKBnuYJI/AAAAAAAAAFE/YHl8SimyquY/s320/Tohoku_2009_1101_173306_blog.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvoycxyHVnI/AAAAAAAAAFM/7Q76XuKhvDg/s1600-h/Tohoku_2009_1101_173614_blog.jpg"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_bUm-fFi1XSM/SvoycxyHVnI/AAAAAAAAAFM/7Q76XuKhvDg/s320/Tohoku_2009_1101_173614_blog.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
There are various statues and decorations in the streets, related to the museum exhibits. Even this red robot at the entrance of a bank.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I took the train back to Sendai, where I had dinner at Marutan まるたん, a restaurant a few hundred metres down the street from the ryokan where I was staying (Ryokan Ikoi-so).&amp;nbsp;まるたん&lt;b&gt; &lt;/b&gt;serves the specialty of Sendai: grilled beef tongue (牛たん).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Monday, November 2, 2009&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The local train of 0822 took me from Sendai to Matsushima-Kaigan (松島海岸). The weather was cold　and rainy. I quickly visited the main attractions, which are mercifully clustered along the coast within a few hundred metres from the train station. This includes a few temples (names to be added here) and two islands reached on foot by crossing red bridges. The bigger island is called Fukuura-jima and is now a botanical garden. I then took the cruise boat for Hon-Shiogama. The cruise in Matsushima bay takes 50 minutes, animated by a recorded voice explaining every tiny&amp;nbsp;island and islet along the way. As it is now almost winter, the ship was not crowded and it was a rather quiet and pleasant time, probably the best part of the expedition. There were only a few seagulls to be seen, and a few old ladies did feed them fried shrimps, but that was all. Basically the poor weather is more than compensated for by the small number of tourists and the quietness. At Hon-Shiogama, I ate a Japanese toast-pizza (pizza ingredients on a slice of toast bread) with coffee, then walked to the JR train station and went back to Sendai.&lt;br /&gt;
&lt;br /&gt;
In Sendai, the best way to take in all the main cultural attractions in a few hours is to board the City Loop Bus ("loople" as it's called), using a one-day free-pass ticket sold at bus stop nr. 15-3 outside JR Sendai station. The bus makes a loop around the main attractions, there is a bus every 20 minutes at any of the loop's stops. &lt;br /&gt;
&lt;br /&gt;
Then I went to Yodobashi Camera outside of Sendai Station to buy a USB photo memory card reader to download the photos off my Fuji F10 digital camera and put them on this blog, but unfortunately the shared PC at the ryokan is not accessible so I cannot plug in the card reader.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(To be continued).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-8084122659975497608?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/8084122659975497608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=8084122659975497608' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/8084122659975497608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/8084122659975497608'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/11/japan-2009-tohoku.html' title='Japan - Travel in Tohoku (October 22 ~ November 6, 2009)'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_bUm-fFi1XSM/SvooJLaGQAI/AAAAAAAAACk/vF_CZI5OSPk/s72-c/Tohoku_2009_1101_104519_blog.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-1388293568480227863</id><published>2009-09-27T00:18:00.000+02:00</published><updated>2012-01-06T22:23:57.276+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Samba'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='VirtualBox'/><title type='text'>File sharing between a FreeBSD guest in Virtual Box and its Windows XP host, using Samba</title><content type='html'>&lt;br /&gt;
&lt;b&gt;Assumptions&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You have sucessfully installed FreeBSD (I'm using FreeBSD 7) in VirtualBox, and set up networking so that you can use ordinary services such as email, HTTP, etc.&lt;br /&gt;
&lt;br /&gt;
Now, you want to be able to expose some files so that they can be accessed from the Windows host operating system on which VirtualBox (and inside it, FreeBSD) is running.&lt;br /&gt;
For example, you want to write tar backups to DVDs, or watch some multimedia (video) in Windows because the virtual video available to FreeBSD in VirtualBox is only 256 colours VGA.&lt;br /&gt;
&lt;br /&gt;
There is a feature in VirtualBox called Shared Folders, which I did not use. I prefer to do it the "old-fashioned" way, as if there were two real computers on the network, the one running the Windows XP host operating system and the one running the FreeBSD guest operating system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Install and configure Samba&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
cd /usr/ports/net/samba3; make install clean&lt;/div&gt;
&lt;br /&gt;
Copy the example default configuration file to /usr/local/etc/smb.conf, then customise it to your needs.&lt;br /&gt;
Better not to use SWAT to create the configuration; I tried, and it generated and invalid file, I don't know why.&lt;br /&gt;
&lt;br /&gt;
Here is my config file:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;[global]&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; workgroup = GAMES&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; server string = Samba Server&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; security = SHARE&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; hosts allow = 10.0.0.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; log file = /var/log/samba/log.%m&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; max log size = 50&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; guest account = nobody&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; map to guest = bad user&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; passdb backend = smbpasswd&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;[homes]&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; comment = Home Directories&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; browseable = no&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; writable = yes&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;[public]&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; path = /home/&lt;span style="background-color: #d9ead3;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; public = yes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; only guest = yes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; writable = yes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; printable = no&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;[tmp]&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; path = /tmp&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; public = yes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; only guest = yes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; writable = yes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; printable = no&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
After modifying the configuration file, run the command "testparm" to check that there are no syntactic errors in the file.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Configure networking in VirtualBox: use "Bridged Networking"&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The physical PC is connected to an ADSL modem-router. The router (an old Alcatel Speedtouch ADSL modem) makes a LAN with address 10.0.0.0/24 (hence the network mask of 255.255.255.0). On this LAN, the router has the IP address 10.0.0.138. With Bridged Networking (called "host interface networking" in VirtualBox pre-2.2), 
the FreeBSD guest also sees the router as 10.0.0.138. My physical 
PC running Windows XP is 10.0.0.40 on that LAN. I decide to give the IP address 10.0.0.41
 to the FreeBSD guest.&lt;br /&gt;
&lt;br /&gt;
Here is my /etc/rc.conf file (only the relevant parts):&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ifconfig_&lt;span style="background-color: #d9ead3;"&gt;le0&lt;/span&gt;="inet 10.0.0.41 netmask 255.255.255.0"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;defaultrouter="10.0.0.138"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;samba_enable="YES"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;nmbd_enable="YES"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;smbd_enable="YES"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Be sure to check the name of your network interface (do an ifconfig); it might be le0, or pcn0, or something else. That name must be the one used in rc.conf (&lt;span style="background-color: #d9ead3;"&gt;highlighted &lt;/span&gt;hereabove). It's too easy to have the wrong name, especially after a configuration change in VirtualBox or elsewhere. If you find you cannot ping your default router (no route to host), that might be why.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Access the shared files from Windows&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To access your Samba share from Windows XP, type the required path in the address bar of the file explorer or enter that path in Tools / Map Network Drive.&lt;br /&gt;
In my example it would be &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;\\10.0.0.41\public&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;---&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Last updated on 26 December 2011.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-1388293568480227863?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/1388293568480227863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=1388293568480227863' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/1388293568480227863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/1388293568480227863'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/09/file-sharing-between-freebsd-guest-in.html' title='File sharing between a FreeBSD guest in Virtual Box and its Windows XP host, using Samba'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-5258198029890073437</id><published>2009-09-06T00:57:00.073+02:00</published><updated>2012-01-06T20:32:17.151+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='VirtualBox'/><title type='text'>Move FreeBSD to new hard disk ☆VirtualBox edition☆</title><content type='html'>&lt;b&gt;It would seem that my procecure does not work well (see the comments to this post).&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;To be rewritten/improved. &lt;/b&gt;&lt;br /&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You need to move your FreeBSD to a new (typically, bigger) hard drive in order to increase the size of one or more file systems. The procedures outlined in this article are applicable to a real system; VirtualBox-specific additions are &lt;span style="background-color: #fff2cc;"&gt;highlighted&lt;/span&gt;.&lt;b&gt; &lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #cccccc;"&gt;Attention: these procedures are draft; there is still a problem I'm trying to solve. Help would be appreciated.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Apart from this introduction, the rest of the article is structured like this:&lt;br /&gt;
&lt;br /&gt;
- make a backup of your FreeBSD system;&lt;br /&gt;
- install your new hard disk;&lt;br /&gt;
- initialise the new hard disk;&lt;br /&gt;
- generic procedure: using dump and restore for all the partitions;&lt;br /&gt;
- optimized procedure: use dd to copy the partitions that need not be resized;&lt;br /&gt;
- special case: use 'dd' to copy the whole disk then enlarge the last filesystem on the new disk.&lt;br /&gt;
- references;&lt;br /&gt;
- change log.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Make a full backup&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
First, as a precaution, make a backup! &lt;br /&gt;
&lt;span style="background-color: #fff2cc;"&gt;With VirtualBox, it's very simple: just make a copy of the whole &lt;/span&gt;&lt;i style="background-color: #fff2cc;"&gt;.VirtualBox&lt;/i&gt;&lt;span style="background-color: #fff2cc;"&gt; folder (VirtualBox must not be running). &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Install your new hard disk &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Put the new hard drive in the machine.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: #fff2cc;"&gt;
With VirtualBox: first, make sure you have enough free space in the directory where the new virtual disk will be created (by default this is in &lt;i&gt;C:\Documents and Settings\username\.VirtualBox\VDI&lt;/i&gt;.&lt;br /&gt;
Start VirtualBox and select your FreeBSD virtual machine.&lt;br /&gt;
Create a new virtual disk: &lt;i&gt;File / Virtual Disk Manager / New&lt;/i&gt;; Fixed-size image.&lt;br /&gt;
Add this new drive to the virtual machine: Settings / Hard Disks ; press the Insert key or click on the little icon with a "+" sign on it, and select the &lt;i&gt;.vdi&lt;/i&gt; file that you have just created, in the drop down list attached to the newly added IDE Primary Slave; click OK.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Note: As the currently active HD is IDE Primary Master, the new HD will automatically be an IDE Primary Slave. The FreeBSD VM now has two hard disks. It's like you've just added a new hard disk inside a real machine, a blank unformatted disk, which will be detected as a top-level IDE device (/dev/ad1) by the kernel.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Initialise the new hard disk &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Start FreeBSD; log in as root.&lt;br /&gt;
&lt;br /&gt;
Verify the presence of the new hard disk: &lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
trantor# ls /dev/ad*&lt;/div&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
/dev/ad0&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/ad0s1a&amp;nbsp; /dev/ad0s1c&amp;nbsp; /dev/ad0s1e&amp;nbsp; /dev/ad0s1g&lt;/div&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
/dev/ad0s1&amp;nbsp; /dev/ad0s1b&amp;nbsp; /dev/ad0s1d&amp;nbsp; /dev/ad0s1f&amp;nbsp; &lt;b&gt;/dev/ad1&lt;/b&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
Initialize sector 0 slice table of disk ad1 for one FreeBSD slice covering the entire disk:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;trantor# fdisk -I /dev/ad1&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;******* Working on device /dev/ad1 *******&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fdisk: invalid fdisk partition table found&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fdisk: Geom not found: "ad1"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Did I get something wrong here?&lt;br /&gt;
Anyway, if you list the devices again with &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ls /dev/ad*&lt;/span&gt;, you see that the slice (&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ad1s1&lt;/span&gt;) has been created.&lt;br /&gt;
&lt;br /&gt;
From this point on, here's how things could be done:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;all partitions must be resized: use &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dump&lt;/span&gt; and &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;restore&lt;/span&gt;;&lt;/li&gt;
&lt;li&gt;not all partitions must be resized: configure partitions of appropriate sizes on the new drive, then copy the data over, using respectively dd for unchanged partitions and dump+restore for the resized partitions;&lt;/li&gt;
&lt;li&gt;only the last partition of the slice needs to be enlarged: use &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd &lt;/span&gt;to copy the whole disk, then simply grow the last partition on the new disk.&lt;/li&gt;
&lt;/ul&gt;
The first method is always applicable, but is also the most cumbersome. Cases 2 and 3 are special cases allowing the use of faster and/or less labour-intensive operations.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Generic procedure: using dump and restore for all the partitions&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create, on the new drive, the FreeBSD partitions that exist on the old one.&lt;br /&gt;
&lt;br /&gt;
Go to &lt;i&gt;Configure / Label&lt;/i&gt;.&amp;nbsp; Move the selection to "&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;[] ad1 ad1&lt;/span&gt;" and press space.&lt;br /&gt;
&lt;br /&gt;
The disklabel editor of &lt;i&gt;sysinstall &lt;/i&gt;requires you to specify the mount points for the new partitions. What I do is I specify the mount points, but after creating all the partitions and before quitting the editor, I reset all the mount points to an empty string (select each partition in turn and press "M"). That's because I don't know what would happen if I tried to boot the system with this new disk attached, having specified the mount points to be on that new disk that is still empty. I guess it would not be so good, but if I'm mistaken, please tell me.&lt;br /&gt;
&lt;br /&gt;
On my system, I create these partitions (in this order):&lt;br /&gt;
a (/)=1GB, b (swap)=2GB, d (/var)=1GB, e (/tmp)=2GB, f (/usr)=4GB, g (/home)=23GB.&lt;br /&gt;
&lt;br /&gt;
The root partition ("a") should be the same size as on the old disk, so that 'dd' can be used to copy its data; otherwise, it would be necessary to do a minimal installation of FreeBSD. I have doubled the size of /tmp compared to what it is on my old hard drive, from 1 GB to 2 GB. In this specific example, the "new hard drive" is the same size as the old one (32 GB), so the last partition, /home, has its size decreased by 1 GB. This is because all I needed is to increase the size of /tmp. You set up your partitions according to your own needs,&amp;nbsp; of course.&lt;br /&gt;
&lt;br /&gt;
Here is the result displayed by the disklabel editor:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_bUm-fFi1XSM/SsKMyBE4-PI/AAAAAAAAACE/Ybhz95y_Aqg/s1600-h/sysinstall-disklabel.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_bUm-fFi1XSM/SsKMyBE4-PI/AAAAAAAAACE/Ybhz95y_Aqg/s400/sysinstall-disklabel.GIF" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Press W to write the changes, then Q to quit the disklabel editor.&lt;br /&gt;
Back on the disk selection screen, press tab, make sure "OK" is selected, and press enter. &lt;br /&gt;
Exit the installer.&lt;br /&gt;
&lt;br /&gt;
Install the boot code (here I install the standard MBR as I don't need a boot manager):&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fdisk -B -b /boot/mbr ad1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The new drive is now ready to receive data from the old drive.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;init 1 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Copy the root file system: use '&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd&lt;/span&gt;' to copy &lt;i&gt;ad0s1a&lt;/i&gt; to &lt;i&gt;ad1s1a&lt;/i&gt; (identical sizes):&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd if=/dev/ad0s1a conv=notrunc,noerror,sync bs=64k | dd of=/dev/ad1s1a bs=64k &lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
By piping the first dd into a second one, and using a large block size instead of the default of 512 bytes, it'll let you run at the max speed of the slowest device. &lt;b&gt;Like this, all files, including special files, are copied and it is not necessary to perform a basic installation&lt;/b&gt;.&lt;/blockquote&gt;
Create mount points for the new drive's partitions, create the file systems, and mount them:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mkdir /backup &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mkdir /backup/var &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mkdir /backup/tmp &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mkdir /backup/usr &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mkdir /backup/home&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;newfs /dev/ad1s1d&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;newfs /dev/ad1s1e&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;newfs /dev/ad1s1f&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;newfs /dev/ad1s1g&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mount /dev/ad1s1d /backup/var&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mount /dev/ad1s1e /backup/tmp&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mount /dev/ad1s1f /backup/usr&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mount /dev/ad1s1g /backup/home&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Copy the old file systems (except root) into the new ones:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;( dump -0Lf - /var )|( cd /backup/var ; restore -rf - ) &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;( dump -0Lf - /tmp )|( cd /backup/tmp ; restore -rf - ) &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;( dump -0Lf - /usr )|( cd /backup/usr ; restore -rf - ) &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;( dump -0Lf - /home )|( cd /backup/home ; restore -rf - )&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;umount /backup/var&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;umount /backup/tmp&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;umount /backup/usr&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;umount /backup/home&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1a&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1d&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1e&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1f&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1g&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;tunefs -n enable /dev/ad1s1a&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;tunefs -n enable /dev/ad1s1d&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;tunefs -n enable /dev/ad1s1e&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;tunefs -n enable /dev/ad1s1f&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;tunefs -n enable /dev/ad1s1g&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;init 0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #fff2cc;"&gt;In VirtualBox: select the FreeBSD VM, in the right panel click on Hard Disks. Remove (detach) the IDE Primary Master attachment; set the new disk, which is currently a Primary Slave, to Primary Master. THis does not delete the old virtual hard disk file; it merely detaches it from the virtual machine. It's the equivalent of unplugging the old disk from a hardware machine and setting the new disk to IDE Master with a jumper or cable select.&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Optimized procedure: use &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd&lt;/span&gt; to copy the partitions that need not be resized&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #cccccc;"&gt;I still have problems with this procedure: after I dump the data from the old drive and restore it to the new drive's larger partitions, the latter become the same size as on the old drive. Currently&amp;nbsp; fail to understand why. How can a dump+restore change the disk label? In the meantime, most of the procedure works, but it fails to fulfil its prime objective whch is to increase the size of some partitions. Maybe using tar instead of dump would solve the problem. That's what I'll try next.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;br /&gt;
You can use the &lt;i&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sysinstall &lt;/span&gt;&lt;/i&gt;utility to set up the disk label (i.e. the partitions). You could also do it the hard way, on the command line, with &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;bsdlabel&lt;/span&gt; and &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;vi&lt;/span&gt; if you are masochistic. :)&lt;br /&gt;
&lt;br /&gt;
Go to &lt;i&gt;Configure / Label&lt;/i&gt;.&amp;nbsp; Move the selection to "&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;[] ad1 ad1&lt;/span&gt;" and press space.&lt;br /&gt;
&lt;br /&gt;
The disklabel editor of &lt;i&gt;sysinstall &lt;/i&gt;requires you to specify the mount points for the new partitions. What I do is I specify the mount points, but after creating all the partitions and before quitting the editor, I reset all the mount points to an empty string (select each partition in turn and press "M"). That's because I don't know what would happen if I tried to boot the system with this new disk attached, having specified the mount points to be on that new disk that is still empty. I guess it would not be so good, but if I'm mistaken, please tell me.&lt;br /&gt;
&lt;br /&gt;
On my system, I create these partitions (in this order):&lt;br /&gt;
a (/)=1GB, b (swap)=2GB, d (/var)=1GB, e (/tmp)=2GB, f (/usr)=4GB, g (/home)=23GB.&lt;br /&gt;
&lt;br /&gt;
The root partition ("a") should be the same size as on the old disk, so that 'dd' can be used to copy its data; otherwise, it would be necessary to do a minimal installation of FreeBSD. I have doubled the size of /tmp compared to what it is on my old hard drive, from 1 GB to 2 GB. In this specific example, the "new hard drive" is the same size as the old one (32 GB), so the last partition, /home, has its size decreased by 1 GB. This is because all I needed is to increase the size of /tmp. You set up your partitions according to your own needs,&amp;nbsp; of course.&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;br /&gt;
Here is the result displayed by the disklabel editor:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_bUm-fFi1XSM/SsKMyBE4-PI/AAAAAAAAACE/Ybhz95y_Aqg/s1600-h/sysinstall-disklabel.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_bUm-fFi1XSM/SsKMyBE4-PI/AAAAAAAAACE/Ybhz95y_Aqg/s400/sysinstall-disklabel.GIF" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Press W to write the changes, then Q to quit the disklabel editor.&lt;br /&gt;
Back on the disk selection screen, press tab, make sure "OK" is selected, and press enter. &lt;br /&gt;
Exit the installer.&lt;br /&gt;
&lt;br /&gt;
Install the boot code (here I install the standard MBR as I don't need a boot manager):&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fdisk -B -b /boot/mbr ad1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The new drive is now ready to receive data from the old drive.&lt;br /&gt;
&lt;br /&gt;
The principle is this:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;For the partitions whose size didn't change (in this example: &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;a&lt;/span&gt;, &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;d&lt;/span&gt;, and &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;f&lt;/span&gt;), we use &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd &lt;/span&gt;to copy them.&lt;/li&gt;
&lt;li&gt;For the partitions whose size did change (in this example: &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;e&lt;span style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt; and&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;g&lt;/span&gt;), we must first create a new file system in the target partitions, then copy the data using dump and restore.&lt;/li&gt;
&lt;li&gt;Nothing to do for the swap partition.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;init 1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
"dd" the unchanged partitions:&lt;br /&gt;
&lt;br /&gt;
the root partition:&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd if=/dev/ad0s1a conv=notrunc,noerror,sync bs=64k | dd of=/dev/ad1s1a bs=64k&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1a &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
the /var partition:&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd if=/dev/ad0s1d conv=notrunc,noerror,sync bs=64k | dd of=/dev/ad1s1d bs=64k&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1d&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
the /usr partition:&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; dd if=/dev/ad0s1f conv=notrunc,noerror,sync bs=64k | dd of=/dev/ad1s1f bs=64k&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;fsck /dev/ad1s1f&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Dump and restore the file systems of the resized partitions (/tmp and /home):&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;div style="background-color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
mkdir /backup&lt;br /&gt;
mkdir /backup/tmp&lt;br /&gt;
mkdir /backup/home&lt;br /&gt;
&lt;br /&gt;
newfs /dev/ad1s1e&lt;br /&gt;
newfs /dev/ad1s1g&lt;br /&gt;
&lt;br /&gt;
mount /dev/ad1s1e /backup/tmp&lt;br /&gt;
mount /dev/ad1s1g /backup/home&lt;br /&gt;
&lt;br /&gt;
( dump -0Lf - /tmp )|( cd /backup/tmp ; restore -rf - ) &lt;br /&gt;
( dump -0Lf - /home )|( cd /backup/home ; restore -rf - )&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Don't worry about the "expected next file xx, got yy" messages.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
umount /backup/tmp&lt;br /&gt;
umount /backup/home&lt;br /&gt;
&lt;br /&gt;
fsck /dev/ad1s1e&lt;br /&gt;
fsck /dev/ad1s1g&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="background-color: white; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Enable Soft Updates on all file systems:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;tunefs -n enable /dev/ad1s1e&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;tunefs -n enable /dev/ad1s1g&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Only the above two filesystems are new and need this setting; the others (in this specific example) were copied over verbatim with dd, so if they already had softupdates set, it is also set in their copy. If you didn't have softupdates set on some filesystems on your old hard drive, you can set it now (see hereunder).&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;init 0&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;From the FreeBSD Handbook:&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;div style="background-color: white; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;span style="font-size: x-small;"&gt;Soft Updates drastically improves meta-data performance, mainly file creation and deletion, through the use of a memory cache. We recommend to use Soft Updates on all of your file systems. There are two downsides to Soft Updates that you should be aware of: First, Soft Updates guarantees filesystem consistency in the case of a crash but could very easily be several seconds (even a minute!) behind updating the physical disk. If your system crashes you may lose more work than otherwise. Secondly, Soft Updates delays the freeing of filesystem blocks. If you have a filesystem (such as the root filesystem) which is almost full, performing a major update, such as make installworld, can cause the filesystem to run out of space and the update to fail.&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;span style="font-family: inherit; font-size: small;"&gt;In VirtualBox: select the FreeBSD VM, in the right panel click on Hard Disks. Remove (detach) the IDE Primary Master attachment; set the new disk, which is currently a Primary Slave, to Primary Master. Click OK. This does not delete the old virtual hard disk file; it merely detaches it from the virtual machine. It's the equivalent of unplugging the old disk from a hardware machine and setting the new disk to IDE Master with a jumper or cable select.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;br /&gt;
Reboot your FreeBSD, log in as root, and do a "&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;df&lt;/span&gt;" to verify that all your partitions are there with the expected sizes.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #cccccc;"&gt;Something went wrong, because the /tmp and /home are the same sizes as on the old drive. I'll have to investigate why.&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Special case: use '&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;dd' &lt;/span&gt;to copy the whole disk then enlarge the last filesystem on the new disk&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
(&lt;b style="background-color: #cccccc;"&gt;draft procedure, not yet tested&lt;/b&gt;&lt;span style="background-color: #cccccc;"&gt;!&lt;/span&gt;)&lt;br /&gt;
&lt;br /&gt;
Copy the whole old slice to the new one:&lt;/div&gt;
&lt;span style="background-color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;dd if=/dev/ad0s1 conv=notrunc,noerror,sync bs=64k | dd of=/dev/ad1s1 bs=64k&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
Relabel the c partition and the last partition (g, =/home) to the new size:&lt;/div&gt;
&lt;div style="background-color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
&lt;div style="background-color: white;"&gt;
&lt;span style="font-size: small;"&gt;bsdlabel -e /dev/ad1s1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
Extend the last partition's file system to use the new empty space:&lt;/div&gt;
&lt;div style="background-color: white; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
&lt;span style="background-color: white; font-size: small;"&gt;growfs -s &lt;/span&gt;&lt;newsize&gt;&lt;span style="background-color: white; font-size: small;"&gt; /dev/ad1s1g &lt;/span&gt;&lt;span style="background-color: white; font-size: small;"&gt;&lt;i&gt;&lt;span style="font-family: inherit;"&gt;newsize&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/newsize&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;i&gt;newsize&lt;/i&gt; is the total size of the slice, minus the offset of the g partition, as displayed in bsdlabel.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;References&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
"How to move FreeBSD to a new hard disk", at http://lantech.geekvenue.net/chucktips/jason/chuck/1004897633/index_html. Reproduced at http://www.unixcities.com/howto/index.html. Date unknown.&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
FreeBSD manual pages.&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;/div&gt;
&lt;div style="background-color: white; font-family: inherit;"&gt;
&lt;i&gt;The FreeBSD Handbook&lt;/i&gt;, &lt;i&gt;at http://www.freebsd.org/&lt;/i&gt;&lt;span style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Change log&lt;/b&gt;&lt;br /&gt;
2009-09-26: major rewrite, splitting into three cases: generic procedure, and two special cases.&lt;br /&gt;
2009-09-29 Added: Introduction; corrected and tested the optimized procedure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-5258198029890073437?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/5258198029890073437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=5258198029890073437' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/5258198029890073437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/5258198029890073437'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/09/virtualbox-how-to-move-freebsd-to-new.html' title='Move FreeBSD to new hard disk ☆VirtualBox edition☆'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_bUm-fFi1XSM/SsKMyBE4-PI/AAAAAAAAACE/Ybhz95y_Aqg/s72-c/sysinstall-disklabel.GIF' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-4493459268135825496</id><published>2009-09-04T20:57:00.012+02:00</published><updated>2009-12-21T21:35:29.036+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Japanese input'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft IME'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><title type='text'>Windows Japanese IME and azerty keyboard</title><content type='html'>&lt;span style="font-weight: bold;"&gt;DISCLAIMER&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The procedures hereunder work for azerty keyboards, specifically French and Belgian azerty. The procedures have not been tested with other keyboards, and are likely to not work with other keyboards. The Windows XP procedure&amp;nbsp;has actually been reported to not work for a Dvorak keyboard.&amp;nbsp;If you find it doesn't work with your keyboard, I will not be able to give you any more information, because&amp;nbsp;everything I know is already written here.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Procedure for Windows XP&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Start the registry editor (regedit);&lt;br /&gt;
&lt;br /&gt;
At HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\KeyboardLayouts\E0010411&lt;br /&gt;
modify the value of "Layout File": change it from "kbdjpn.dll"&amp;nbsp;to&amp;nbsp;e.g. "kbdbe.dll",&amp;nbsp;"kbdfr.dll", etc.&lt;br /&gt;
&lt;br /&gt;
(Use the correct DLL file name that is appropriate for your keyboard; see the KBDxxx.DLL files &amp;nbsp;in Windows\System32.)&lt;br /&gt;
&lt;br /&gt;
Restart Windows&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Procedure for Windows 7&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Edit the registry key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\KeyboardLayouts\00000411.&lt;br /&gt;
Modify the value of "LayoutFile" from "KBDJPN.DLL" to e.g. "KBDBE.DLL".&lt;br /&gt;
&lt;br /&gt;
(Use the correct DLL file name that is appropriate for your keyboard; see the KBDxxx.DLL files in Windows\System32.)&lt;br /&gt;
&lt;br /&gt;
Restart Windows&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Some explanation (for Windows XP)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: black;"&gt;&lt;span class="Literal"&gt;In HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layouts, e&lt;/span&gt;ach subkey specifies a keyboard layout. The subkeys can have the following formats:&lt;br /&gt;
&lt;/div&gt;&lt;ul style="color: black;"&gt;&lt;li&gt;&lt;span class="Literal"&gt;0x000&lt;span class="Param"&gt;xxxxx&lt;/span&gt;&lt;/span&gt;: normal keyboard layout; &lt;span class="Param"&gt;xxxxx&lt;/span&gt; indicates Language ID. &lt;/li&gt;
&lt;li&gt;&lt;span class="Literal"&gt;0x0&lt;span class="Param"&gt;xx&lt;/span&gt;&lt;span class="Param"&gt;yyyyy&lt;/span&gt;&lt;/span&gt;: substitute keyboard layout; &lt;span class="Param"&gt;yyyyy&lt;/span&gt; indicates Language ID; &lt;span class="Literal"&gt;xx&lt;/span&gt; indicates layout # — not the same as layout id. &lt;/li&gt;
&lt;li&gt;&lt;span class="Literal" style="color: red;"&gt;0xE&lt;span class="Param"&gt;xx&lt;/span&gt;&lt;span class="Param"&gt;xyyyy&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;: IME; &lt;/span&gt;&lt;span class="Param" style="color: red;"&gt;xxx&lt;/span&gt;&lt;span style="color: red;"&gt; indicates IME #, &lt;/span&gt;&lt;span style="color: red;"&gt;yyyy&lt;/span&gt;&lt;span style="color: red;"&gt; indicates language ID.&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span class="Literal"&gt;0xD&lt;span class="Param"&gt;xx&lt;/span&gt;&lt;span class="Param"&gt;yyyyy&lt;/span&gt;&lt;/span&gt;: [NT] alternate keyboard layout; where multiple keyboard layouts are installed for a single language — &lt;span class="Param"&gt;xx&lt;/span&gt; is a incrementing number, &lt;span class="Param"&gt;yyyyy&lt;/span&gt; is the language ID.&lt;/li&gt;
&lt;/ul&gt;&lt;span style="color: black;"&gt;What interests us here is the 0xE... subkey for the first IME (001) for language 0411 (Japanese), hence 0x0010411. This specifies the keyboard layout to be used by the the Japanese IME.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: black;"&gt;By default, it is a japanese keyboard layout (but actually it's really a qwerty layout), even if you have an azerty keyboard.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Further reading&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.microsoft.com/globaldev/getWR/steps/WRG_kybrd.mspx"&gt;http://www.microsoft.com/globaldev/getWR/steps/WRG_kybrd.mspx&lt;/a&gt;&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-4493459268135825496?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/4493459268135825496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=4493459268135825496' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/4493459268135825496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/4493459268135825496'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/09/windows-japanese-ime-and-azerty.html' title='Windows Japanese IME and azerty keyboard'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-4981528682845112456</id><published>2009-09-04T20:57:00.001+02:00</published><updated>2009-09-04T21:06:33.905+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Pretty printing'/><title type='text'>How to pretty-print a UNIX man page</title><content type='html'>man &lt;span style="font-style: italic;"&gt;&lt;cmd&gt;&lt;/cmd&gt;&lt;/span&gt; | a2ps --medium=A4 | psnup -pa4 -m10mm | lpr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-4981528682845112456?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/4981528682845112456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=4981528682845112456' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/4981528682845112456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/4981528682845112456'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/09/how-to-pretty-print-unix-man-page.html' title='How to pretty-print a UNIX man page'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-9052100879333763926</id><published>2009-09-04T20:55:00.001+02:00</published><updated>2009-09-04T21:06:25.959+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><title type='text'>How to restore the FreeBSD boot manager killed by a Windows reinstallation</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://microhowtos.blogspot.com/2008/11/how-to-restore-freebsd-boot-manager.html"&gt;&lt;/a&gt; &lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Boot from the FreeBSD livefs CD&lt;/li&gt;
&lt;li&gt;Go to "fixit" mode&lt;/li&gt;
&lt;li&gt;At the shell prompt (fixit#), enter this command:&lt;br /&gt;
&lt;span style="font-family: courier new;"&gt;fdisk -B -b /boot/boot0&lt;/span&gt; &lt;span style="font-style: italic;"&gt;bootdevice&lt;/span&gt;&lt;br /&gt;
where &lt;span style="font-style: italic;"&gt;bootdevice&lt;/span&gt; is e.g. ad0, ad1, ar0, etc.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-9052100879333763926?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/9052100879333763926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=9052100879333763926' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/9052100879333763926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/9052100879333763926'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/09/how-to-restore-freebsd-boot-manager.html' title='How to restore the FreeBSD boot manager killed by a Windows reinstallation'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1121034922394057622.post-2215137198175190005</id><published>2009-09-04T20:54:00.001+02:00</published><updated>2012-01-06T21:32:26.886+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='VirtualBox'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><title type='text'>FreeBSD 7 on VirtualBox on Windows XP</title><content type='html'>&lt;span style="font-style: italic;"&gt;Note: this post is on-going work. I'll refine it and complete it as time allows.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Change log&lt;/b&gt;&lt;br /&gt;
Significant changes from the last version of this article are &lt;span style="background-color: #fff2cc;"&gt;highlighted&lt;/span&gt; in the text.&lt;br /&gt;
2009-09-26: added listing of xorg.conf in appendix (See "Appendices" below).&lt;br /&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;div style="background-color: white;"&gt;
2011-10-07: updated for VirtuaBox 4&lt;/div&gt;
2012-01-06: Updated with more detail&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;My platform&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Hardware: Gigabyte motherboard, Intel Core2 Duo 3GHz CPU, 2GB DDR3 RAM, onboard RAID controller (Intel MatrixRaid), Radeon HD 4870 graphics card.&lt;/li&gt;
&lt;li&gt;Software: Windows XP Home Edition SP3; Sun VirtualBox 2.0.4.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;span style="font-weight: bold;"&gt;VirtualBox setup for FreeBSD guest O.S.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Create a virtual machine of type "FreeBSD". Here are my settings:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;u&gt;System&lt;/u&gt;:&lt;/div&gt;
&lt;ul style="background-color: #fff2cc;"&gt;
&lt;li&gt;Base memory: 512 MB &lt;/li&gt;
&lt;li&gt;Motherboard=PIIX3; Extented features: none (,ote: IOAPIC can be enbabled or disabled, both work)&lt;/li&gt;
&lt;li&gt;Processor: 1 CPU; Enable PAE/NX: no&lt;/li&gt;
&lt;li&gt;Acceleration: Hardware virtualisation (VT-X/AMD-V): no&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;u&gt;Display&lt;/u&gt;:&lt;/div&gt;
&lt;ul style="background-color: #fff2cc;"&gt;
&lt;li&gt;Video memory: 64MB;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;no 2D or 3D acceleration (doesn't mean it won't work; I just chose not to try it so I don't know if it works or not)&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;u&gt;Storage&lt;/u&gt;:&lt;/div&gt;
&lt;ul style="background-color: #fff2cc;"&gt;
&lt;li&gt;IDE controller, type PIIX4&lt;/li&gt;
&lt;li&gt;Disk size: 32 GB &lt;/li&gt;
&lt;li&gt;Use host I/O cache: yes &lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;u&gt;Network (Adapter 1)&lt;/u&gt;:&lt;/div&gt;
&lt;ul style="background-color: #fff2cc;"&gt;
&lt;li&gt;Enable network adapter: yes.&lt;/li&gt;
&lt;li&gt;Attached to: Bridged adapter. You can use NAT, too, but I used Bridged to make it easier to use FreeBSD as a Samba server for sharing files with the Windows host.&lt;/li&gt;
&lt;li&gt;Name: Realtek RTL8139/810x Family Fast Ethernet NIC. This is the actual hardware on my PC motherboard.&lt;/li&gt;
&lt;li&gt;(Advanced) Adapter Type: &lt;span style="background-color: #b6d7a8;"&gt;PCnet-PCI II (Am79C970A)&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;Cable connected: yes.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
With the VirtualBox software not running, open a DOS box.&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
cd to the VirtualBox software folder (where VBoxManage.exe is).&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
enter the following command (with the actual name you gave to your FreeBSD VM instead of "vmname"):&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
&lt;span style="font-family: courier new;"&gt;
VBoxManage modifyvm &lt;span style="font-style: italic;"&gt;vmname&lt;/span&gt; --nictype1 &lt;span style="background-color: #b6d7a8;"&gt;Am79C970A&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
&lt;span style="font-family: courier new;"&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
This
 is necessary as a workaround because currently, FreeBSD seems to have a
 problem using the VirtualBox network controller emulation. Without this
 fix, the virtual DHCP won't work.&lt;/div&gt;
&lt;div style="background-color: #fff2cc; text-align: left;"&gt;
(Reference: Frank Mehnert, Sun Microsystems, at http://forums.virtualbox.org/viewtopic.php?t=4352).&lt;/div&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;span style="background-color: yellow;"&gt;Well, this workaround was necessary for VirtualBox v2. I'm not sure it's still necessary today&lt;/span&gt;&lt;u&gt;.&lt;/u&gt;&lt;/div&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="background-color: #fff2cc;"&gt;
&lt;u&gt;USB&lt;/u&gt;:&lt;/div&gt;
&lt;ul style="background-color: #fff2cc;"&gt;
&lt;li&gt; Enable USB Controller: yes (not USB2)&lt;/li&gt;
&lt;/ul&gt;
In the Settings of the FreeBSD virtual machine, in the USB panel, add an empty filter. This will make any USB device on your PC visible to the virtual machine. This is in effect a wildcard. If you want to hide some devices, you have to specify a non-empty filter; read the VirtualBox user manual.&lt;br /&gt;
If you connect a USB hard disk, it is detected as a "VirtualBox USB" device by Windows XP, which makes it search for and install the driver. When prompted, say yes . Now, I advise you take a minute to read the one page about USB devices in the VirtualBox user manual.&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Install FreeBSD on the virtual machine&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I installed from the FreeBSD ISO images mounted as virtual CD-ROMs in VirtualBox.&lt;br /&gt;
My recommended virtual hard disk partitioning (device is ar0 here because of the RAID, can also be ad0), using all the available virtual HD space for the FreeBSD slice:&lt;br /&gt;
&lt;br /&gt;
ar1s2a, mounted on /, size 1 GB&lt;br /&gt;
ar1s2b, swap, 2 GB&lt;br /&gt;
ar1s2d, mounted on /var, size 1 GB&lt;br /&gt;
ar1s2e, mounted on /tmp, size 1 GB&lt;br /&gt;
ar1s2f, mounted on /usr, size 4 GB&lt;br /&gt;
ar1s2g, mounted on /home, uses all the remaining space.&lt;br /&gt;
&lt;br /&gt;
Install a standard MBR.&lt;br /&gt;
Install the software: X-Kern-Developer + ports.&lt;br /&gt;
Network: configure using DHCP (the network adapter should appear as device le0).&lt;br /&gt;
Set clock to local time.&lt;br /&gt;
Install Linux binary compatibility.&lt;br /&gt;
Mouse: yes; enable (the pointer should appear and you should be able to move it around); exit.&lt;br /&gt;
Additional software packages: sudo, portupgrade, archivers (zip, unzip, gtar), kde-lite-3.5.10, apsfilter, firefox-2.0, a few other optional tools (gv, xv, cdrdao, cdrtools, cdparanoia).&lt;br /&gt;
Use accounts: create group "users"; in that group, create at least a user account for yourself (use a strong password).&lt;br /&gt;
Set the root password (use a strong password).&lt;br /&gt;
Note: a password can be considered strong if it is a random 8-character mix of uppercase and lowercase letters, numbers, and punctuation symbols. There are other definitions of what can be considered a strong password, but this definition makes it pretty secure unless you put a sticky note with the password under you keyboard. ;)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Networking&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Be careful that the device name of the network adapter as seen by the FreeBSD kernel changes depending on the &lt;span style="background-color: #b6d7a8;"&gt;type&lt;/span&gt; specified in VirtualBox (see hereabove);
 it could be le0 or pcn0, for example. This has to be consistent with 
what's written in /etc/rc.conf. To determine the device name of your 
FreeBSD network adapter, go to the main console (Alt+F1), press Scroll 
Lock, then scroll the screen to where you see the hardware detection 
messages. You should see the detection of the network interface (le0 or 
eth0 or pcn0 etc.).&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Configure X&lt;/span&gt;&lt;br /&gt;
(Note: " #" is the root prompt)&lt;br /&gt;
#xorgconfig&lt;br /&gt;
Mouse: auto&lt;br /&gt;
Keyboard: e.g. generic 105-key (Intl) PC&lt;br /&gt;
Monitor refresh rates: for my flatscreen I choose the option of a monitor that can do 1280x1024@60Hz; vertical range unknown =&amp;gt; 50-70 (60Hz falls in that range, but not sure it's relevant).&lt;br /&gt;
Video card: 0 (zero) - Generic VESA compatible, memory=64MB (use the same amount of RAM as specified in VirtualBox for the virtual VGA card).&lt;br /&gt;
&lt;br /&gt;
#startx&lt;br /&gt;
This should work, starting up the X server and the twm window manager and a few shell windows. It's very basic (yet served well in the past :) but proves that X has been correctly configured. Exit X (using menu of root window i.e. of backgroound; alternative: abruptly kill the X server using the Control-Alt-Backspace key combination).&lt;br /&gt;
&lt;br /&gt;
To see my working X config file, see the appendix at the bottom of this article. &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Configure KDE&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-style: italic;"&gt;Note: The following uses root as an example, but the same should be done for the ordinary users as well.&lt;/span&gt;&lt;br /&gt;
Edit the file .xinitrc, and at the bottom, after any variable settings, add &lt;span style="font-family: courier new;"&gt;startkde&lt;/span&gt; so that KDE is started when the startx command is invoked.&lt;br /&gt;
Do a "startx"; KDE should now start up.&lt;br /&gt;
Execute kpersonalizer (e.g. via Control-F2 or using a Konsole). After setting the basic options of KDE, at the end of the wizard, do launch the KDE Control Center (CC). It can also be launched separately later, whenever necessary, to adjust the KDE config.&lt;br /&gt;
If you have a non-US keyboard: in KDE CC, go in Regional &amp;amp; Access / Keyboard Layout, and add your keyboard layout (e.g. BE or FR or CZ or whatever your keyboard is) and remove the US layout. Set the keyboard to e.g. "105-key (Intl) PC" or whatever your hardware keyboard is.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Japanese language support&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I wrote a separate blog article on the subject of Japanese language display, input, printing, etc. Please read that one if needed.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style="font-weight: bold;"&gt;Coming up next (to be written)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Set up email&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Set up the firewall&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Set up printing&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Set up CD/DVD writing&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Set up backup system&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Set up sound&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Allow ordinary users to (un)mount removable storage (CDs, DVDs, USB devices, etc.)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Set up a nice shell environment with colours and command history&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Etc.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;b&gt;Appendices&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;My X config file (/etc/X11/xorg.conf) - added on 2009-09-26 &lt;/b&gt;&lt;br /&gt;
# File generated by xorgconfig.&lt;br /&gt;
&lt;br /&gt;
Section "Module"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dbe"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Double buffer extension&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SubSection&amp;nbsp; "extmod"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Option&amp;nbsp;&amp;nbsp;&amp;nbsp; "omit xfree86-dga"&amp;nbsp;&amp;nbsp; # don't initialise the DGA extension&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; EndSubSection&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "freetype"&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section "Files"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontPath&amp;nbsp;&amp;nbsp; "/usr/local/lib/X11/fonts/misc/"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontPath&amp;nbsp;&amp;nbsp; "/usr/local/lib/X11/fonts/TTF/"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontPath&amp;nbsp;&amp;nbsp; "/usr/local/lib/X11/fonts/OTF"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontPath&amp;nbsp;&amp;nbsp; "/usr/local/lib/X11/fonts/Type1/"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontPath&amp;nbsp;&amp;nbsp; "/usr/local/lib/X11/fonts/100dpi/"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontPath&amp;nbsp;&amp;nbsp; "/usr/local/lib/X11/fonts/75dpi/"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontPath&amp;nbsp;&amp;nbsp; "/usr/local/lib/X11/fonts/local/"&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section "ServerFlags"&lt;br /&gt;
# empty&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section "InputDevice"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifier&amp;nbsp;&amp;nbsp;&amp;nbsp; "Keyboard1"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Driver&amp;nbsp;&amp;nbsp;&amp;nbsp; "kbd"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;    Option "AutoRepeat" "500 30"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Option "XkbRules"    "xorg"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Option "XkbModel"    "pc105"&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Option "XkbLayout"    "be"&lt;br /&gt;
EndSection&lt;br /&gt;
Section "InputDevice"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifier&amp;nbsp;&amp;nbsp;&amp;nbsp; "Mouse1"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Driver&amp;nbsp;&amp;nbsp;&amp;nbsp; "mouse"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Option "Protocol"&amp;nbsp;&amp;nbsp;&amp;nbsp; "Auto"&amp;nbsp;&amp;nbsp;&amp;nbsp; # Auto detect&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Option "Device"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "/dev/sysmouse"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Option "ZAxisMapping"&amp;nbsp;&amp;nbsp; "4 5 6 7"&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section "Monitor"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;   Identifier "VirtualBoxMonitor"&lt;br /&gt;
&amp;nbsp;&amp;nbsp; HorizSync 31.5 - 64.3&lt;br /&gt;
&amp;nbsp;&amp;nbsp; VertRefresh 50-70&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section "Device"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifier&amp;nbsp;&amp;nbsp;&amp;nbsp; "Standard VGA"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; VendorName&amp;nbsp;&amp;nbsp;&amp;nbsp; "Unknown"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;    BoardName    "Unknown"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Driver     "vga"&lt;br /&gt;
EndSection&lt;br /&gt;
# Device configured by xorgconfig:&lt;br /&gt;
&lt;br /&gt;
Section "Device"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;    Identifier  "VirtualBoxVideo"&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Driver      "vesa"&lt;br /&gt;
&amp;nbsp;&amp;nbsp; #VideoRam    65536&lt;br /&gt;
&amp;nbsp;&amp;nbsp; # Insert Clocks lines here if appropriate&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section "Screen"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;    Identifier  "Screen 1"&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Device      "VirtualBoxVideo"&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Monitor     "VirtualBoxMonitor"&lt;br /&gt;
&amp;nbsp;&amp;nbsp; DefaultDepth 24&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Subsection "Display"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Depth       8&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Modes       "1280x1024" "1024x768" "800x600" "640x480"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewPort    0 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; EndSubsection&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;    Subsection "Display"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Depth       16&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Modes       "1280x1024" "1024x768" "800x600" "640x480"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewPort    0 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp; EndSubsection&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Subsection "Display"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Depth       24&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Modes       "1280x1024" "1024x768" "800x600" "640x480"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewPort    0 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp; EndSubsection&lt;br /&gt;
&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section "ServerLayout"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifier&amp;nbsp; "Simple Layout"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Screen "Screen 1"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; InputDevice "Mouse1" "CorePointer"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; InputDevice "Keyboard1" "CoreKeyboard"&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-color: white;"&gt;
&lt;span style="font-weight: bold;"&gt;VirtualBox upgrade from 2.0(.6) to 4.0.8 : success!&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white;"&gt;
[Written on 2011-10-07]&lt;/div&gt;
Sometime in the spring or summer of 2011, I noticed that VirtualBox had had two new major versions since my last installation (and that Sun had been bought by Oracle). I decided to give it a try. Not that I needed any new feature; I just preferred to not have a too obsolete version. I made a copy of the VirtualBox data files (i.e. of my FreeBSD 7 virtual machine and the configuration files), downloaded the latest version of VirtualBox (4.0.8), and simply installed it over the existing one. Then I started the new VirtualBox, and my FreeBSD 7 virtual machine was still there and was still working. So this major upgrade works and is really trivial to do. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1121034922394057622-2215137198175190005?l=georgesfocant.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesfocant.blogspot.com/feeds/2215137198175190005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1121034922394057622&amp;postID=2215137198175190005' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/2215137198175190005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1121034922394057622/posts/default/2215137198175190005'/><link rel='alternate' type='text/html' href='http://georgesfocant.blogspot.com/2009/09/freebsd-7-guest-on-virtualbox-204-on.html' title='FreeBSD 7 on VirtualBox on Windows XP'/><author><name>Georges</name><uri>http://www.blogger.com/profile/06483906673882770755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_bUm-fFi1XSM/Sy_biJtP7uI/AAAAAAAAAHM/4Bc7nIr77lI/S220/Japan_2007_1216_103059-closeup.jpg'/></author><thr:total>2</thr:total></entry></feed>
