LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-03-2007, 07:44 AM   #1
cuk
Member
 
Registered: Jun 2004
Distribution: slackware 10.2.
Posts: 39

Rep: Reputation: 15
running X apps as root-what happened to xhost


Hi all,
Just installed Slack11after a short flirt with debian, it is really great. I have a small problem though: on 10.2 I was able to run X applications as root entering 'xhost +' as user beforehand.. Now there is no xhost anymore. I use a Java program with a graphical installer, thus I need this. Any tips? Thanks in advance.
 
Old 04-03-2007, 08:46 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Can't answer why there is no "xhost". (Are you sure you've isntalled X? - it should be in /usr/bin/X11 if so but I don't know your distro.)

Assuming you do have X installed you can use an ssh tunnel and bypass the need (and security downside) of using "xhost +".

Just do "ssh -X" when you open the connection. This enables X11 forwarding so it uses your ssh port instead of the 6000 port range to do the X window.

Make sure your /etc/profile, /etc/bashrc, $HOME/.profile, $HOME/.bash_profile etc... don't have anything that sets the DISPLAY variable. The X11 tunnel will set DISPLAY for you and the one it uses is for the tunnel so isn't the standard "MYIP:0.0".
 
Old 04-04-2007, 05:29 AM   #3
cuk
Member
 
Registered: Jun 2004
Distribution: slackware 10.2.
Posts: 39

Original Poster
Rep: Reputation: 15
Silly me. Of course it was in /usr/bin/X11, which wasn't on my path. Thanks.
 
  


Reply



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
xhost + on ubuntu (to show remote x apps) tunasashimi Ubuntu 2 07-07-2005 06:18 AM
root apps running on X under regular user?? nny0000 Slackware 3 02-05-2004 02:09 PM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 12:23 PM
What happened to apps.kde.com? TrekJunky Linux - Software 0 12-15-2003 05:42 AM
Running apps as non-root bestmehr Linux - General 1 08-14-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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