You are not logged in.

#1 2013-06-21 21:40:37

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Ghex as root

Hey i got problem with run ghex as root. I got full acess in suoders but when i try to run it

[root@Alice luis]# sudo ghex

(process:1959): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
No protocol specified

** (ghex:1959): WARNING **: Could not open X display
No protocol specified
Cannot open display: 
Run 'ghex --help' to see a full list of available command line options.
[root@Alice luis]# 

how i can run ghex as root ?

Offline

#2 2013-06-21 21:47:40

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,904
Website

Re: Ghex as root

You shouldn't use 'sudo <graphical application>'. Preferably, you should use 'sux' or 'gksu' or 'kdesu'.


I think you haven't set your locale correctly though, so look up the wiki article on that, and the apps I mentioned.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-06-21 21:49:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Ghex as root

You don't need to use 'sudo' as root.
If ghex is a graphical app, see https://wiki.archlinux.org/index.php/Ru … ps_as_root

Offline

#4 2013-06-22 14:20:08

stipo
Member
Registered: 2013-06-15
Posts: 8

Re: Ghex as root

McQueenNewbie wrote:

Hey i got problem with run ghex as root. I got full acess in suoders but when i try to run it

[root@Alice luis]# sudo ghex

(process:1959): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
No protocol specified

** (ghex:1959): WARNING **: Could not open X display
No protocol specified
Cannot open display: 
Run 'ghex --help' to see a full list of available command line options.
[root@Alice luis]# 

how i can run ghex as root ?

If you are still trying to edit libflashplayer.so with ghex you could change the owner of the file. Then edit with ghex as normal user and change owner again.

Offline

#5 2013-06-22 14:56:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,423

Re: Ghex as root

Your shell belongs to root, so (as has been pointed out) sudo is not required.  An X session that can be used by the current user (root), however, is required.

Did you initially log in as root, or did you su to root?
Are you, as root, running an X session?  (BTW, doing so is extremely bad form)

The proper (if one takes the leap of faith that it is ever proper to run a GUI program as root) way to do this is to use the commands from WorMzy in post #2 when logged in as a normal user.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB