Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gnome-2.28 automounting fails when using startx
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 737

PostPosted: Sun Jun 27, 2010 10:08 pm    Post subject: Gnome-2.28 automounting fails when using startx Reply with quote

I have been logging in from a console using the basic stratx command for years. Now if I login using startx, Gnome 2.28 fails to automount any media when it is inserted.

I receive a pop-up window stating "Unable to mount (whatever)" "Not Authorized". (whatever) refers to the type of media I have inserted, as gnome detects it properly. If I open the Disk-Utility, I can manually mount and unmout the media or drive. If I try to use eject I also get the 'Not Authorized" notice.

If I start xdm from the console instead of X and log in through GDM (the configured DISPLAYMANAGER). Gnome's automounting works perfectly.

I would prefer to boot to the console then be able to run startx or any other program or preform maintenance when necessary.

I need some help sorting this all out, as I most likely missed something during the update of gnome.

TIA
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Jun 27, 2010 11:13 pm    Post subject: Reply with quote

You should probably start with consolekit - as you use 'startx',
you probably need it running in default runlevel.
Probably 'ck-launch-session' needs to be added in the .xsession/.xinitrc.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 737

PostPosted: Mon Jun 28, 2010 10:35 am    Post subject: Reply with quote

VoidMage wrote:
You should probably start with consolekit - as you use 'startx',
you probably need it running in default runlevel.
Probably 'ck-launch-session' needs to be added in the .xsession/.xinitrc.

Thanks

I do have consolekit in the default runlevel and started.
Code:
tango michael # rc-update -s
               acpid |      default                 
           alsasound | boot                         
      avahi-dnsconfd |      default                 
            bootmisc | boot                         
             checkfs | boot                         
           checkroot | boot                         
               clock | boot                         
         consolefont | boot                         
          consolekit |      default                 
               cupsd |      default                 
                dbus |      default                 
              esound |      default                 
                 gpm |      default                 
                hald |      default                 
            hostname | boot                         
             keymaps | boot                         
               local |      default nonetwork       
          localmount | boot                         
             modules | boot                         
            net.eth0 |      default                 
              net.lo | boot                         
            netmount |      default                 
            nfsmount |      default                 
          ntp-client |      default                 
           rmnologin | boot                         
                sshd |      default                 
           syslog-ng |      default                 
            timidity |      default                 
      udev-postmount |      default                 
             urandom | boot                         
          vixie-cron |      default 


I have never used the .xinitrc method to startx. So I created the file and set it up according to the X and gnome setup documentation. I restarted X and gnome but instead of the "Not Authorized" message window I received "Access Denied".

Maybe I need to rebuild some apps after I setup the .xinitrc file. Which ones? I'm not sure.

From The X Server Configuration HOWTO
Code:
Using startx

Now try startx to start up your X server. startx is a script that executes an X session, that is, it starts the X servers and some graphical applications on top of it. It decides which applications to run using the following logic:

    * If a file named .xinitrc exists in the home directory, it will execute the commands listed there.
    * Otherwise, it will read the value of the XSESSION variable and will execute one of the sessions available in /etc/X11/Sessions/ accordingly. You can set the value of XSESSION in /etc/env.d/90xsession to make it a default for all the users on the system. For example, as root, run echo XSESSION="Xfce4" > /etc/env.d/90xsession. This will create the 90xsession file and set the default X session to Xfce4.

My /etc/env.d/90xsession is set to "Gnome".

From The GNOME Configuration HOWTO
Code:
Let us first take a look at what we just built. Exit your root shell and log on as a regular user. We will configure our session to run GNOME when we issue the startx command (see also Using startx in the X Server Configuration Howto):

Starting with gnome-base/gnome-session-2.26.2, you will need to prepend the XDG_MENU_PREFIX variable to get the Gnome menus if you're using the ~/.xinitrc method to start your desktop. (If you're not using ~/.xinitrc, it will be handled automatically for you; no additional configuration is needed.)


Not sure where to go from here as this problem only seems to occur to systems using the startx command.

TIA.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Jun 28, 2010 1:24 pm    Post subject: Reply with quote

What exactly did you put into .xinitrc ?
Did you look at the script that's used when no ~/.xinitrc is present ?
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 737

PostPosted: Tue Jun 29, 2010 2:16 am    Post subject: Reply with quote

VoidMage wrote:
What exactly did you put into .xinitrc ?
Did you look at the script that's used when no ~/.xinitrc is present ?


Thanks again.

Good question on ~/.xinitrc. I can't remember exactly all I put in it and it is extremely possible I left out very important information or had it mis-configured in some way. I have never had that file to the best of my knowledge so I am not even sure what it should contain. Maybe someone could post a working copy of one that I could use as a starting point. With all the recent changes and updates it is highly possible this file is required now when using startx alone.

As for the script that is used when no ~/.xinitrc is present, again I am lost here as I don't know which script is ran and where it is located at the moment. I will have to do some digging around to find it, it can't be that hard to locate.

TIA
Back to top
View user's profile Send private message
dolney
n00b
n00b


Joined: 28 Jul 2004
Posts: 4
Location: Philadelphia, PA

PostPosted: Sun Jul 04, 2010 4:23 am    Post subject: Reply with quote

To get automount working with gnome-2.30 + startx, I had to change this line in /etc/X11/xinit/xinitrc.d/30-dbus:

Change

eval `$dbuslaunch --sh-syntax --exit-with-session`

to

command="$dbuslaunch --sh-syntax --exit-with-session $command"
Back to top
View user's profile Send private message
caguiar
n00b
n00b


Joined: 07 Dec 2005
Posts: 6
Location: Madeira

PostPosted: Thu Jul 08, 2010 3:08 pm    Post subject: Reply with quote

I had the same problem, to solve it I had to create the file ~/.xinitrc with the following contents:

export XDG_MENU_PREFIX=gnome-
exec ck-launch-session gnome-session
_________________
Clemente
Back to top
View user's profile Send private message
rimsky
n00b
n00b


Joined: 06 Aug 2011
Posts: 12

PostPosted: Fri Oct 14, 2011 6:46 pm    Post subject: Reply with quote

sometims the ".xinitrc" metod was helping me but after some emerege world updates I have that problem again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum