Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 812
  • Last Modified:

Help with ubuntu on Amazon Web Services

I'm a beginner to Linux (I know windows servers very well) and new to AWS

I have deployed an instance of Ubuntu 12.04 on AWS. I want to deploy this project here https://github.com/xtuple/xtuple

Using SSH I want to install the desktop GUI and I'm using this command
sudo apt-get install ubuntu-desktop

Open in new window


I get the errors in the attached file failed-to-fetch.txt

Also need to know how to connect to the Ubuntu server once the desktop GUI is installed just like I would on a windows server using RDC
failed-to-fetch.txt
0
Gerhardpet
Asked:
Gerhardpet
  • 10
  • 7
1 Solution
 
comfortjeaniusCommented:
In the logs it stated "Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"

Did you try this?

You can use UltraVNC Viewer for the GUI base and Putty for the CLI.
0
 
GerhardpetAuthor Commented:
When I try apt-get update I get these errors

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
GerhardpetAuthor Commented:
Ok got it to work as per your link and running these commands

sudo apt-get update
and
sudo apt-get upgrade
and then
sudo apt-get install ubuntu-desktop

Now I'm trying to use UltraVNC and can't connect. What port do I have to open? Is there anything else I have to do on the server to allow connecting using UltraVNC viewer?
0
 
comfortjeaniusCommented:
Open port 5900

with ultraVNC Viewer  make sure you put host:port #, as long as your firewall is not blocking you should be okay, which in your case you probably did not configure it yet on the Linux block.


Plus I am going to Test my ultraVNC as well with my Linux Mint 14 box just to make sure. I normally use putty.
0
 
comfortjeaniusCommented:
0
 
GerhardpetAuthor Commented:
I can establish a connection using putty on port 22. I have opened port 5900 on my AWS management console but I don't think that will open the 5900 port on the Ubuntu server as far as I know.

Is the VNC server running by default on the Ubuntu server?

Like I said I'm a beginner at linux. How can I open a port using a command?
0
 
comfortjeaniusCommented:
I had firewall rules on my Linux mint, I just thought of that when I could not Putty to the host.

I has to open a terminal and

Type command  sudo ufw status verbose  or sudo ufw status numbered

-then-

I add this entry in order to access Putty and VNC

Putty  ----> sudo ufw allow in 22
VNC  ------> sudo ufw allow in 5900
0
 
comfortjeaniusCommented:
I did not install vnc server just on my windows 7 box and once I type
sudo ufw allow in 5900 I had no problem; sorry it took me some time to get back with  you I was troubleshooting why I could not remote with VNC from Windows to Linux

Plus I uninstall ssvnc on Linux Mint with sudo apt-get purge ssvnc

to make sure it was not install when remoting to Linux I typed dpkg --get-selections ssvnc

Plus here are some extra commands to your Linux repertoire
0
 
GerhardpetAuthor Commented:
When I typed
sudo ufw status verbose I get Status: inactive

when I typed  
sudo ufw allow in 5900 I get Rules updated and Rules updated (v6)

But it still does not work for me to connect using UltraVNC
0
 
comfortjeaniusCommented:
Are you using UltraVNC viewer on the AWS?

sudo ufw status verbose I get Status: inactive  

This means you firewall on Ubuntu is disabled

if you type grep ^ENABLED /etc/ufw/ufw.conf

do it say yes or no
0
 
GerhardpetAuthor Commented:
I'm using the UltraVNC viewer from my windows 7 machine.

Is the VNC server running on the Ubuntu by default or does it have to be enabled on the server using CLI?

So far I'm no able to connect
0
 
comfortjeaniusCommented:
I just have UtraVNC viewer install and I did not install anything on my Linux box.

Plus on Desktop Sharing Preferences do you have this options checked

Sharing
Allow other users to view your desktop
Allow other users to control your desktop

Security
Require the user to enter this password <type a password for authentication>
Automatically configure UPnP router to open and forward ports.
0
 
GerhardpetAuthor Commented:
Keep in mind that I only have SSH access because my Ubuntu instance is hosted on the Amazon Cloud (AWS). That is why I'm trying to make UltraVNC work.

So for now I can only connect using CLI
0
 
comfortjeaniusCommented:
Maybe your firewall is blocking the connection from windows 7 host to the Ubuntu host that is installed on AWS.


I installed Linux Mint  in virtualbox and configured firewall rules on the host.  I just had to allow the port connection and I am to authenticate. I do not know nothing about AWS, but it have to do something with your connection.  You are able to authenticate thru CLI , but not GUI.

I just configure mine to authenticate with GUI thru UltraVNC and I just have the client viewer installed on Windows 7 host.
0
 
comfortjeaniusCommented:
type this in the terminal vino-preferences and hit Enter

Plus on Desktop Sharing Preferences do you have this options checked

Sharing
Allow other users to view your desktop
Allow other users to control your desktop

Security
Require the user to enter this password <type a password for authentication>
Automatically configure UPnP router to open and forward ports.


then reboot and try again.


Plus I performed this action on my Linux virtual machine

sudo ufw disable

and tried to connect via UltraVNC and I was able to established a connection.
0
 
GerhardpetAuthor Commented:
Thanks for the help!
0

Featured Post

The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

  • 10
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now