You are not logged in.
Hello archers
Ive recently changed my distro from lubuntu to Arch64. In the way i've read many articles about trying to solve your problems in the wiki and such, the thing is, i made it this far without human help (exept some small talk with a friend) and i have encountered a mayor problem wich i can't solve by my own, i've been walking arround in circles and can't manage to get it working properly
$ uname -a
Linux Watch-Tower 3.2.11-1-ARCH #1 SMP PREEMPT Thu Mar 15 09:19:02 CET 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linuxwhat i want to do:
- start PC
- insert pendrive/CD/DVD
- system will automatically mount the storage device
- be able to access it from PCmanFM (wich i've installed) without being r00t or superuser
- be able to unmount the storage device with a right click and "remove device" or such...
what i can do:
- insert a CD/DVD/USB-PENDRIVE and look at right column of PCmanFM to see it mounted (system will automatically mount the storage device)
- access the CD/DVD/USB-PENDRIVE files only if i use "sudo pcmanfm" and enter password first
- unmount only being a superuser or r00t
i hope i made myself clear. I've tryed to follow the wiki about udev and PCmanFM automount as regular user but if i add
exec ck-launch-session dbus-launch openbox-sessionto my .xinitrc or to my slim.conf i get an error from SLiM that doesn't let me log in "slim failed to execute login command".
The only way that i can start openbox is by removing ck-launch-session of .xinitrc and/or slim.conf
i will post my confs in order to help others to understand what's happening what i don't for lack of experience and knowledge
rc.conf:
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# See 'man 5 rc.conf' for more details
#
# LOCALIZATION
# ------------
HARDWARECLOCK=""
TIMEZONE="America/Argentina/Buenos_Aires"
KEYMAP="es"
CONSOLEFONT="161"
CONSOLEMAP=
LOCALE=es_AR-UTF.8
DAEMON_LOCALE="yes"
USECOLOR="yes"
# HARDWARE
# --------
MOD_AUTOLOAD="yes"
MODULES=()
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
# NETWORKING
# ----------
HOSTNAME=Watch-Tower
interface=eth0
address=
netmask=
broadcast=
gateway=
NETWORK_PERSIST="no"
# DAEMONS
# -------
#
DAEMONS=(@udev @syslog-ng @network @dbus @crond).xinitrc:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
#
# exec ck-launch-session dbus-launch openbox-session
exec openbox-sessionslim.conf:
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
# numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# 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 /bin/bash -login ~/.xinitrc %session
login_cmd /bin/bash -login ~/.xinitrc %session
# 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
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions xfce4,icewm,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user nicolas
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login yes
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme archlinux-simplyblack
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.loghope someone has the answer out there, and is ready to share it,
thanks in advance.
Last edited by r@fitiiixxx (2012-03-21 07:19:32)
Offline
I'm using slim with Xfce4 and don't have any problems with automatic mounting. I've also tried both openbox and LXDE without difficulty.
What you need to do to get it working properly is install gvfs and udisk, then just use a simple line in your .xinitrc. Like this
exec ck-launch-session startxfce4 # or openbox or LXDEYou don't need anything else in your .xinitrc and make sure it's executable by you.
chmod u+x ~/.xinitrcOptionally: install notification-daemon and gnome-vfs.
You can get all of the correct stuff as dependencies if you just execute the command
sudo pacman -S --needed gnome-vfsThere are other ways to minimise the dependencies, but they're a bit of a pain.
Last edited by jamesbannon (2012-03-18 15:20:21)
Offline
@jamesbannon:
thanks for the help, but it didn't work
as i was sure because i had allready installed some of the gvfs and udisks libs. Same problem, do you have another idea?
Offline
so, does someone know anything that could help me? please i need some help with thi issue ![]()
Offline
ck-launch-session is part of the consolekit package; is it installed on your machine?
And what do you have in the /etc/X11/xinit/xinitrc.d directory?
Also start your GUI and post, using code tags, the ouput of
ps -efww
You should also remember that there are log files to consult (in /var/log) to search for causes of problems...
Offline
@jamesbannon:
thanks for the help, but it didn't work
as i was sure because i had allready installed some of the gvfs and udisks libs. Same problem, do you have another idea?
Here is what the output of ps ax looks like on my box with everything set up (clipped to ignore the kernel worker threads):
847 ? Ss 0:00 /usr/bin/slim
849 tty7 Ss+ 0:41 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
1064 ? Sl 0:00 /usr/sbin/console-kit-daemon --no-daemon
1131 ? Sl 0:00 /usr/lib/polkit-1/polkitd --no-debug
1141 ? S 0:00 ck-launch-session startxfce4
1154 ? S 0:00 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
1162 ? S 0:00 dbus-launch --sh-syntax --exit-with-session
1163 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
1167 ? S 0:00 /usr/lib/xfce4/xfconf/xfconfd
1172 ? Ss 0:00 gpg-agent --daemon --enable-ssh-support --write-env-file /home/jbannon/.cache/gpg-agent-info
1182 ? S 0:00 xfce4-session
1187 ? S 0:01 xfwm4
1189 ? Sl 0:02 xfce4-panel
1191 ? Sl 0:06 Thunar --daemon
1193 ? Sl 0:01 xfdesktop
1196 ? S 0:00 xfsettingsd
1199 ? Ssl 0:00 xfce4-power-manager
1201 ? S 0:00 /usr/lib/gvfs/gvfsd
1209 ? Ssl 0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/jbannon/.gvfs
1220 ? S<l 0:04 /usr/bin/pulseaudio --start
1222 ? SNl 0:00 /usr/lib/rtkit-daemon
1227 ? S 0:00 xfce4-settings-helper
1235 ? S 0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
1237 ? Sl 0:00 /usr/lib/upower/upowerd
1239 ? Sl 0:00 /usr/lib/udisks/udisks-daemon
1245 ? S 0:00 udisks-daemon: not polling any devices
1248 ? S 0:00 /usr/lib/pulse/gconf-helper
1254 ? S 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
1256 ? S 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.12 /org/gtk/gvfs/exec_spaw/0
1311 ? S 0:00 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libsystray.so 6 20971563 systray Notification Area Area where notification icons appear
1561 ? S 0:00 /usr/lib/gvfs/gvfsd-metadata
2035 ? S 0:00 xfce4-clipman
2923 ? Sl 0:00 /usr/lib/dconf/dconf-service
5141 ? S 0:00 /lib/udev/udevd --daemon
7624 ? S 0:00 /usr/lib/GConf/gconfd-2
15347 ? S 0:00 [kworker/5:0]
17569 ? Sl 0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.12 /org/gtk/gvfs/exec_spaw/1
17573 ? S 0:00 /usr/lib/gvfs/gvfsd-dnssd --spawner :1.12 /org/gtk/gvfs/exec_spaw/2You can probably ignore gvfs-gphoto2 (unless you plan on using a camera, in which case you need it). The rest are pretty much essential, I think. You should have similar output for LXDE. Note that I generally install gvfs and related items explictly, rather than as dependencies.
Last edited by jamesbannon (2012-03-20 12:18:42)
Offline
ck-launch-session is part of the consolekit package; is it installed on your machine?
And what do you have in the /etc/X11/xinit/xinitrc.d directory?
Also start your GUI and post, using code tags, the ouput of
ps -efwwYou should also remember that there are log files to consult (in /var/log) to search for causes of problems...
I don't have LXDE, sorry for not telling you that before, just plain OpenBox wm. No DE in my machine. :S
$ sudo pacman -Ss consolekit
extra/consolekit 0.4.5-2 [installed]
A framework for defining and tracking users, login sessions, and seats[nicolas@Watch-Tower xinitrc.d]$ ls
30-dbus 40-libcanberra-gtk-module pulseaudio xdg-user-dirswhat logs should i be looking for?
[nicolas@Watch-Tower log]$ ls
ConsoleKit crond.log.2 faillog slim.log.1.gz
Xorg.0.log daemon.log kernel.log syslog.log
Xorg.0.log.old daemon.log.1 kernel.log.1 syslog.log.1
Xorg.1.log daemon.log.2 kernel.log.2 syslog.log.2
auth.log dmesg.log lastlog user.log
auth.log.1 errors.log messages.log user.log.1
auth.log.2 errors.log.1 messages.log.1 user.log.2
boot errors.log.2 messages.log.2 wtmp
btmp everything.log old wtmp.1
crond.log everything.log.1 pacman.log
crond.log.1 everything.log.2 slim.logps -efww:
root 7 2 0 12:44 ? 00:00:00 [watchdog/0]
root 8 2 0 12:44 ? 00:00:00 [migration/1]
root 10 2 0 12:44 ? 00:00:00 [ksoftirqd/1]
root 11 2 0 12:44 ? 00:00:00 [kworker/0:1]
root 12 2 0 12:44 ? 00:00:00 [watchdog/1]
root 13 2 0 12:44 ? 00:00:00 [cpuset]
root 14 2 0 12:44 ? 00:00:00 [khelper]
root 15 2 0 12:44 ? 00:00:00 [kdevtmpfs]
root 16 2 0 12:44 ? 00:00:00 [netns]
root 17 2 0 12:44 ? 00:00:00 [sync_supers]
root 18 2 0 12:44 ? 00:00:00 [bdi-default]
root 19 2 0 12:44 ? 00:00:00 [kblockd]
root 40 2 0 12:44 ? 00:00:00 [khungtaskd]
root 41 2 0 12:44 ? 00:00:00 [kswapd0]
root 42 2 0 12:44 ? 00:00:00 [ksmd]
root 43 2 0 12:44 ? 00:00:00 [khugepaged]
root 44 2 0 12:44 ? 00:00:00 [fsnotify_mark]
root 45 2 0 12:44 ? 00:00:00 [crypto]
root 47 2 0 12:44 ? 00:00:00 [kthrotld]
root 89 2 0 12:44 ? 00:00:00 [ata_sff]
root 90 2 0 12:44 ? 00:00:00 [khubd]
root 95 2 0 12:44 ? 00:00:00 [scsi_eh_0]
root 96 2 0 12:44 ? 00:00:00 [scsi_eh_1]
root 99 2 0 12:44 ? 00:00:00 [kworker/u:2]
root 100 2 0 12:44 ? 00:00:00 [scsi_eh_2]
root 101 2 0 12:44 ? 00:00:00 [scsi_eh_3]
root 102 2 0 12:44 ? 00:00:00 [kworker/u:3]
root 109 2 0 12:44 ? 00:00:00 [kworker/0:2]
root 120 2 0 12:44 ? 00:00:00 [jbd2/sda3-8]
root 121 2 0 12:44 ? 00:00:00 [ext4-dio-unwrit]
root 170 1 0 12:44 ? 00:00:00 /lib/udev/udevd --daemon
root 207 170 0 12:44 ? 00:00:00 /lib/udev/udevd --daemon
root 208 170 0 12:44 ? 00:00:00 /lib/udev/udevd --daemon
root 210 2 0 12:44 ? 00:00:00 [edac-poller]
root 213 2 0 12:44 ? 00:00:00 [kpsmoused]
root 214 2 0 12:44 ? 00:00:00 [kworker/1:3]
root 223 2 0 12:44 ? 00:00:00 [hd-audio1]
root 248 2 0 12:44 ? 00:00:00 [ext4-dio-unwrit]
root 249 2 0 12:44 ? 00:00:00 [jbd2/sda4-8]
root 250 2 0 12:44 ? 00:00:00 [ext4-dio-unwrit]
root 286 2 0 12:44 ? 00:00:00 [flush-8:0]
dbus 551 1 0 12:44 ? 00:00:00 /usr/bin/dbus-daemon --system
root 553 1 0 12:44 ? 00:00:00 supervising syslog-ng
root 554 553 0 12:44 ? 00:00:00 /usr/sbin/syslog-ng
root 555 1 0 12:44 ? 00:00:00 /usr/sbin/NetworkManager
root 562 1 0 12:44 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
root 567 1 0 12:44 ? 00:00:00 /usr/sbin/crond
root 576 555 0 12:44 ? 00:00:00 /sbin/dhcpcd -B -K -L -G -c /usr/lib/networkmanager/nm-dhcp-client.action eth0
root 579 1 0 12:44 tty1 00:00:00 /sbin/agetty -8 -s 38400 tty1 linux
root 580 1 0 12:44 tty2 00:00:00 /sbin/agetty -8 -s 38400 tty2 linux
root 581 1 0 12:44 tty3 00:00:00 /sbin/agetty -8 -s 38400 tty3 linux
root 582 1 0 12:44 tty4 00:00:00 /sbin/agetty -8 -s 38400 tty4 linux
root 583 1 0 12:44 tty5 00:00:00 /sbin/agetty -8 -s 38400 tty5 linux
root 584 1 0 12:44 tty6 00:00:00 /sbin/agetty -8 -s 38400 tty6 linux
root 585 1 0 12:44 ? 00:00:00 /usr/bin/slim
root 587 585 1 12:44 tty7 00:00:21 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
root 591 1 0 12:44 ? 00:00:00 /usr/sbin/console-kit-daemon --no-daemon
nicolas 664 585 0 12:44 ? 00:00:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
nicolas 676 1 0 12:44 ? 00:00:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
nicolas 677 1 0 12:44 ? 00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
nicolas 682 1 0 12:44 ? 00:00:00 /usr/bin/pulseaudio --start
rtkit 684 1 0 12:44 ? 00:00:00 /usr/lib/rtkit-daemon
nicolas 692 682 0 12:44 ? 00:00:00 /usr/lib/pulse/gconf-helper
nicolas 694 1 0 12:44 ? 00:00:00 /usr/lib/GConf/gconfd-2
nicolas 701 664 0 12:44 ? 00:00:00 /bin/sh /usr/lib/openbox/openbox-autostart OPENBOX
nicolas 707 701 0 12:44 ? 00:00:00 sh /home/nicolas/.config/openbox/autostart
nicolas 710 707 0 12:44 ? 00:00:01 wbar --bpress --above-desk --vbar --pos right --isize 47 --nanim 3
nicolas 714 707 0 12:44 ? 00:00:00 tint2
nicolas 715 707 0 12:44 ? 00:00:00 sh /home/nicolas/.config/openbox/autostart
nicolas 722 715 0 12:45 ? 00:00:01 wbar --bpress --above-desk --vbar --pos right --isize 47 --nanim 3
nicolas 726 1 0 12:45 ? 00:00:00 /usr/lib/gvfs/gvfsd
nicolas 732 1 0 12:45 ? 00:00:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/nicolas/.gvfs
nicolas 738 1 0 12:45 ? 00:00:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
root 740 1 0 12:45 ? 00:00:00 /usr/lib/udisks/udisks-daemon
root 741 740 0 12:45 ? 00:00:00 udisks-daemon: not polling any devices
nicolas 746 1 0 12:45 ? 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
nicolas 748 1 0 12:45 ? 00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
nicolas 762 1 0 12:46 ? 00:00:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
nicolas 823 710 1 12:47 ? 00:00:18 midori
nicolas 829 1 0 12:47 ? 00:00:00 /usr/lib/gvfs/gvfsd-metadata
root 922 2 0 12:49 ? 00:00:00 [kworker/1:0]
root 930 2 0 12:54 ? 00:00:00 [kworker/1:1]
nicolas 951 664 0 13:00 ? 00:00:00 pcmanfm
nicolas 988 1 0 13:01 ? 00:00:00 leafpad /home/nicolas/.bash_history
nicolas 1029 664 0 13:03 ? 00:00:00 xterm -u8
nicolas 1030 1029 0 13:03 pts/0 00:00:00 bash
nicolas 1031 1030 0 13:03 pts/0 00:00:00 ps -efwwthis is without ck-launch-session & dbus-launch!, if not, i wouldn't be posting this here...
Offline
I think I've been barking up the wrong tree. What groups are you a member of? The output of the groups command should look something like:
[jbannon@maddog ~]$ groups
lp wheel log games video audio optical storage scanner power users jbannon
[jbannon@maddog ~]$ Mine is a bit different from "standard" as I make myself a member of my own group (like root) and, for convenience, make myself a member of group log.
Last edited by jamesbannon (2012-03-20 18:33:42)
Offline
Something is not normal in the way Openbox is running:
nicolas 701 664 0 12:44 ? 00:00:00 /bin/sh /usr/lib/openbox/openbox-autostart OPENBOX
nicolas 707 701 0 12:44 ? 00:00:00 sh /home/nicolas/.config/openbox/autostart
nicolas 710 707 0 12:44 ? 00:00:01 wbar --bpress --above-desk --vbar --pos right --isize 47 --nanim 3
nicolas 714 707 0 12:44 ? 00:00:00 tint2
nicolas 715 707 0 12:44 ? 00:00:00 sh /home/nicolas/.config/openbox/autostart
nicolas 722 715 0 12:45 ? 00:00:01 wbar --bpress --above-desk --vbar --pos right --isize 47 --nanim 3The openbox autostart script doesn't finish and it launches another autostart; so you have two wbar processes with same parameters.
All this is not normal.
The autostart script should run only once and it should finish and you don't need two wbar processes with same parameters.
You have also:
nicolas 664 585 0 12:44 ? 00:00:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
...
nicolas 951 664 0 13:00 ? 00:00:00 pcmanfm
...
nicolas 1029 664 0 13:03 ? 00:00:00 xterm -u8
nicolas 1030 1029 0 13:03 pts/0 00:00:00 bashpcmanfm and xterm are not launched from the openbox autostart script.
Where do you launch them from and why there?
Also dbus-launch is ran from the /etc/X11/xinit/xinitrc.d/30-dbus script.
And you need to run a consolekit session to be able to mount/unmount removable devices as user.
Concerning what log files to look into, I should not have to practice hand holding with this, but I will suggest slim.log, Xorg.0.log, errors.log, messages.log.
In conclusion, I will say that your Openbox is not correctly launched, and you have to investigate in that direction, I think.
Offline
I agree with everything, except
Concerning what log files to look into, I should not have to practice hand holding with this, but I will suggest slim.log, Xorg.0.log, errors.log, messages.log.
Not at all helpful I would suggest!
@r@fitiiixxx: I think the thing to do is to review what you want. It seems like you want a "lightweight" environment, yes? I would suggest you go back to the command line, undo your openbox customisations and then install LXDE. This uses openbox as its window manager by default anyway and should be fast enough. That way, you have a basic environment in front of you to play with. It still won't automount, but it's a good starting point. Forget about a login manager for the present, that can come later. Start your desktop from the command line in the meatime.
Make sure your ~/.xinitrc contains only the line
exec ck-launch-session startlxdeand make sure it's executable by you.
Once you have LXDE up and running, then you can start worrying about automount. At that point, it should be a simple matter of installing gvfs as that should pull in the appropriate dependencies. Once you've installed that, reboot to make sure everything is initialised correctly. At that point, it should "just work".
Offline
I think I've been barking up the wrong tree. What groups are you a member of? The output of the groups command should look something like:
[jbannon@maddog ~]$ groups lp wheel log games video audio optical storage scanner power users jbannon [jbannon@maddog ~]$Mine is a bit different from "standard" as I make myself a member of my own group (like root) and, for convenience, make myself a member of group log.
mine is
[nicolas@Watch-Tower ~]$ groups
lp wheel games video audio optical storage scanner power usersi don't know if it's ok but i've made some changes, for example i made myself a "storage" member of the group to be able to mount in some point.
Something is not normal in the way Openbox is running:
nicolas 701 664 0 12:44 ? 00:00:00 /bin/sh /usr/lib/openbox/openbox-autostart OPENBOX nicolas 707 701 0 12:44 ? 00:00:00 sh /home/nicolas/.config/openbox/autostart nicolas 710 707 0 12:44 ? 00:00:01 wbar --bpress --above-desk --vbar --pos right --isize 47 --nanim 3 nicolas 714 707 0 12:44 ? 00:00:00 tint2 nicolas 715 707 0 12:44 ? 00:00:00 sh /home/nicolas/.config/openbox/autostart nicolas 722 715 0 12:45 ? 00:00:01 wbar --bpress --above-desk --vbar --pos right --isize 47 --nanim 3The openbox autostart script doesn't finish and it launches another autostart; so you have two wbar processes with same parameters.
All this is not normal.
The autostart script should run only once and it should finish and you don't need two wbar processes with same parameters.
You have also:nicolas 664 585 0 12:44 ? 00:00:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX ... nicolas 951 664 0 13:00 ? 00:00:00 pcmanfm ... nicolas 1029 664 0 13:03 ? 00:00:00 xterm -u8 nicolas 1030 1029 0 13:03 pts/0 00:00:00 bashpcmanfm and xterm are not launched from the openbox autostart script.
Where do you launch them from and why there?Also dbus-launch is ran from the /etc/X11/xinit/xinitrc.d/30-dbus script.
And you need to run a consolekit session to be able to mount/unmount removable devices as user.Concerning what log files to look into, I should not have to practice hand holding with this, but I will suggest slim.log, Xorg.0.log, errors.log, messages.log.
In conclusion, I will say that your Openbox is not correctly launched, and you have to investigate in that direction, I think.
When you guys asked me to post my log i had some apps running such as pcmanfm and xterm, xterm was the same i was using to input the command and copy to this very forum thread. Could i been wrong? maybe i was supposed to do that from tty1 without any other app running :S, i don't really remember but i think i launched those two with "gmrun".
Before today i had two autostart files, one was called "autostart.sh" and the other just "autostart", the one that i modified was "autostart", i erased "autostart.sh" since i read that it was an outdated file and thought that could be the reason of the trouble.
setxkbmap es &
nitrogen --set-auto /home/nicolas/Pictures/70282-Snake.jpg &
gmrun &
xrdb -merge ~/.Xresources
tint2 &
#(sleep 3 && /usr/bin/nm-applet --sm-disable) &
sleep 40s &
wbarif i launch wbar without the sleep command it starts below the wallpaper and i see a big black rectangle behind it, so i make it sleep 40secs then launch it.
"Also dbus-launch is ran from the /etc/X11/xinit/xinitrc.d/30-dbus script."
what do you mean with this? i have "@dbus" added to the DAEMONS list in rc.conf in order to start dbus daemon as i read somewhere a few days back (but a LOT of code back, so i don't remember where). I have the feeling that this is what's wrong (or at least one of the many things that i did wrong). As i read your comment about dbus being launched by itself ![]()
@jamesbannon: Yes! i want a lightweight... WM!!! not a DE, the fact that at this point i tryed to make a similar conf of what i had in Lubuntu 11.10 just to be confortable till i could optimize it more it's not a reason to switch back to LXDE, my idea is to get lighter, not heavier with time. In the future i want to learn about conky so i can clean up tint2 and wbar, and other notifications stuff, i'm trying to experience.
I tasted LXDE in lubuntu, and i must say, i use a lot the web browser, i spend way too much on heavy web pages (suck as quakelive) on memory ram. I like to have a lot of stuff opened but recently got one of my mem slots burned, i had 2GB DDR2 @ 800hz now i have just 1GB. LXDE is way too heavy for what i want, i need to squeeze every mb of ram! so that's why i won't install LXDE, i don't need all that stuff, i don't even need a lot of stuff i have right now, but as soon as i have all vital things running good i will start up cleanning a bit.
I left Lubuntu not because i don't like it, LXDE was a memory hogger when visiting multiple web sites and running music players, playing quakelive, system got stucked lot's of times. That's when i realiced that i'm a hungry user and i need help from my sistem to be lighter.
To show an example, now i got used to XTerm, MOC, LeafPad, Midori (ram consumption it's still the same ¬¬) wbar insted of lxpanel, PCManFM because it has so many things (but will change to Thunar or something lighter in the future).
In conclusion: if i have to install LXDE, i will go back to lubuntu ¬¬, it's a no brainer. My idea is to squeeze my system (as i don't intend to buy a new one, really bull... laws in my country, import retention and really high prices + i have a PS3 for gamming so i just need a pc to browse, listen music and work, and maybe just play a little bit' quakelive C= )
I installed Arch so i could learn, customize, had the latest software ver. (i hate to not be able to have the latest update on software), i like the documentation (really helpfull), and have a lightweight system. Arch seemed perfect. So i will have to fix this, i'm sure that it's posible, just don't know how yet...
sorry for the long post, couldn't be here sooner because of school. Thanks all of you guys for helping me out with this issue. Hope i will make it work soon, and maybe help others who may have a similar problem ![]()
Last edited by r@fitiiixxx (2012-03-21 06:04:41)
Offline
Okey, i've something to say, just rebooted after erasing autostart.sh , haven't done in all day, then added ck-launch-session before openbox-session and suddenly i could start OB, then went further and added dbus-launch after ck-launch-session and before openbox-session, and it worked!!, had some .rules files ready to be tested, so i plugged in a USB mass storage unit and got recognized, could open the /media/DEVICE/ folder but couldn't manipulate it from left panel at PCManFM (i think it has something to do with this https://wiki.archlinux.org/index.php/Ex … usb_insert )
So long story short, i'm sorry guys, somehow in bettween i found the solution and didn't realize, since i've been working on some other areas of the system, dunno if it was something i moddified or maybe just a system update...
non the less i'm going to try and fix those errors u guys noticed, about autostart not finishing (tell me how do you realize if it hasn't finished so i can tell it by myself), then optimize it.
I'm sorry for this, i will mark it as [SOLVED] but haven't found a concrete solution, and thank you guys. Whatever i or you did, it worked.
Offline
Nice that openbox now starts for you with the console kit session activated.
Now I will add some points:
1) You miss an & at the last line of the openbox autostart script:
wbar &
That's the reason why your autostart script doesn't finish (staying in the list of active processes).
And of course you need only one autostart script under $HOME/.config/openbox directory, along with one menu.xml and one rc.xml configuration files.
2) your .xinitrc script begins with:
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fiSo every script under the /etc/X11/xinit/xinitrc.d directory is sourced when you start openbox with slim.
You mentioned you have under that directory:
30-dbus 40-libcanberra-gtk-module pulseaudio xdg-user-dirsThe content of 30-dbus is:
#!/bin/bash
# launches a session dbus instance
dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval `$dbuslaunch --sh-syntax --exit-with-session`
fiYou can see it already starts a session bus instance from there (it is different from the system instance launched by dbus in the DAEMONS line of rc.conf).
So normally with it, you don't need another one after ck-launch-session when you launch openbox.
I don't know if you need the other scripts under /etc/X11/xinit/xinitrc.d; if you think you don't need them, you can remove the beginning lines of your .xinitrc. If you only want to prevent the sourcing of 30-dbus, you can change it to non executable.
3) For easy mounting/unmounting there exists the automounting UDisks Wrappers and other scripts or programs in AUR.
Look into the wiki and the Community Contributions Forums for infos and discussions about these tools.
I hope you good experiences in Arch Linux and light weight environments.
Offline
thank you so much berbae!, i found your comment really helpfull. i will look into the mounting/unmounting wiki later to se if i can make it work.
Offline