LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-29-2013, 05:19 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 307

Rep: Reputation: 41
ssh -x system-config-network


Hi, I have a headless CentOS 6.4 PC I use for backup purposes. I ssh in each day to check status. I have been playing around with "ssh -x" recently.

To run firefox I need to type ssh -X abc@10.1.1.99 /usr/bin/firefox -no-remote
Something like putty is very basic ssh -X abc@10.1.1.99 putty

However if I want to run system-config-network I am not sure what flags to add:

after ssh -X abc@10.1.1.99 /usr/bin/system-config-network

I am asked for abc's password as normal. then the root password for 10.1.1.99, then I get
TERM environment variable needs set.
I don't know which computer is displaying this message and I have not been able to find any solutions on the 'net.

I would be grateful if anyone has suggestions.

Thanks
 
Old 03-29-2013, 05:29 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,239

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
The remote one.

To get it to work add "-t" (which causes ssh to use a terminal when running the command:

"ssh -X -t abc@10.1.1.99 /usr/bin/system-config-network"

should work for this.

It is possible this is only used for error reporting, but it may be the login to root on the remote system isn't quite right and needs a terminal as well (or roots .bashrc file may require one...)

It is one of the problems with just sticking commands/initialization into bashrc. Sometimes they expect a terminal to be attached (such as clearing the terminal with a "clear" command).

Last edited by jpollard; 03-29-2013 at 05:32 PM.
 
1 members found this post helpful.
Old 03-30-2013, 01:05 AM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 307

Original Poster
Rep: Reputation: 41
that does the trick. Thanks
 
  


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
is it possible to run system-config-firewall via ssh forward without gnome on server? malayo Linux - Distributions 1 01-15-2012 12:17 AM
system-config-network aby Linux - Networking 2 12-13-2010 11:24 PM
system-config-network aby Linux - Desktop 5 12-08-2010 08:04 AM
system-config-network legalizeit Linux - Networking 3 11-24-2006 01:40 PM
ftp and ssh connections hang - network config? TreeHugger Linux - Networking 7 11-08-2004 10:55 AM


All times are GMT -5. The time now is 11:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration