-1

我想在 Amazon EC2 上安装 GUI。在谷歌上我发现sudo yum groupinstall "X Window System" "Desktop",在下面的文本中你可以看到我的版本和可用组groupinstall

cat /proc/version给了我以下信息

Linux version 3.4.48-45.46.amzn1.i686 (mockbuild@gobi-build-31004) (gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC) ) #1 SMP Wed Jun 12 02:04:37 UTC 2013

[root@ip-172-31-7-175 ec2-user]# yum grouplist
Loaded plugins: fastestmirror, priorities, security, update-motd, upgrade-helper
Setting up Group Process
Loading mirror speeds from cached hostfile
 * amzn-main: packages.us-west-2.amazonaws.com
 * amzn-updates: packages.us-west-2.amazonaws.com
Installed Groups:
   Editors
   FTP Server
   Legacy UNIX compatibility
   Mail Server
   Network Servers
   Networking Tools
   PHP Support
   Perl Support
   System Tools
   Web Server
Available Groups:
   Console internet tools
   DNS Name Server
   Development Libraries
   Development tools
   Java Development
   MySQL Database
   MySQL Database client
   NFS file server
   Performance Tools
   PostgreSQL Database client (version 8)
   PostgreSQL Database server (version 8)
   Scientific support
   TeX support
   Technical Writing
   Web Servlet Engine

谢谢,雪诺

4

3 回答 3

2

请查看此博客以在 Amazon EC2 机器上安装 IDE,然后您可以将 VNC 远程桌面安装到该机器上。

Amazon EC2 默认不附带 X11 或其他图形支持,但它很容易安装。

于 2013-08-17T05:41:06.000 回答
1

遵循本教程:http ://devopscube.com/setup-gui-for-amazon-ec2-linux/

---> 你可能会遇到一些错误,这可能是由于以前的人说 EC2 不支持 X11。由于 Amazon Linux AMI 不包含 X11 包,因此您需要安装它们:

sudo yum install -y gcc-c++

sudo yum install -y libX11-devel

sudo yum install -y fontconfig-devel

sudo yum install -y libXcursor-devel

sudo yum install -y libXext-devel

sudo yum install -y libXfixes

sudo yum install -y libXft-devel

sudo yum install -y libXi-devel

sudo yum install -y libXrandr-devel

sudo yum install -y libXrender-devel

然后再试一次

于 2015-10-29T17:36:30.640 回答
0

你也可以参考这个视频

于 2020-01-14T00:42:06.640 回答