如何使用 TightVNC 从 Windows XP 机器连接到虚拟服务器?

如何使用 TightVNC 从 Windows XP 机器连接到虚拟服务器?

我们来自不同国家的客户为我们提供了 VPN 连接,我们通过 Sonicwall net-extender 进行连接。我使用的是 Windows XP 32 位。

之后,我putty通过 SSH 连接到客户端的 Ubuntu Linux 服务器,该服务器具有静态本地 IP 192.168.xx,并连接到命令行界面。

然后我从命令行安装了 TightVNC 服务器并运行它,然后我使用 Windows 版 TightVNC Viewer 连接到 Ubuntu 桌面(GNOME)并连接上。

问题:每当我尝试使用任何应用程序时,TightVNC 窗口都会在应用程序启动之前突然关闭,有时会显示消息Connection closed。只有少数应用程序(如包安装程序和某些设置)可以工作,甚至桌面共享选项也无法工作。

我想在那个 Ubuntu 服务器中配置 MySQL 数据库和 Web 应用程序,它是 Ubuntu 11.10。

有人可以指导我这个吗?

答案1

你不需要 tightvnc 来使用 ubuntu:只需要 putty:

  • 你说你可以通过 putty 连接到 ubuntu 服务器,所以没问题。
  • 您可以通过命令行使用 mysql
  • apache 也用于命令行

在中间:知道你可以控制 apache 和 mysql 以这种方式工作(记住以 root 身份sudo -i:)service <apache2ormysql> stop/start/restart/status

首先以root身份安装mysql。

sudo -i
apt-get update
apt-get upgrade
apt-get install mysql

在安装过程中,将要求您输入 mysql 根密码。

你刚刚登录到你的mysql:

:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 34
Server version: 5.1.58-1ubuntu1 (Ubuntu)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

如果你使用 sudo -i 则不需要使用 -u root 部分

 mysql -p
Enter password:

要使用mysql只需阅读手册:

  1. http://manpages.ubuntu.com/manpages/oneiric/en/man1/mysql.1.html

  2. http://dev.mysql.com/doc/

对于 Web 应用程序使用 apache 和 php

sudo -i
apt-get install apache2
apt-get install php5

现在我会告诉那两个也许你会需要更多的东西(比如 php-apache2 连接器或类似的东西)。

您需要像 root 一样编辑 php 的配置(sudo -i

:~# vi /etc/php5/apache2/php.ini 

并且所有的 apache2 配置都在/etc/apache2/,您的网站将在这里显示:/var/www。阅读相应的手册来做您需要做的事情。

也可以和 vi 或 nano 做朋友...它们很有用

这个讲座可能会更有帮助:https://help.ubuntu.com/community/ApacheMySQLPHP

注意:如果您需要更多帮助或如何设置...只需询问=D

相关内容