让windows可以访问andlinux的服务

一直很喜欢LINUX,但是没有办法,用了一年的UBUNTU只好换回了WINDOWS,但是怀念呀,所以就下了个ANDLINUX,以解相思之苦,还有就是在XP上跑APACHE测试东西太慢了,所以想试下ANDLINUX下用NGINX咋样。

因为不需要KDE那些。所以下载的最小版本的ANDLINUX,

默认只有2G的大小也够了哈。

选择文件访问为COFS。制定到自己的工作盘上。

安装好了,他会自动添加网卡TAP-COLINUX的。

装好了,先进入系统

默认情况下TAP-COLINUX的网卡地址是192.168.11.1 子网掩码是255.255.255.0 没有设置网关,可能是虚拟网卡的原因吧,反正不用设置。

把网卡地址修改成本机网卡地址的一个网段即可,比如我的机子是192.168.1.*这网段。我设置的TAP-COLINUX网卡地址就是192.168.1.119,随意设置

然后选择高级,设置INTERNET连接,两个都选上。重启网卡。

ANDLINUX部分,先还是备份一个原来的配置,万一失败可以弄回来。

sudo cp /etc/network/interfaces /etc/network/interfaces.bak

然后修改interfaces文件

他里面有两个网卡配置,eth0不用管它,

只修改eth1就是了。

// 之前的

iface eth1 inet static

     address 192.168.11.150

     netmask 255.255.255.0

#     gateway 192.168.1.119

// 修改为

iface eth1 inet static

     address 192.168.1.150

     netmask 255.255.255.0

     gateway 192.168.1.119

OK啦。然后

sudo /etc/init.d/networking restart

OK搞定了,在本地ssh 192.168.1.150

OK可以连接了,太巴士了。~~~

配置修改apt-get的连接源,改成CN99的比较快哈,

sudo vi /etc/apt/sources.list

在前面添加

deb http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse

先看下自己的andlinux版本哈,我的是ubuntu 9.04

cat /etc/issue

OK啦。

GOOD。开始配置其他的了

猜你喜欢

转载自scnjl.iteye.com/blog/795281