yad - CannotOpenDisplay

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

Oh Dear

yad - CannotOpenDisplay

Unread post by Oh Dear » 2015-03-11, 20:25

I've used Linux since the late '90s and I have always used Firefox - and that's
been fine - until the last few upgrades. Sundry un-needed & un-wanted features
have been introduced; scrolling (surely a basic function in any browser) has
become a nightmare; every time there's an upgrade it takes a day (at least) to
work out the changes; and the "help" system has become totally impenetrable -
"but there is a negative side" (a bit of Hunter S Thompson irony 8-) )
So, as a consequence, I've been looking for a replacement, have read good (but
also bad) things about Pale Moon and am hoping it is what I think it is. I
downloaded pminstaller-0.1.7.tar.bz2, unpacked it, copied pminstaller.sh into
~/ and ran it:
------------------------------------------------
Bash - 4.2.53 : sudo ./pminstaller.sh
root's password:
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc
aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid
sse4_1 sse4_2 popcnt lahf_lm ida arat dtherm tpr_shadow vnmi flexpriority ept
vpid

# Note, this line was repeated 4 times; the 4th time it was followed by the
final line:

(yad:2917): Gtk-WARNING **: cannot open display
------------------------------------------------
I took note of the instructions in the README:

"If the installer does not run because the built-in copy of yad complains
about being unable to load a particular library, then you clearly do not have
the basic dependencies required for any recent Mozilla based product. Please
update the related libraries and try again."

I discovered that SuSE-13.2 did not have yad installed by default so, entered
YaST & installed

Source Package:
yad-0.16.3-1.1 yad-0.16.3-1.1

My copy of Firefox (which, despite my complaints, has always worked) reports
"Congrats! You’re using the latest version of Firefox." (v. 36) - my Firefox
libraries should (I guess) be up to date.

I have tried closing the system & re-opening (not a restart: close, make - &
drink - a cup of coffee, re-boot). I have tried running it with Firefox both
open & closed. I have fiddled around with various things but, none of this does
any good,the result is always the same as shown above.

There is one thing I don't understand & that is this:

/.kde4/share/apps/RecentDocuments/pminstaller-0.1.7.tar.bz2.desktop

What is it, what is it doing there & how did it get there? (Not put there by
me.)

I would love to become a vociferous supported of Pale Moon but it seems I'll
need some help getting there. Here are the details of my system:
------------------------------------------------
Bash - 4.2.53 : inxi -zF
System: Host: linux-3w85.site Kernel: 3.16.7-7-desktop x86_64 (64 bit)
Desktop: KDE 4.14.5 Distro: openSUSE 13.2 (Harlequin)

Machine: System: SAMSUNG (portable) product: RV411/RV511/E3511/S3511/RV711
Mobo: SAMSUNG model: RV411/RV511/E3511/S3511/RV711
Bios: Phoenix v: 03PA.M001.20110312.XW date: 03/12/2011

CPU: Dual core Intel Core i5 M 480 (-HT-MCP-) cache: 3072 KB
clock speeds: max: 2667 MHz 1: 1199 MHz 2: 2667 MHz 3: 1199 MHz
4: 1199 MHz

Graphics: Card: NVIDIA GT218M [GeForce 315M]
Display Server: X.Org 1.16.1 drivers: nouveau (unloaded:
fbdev,nv,vesa)
Resolution: 1366x768@60.00hz
GLX Renderer: Gallium 0.4 on NVA8 GLX Version: 3.0 Mesa 10.3.7

Audio: Card-1 Intel 5 Series/3400 Series High Definition Audio
driver: snd_hda_intel
Card-2 NVIDIA High Definition Audio Controller
driver: snd_hda_intel
Sound: Advanced Linux Sound Architecture v: k3.16.7-7-desktop

Network: Card-1: Broadcom BCM4313 802.11bgn Wireless Network Adapter
driver: bcma-pci-bridge
IF: wlp3s0 state: up mac: <filter>
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
Controller
driver: r8169
IF: enp5s0 state: down mac: <filter>

Drives: HDD Total Size: 640.1GB (6.5% used)
ID-1: /dev/sda model: SAMSUNG_HM641JI size: 640.1GB

Partition: ID-1: / size: 20G used: 7.4G (40%) fs: ext4 dev: /dev/sda2
ID-2: /boot size: 979M used: 89M (10%) fs: ext3 dev: /dev/sda1
ID-3: /home size: 502G used: 26G (6%) fs: ext4 dev: /dev/sda6
ID-4: swap-1 size: 6.45GB used: 0.00GB (0%) fs: swap dev: /dev/sda7

Sensors: System Temperatures: cpu: 42.0C mobo: 42.0C gpu: 48.0
Fan Speeds (in rpm): cpu: N/A

Info: Processes: 189 Uptime: 1 day 1:21 Memory: 1399.7/5839.9MB
Client: Shell (bash) inxi: 2.2.19
------------------------------------------------
I hope, very much, that you can help me.

dmk

SvenG

Re: yad - CannotOpenDisplay

Unread post by SvenG » 2015-03-11, 22:00

Sorry, but your post is terribly formated and really hard to read, but if I understood correctly, you have a problem with the installer script, is that right?

The easiest you can do when the installer is not working is grab the latest version of PM4L matching your architecture from there:
http://sourceforge.net/projects/pm4linux/files/25.2.1/
and then follow these instructions:
http://sourceforge.net/p/pm4linux/wiki/ ... tallation/
That's almost as easy as using the installer, you just have to copy and paste the commands into the terminal.

squarefractal

Re: yad - CannotOpenDisplay

Unread post by squarefractal » 2015-03-12, 03:13

Oh Dear wrote:sudo ./pminstaller.sh
Please don't do it this way. Some distros' sudo have the bad habit of stripping of the XAUTHORITY variable (without which any graphical programs cannot run), and in your case it is exactly that happening.

Please use the normal invocation, i.e.:

Code: Select all

./pminstaller.sh
The installer is perfectly capable of elevating itself with the help of sudo/su.

Oh Dear

Re: yad - CannotOpenDisplay

Unread post by Oh Dear » 2015-03-13, 19:36

@SvenG - I'm sorry you found my problem difficult to understand but you were
absolutely right - the problem was with the installer script.
The easiest you can do when the installer is not working is grab the latest
version of PM4L matching your architecture from there:

http://sourceforge.net/projects/pm4linux/files/25.2.1/

and then follow these instructions:

http://sourceforge.net/p/pm4linux/wiki/installation and uninstallation/

That's almost as easy as using the installer, you just have to copy and paste
the commands into the terminal.
Bang on the nose, actually, it's a damned sight easier! Thanks for the tip -
but back to my original post:

It comes in 4 parts:

Part 1 (the opening paragraph) is a long whinge about the current state of
Firefox which ends up with me downloading pminstaller-0.1.7.tar.bz2 from
palemoon.org, unpacking it, copying pminstaller.sh into my home directory &
running it.

Part 2 (under the 1st line) Describes (more or less) what happened. The
"flags" line was repeated 4 times & was followed by the "(yadxxxx): Gtk WARNING
**....
".

Part 3 (which took note of the instructions in the README:) merely says that SuSE
does not have "yad" installed by default (so I installed yad-0.16.3-1.1) & the Mozilla
libraries were up to date.

And, although this might not have been entirely clear, I had (pace
squarefractal) tried everything - clicking on the File Manager icon, running
as SUDO, SU, without any privileges but my own - but the result was always the
same. squarefractal is quite right, if you are not "root", the system always
asks for the "root" password.

I even, after squarefractal's comments, ran "startx" and tried to run
pminstaller from within that desktop. This moved forwards (slightly) but was
still not the answer.

Part 4 (Bash - 4.2.53 : inxi -zF) is the nuts & bolts of my system as reported
by "inxi" - System:, Machine: System, CPU, Etc.

I think pminstaller.sh is a crock. But your answer (above) certainly works. I've only been
using Pale Moon for a few hours but, while. there are (it seems) some problems (I will
address these at some other time) the scrolling (surely a basic function in any browser)
seems good. I may be a fan!

dmk

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1559
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: yad - CannotOpenDisplay

Unread post by trava90 » 2015-03-14, 01:33

You need to use YaST and install the package "xhost". Then from a terminal, type "xhost +" (minus quotes). Then you can start and use the installer normally.

Confirmed worked for me in an OpenSUSE 13.2 KDE VM with all updates installed.

(site for reference, specifically point 1)

Hextejas

Re: yad - CannotOpenDisplay

Unread post by Hextejas » 2015-03-20, 16:37

trava90 wrote:You need to use YaST and install the package "xhost". Then from a terminal, type "xhost +" (minus quotes). Then you can start and use the installer normally.

Confirmed worked for me in an OpenSUSE 13.2 KDE VM with all updates installed.

(site for reference, specifically point 1)
The xhost + worked for me but its effects disappear when I rebooted.
So, is there a way to make it permanent. It took me a while to find out what I had to do to do an update to PM.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1559
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: yad - CannotOpenDisplay

Unread post by trava90 » 2015-03-21, 05:59

Try adding "xhost +" to your .profile (see this).

squarefractal

Re: yad - CannotOpenDisplay

Unread post by squarefractal » 2015-03-21, 10:07

@Hextejas and @trava90: there's no need for this xhost + stuff: the installer is perfectly capable of elevating itself with su (and yes, it'll display a dialog by itself) and ask for the password if you run it from a non-root shell, i.e.:

Code: Select all

$ ./pminstaller.sh # note that its not a root shell, which would have begun with a '#'

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1559
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: yad - CannotOpenDisplay

Unread post by trava90 » 2015-03-21, 13:26

squarefractal wrote:@Hextejas and @trava90: there's no need for this xhost + stuff: the installer is perfectly capable of elevating itself with su (and yes, it'll display a dialog by itself) and ask for the password if you run it from a non-root shell, i.e.:

Code: Select all

$ ./pminstaller.sh # note that its not a root shell, which would have begun with a '#'
I know this, but for some reason specifically on OpenSUSE the installer will not run unless xhost is installed and the "xhost +" command is made (I can and have confirmed this). Please feel free to install OpenSUSE in a VM and try it yourself. I'd be just as interested in a better solution as the people encountering this problem.

Locked