LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-03-2006, 08:09 AM   #1
PlymWS
Member
 
Registered: Aug 2006
Posts: 51

Rep: Reputation: 16
Installing a GUI on a remote server


I have just purchased a new server which has a basic Debian Sarge 3.1 install on it currently.

With my previous servers I have settled with the command prompt as my method of connecting to the server. However, I would now like to install a GUI on the server which would allow me to login to a desktop environment remotely using VNC or a similar program.

I have a dual boot computer at home with Debian Sarge and XP Home on it. Could some kind person please post some instructions on how to achieve this. Any help would be very much appreciated.
 
Old 09-03-2006, 02:23 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Debian forum and has been moved accordingly to help your thread/question get the exposure it deserves. The answer will be probably quite Debian-centric with the list of packages needed and so on.
 
Old 09-03-2006, 03:14 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by PlymWS
I have just purchased a new server which has a basic Debian Sarge 3.1 install on it currently.

With my previous servers I have settled with the command prompt as my method of connecting to the server. However, I would now like to install a GUI on the server which would allow me to login to a desktop environment remotely using VNC or a similar program.

I have a dual boot computer at home with Debian Sarge and XP Home on it. Could some kind person please post some instructions on how to achieve this. Any help would be very much appreciated.
You're about to violate rule #1 of linux security:

ALWAYS only run the stuff that's absolutely required. The more
stuff you have going, the more potential exploits you get. Running
X on a server is POOR practice.


That said: all you should need to do is to ssh into the box (since
it's a server I assume that it has network connectivity) and do
apt-get install tightvncserver



Cheers,
Tink
 
Old 09-04-2006, 11:28 AM   #4
PlymWS
Member
 
Registered: Aug 2006
Posts: 51

Original Poster
Rep: Reputation: 16
Yeah, I know it would reduce the security of the server but I've been trying to install DNS management software and rar and have now incurred 200 euros of service fees when the kernel gets knackered. The first 100 was me trying to install the relevant software, the other 100 was a mate who said he was proficient with Linux and then did exactly what me, the Linux newb, did !!

I was thinking a GUI would make the installation process a lot easier than struggling with the command line and breaking the kernel.
 
Old 09-04-2006, 02:18 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
How on earth did you manage to break the kernel trying to
install/setup DNS?


Cheers,
Tink
 
Old 09-04-2006, 03:46 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You should have been just fine install BIND (by far the most common DNS service in the world) from the command line. Something like:

Code:
apt-get install bind9
would put BIND on your machine, then configure the hosts you want it to be authoritative for in the named.conf file, which is usually either in /etc/named.conf or /etc/bind/named.conf. Adding a gui to the server will not in any way, shape, or form automate the process of installing software.

Peace,
JimBass
 
Old 09-05-2006, 04:45 AM   #7
PlymWS
Member
 
Registered: Aug 2006
Posts: 51

Original Poster
Rep: Reputation: 16
I broke it by adding a non-free source to add rar and unrar. I then apt-get'd bind and rar unrar. That installed intird-tools or something like that and yaird but they broke the kernel !
 
Old 09-05-2006, 05:06 AM   #8
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
I suggest to install aptitude (if you don't have it already) and use that as semi-graphical enviroment for installing other software.
Code:
ssh root@<machine-ip>
[enter root-password]
apt-get update && apt-get install aptitude
Then invoke aptitude on the cli:
Code:
aptitude
Read the man page for aptitude and the help function within aptitude to learn on the commands it uses. You'll find it an indispensable piece of software on your server

Like previous contributors already stated: installing a GUI on a server is generally considered Bad Practice(tm) The fact that Microsoft (shudder) does it doesn't mean you must follow their Bad Example(tm)
 
Old 09-05-2006, 06:33 AM   #9
PlymWS
Member
 
Registered: Aug 2006
Posts: 51

Original Poster
Rep: Reputation: 16
OK, done that Dutch. Was a lot more helpful that struggling at the command line !!

Any pointers as to setting my server up as a nameserver so I can point a domain name that I own to it rather than having to type in the IP address ? Or should I start a new thread
 
Old 09-05-2006, 06:43 AM   #10
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Like JimBass said: get bind on your system, read the man-pages, understand what the default config-file does and configure bind according to your situation
 
Old 09-05-2006, 09:50 AM   #11
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Quote:
Originally Posted by PlymWS
Any pointers as to setting my server up as a nameserver so I can point a domain name that I own to it rather than having to type in the IP address ?
Static ip?
 
Old 09-05-2006, 11:05 AM   #12
PlymWS
Member
 
Registered: Aug 2006
Posts: 51

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by kmoffat
Static ip?
Yes, the IP of my server is static.
 
Old 09-05-2006, 11:35 AM   #13
kmoffat
Member
 
Registered: Jul 2003
Location: near Seattle
Distribution: Debian/Ubuntu/Suse
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Quote:
Originally Posted by PlymWS
Yes, the IP of my server is static.
I don't know if you even need to do anything with bind. Have you tried pointing your domain name at your static ip with a webserver running? If you run a router, you do need to forward the appropriate ports (80 for www) to the appropriate local machine. I have a named ip and just use debian with apache2 and the stock bind9, no config after install. Also I run postfix/courier imap,pop and sshd on the same machine with no problem.

Someone feel free to correct me if I'm misleading....
 
Old 09-07-2006, 02:12 PM   #14
PlymWS
Member
 
Registered: Aug 2006
Posts: 51

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Tinkster
That said: all you should need to do is to ssh into the box (since
it's a server I assume that it has network connectivity) and do
apt-get install tightvncserver
Not as easy as you would think I've run that command and started the server (number :1) but when I try and connect from my XP machine using TightVNC for windows I get "Failed to connect to Server".

Before anyone mentions firewalls, the ports are open on my router at home and I have temporarily disabled the firewall on the Debian server so all traffic is allowed.

Would it be easier for me to try and connect from my Debian desktop machine instead ?
 
Old 09-07-2006, 05:06 PM   #15
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Yes it would. Just use ssh to log in remotely (and more importantly: secure) from your Debian desktop. Once you're in, use aptitude like you would do if you'd be working locally on the server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote GUI ? kkempter Red Hat 1 05-25-2006 02:46 PM
GUI remote control rwalkerphl Linux - Newbie 6 08-24-2004 09:40 PM
Remote GUI access to Fedora Server from Windows machine astitva Linux - Software 1 04-04-2004 02:12 PM
GUI remote connection to Linux server mandzo Linux - General 2 11-13-2003 10:24 AM
installing Red hat 7.2 on a remote server (newb) Xcalabur Linux - Networking 1 01-21-2003 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration