从VirtualBox 2.1.0 开始支持直接从客户机来实现Host interface功能。只需要在rc.conf中 的MODULES中加入 vboxnetflt 之后在你虚拟机设置中选择Host Interface Networking。
测试方法:
modprobe vboxnetflt
设置->网络-》连接方式 : Host Interface
启动虚拟机
如果OK,在/etc/rc.conf 中加入 vboxnetflt 模块,重启计算机即可。
2009年5月25日星期一
LINUX:ARCHLINUX Virtualbox 如何用 host interface
2009年5月18日星期一
LINUX:ARCHLINUX How to access mysql remotely
如何开启mysql 的侦听允许远程访问?
1.请在/etc/hosts.allow 添加以下行:
mysqld : ALL : ALLOW mysqld-max : ALL : ALLOW 2.需要编辑/etc/my.cnf把skip-networking注释掉: #skip-networking You can get the "error no. 2013: Lost Connection to mysql server during query" message instantly whenever you try to connect to the MySQL daemon by TCP/IP. This is the TCP wrappers system (tcpd), which uses thehosts_access(5)system to allow or disallow connections. # Don't listen on a TCP/IP port at all. This can be a security enhancement, # if all processes that need to connect to mysqld run on the same host. # All interaction with mysqld must be made via Unix sockets or named pipes. # Note that using this option without enabling named pipes on Windows # (via the "enable-named-pipe" option) will render mysqld useless!
2009年4月12日星期日
LINUX:ARCHLINUX java 界面乱码
Java:
java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5pre) (ArchLinux-1.5-0.1-i686)
OpenJDK Server VM (build 14.0-b10, mixed mode)
solution:
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/fonts
sudo mkdir fallback
cd fallback
sudo cp /usr/share/fonts/truetype/arphic/uming.ttc
/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/fonts/fallback
sudo mkfontdir
sudo mkfontscale
2009年4月5日星期日
ISSUE:HP-UX vgdisplay error: Couldn't query volume group "vg00"
Issue:
# vgdisplay -v /dev/vg00
vgdisplay: Couldn't query volume group "/dev/vg00".
Possible error in the Volume Group minor number; Please check and make
sure the group minor number is unique.
vgdisplay: Cannot display volume group "/dev/vg00".
Debug:
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 Sep 27 2006 /dev/vg00/group
cr--r--r-- 1 root sys 64 0x010000 Oct 11 2006 /dev/vg01/group
crw-r--r-- 1 root sys 64 0x020000 Mar 4 11:00 /dev/vg02/group
# ll /dev/slvmg
/dev/slvmg not found
# cd /dev
# find . -exec ll {} \; | grep 0x000000 | grep 64
crw-r----- 1 root sys 64 0x000000 Sep 27 2006 group
crw-r----- 1 root sys 64 0x000000 Sep 27 2006 ./vg00/group
Fixed:
# mv /etc/lvmtab /etc/lvmtab.save
# vgscan -v
# vgchange -a y vg00
# vgdisplay vg00
Relink Doc:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=248847
key words:ULVMKBRC00008020
2009年4月4日星期六
电信商务领航定制终端 大亚 DB120-B1 配置方法
公司的技术员说无法自动拨号上网,所以没用。那好,我就看看,电信这会是黄鼠狼还是喜羊羊。
回家,接上自己家的ADSL,开始操作。
按说明书,一步一步的做
1.设置自己PC的IP为 192.168.1.2
2.用配的交叉线连路由的LAN1
3.输入 http://192.168.1.1
(如果不行,试试https://192.168.1.1)
username : telecomadmin
password: nE7jA%5m
4.网络-宽带设置
连接名称: 新建一个连接
连接模式:Route
选 pppoE
NAT : YES
VPI:8
VCI:35
服务类别:UBR WITHOUT PCR
启用VLAN: NO
VLAN ID:
封装:LLC/SNAP-BRIDGING
用户名:电信账户
密码:电信密码
服务名称:CHINATELLECOM
启用802.1优先级:YES
端口绑定:仅INTERNET
端口全选
然后设置WLAN和DHCP,这些不详说,
设置后,一定要到 管理-设备管理-保存/重启 ,设置才会生效。
重启后,看看 状态-网络侧信息
如果出现
| 8/35 | Off | PPPoE | Up | 219.137.210.254 |
没有出现?也不用灰心,因为你和笔者不在同一个城市,GOOGLE一下你城市的VPI和VCI吧。我的技术员也就是填错了这里。
2009年4月2日星期四
LINUX:CENTOS How to modify Ip address
[oracle@server-centos01 ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server-centos01
GATEWAY=192.168.0.3
[oracle@server-centos01 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:22:19:B0:9D:E6
ONBOOT=no
TYPE=Ethernet
DHCP_HOSTNAME=server-centos01
[oracle@server-centos01 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:22:19:B0:9D:E8
IPADDR=192.168.0.22
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
LINUX:CENTOS How to setup openvnc
It is very simple to config openvnc to work.
Step 1:
login with your account like myname
run vncserver
input your password
Step 2:
vi ~/.vnc/xstartup
remove with # mark
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
add this line to enable use gnome to show x window in vnc client
gnome-session &
Step3:
vi /etc/sysconfig/vncservers
add these lines,notice that [youname] is your account name
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERS="1:youname"
Step 4:start service
sudo /sbin/service vncserver restart
Step 5:login with browser
in client PC,open your brower with

