LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2003, 07:24 PM   #1
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
root and installing with gui installer


This has been nagging me for a while; I don't want to log in and startx as root but I have come across a few game [and other] installers which require an x based gui to run. At the moment, when logged in as a normal user I like to run installers from a su'd terminal but as soon as the aforementioned installer[s] is run I get the error:

bash-2.05b# source setup
bash-2.05b# Initialising files
Extracting archive from CD
Uncompressing archive
If you do not see a popup window, then please simply
untar the files in the install directory and read the
appropriate README files
/tmp/.tuxrtcwsetup/setup.run: line 46: xhost: command not found
Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified

or similar. sometimes it screen:0.0 which I cannot connect to as root.

where's my popup? boo-hoo!!!
is it something to do with /etc/hosts? any help would be greatly apreciated.
 
Old 11-20-2003, 08:08 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Re: root and installing with gui installer

Quote:
Originally posted by LinFreak!
is it something to do with /etc/hosts? any help would be greatly apreciated.
It has to do with Xauth, and it's a quite
sensible default. Ways around it ...

1. the insecure method:
As user, type
host +localhost

As root:
export DISPLAY=localhost:0.0

2. a better (and reasonably easy) approach
If ssh is running (and configured properly)

As normal user do
ssh -X [email protected] <installer>


HIH


Cheers,
Tink
 
Old 11-21-2003, 01:41 PM   #3
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Original Poster
Rep: Reputation: 30
here's what I get:

bash-2.05b$ cd /mnt/dvd
bash-2.05b$ ssh -X [email protected] source setup
[email protected]'s password:
bash: line 1: setup: No such file or directory
bash-2.05b$ pwd
/mnt/dvd
bash-2.05b$ ssh -X [email protected] source /mnt/dvd/setup
[email protected]'s password:
./setup.run: ./setup.run: No such file or directory
bash-2.05b$ ls
README install packages setup setup.2.1 setup.run splash.gif util
bash-2.05b$

hmm... this is not the first time I tried it. The first time I did this it asked me if I was sure if I wanted to add root to a list [oops, can't remember which list! sorry] so I think it works...
But as you can see in the above text, I don't think root is working in the same directory as the user
Is there some documentation you can point me towards please [man Xauthority doesn't Xist!]
many thanks.
 
Old 11-21-2003, 02:24 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
If the command you want to start on the
remote machine takes parameters you need
to enclose the whole command in double quotes...

And if the setup doesn't live in roots home
or his path you need to provide the full
path, too.


Cheers,
Tink
 
Old 11-21-2003, 07:23 PM   #5
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Original Poster
Rep: Reputation: 30
this works!!

$ ssh -X [email protected] cd /mnt/dvd && source setup

thanks again for all your help Tink :~]

edit: there is still a minor problem; I can install the link to /usr/local/bin but have no write permissions for /usr/local/games. I can therefore only install the game into my /home/user directory.... I'll get there in the end

edit2: I'll could always temporarily change the write permissions for /usr/local/games, but we both know that's cheating :lol:

Last edited by LinFreak!; 11-21-2003 at 07:32 PM.
 
Old 11-22-2003, 01:31 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Quote:
Originally posted by LinFreak!
$ ssh -X [email protected] cd /mnt/dvd && source setup

thanks again for all your help Tink :~]
Pleasure mate ... as for the permissions: I don't
understand why root shouldn't have write permissions.

And what I meant with inclusion was this:

$ ssh -X [email protected] "cd /mnt/dvd && source setup"


Cheers,
Tink
 
Old 11-22-2003, 05:24 PM   #7
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Original Poster
Rep: Reputation: 30
I konw what you mean, but when I tried that I got this:

bash-2.05b$ ssh -X [email protected] "cd /mnt/dvd && source setup"
[email protected]'s password:
Initialising files
Extracting archive from CD
Uncompressing archive
If you do not see a popup window, then please simply
untar the files in the install directory and read the
appropriate README files
/tmp/.tuxrtcwsetup/setup.run: line 46: xhost: command not found
Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified
Unable to connect to display localhost:0.0
/tmp/.tuxrtcwsetup/setup.run: line 48: 1833 Segmentation fault /tmp/tuxsetup $PWD
/tmp/.tuxrtcwsetup/setup.run: line 50: xhost: command not found
bash-2.05b$

.... whereas when I do it the "un-included" way: <------no pun intended!

bash-2.05b$ ssh -X [email protected] cd /mnt/dvd && source setup
[email protected]'s password:
bash-2.05b$ Initialising files
Extracting archive from CD
Uncompressing archive
If you do not see a popup window, then please simply
untar the files in the install directory and read the
appropriate README files

I get that ^ and the installer pops up ... strange that I can't install to where I want it though... nevermind eh.
I think I'll cheat the system this time, rules are made for breaking!

[don't tell Linus I said that ]


edit: you don't think it's a bug do you? I mean I don't realy know what I 'm dealing with here - but as you say: I sould have root privelages in a secure shell such as this and be able to read and write anywhere.

Last edited by LinFreak!; 11-22-2003 at 05:31 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does archlinux have a GUI installer? DesyphER Arch 35 06-10-2014 09:13 AM
Debian GUI Installer is OUT SlackerLX Debian 2 11-06-2005 01:02 PM
gui mozilla-installer in debian basanta Linux - General 0 11-25-2004 04:18 AM
What Does The UT2004 Installer Do Behind The Fancy GUI Installer? Tsuroerusu Linux - Games 2 09-09-2004 02:37 PM
Mandrake GUI Installer Remush Mandriva 2 04-23-2004 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration