VMware7.1.5 build-491717/Windows7上でFreeBSD9-STABLEを動かすときの設定に関するメモ

Xを入れない設定

TODO

Windows7の共有ファイルのmount

mount -t vmhgfs .host:/cygwin /mnt

とりあえず入れるべきportsと管理方法

First, you need to copy from /usr/share/examples/cvsup/ports-supfile and replare "*default host=CHANGE_THIS.FreeBSD.org" with "*default host=cvsup.jp.FreeBSD.org".

設定ファイル

/etc/rc.conf

# -- sysinstall generated deltas -- # Wed Sep 21 05:56:41 2011
# Created: Wed Sep 21 05:56:41 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="XXXXXXX.localdomain"
ifconfig_em0="DHCP"
keymap="jp.106"
sshd_enable="YES"
vmware_guest_vmblock_enable="YES"
vmware_guest_vmhgfs_enable="YES"
vmware_guest_vmmemctl_enable="YES"
vmware_guest_vmxnet_enable="YES"
vmware_guestd_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

/etc/ttysの一部

# If console is marked "insecure", then init will ask for the root password
# when going to single-user mode.
console none unknown off secure
#
ttyv0 "/usr/libexec/getty Pc" cons25 on secure
# Virtual terminals
ttyv1 "/usr/libexec/getty Pc" cons25 off secure
ttyv2 "/usr/libexec/getty Pc" cons25 off secure
ttyv3 "/usr/libexec/getty Pc" cons25 off secure
ttyv4 "/usr/libexec/getty Pc" cons25 off secure
ttyv5 "/usr/libexec/getty Pc" cons25 off secure
ttyv6 "/usr/libexec/getty Pc" cons25 off secure
ttyv7 "/usr/libexec/getty Pc" cons25 off secure
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
# Serial terminals

VMware6/Windows XP上でFreeBSD7-STABLEを動かすときの設定に関するメモ

マウスの設定

x11-drivers/xf86-input-vmmouseをインストール(参照URL

時刻がホストとずれるのを修正

kern.hz=100/boot/loader.confに追加(参照URL

ホストとのファイル共有

mount_smbfsを使ったマウント

最も簡単な方法は、ホスト側で共有フォルダを作り(以下、C:\shareがそうであると仮定する)、 FreeBSD側から
mount_smbfs -E euc-jp:cp932 -N //user_name@machine_name/share /mnt
とマウントしてやることである。ただし、この場合C:\shareは同一LAN内他ユーザーからアクセス可能なので、注意すること (参照URL)。

WinSCPによるログイン

Windowsホスト側PCがLANにつながっていると仮定すれば、sshクライアントを用いてFreeBSDにsecure loginが可能である。

Xの設定例

xorg.confの一例

20100320