LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-07-2005, 06:47 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Is it possible to run ethereal remotely via the commandline?


I got ethereal installed on a machine running SUSE
ethereal works ok at the computer itself.

But when I try to run it remotely via the ssh command line via putty I get:
linux:~ # ethereal

(ethereal:10686): Gtk-WARNING **: cannot open display:


Is it possible to run ethereal via the commandline?
 
Old 05-07-2005, 06:57 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think that it is a permissions problem rather than an ethereal problem. You might trying using 'sux' instead of 'su' before running ethereal.

On SuSE Linux, this is true even if you aren't trying to run a program remotely. On the local machine, su'ing to root and entering 'ethereal' will give you the same error message. 'sux' is similar to su, but allows you access to the screen as a different user.
 
Old 05-07-2005, 07:50 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
i get the following error when running sux:
linux:~ # sux
sux: Missing DISPLAY variable


How do I fix that?
 
Old 05-07-2005, 11:15 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Try using tethereal instead.
 
Old 05-08-2005, 12:46 AM   #5
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
u have to set the DISPLAY environment variable properly

to see the current DISPLAY environment variable
(on the remote machine) use

$ set|grep DISPLAY

If it's something like :0 or :1,then u have to export DISPLAY

then on the machine u r working on u have to do

$ export DISPLAY=ip_of_the_remote_machine:0

Hope this helps
 
Old 05-09-2005, 11:10 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I didn't read your initial message closely enough. I missed the 'putty' part. If you are not running an X11 server, which you aren't in windows, you won't get a display.
 
  


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
can't run X programs remotely mcshen Linux - General 2 07-28-2005 07:47 PM
How can I run ethereal as an under privledged user? abefroman Linux - Security 5 05-16-2005 03:36 PM
How do I run ethereal after installing it via the RPM? abefroman Linux - Security 9 05-10-2005 08:25 AM
Are you suppose to be able to run X remotely? abefroman SUSE / openSUSE 15 05-09-2005 03:34 PM
With GTK can you run it remotely? abefroman Linux - Software 2 05-08-2005 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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