linux桌面可用性依然不行, 而命令行十分强大
所以需要把windows的桌面和linux的命令行结合
类似cygwin的posix兼容层bug多且速度慢
虚拟机成了更好的选择, 开源的virtualbox不错
纯命令行的centos-minimal
在kvm模式下, 内存占用不到40M
[attach]10167[/attach]
centos-7-minimal下载: http://mirrors.aliyun.com/centos ... 64-Minimal-1511.iso
bios/uefi 中开启VT, virtualbox中新建虚拟机centos
network改成bridged adapter, 其他默认即可
安装centos, 开启网络, 设置ip, 设置root密码
装完后保存snapshot, 以headless方式启动virtualbox
putty下载: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
改几处设置:
remote charater set 改为utf-8
the function keys and keypad 改为linux
terminal-type string 改为linux
最后ssh进去root登录
配置源: http://mirrors.aliyun.com/help/centos
smb/cifs文件共享:
windows物理机:
Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings
开启network discovery和file and printer sharing
开启guest账户, 自行设置密码$PASSWORD, 新建文件夹cifs, 右键share with添加guest
然后在虚拟机里挂载:- yum -y install cifs-utils
- cd
- mkdir cifs
- vi /etc/fstab
- # 添加物理机共享路径和虚拟机挂载点
- //192.168.1.2/cifs /root/cifs cifs pass=$PASSWORD 0 0
- mount -a
复制代码
|