TinyCore 使用VirtualBox虚拟机安装TinyCore4.6.2.pdf
文本预览下载声明
TinyCore 使用VirtualBox虚拟机安装TinyCore4.6.2
TinyCore 使用VirtualBox虚拟机安装TinyCore4.6.2
可以参照 ttp:///tinycorelinux/ install. tml
1、创建
内存 :512M
操作系统 :Linux
版本 :Linux 2.6
网卡 :仅使用Adapter 1 ,连接方式 NAT (这个方式可以自动连接网络 )
虚拟磁盘 :
磁盘类型 :vmdk
动态分配
64GB (更大也没关系 ,实际占用硬盘根据内容 自动增长 ,起初非常小。实际硬盘空间小于64GB也没关系 )
2、设置
Storage :IDE控制器中的光盘里没有 内容 ,添加TinyCore的ISO文件作为虚拟光盘
其他都按默认
3、安装
打开一个终端
输入 ping (确认网络是否通 )
输入 ab tc-install
显示搜索结果
输入 1
按 q键推出信息画面
按 i键开始安装
按 q键退出
输入 tc-install
显示安装画面
选择 W ole Disk - sda下一步
选ext4 下一步
点击 Proceed。安装开始
安装完成。关机。 (再开机之前需要把虚拟光盘取出 ,所以用s utdow n ,不用reboot )
设置虚拟机
Storage中将虚拟光驱取出
网卡1设置为Host-only ,网卡2设置为NAT
开机
打开一个终端
输入 ifconfig
确认两个网卡都已经正确启用
使用命令ll /opt/ 确认/opt/ 下当前的文件
启用控制面板 (ControlPanel )
通过控制面板启动网络设置 ,并根据当前网络地址设置et 0
设置后使用命令ll /opt/ 确认/opt/ 下当前的文件 ,注意增加的et 0.s
设置et 1为DHCP自动获取IP
设置后使用命令ll /opt/ 确认/opt/ 下当前的文件,注意增加的eth1.sh
注意以下几个文件
最后更新的两个文件是/opt/ bootlocal.s 和/opt/.filetool.lst
/opt/bootlocal.sh用于系统启动后自动运行的命令
Backup
/opt/ .filetool.lst 用于设 永久保存的文件或者文件夹
If you use backup as well as persistent home and opt, edit /opt/ .filetool.lst, delete all references to the home and opt
directories (in the version I am using that is everything), then add a list of files and directories you want backed up to
/opt/ .filetool.lst.
备份可以用来持久化文件和设置
编辑 /opt/ .filetool.lst,将想要持久保持的文件写在这个文件中。
*注意:文件名最前面的斜杠不要写。
例如:
保存用户密码,要保存的文件为 /etc/shadow,则写为etc/shadow。
cat /opt/ .filetool.lst
opt
etc
home
opt/eth1.sh
opt/eth0.sh
usr/local/etc
由于之前设 了两个网卡,并保存了设置,因此这两个个文件被更新,以保存网卡的设置文件并在开机时自动执行
cat eth .sh
#!/bin/sh
pkill udhcpc
ifconfig eth 1 netmask 255.255.255. broadcast 55 up
route add default gw 54
echo nameserver /etc/resolv .conf
cat eth1.sh
#!/bin/sh
pkill udhcpc
udhcpc -b -i eth1 -h box -p /var/run/udhcpc.eth .pid
显示全部