LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2006, 10:31 AM   #1
noonmid27
Member
 
Registered: Sep 2006
Posts: 79

Rep: Reputation: 15
X Server


Can somebody give me a brief explanation on how this works. When i start linux up, do i connect to a physical server that i can run the GUI on. Thats what im assuming happens im just a little unsure, so any help would be good. also because everybody running linux is connected to the X server, is my computer vulnerable to hackers with good knowledge. I mean im running 3 distros right now pclos, slackware and sabayon 3.1. one of the things i notice is when i edit my /etc/X11/xorg.conf file for slackware so i have the scroll wheel i get a message saying that my connection to the X server was reset my peer. What does that mean did somebody reset my connection. aslo im having some problems when i change my /etc/inittrid to runlevel 4 so i can a GUI login and the ability to changed to different desktop environment. when i change to runlevel 4 in slackware and try to login i loose my mouse. what can i do to fix this issue.
 
Old 11-12-2006, 10:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
i think you're really getting the wrong end of the stick here... do you think that the X server is a big box on the internet somewhere that all X users connect to? not the case whatsoever. lots and lots of unix software uses a client / sever based architecture, where you run a process in the background which does the boring complicated stuff (the server) and then connect to it using a seperate program, a gui or something, which is the client. they both run on the same machine, but allow for vastly greater flexibility in the main. the X server is notably different in actual fact as the client and server roles are reversed. the server is always local and the client is "remote" either logically or physically. by this i mean that the thing that actually show you a screen is the X server, and the clients, programs / window managers etc... under X, can actually be running anywhere in the world and draw to the server in front of you. by default an X server only allows connections from the same user on the same machine. there are many freaky things you can do with an X server but by default it's perfectly save, and only you and your programs can use it.
 
Old 11-12-2006, 10:55 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The X-server is software running right on your machine...

I'm not an expert, but the basic idea is that the server code handles the general-purpose duties of generating the graphical screen and all the device interfaces (monitor, mice, etc.) When you log in to the GUI, you are likely using a display manager--although this is not strictly required. Regardless, when you login and go to GUI mode, an X-session is created in your name, with a virtual terminal generated.

If another user then logs in, they get their own session, virtual terminal, etc. Each user can be using different settings, different desktops (eg KDE vs Gnome), etc.
 
Old 11-12-2006, 11:52 AM   #4
noonmid27
Member
 
Registered: Sep 2006
Posts: 79

Original Poster
Rep: Reputation: 15
hey thx for the reply guys, they helped a lot. I had a question, i wanted to get remote access to my computer from my friends house i just needed to know how to open the ports for text and graphical. i think the graphical access ports is 5800 and 5900, how do i open them.
 
Old 11-12-2006, 11:55 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
those ports are for the VNC application, which you need to run yourself. Indeed you need to run a vnc *server* on your box. Xorg does actually include a buil4 int vnc server if you wish to see the single running screen. try this http://gentoo-wiki.com/HOWTO_Use_VNC...ing_X_Sessions and ignore the fact that it's for gentoo, it's pretty generic. once don you'd need to portforward or something, but that's another story altogether.
 
Old 11-12-2006, 11:57 AM   #6
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Rep: Reputation: 15
Quote:
I had a question, i wanted to get remote access to my computer from my friends house i just needed to know how to open the ports for text and graphical. i think the graphical access ports is 5800 and 5900, how do i open them.
I'd suggest opening a new topic for your new question.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
best distrubition for nas server and p2p download server and web server geosko Linux - Distributions 8 10-13-2006 09:20 AM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM


All times are GMT -5. The time now is 09:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration