Fedora Linux Support Community & Resources Center
  #1  
Old 3rd May 2012, 07:06 PM
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,179
linuxopera
usb mount without gdm or gnome ?

I'm trying to use fedora 16 with slim and .xinit and openbox, xmonad, dwm or something like that

It seems to be working OK so far, a problem for me is the loss of the auto mount for my usb card reader and disk drive. Is there a way to get the automounting working without having to run the gnome-sessions ?

Thank You for any tips,
Pat Jr.
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
  #2  
Old 3rd May 2012, 08:22 PM
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 64
Posts: 2,460
linuxfirefox
Re: usb mount without gdm or gnome ?

I'm running F16 with XFCE and automount works just fine without gnome-sessions. I'd suggest that you ask this question on whatever support forum or mailing list is available for your DE, because the people using it are better qualified to help you than we're likely to be.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #3  
Old 3rd May 2012, 10:11 PM
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,179
linuxopera
Re: usb mount without gdm or gnome ?

hanks for the tip sidebrnz

I put
exec ck-launch-session dbus-launch openbox

in my .xinit and the removable drive "showed up" in pcmanfm and thunar but it kept spiting errors about "I'm not authorized" I couldn't get it to do anything logged in as root.

hummmm, keep searching I guess
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
  #4  
Old 3rd May 2012, 11:32 PM
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,269
linuxfirefox
Re: usb mount without gdm or gnome ?

I've found this page helpful: https://wiki.archlinux.org/index.php/Automount#UDisks

There is also pmount, in the Fedora repos.
Reply With Quote
  #5  
Old 4th May 2012, 12:21 AM
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,179
linuxopera
Re: usb mount without gdm or gnome ?

I found these and now it seems to be working, it complains blah, blah, blah but then it mounts the CD or usb disk.

https://bbs.archlinux.org/viewtopic.php?pid=909624

https://wiki.archlinux.org/index.php/PCManFM

so I editied my /etc/slim.conf

Code:
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
# login_cmd           if [ -r ~/.xinitrc ]; then exec  /bin/bash -login ~/.xinitrc %session; else PREFERRED=%session exec /bin/bash -login /etc/X11/xinit/xinitrc; fi
# login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
# login_cmd exec ck-launch-session dbus-launch /bin/bash -login ~/.xinitrc %session
login_cmd exec ck-launch-session dbus-launch /bin/bash -login ~/.xinitrc

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command
and then I added the policy kit thingy
as root
Code:
I used geany to make the file  /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla

put this in there
 [Storage Permissions]
 Identity=unix-group:storage
 Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
 ResultAny=yes
 ResultActive=yes
 ResultInactive=no

saved it
and this is my ~/.xinit
to start openbox

Code:
#!/bin/bash
 
# Load resources
 
xrdb -merge .Xresources
 
# Set up an icon tray
 
# Set the background color<
 
xsetroot -solid black
 
# Fire up apps
fbpanel -p openbox-fbp &
numlockx on &
xscreensaver -no-splash &
# nm-applet  &
# printer-applet &
wait 5
pnmixer &
parcellite &
# fwbackups --start-minimized &
zim --plugin trayicon &
keepassx -min &
# qstardict &
# libreoffice --quickstart --nologo &
wait 10
# efax-gtk -s &


 
# exec dwm-start
# exec ck-launch-session dbus-launch openbox
# exec ck-launch-session openbox
# exec ck-launch-session dbus-launch &
exec openbox
and I had to make a group
groupadd storage

and add me to it
usermod -a -G storage USERNAME


I still need to do some testing to make sure it works.
sonoran and sidebrnz,Thank You for your tips
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.

Last edited by PatMcLJr; 17th May 2012 at 12:40 PM.
Reply With Quote
  #6  
Old 4th May 2012, 12:44 AM
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 64
Posts: 2,460
linuxfirefox
Re: usb mount without gdm or gnome ?

If it's still complaining, let us know what the error message is; it might be something simple that we know how to fix.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #7  
Old 4th May 2012, 01:02 AM
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,179
linuxopera
Re: usb mount without gdm or gnome ?

Thank You for the follow up.
After a reboot the complaining seems to have eased up a bit.

I did notice the the removable media doesn't mount from gnome-commander, I had to use thunar or pcmanfm to get the drive to mount.

More testing needed I guess.
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
  #8  
Old 4th May 2012, 04:47 PM
axel2078 Offline
Registered User
 
Join Date: Jun 2010
Location: Fairview Heights, IL
Posts: 74
windows_xp_2003firefox
Re: usb mount without gdm or gnome ?

You don't need a graphical session to do this if the system at least recognizes the USB device you inserted. Do a
Code:
lsusb
and look for a description that is similar to your device (the vendor name is usually part of the description for flash drives) and see what it was picked up as. It will probably be something like /dev/sdb1. Then you'd just mount it by running mount /dev/sdb1 /mnt/media (or wherever you want to mount it). Alternatively, you can see which devices you have on the system BEFORE you insert the drive and then do a comparison afterward to see what your drive is labeled. For example, do
Code:
ls -l /dev | grep sd
and that will show you which drives (hard drives and flash drives) are installed because they *should* start with sd. Now, insert your USB drive and do this again and see which new entry pops up under /dev (starting with sd). That should be your flash drive.
Reply With Quote
Reply

Tags
.xinit, gdm, gnome, mount, openbox, slim, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Gnome-mount hrcpadilha Using Fedora 0 20th November 2007 11:11 PM
gnome-mount gbergeson Using Fedora 2 5th June 2006 01:40 AM
Hal, gnome-mount and .fdi files StevieS Hardware & Laptops 4 31st March 2006 09:54 PM


Current GMT-time: 22:21 (Saturday, 19-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat