最近在ubuntu下搭建了一个bochs虚拟机。具体步骤如下:÷
1.查看ubuntu版本
cat /etc/issue
lsb_release -a
2.设置root密码
安装完毕后没有root密码, sudo passwd root
3.设置网卡
vim /etc/network/interfaces
auto eth0
iface th0 inet static
address 192.168.0.11
netmask 255.255.255.0
gateway 192.168.0.1
ifconfig eth0 up
ifconfig eth0 down
/etc/network/networking restart
4.配置ssh
dpkg -i openssh-server
netstat -an|grep ssh
修改/etc/ssh/ssh_config 中
port PermitRootLogin
5.配置samba
dpkg -i smaba
vim /etc/samba/smb.conf
[share]
path = /home/test /share
availabel = yes
browseable = yes
public = yes
writeable = yes
6.配置 vnc
7新增samba用户
useradd test
passwd test
smbpasswd -a test
8.安装bochs
tar -zvxf bochs-2.3.7.tar.gz
cd bochs-2.3.4
./configure --prefix=/bochs --enable-debugger(可以调试) --enable-disasm
第一个编译错误: 有关hash_map的,修改bx_debug/symbols.cc,在using namespace std;语句后面添加 using namespace __gnu_cxx;
阅读(919) | 评论(0) | 转发(0) |