参考:http://blog.csdn.net/freedom2028/article/details/7875410
1. redhat 6.4
2.更改虚拟机网络连接模式
Parallels支持Bridge Networking(网络桥接),采用这种模式的时候,虚拟机可以模拟成本地网络中的机器,和本机平行。
我在家使用无线路由器,所以虚拟机的IP就会变成192.168.0.X,
这种方式也许比默认的Shared Networking更加直观
3.关闭防火墙
[root@Mac eric]$ service iptables stop
[root@Mac eric]$ chkconfig iptables off
[root@Mac eric]$ chkconfig | grep iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
4.开启ssh服务
#查看sshd服务的状态
[root@mac /]$ service sshd status
#开启sshd服务
[root@mac /]$ service sshd start
#通过chkconfig命令来设定开机自启动,默认为在2-5这4个启动级别上自动启动
[root@Mac /]$ chkconfig sshd on
#确认设定成功
[root@Mac eric]$ chkconfig | grep sshd
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
5.设置启动模式
[root@Mac /]$ vi /etc/inittab
5是图形界面3是命令行模式
6.设置mac与linux共享文件夹
共享文件夹将被挂在到/media/psf 或 /mnt/psf
设置里可以修改要被共享的文件夹