Skip site navigation (1)Skip section navigation (2)
Date:      28 Jul 2002 01:18:27 +0100
From:      Stacey Roberts <stacey@Demon.vickiandstacey.com>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        sroberts@dsl.pipex.com, Maxime Romano <verbophobe@hotmail.com>, freebsd-gnome@FreeBSD.ORG
Subject:   Re: Recompiled Sawfish, now startx works only for root WAS [Re: Newly installed
Message-ID:  <1027815509.33439.4.camel@Demon.vickiandstacey.com>
In-Reply-To: <1027809695.48261.45.camel@shumai.marcuscom.com>
References:  <F125OpoUyE6ZnFDenr30002671c@hotmail.com>  <1027780596.76796.9.camel@Demon.vickiandstacey.com>  <1027790105.46963.3.camel@shumai.marcuscom.com>  <1027798187.32700.3.camel@Demon.vickiandstacey.com>  <1027802981.48261.3.camel@shumai.marcuscom.com>  <1027807293.32700.25.camel@Demon.vickiandstacey.com>  <1027804772.48261.23.camel@shumai.marcuscom.com>  <1027811128.32700.44.camel@Demon.vickiandstacey.com>  <1027807773.48261.41.camel@shumai.marcuscom.com>  <1027813188.33191.11.camel@Demon.vickiandstacey.com>  <1027809695.48261.45.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi Joe,
   I got the mouse functionality working now.

I should say that I was a bit surprised to see that all that was missing
from /etc/rc.conf was the moused_flags line. Here's what it looks like
now:

moused_enable="YES"
moused_flags="-3" <------ The only line I wrote in
moused_port="/dev/psm0"
moused_type="auto"

Also, I was unable to run the moused cmd at once. I got a "device busy"
error.

What I did was ran a kill on the pid for the existing mouse process,
then started moused with the required switches.

Hope that was okay, and that the above lines in /etc/rc.conf proves to
be sufficient.

Thanks again for your assistance.

Stacey


On Sat, 2002-07-27 at 23:41, Joe Marcus Clarke wrote:
> On Sat, 2002-07-27 at 19:39, Stacey Roberts wrote:
> > Joe.., you're a DUDE!
> > 
> > That's sorted out the Sawfish issue for me wholesale!  All appears fine
> > now with Sawfish, and I was able to run the Sawfish configuration tool
> > and set things up as I prefer.
> > 
> > Do you think that it was down to wrong permissions on Sawfish dirs that
> > caused my problems?
> 
> Yes.
> 
> > 
> > On another note. I'll be doing the following now:
> > 
> > 1] Edit ~/.xinitrc (I presume I don't have to exit from X) to include:
> > exec /usr/X11R6/bin/gnome-session
> 
> Nope.
> 
> > 
> > 2] Exit from X
> > 
> > 3] Edit /etc/X11/XF86Config to include these options for the 2 button
> > mouse:
> > 
> > Section "InputDevice"
> > 	Identifier	"Mouse0"
> > 	Driver		"mouse"
> > 	Option		"Protocol" "auto"
> > 	Option		"Device" "/dev/mouse"
> > 	Option		"Emulate3Buttons"
> > EndSection
> > 
> > 4] Edit /etc/rc.conf to include: 
> > moused_enable="YES"
> > moused_flags="-3"
> > 
> > 5] As non-root user, run moused -p /dev/psm0 -t auto -3
> 
> moused should run as root.
> 
> > 
> > Please let me know the above looks okay for what is required for the
> > mouse to work okay:
> > 
> > Thanks again for all of your patience, and willingness to help!
> 
> No problem.
> 
> Joe
> 
> > 
> > Stacey
> > 
> > On Sat, 2002-07-27 at 23:09, Joe Marcus Clarke wrote:
> > > On Sat, 2002-07-27 at 19:05, Stacey Roberts wrote:
> > > > Hi Joe,
> > > >    Okay, let me make sure I have this procedure down correct here:
> > > > 1] Log off from X
> > > > 2] su to root
> > > > 3] Delete (as root) /tmp/.sawfish-stacey
> > > 
> > > 3.25] Delete _all_ /tmp/.sawfish* directories
> > > 3.5] Exit from su back to user stacey
> > > 
> > > > 4] Run "startx" to log into X again
> > > > 5] I should now be able to configure Sawfish in gnomecontrolcenter
> > > 
> > > Yes, if you do the steps I listed above.
> > > 
> > > > 
> > > > I'm not sure what you meant by ensuring that I use Xwrapper to start X.
> > > > I only use what I've installed (the wrapper port) in order to use
> > > > "startx" to start X
> > > 
> > > When I say Xwrapper, I mean the wrapper port.
> > > 
> > > Joe
> > > 
> > > > 
> > > > Please let me know if there's some chance I'm not using the correct
> > > > procedure here.
> > > > 
> > > > Stacey
> > > > 
> > > > 
> > > > On Sat, 2002-07-27 at 22:19, Joe Marcus Clarke wrote:
> > > > > On Sat, 2002-07-27 at 18:01, Stacey Roberts wrote:
> > > > > > Hi Joe,
> > > > > >    I've not got copy paste working with my mouse here at the moment
> > > > > > working on that as well :-( but I'll type the output here:
> > > > > 
> > > > > Make sure you're using moused, and have your protocol in your XF86Config
> > > > > file set to Auto.  If the button is only a two-button mouse, make sure
> > > > > you're starting moused with the -3 flag, and you have the correct
> > > > > Emulate3Buttons option set for your mouse in XF86Config.
> > > > > 
> > > > > > 
> > > > > > As non-root user:
> > > > > > bash-2.05a$ /usr/X11R6/bin/sawfish-ui
> > > > > > error: can't connect to socket
> > > > > > /tmp/.sawfish-stacey/<host>.mydomainname.com:0.0
> > > > > > *** Error: can't connect to sawfish on display, :0
> > > > > 
> > > > > Does /tmp/.sawfish-stacey/ exist?  What are the permissions?  How about
> > > > > the <host>.mydomainname.com:0.0 socket?
> > > > > 
> > > > > > 
> > > > > > As root after the above failure:
> > > > > > # /usr/X11R6/bin/sawfish-ui
> > > > > > GnomeUI-WARNING **: While connecting to session manager:
> > > > > > Authentication Rejected, reason : None of the authentication protocols
> > > > > > specified are supported and host-based authentication failed.
> > > > > > error: can't connect to socket
> > > > > > /tmp/.sawfish-stacey/<host>.mydomainname.com:0.0
> > > > > > *** Error: can't connect to sawfish on display, :0
> > > > > > 
> > > > > > Hope this proves helpful.
> > > > > > 
> > > > > > About your other e-mail concerning the contents of ~/.xinitrc, what I
> > > > > > have in the file is only what's written in the FBSD Handbook 2nd Ed Pg
> > > > > > 137
> > > > > 
> > > > > The handbook could use an update.  Starting gnome-session with exec
> > > > > greatly speeds things up when closing X.
> > > > > 
> > > > > Joe
> > > > > 
> > > > > > 
> > > > > > Stacey
> > > > > > 
> > > > > > On Sat, 2002-07-27 at 21:49, Joe Marcus Clarke wrote:
> > > > > > > On Sat, 2002-07-27 at 15:29, Stacey Roberts wrote:
> > > > > > > > Hi Joe,
> > > > > > > >    I ran the cmds you suggested as prescribed. One thing to mention:
> > > > > > > > 
> > > > > > > > For the two commands:
> > > > > > > > killall gconfd-1
> > > > > > > > killall gconfd-2
> > > > > > > > 
> > > > > > > > I got "no matching process found" returned.
> > > > > > > > 
> > > > > > > > On typing startx, sound now appears to be working, but I am still unable
> > > > > > > > to configure Sawfish: Same "beep", nothing happens.
> > > > > > > > 
> > > > > > > > Some progress though., whatdya think?
> > > > > > > 
> > > > > > > Run /usr/X11R6/bin/sawfish-ui, and send me the output.
> > > > > > > 
> > > > > > > Joe
> > > > > > > 
> > > > > > > > 
> > > > > > > > Thanks.
> > > > > > > > 
> > > > > > > > Stacey
> > > > > > > > 
> > > > > > > > On Sat, 2002-07-27 at 18:15, Joe Marcus Clarke wrote:
> > > > > > > > > On Sat, 2002-07-27 at 10:36, Stacey Roberts wrote:
> > > > > > > > > > Hi Maxime
> > > > > > > > > >    Thanks for getting back to me.
> > > > > > > > > > 
> > > > > > > > > > I got your message and advise about configuring Sawfish, but its really
> > > > > > > > > > strange here.
> > > > > > > > > > 
> > > > > > > > > > When I installed gnome, I didn't select any other window manager (as I
> > > > > > > > > > knew that Sawfish is installed as the default window manager anyways. I
> > > > > > > > > > was able to run the "Configure Sawfish Window Manager" tool as root
> > > > > > > > > > after recompiling Sawfish (as per Joe Marcus Clarke's advisory), but I
> > > > > > > > > > am not able to do so as a non-root user.
> > > > > > > > > > 
> > > > > > > > > > I get the same "beep" noise and nothing happens.
> > > > > > > > > > 
> > > > > > > > > > Sawfish is selected as "current" in the gnomecontrolcenter panel when I
> > > > > > > > > > start it, so its already running!
> > > > > > > > > > 
> > > > > > > > > > If there is any log / or config files that would assist you, do ask and
> > > > > > > > > > I'll get that off to you.
> > > > > > > > > 
> > > > > > > > > Shut all X things down.  Then run the following as root:
> > > > > > > > > 
> > > > > > > > > killall esd
> > > > > > > > > killall oafd
> > > > > > > > > killall gconfd-1
> > > > > > > > > killall gconfd-2
> > > > > > > > > 
> > > > > > > > > rm -rf /tmp/.sawfish*
> > > > > > > > > 
> > > > > > > > > Then start up X again as a non-root user.  Things should work for you.
> > > > > > > > > 
> > > > > > > > > Joe
> > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > Thanks again for the reply.
> > > > > > > > > > 
> > > > > > > > > > Stacey
> > > > > > > > > > 
> > > > > > > > > > On Sat, 2002-07-27 at 14:23, Maxime Romano wrote:
> > > > > > > > > > > >From: <sroberts@dsl.pipex.com>
> > > > > > > > > > > >To: Maxime Romano <verbophobe@hotmail.com>
> > > > > > > > > > > >CC: <sroberts@dsl.pipex.com>, <freebsd-gnome@freebsd.org>
> > > > > > > > > > > >Subject: Re: Recompiled Sawfish, now startx works only for root WAS [Re: 
> > > > > > > > > > > >Newly installed
> > > > > > > > > > > >Date: Sat, 27 Jul 2002 11:39:35 +0100
> > > > > > > > > > > >
> > > > > > > > > > > >Hi Maxime,
> > > > > > > > > > > >    That's worked for!
> > > > > > > > > > > >
> > > > > > > > > > > >However, I'm back to my original problem:
> > > > > > > > > > > >
> > > > > > > > > > > >"Sawfish not running", when trying to configure Sawfish as ordinary user.
> > > > > > > > > > > 
> > > > > > > > > > > Sawfish must be running *before* you can configure it.
> > > > > > > > > > > 
> > > > > > > > > > > >
> > > > > > > > > > > >Running "sawfish" at cli returns: "You can only run one window manager"
> > > > > > > > > > > You have to kill your current window manager, and start sawfish quickly, or 
> > > > > > > > > > > else the old window manager might kick in and try to take over again.
> > > > > > > > > > > 
> > > > > > > > > > > Try something like "killall metacity;killall enlightenment;killall 
> > > > > > > > > > > sawfish;killall twm;sawfish 1&- 2&- 3&- &"  That oughta fix everthing up.
> > > > > > > > > > > 
> > > > > > > > > > > -Maxime Romano
> > > > > > > > > > > 
> > > > > > > > > > > >
> > > > > > > > > > > >Stacey
> > > > > > > > > > > >
> > > > > > > > > > > >Quoting Maxime Romano <verbophobe@hotmail.com>:
> > > > > > > > > > > >
> > > > > > > > > > > > > No, no!  To use startx, your X server must be SUID root!  Do to that,
> > > > > > > > > > > > > just
> > > > > > > > > > > > > chmod +s /usr/X11R6/bin/XFree86 as root and you're set.
> > > > > > > > > > > > >
> > > > > > > > > > > > > (Oh, and try to set the permissions on XFree86.0.log to what they were.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Something might break.)
> > > > > > > > > > > > >
> > > > > > > > > > > > > -Maxime Romano
> > > > > > > > > > > > >
> > > > > > > > > > > > > >From: <sroberts@dsl.pipex.com>
> > > > > > > > > > > > > >To: robert Backhaus <robbakfreebsd@yahoo.co.uk>
> > > > > > > > > > > > > >CC: Joe Marcus Clarke <marcus@marcuscom.com>,FreeBSD User Questions
> > > > > > > > > > > > > List
> > > > > > > > > > > > > ><freebsd-questions@FreeBSD.ORG>,<freebsd-gnome@FreeBSD.ORG>
> > > > > > > > > > > > > >Subject: Re: Recompiled Sawfish, now startx works only for root WAS
> > > > > > > > > > > > > [Re:
> > > > > > > > > > > > > >Newly installed 4.6Stable+gnome1.4x = Broken Sawfish]
> > > > > > > > > > > > > >Date: Sat, 27 Jul 2002 10:53:27 +0100
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >Hi Robert,
> > > > > > > > > > > > > >    I did as you suggested, but that only gives me a new error:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >Fatal server error:
> > > > > > > > > > > > > >xf86OpenConsole: server must be suid root
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >Silly question, how do I get the permissions to revert back to what
> > > > > > > > > > > > > they
> > > > > > > > > > > > > >were:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >"rw r r root wheel"
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >????
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >Stacey
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >Quoting robert Backhaus <robbakfreebsd@yahoo.co.uk>:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > --- sroberts@dsl.pipex.com wrote:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Hi Joe,
> > > > > > > > > > > > > > > >    I recompiled Sawfish, but now startx only works
> > > > > > > > > > > > > > > > for root.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > For each user, there already exists the .xinitrc
> > > > > > > > > > > > > > > > file
> > > > > > > > > > > > > > > > with: /usr/X11R6/bin/gnome-session being the only
> > > > > > > > > > > > > > > > line in there.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > The error I get is:
> > > > > > > > > > > > > > > > Fatal Server Error:
> > > > > > > > > > > > > > > > Cannnot open log file /var/log/XFree86.0.log
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Please help me with this.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Stacey
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Check the ownership of /var/log/Free86.0.log
> > > > > > > > > > > > > > > ls /var/log/XFree86.0.log
> > > > > > > > > > > > > > > it should be something like rwx_w__w_
> > > > > > > > > > > > > > > do chmod a+w /var/log//XFree86.0.log
> > > > > > > > > > > > > > > I hope.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Robert Backhaus
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > __________________________________________________
> > > > > > > > > > > > > > > Do You Yahoo!?
> > > > > > > > > > > > > > > Yahoo! Health - Feel better, live better
> > > > > > > > > > > > > > > http://health.yahoo.com
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > > > > > > > > >with "unsubscribe freebsd-gnome" in the body of the message
> > > > > > > > > > > > >
> > > > > > > > > > > > > _________________________________________________________________
> > > > > > > > > > > > > Join the world’s largest e-mail service with MSN Hotmail.
> > > > > > > > > > > > > http://www.hotmail.com
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > > > > > > >with "unsubscribe freebsd-gnome" in the body of the message
> > > > > > > > > > > 
> > > > > > > > > > > 
> > > > > > > > > > > _________________________________________________________________
> > > > > > > > > > > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> > > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > > > > > with "unsubscribe freebsd-gnome" in the body of the message
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > 
> > 
> > 
> > 
> > 
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1027815509.33439.4.camel>