LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-01-2010, 01:43 PM   #1
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 15
installing the X to set a minimal graphical environment for shh -X


Hello all

Im installing a minimal graphical environment in my debian server, so i can SSH -X from another machine, i dont really need a desktop on the server itself because its a headless server.

I have doubs both in components, and overall install details, lets see:

-Looks like i need 4 different packages:

1) graphical environment ( xserver-xorg-core xorg )
2) login manager ( gdm )
3) desktop package ( fluxbox )
4) running app's ( firefox, virtualbox, etc)


Ok, first one installs the graphical libraries i suppose, second one the login screen? (DO I REALLY NEED THAT?) and the 3rd one the desktop (AND THIS?).

As i stated in the title, i just want to run SSH -X from a client to remotelly control firefox, virtualbox and little more.


QUESTONS:
Could xorg and xserver-xorg-core be the only really necesary packages???(except the app's ones)

Everytime i restart my server, i guess it will reboot on graphical mode.. can i disable the graphical mode as default, and still use SSH -X? i mean, boot in text mode, and type: "startx" only if i need it running? but still be working for ssh -x petitions?

After all, am i on the correct way to achieve what i stated in the thread subjet?, what would you change?

This question goes as expanding knowledge on the subject:
x-window-system-core
gnome-desktop
x-window-system

What is the difference with mines?
 
Old 12-01-2010, 02:46 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Quote:
Originally Posted by fdelval View Post
1) graphical environment ( xserver-xorg-core xorg )
2) login manager ( gdm )
3) desktop package ( fluxbox )
4) running app's ( firefox, virtualbox, etc)
2 and 3 are not needed at all. I think even 1 may not be needed because you would actually be using the xserver on your client machine.

Quote:
Everytime i restart my server, i guess it will reboot on graphical mode..
That will only be the case if you install a graphical login manager.

My suggestion would be to just install whatver applications you want (firefox, virtualbox, etc) and let the dependancy manager take care of the rest.
 
Old 12-01-2010, 03:33 PM   #3
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ntubski View Post
2 and 3 are not needed at all. I think even 1 may not be needed because you would actually be using the xserver on your client machine.


That will only be the case if you install a graphical login manager.

My suggestion would be to just install whatver applications you want (firefox, virtualbox, etc) and let the dependancy manager take care of the rest.

ok, its easy to make a test in a VM and install just firefox on a server, lets see what does it install

and about the login manager, is there any way to enable / disable the X11 boot? i mean, text boot, and ONLY if i want, make a startx
 
Old 12-01-2010, 03:40 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by fdelval View Post
ok, its easy to make a test in a VM and install just firefox on a server, lets see what does it install

and about the login manager, is there any way to enable / disable the X11 boot? i mean, text boot, and ONLY if i want, make a startx
Yes, just don't install a graphical login manager. As far as I know from your four steps is only step 4 needed, install the apps you want to use over SSH. No need for a startx, just call, from the console, iceweasel or virtualbox, ... .
 
Old 12-01-2010, 03:58 PM   #5
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You will need the xorg and x-server packages on the remote system as that is how the client apps know how to talk to the local system. You will obviously also need the apps. To get a system to boot into text mode, modify /etc/inittab and change the id line to 'id:3:initdefault:'.

Also, you probably want to use "ssh -Y" instead of "ssh -X" as it is more secure.

HTH

Forrest
 
Old 12-01-2010, 04:14 PM   #6
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
lol im stuck into the basics

aptitude install firefox on a clean server, doesnt find the package. I found openssh-server and vim though...
 
Old 12-01-2010, 04:22 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You will not find Firefox in Debian, you have to use iceweasel, it is Firefox without the branding.
 
Old 12-02-2010, 07:03 AM   #8
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Ok,

I CAN CONFIRM that just installing
-ssh
-iceaweasel

i could ssh -X and open iceweasel from a remote pc.

I ran
-aptitude show xorg
-aptitude shoow xserver-xorg-core

and both showed that those packages are NOT INSTALLED.



Now, 2 questions

i wonder if instead ssh -X and app like iceawesel, i could run any kind of desktop environment where i can install graphically virtualbox...

and, in order to complete my minimal desktop install, i still need:


xorg xserver-xorg-core (sure)
gdm? (do i need it?)
fluxbox? (i guess sure too, right?)
 
Old 12-02-2010, 07:43 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you don't need to install a graphival environment for iceweasel, I think you also won't need it to run virtualbox.
But if you do it, please let me know if that works.
 
Old 12-02-2010, 10:42 AM   #10
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TobiSGD View Post
If you don't need to install a graphival environment for iceweasel, I think you also won't need it to run virtualbox.
But if you do it, please let me know if that works.
yeah right i dont need, but i dont know if i expressed myselft correctly.

I mean, its cool to work with iceweasel or virtualbox via GUI in another PC. I can have 1 window with one, and another window with the other program, but, i only have that: windows.

Can i go one step further, and, without installing graphical libraries on the server, connect to a "desktop environment" where i can run both of my "simple windows" app's?
 
  


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
installing sun grid engine. it shows set ur environment variable.. but i did that kalaiselvi Linux - Software 3 12-22-2010 10:41 PM
How to Switch to graphical mode after minimal install rafid Linux - Newbie 9 10-25-2006 11:42 AM
Configuring a minimal X environment blpfedora Fedora 1 12-29-2004 07:18 PM
Graphical Desktop Environment Gerardoj Linux - General 3 10-30-2003 07:00 PM
can't log in graphical environment abd_bela Debian 3 09-12-2003 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 PM.

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