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, 06:19 PM   #1
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 628

Rep: Reputation: 144Reputation: 144
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, 06:29 PM   #2
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
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 06:32 PM.
1 members found this post helpful.
Old 03-30-2013, 02:05 AM   #3
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 628

Original Poster
Rep: Reputation: 144Reputation: 144
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 01:17 AM
system-config-network aby Linux - Networking 2 12-14-2010 12:24 AM
system-config-network aby Linux - Desktop 5 12-08-2010 09:04 AM
system-config-network legalizeit Linux - Networking 3 11-24-2006 02:40 PM
ftp and ssh connections hang - network config? TreeHugger Linux - Networking 7 11-08-2004 11:55 AM > Forums > Linux Forums > Linux - Software

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