LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-11-2006, 11:58 PM   #1
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Rep: Reputation: 17
Talking Administrating FC5 desktop from laptop


Hi all

This is a bit of a broad question so just need some links or tut pointers as I have no clue where to start.

I have

Desktop FC5, setup for 4 users, connected to router
Laptop Ubuntu wireless to router
Printer canon ip4000r connected to router.
PDA wireless connected to router

Very small homenetwork and network connection.

I spend most of my time on the laptop but have been using FC5 on the desktop quite a bit lately and learning stuff, updates, etc. Trouble is as there are four people who are on it I find it difficult to get on and say play around with yum updates and things I need to learn.

What I thought would be good is being able to access the FC5 desktop from my laptop and remotely do package installs, and all the things you normally are mucking arund with when you are tinkering with Fedora, all the while someone else is logged on as their user under FC5.

Dont know if I have explained myself very well but looking forward to any comments or pointers on where I should be looking.

Am a network newbie and just setting this small network up was a real learning experience with static ips and local dns and all that scary stuff. The only thing I havent resolved yet is WPA acess to my router on Ubuntu. Got plenty to read on that though.

Cheers

Gimmee
 
Old 12-12-2006, 12:41 AM   #2
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
I'm not too experienced with FC but what you want to do is as follows:

1) Find how you access a command-line (text only) version of yum or whatever other program you use for administration.

2) Get an OpenSSH server working on the desktop (search online HOWTOs for this).

Also, by checking through the howtos, you want to make sure your sshd_config file (probably at /etc/ssh/sshd_config, and you must be root to edit it) includes the following lines:

AllowTcpForwarding no
# prevents forwarding of ports to remote user
X11Forwarding no
# prevents forwarding of X11 (graphical)
PermitRootLogin no
# prevents root from SSHing in
PermitEmptyPasswords no
# prevents empty passwords
AllowUsers username
# this allows only the specified users to log in
# replace username with a list of usernames (separated by a single space) which can login
# keep this to the absolute minimum

The lines beginning with # are comments, and are ignored when the file is read by sshd (the daemon program that allows SSH logins). I put them in there to explain what the lines do.

Most of this stuff is for security.

Now, you can ssh to your desktop from the command line of your laptop as follows:
Code:
ssh username@X.X.X.X
where username is your username and X.X.X.X is the IP of the desktop.

You now have a command prompt as username. If you want to do administrative tasks, you'll need root, so you need to execute the "su" command, type in the root password, and you are root.

I won't give a big warning on root, but be sure that you ONLY use root for tasks that NEED it. You can do a lot of damage as root, so make sure nobody else has access to a root shell, and only use it when needed. When you get a little more comfortable, you should look into "sudo".

Now, this has all been assuming that you can deal with a text only environment. If you want graphical, as long as you're going form a Linux box to a Linux box, you can do as follows:

Modify sshd_config so that you have:
X11Forwarding yes

this will allow you to forward graphical programs from the desktop (where you setup sshd and are SSHing to) to the computer you're at.

To use this:
Code:
ssh -X username@X.X.X.X
(this tells tSSH to forward X, the graphical system)
(now, if you need to, you can su to root)

now, if you execute a graphical program, it will show up on your laptop (the computer you're at) but actually be running on the server (the desktop).

I'm sure there are many tutorials on this...
 
Old 12-12-2006, 01:36 AM   #3
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Thats an excellent start, thanks for that.

I use sudo on ubuntu most of the time and usually use su on fedora so that will be no problems. I am getting better at command line stuff under linux but do forget alot of command line stuff when i dont use it so graphical would be good as well.

Thanks again.

Will go searching on that stuff

Cheers

gimmee
 
Old 12-12-2006, 03:18 PM   #4
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Rep: Reputation: 36
You could run a Telnet server on the machine you want to remotely connect to. From there, you can do everything you need from the command line from a remote location - even a windows machine.

You can also connect to the X-server on the laptop over a network.
 
Old 12-12-2006, 03:50 PM   #5
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Telnet does what SSH does, but is NOT encrypted. Passwords and all other data are sent in clear text.

If any machines in your network are connected to the internet (whether through a firewall or not) I would recommend using SSH.
 
  


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
ACPI Power Control shows as laptop on Desktop FC5 gimmee Fedora 2 11-13-2006 06:25 PM
how to get one desktop across two monitors in fc5? babag Fedora 7 11-10-2006 12:32 PM
remote administrating modems via MAC address instead of TCP/IP ID10T_error Linux - Networking 0 06-28-2004 11:27 AM
Administrating smoothwall through a router orange400 Linux - Networking 4 06-21-2004 12:50 AM
administrating Novell from Linux Box?? bally Linux - General 1 10-13-2002 04:01 PM

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

All times are GMT -5. The time now is 10:53 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