Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 125Reputation: 125
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@ /usr/bin/firefox -no-remote
Something like putty is very basic ssh -X abc@ putty

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

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

I am asked for abc's password as normal. then the root password for, 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.

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

Rep: Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192
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@ /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
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 575

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


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 09:10 PM.

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