每次要做什么东西,跑到虚拟机里边来很麻烦,要想转出去还得用Ctrl+Alt,如果是作开发的话再打开 终端,当然也可以直接启动在text mode下,但是那个模式下边窗口很小,滚动之后上边的东西就看不见了,所以我一致在寻找通过Windows的CMD操作虚拟机中的linux的方法。终 于找到了,那就是使用telnet。
至于怎么安装呢,我按照如下方法(来自:http://www.met3or.cn/blog/archives/2007/06/09/8.html):
1. sudo apt-get install xinetd telnetd
2. 安装成功后,系统会有相应提示(我使用的是7.10),
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
3. sudo vi /etc/xinetd.conf并加入以下内容(该文件本身存在,只是加入几行即可):
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
至于怎么安装呢,我按照如下方法(来自:http://www.met3or.cn/blog/archives/2007/06/09/8.html):
1. sudo apt-get install xinetd telnetd
2. 安装成功后,系统会有相应提示(我使用的是7.10),
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
3. sudo vi /etc/xinetd.conf并加入以下内容(该文件本身存在,只是加入几行即可):
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults

本文介绍了如何在Windows的CMD中通过telnet连接到虚拟机上的Linux Ubuntu 7.10系统,详细步骤包括在Ubuntu上安装和配置telnet服务,以及解决在CMD下中文显示乱码的问题。这种方法允许用户在不进入虚拟机图形界面的情况下进行远程操作,节省资源,提高开发效率。

780

被折叠的 条评论
为什么被折叠?



