LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-10-2004, 07:37 PM   #1
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
can't open display on a suse 9.1?


I've just setup my suse 9.1 . i installed xisp (an internet dialer) being loged on as root and configured it well. I then switched users and even if i su (in a terminal) and then call xisp i get this


geoorge@linux:~> su
Password:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
linux:/home/geoorge # xisp
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xisp: Can't open display :0.0
xISP: warning: desired font(s) not found.
Replacements may appear ugly/unintelligible.
Segmentation fault
linux:/home/geoorge #

Why? I mean i ran xisp ok when i log in as root but i can't make it work when i su in a users terminal. Strange? Could it be beacause i haven't set up my vga card? (ati radeon 9600 pro)?
 
Old 06-11-2004, 03:48 AM   #2
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Anyone?
 
Old 06-12-2004, 03:35 AM   #3
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
I've set up my card working properly (with 3d acceleration and stuff ) but the problem still remains. It not only happens with xisp but with every application that has graphics . Why????
 
Old 06-12-2004, 06:35 AM   #4
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Talking

Although you're greek...
You're linuxer (a Linux user) too, and that's waht counts...

Your problem is the superuser (su) does not have acces to your X-server that runs in your user-priviledged space, but the application you want to execute requires X-server to run, otherwise it segfaults.

You should execute this command from a console with your user account (not as su)

xhost + localhost

Then log in from a console as superuser (su -) and execute this:

export DISPLAY=:0.0

Then you can run your application normaly.

Kind regards,
sbogus
 
Old 06-12-2004, 06:25 PM   #5
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Hope it'll work!
 
Old 06-12-2004, 07:33 PM   #6
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Unfortunately it didn't work! When doing it for the first time i got this

linux:/home/geoorge # xisp
_X11TransSocketINETConnect() can't get address for :0:6000: Temporary failure in name resolution
xisp: Can't open display :0:0--Invalid argument
xISP: warning: desired font(s) not found.
Replacements may appear ugly/unintelligible.
Segmentation fault

and when i rebooted and just su and run xisp here's what i got:

geoorge@linux:~> su
Password:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
linux:/home/geoorge # xisp
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xisp: Can't open display :0.0
xISP: warning: desired font(s) not found.
Replacements may appear ugly/unintelligible.
Segmentation fault
linux:/home/geoorge #
 
Old 06-13-2004, 05:10 PM   #7
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Any ideas???
 
Old 06-14-2004, 02:58 AM   #8
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
I am really lost about this.... Plz help me!!
 
Old 06-14-2004, 03:54 AM   #9
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
The command xhost + localhost should be executed each time you do new start in your Linux, of course after reboot you've lost the X-server privileges for the localhost address, so you get the "Can't open display :0.0"-error.

For the "_X11TransSocketINETConnect() can't get address for :0:6000: Temporary failure in name resolution"-error - it seems the + localhost argument isn't enough to allow access to all the communication resources your app needs. So you might need to use the command xhost + instead. Be warned - this is security risk, as it allows even remote connections to your box, to execute X-applications and to control the X-server resources.

Kid regards,
sbogus
 
Old 06-14-2004, 06:05 PM   #10
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Hmmm.That seems risky enough!!I´ve tried the xhost + command and it worked though.

This application xisp is used to connect me to the internet. It uses pppd of course which as a normal user i can´t run it. Is it safer for me to just chmod 6755 /usr/sbin/pppd and then run xisp as a regular user rather than xhost+ ??

Thanx btw sbogus!You´re the only one helping me!U sure know a lot about linux and especially suse!
 
Old 06-15-2004, 02:55 AM   #11
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Hi Braveheart1980,
thank you for the good words...

As you can see from my signature, I'm still newbie in matter "Linux". Although my first Linux installation was made 10 years in the past on a very old i386 33MHz machine. I remember then, the kernel version was something with 0.9x.yy, the XServer was terribly hard to configure, I got it running in Black/White mode only, and the apps in the distro (it was a "unknown" distro on 5 or 6 1.44MB floppy disks) were so hard to install and get running.
But then I just dumped this Linux and started using WinblowZ... For many years... Then I came back to the what the true OS is - back to the Linux! But I'm still newbie here.

I'm glad to know you found my posts helpful, thanks for that.

Why do you not run this xisp application as service? Or why do you not put it to run with "su" privileges? These ways you avoid the conflict with the missing S-server display and of course the wide opened security hole with "xhost +".
If you like, you can put a small script in the /etc/init.d directory, which will spawn the xisp application after the X-server is up and running (this assumes you have runlevel 5 activated, it will not work with runlevel 3 as there's not yet X-server up and running).

I know SuSE (KDE) has another application ontop of pppd - the KInternet one. On my machine it runs just perfect and uses whatever ISP configuration I made. Currently I'm using an ADSL connection, but previously there was normal 56Kbps modem connection. There's also QInternet application using Qt as GUI engine, but it does the same as KInternet.

Kind regards,
sbogus
 
  


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
Cannot open display ::eboye:: SUSE / openSUSE 2 11-19-2005 07:45 AM
can't open display (SuSE 9.1) userbr Linux - Security 6 08-31-2004 02:30 AM
Suse 9.1 Error: Can't open display dan7 General 5 07-23-2004 10:59 AM
Cannot open Display ferreter Linux - General 1 08-17-2003 04:23 PM
Cannot Open Display Apocalypse Linux - General 9 10-16-2002 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

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