[SOLVED] [dwm] Can't start dwm

Hi!
I've recently entered the world of tiling WM and started with dwm.
Since I'm kinda insecure, and wanted to keep gnome as well, I've followed every single step in the wiki article and used the ~/.Xclients way, so I could start dwm from gdm (I've followed also the steps in the discussion page as well).
Then, when I tried to startup dwm from gdm, it doesn't start, and goes back again to gdm.
My ~/.Xclients file is the following:
setxkbmap -layout pt
#relogio
while true; do
xsetroot -name "$( date +"%F %R" )"
sleep 1m # Update time every minute
done &
# #estado da bateria
# while true; do
# batt=$(LC_ALL=C acpi -b)
# case $batt in
# *Discharging*)
# batt="${batt#* * * }"
# batt="${batt%%, *} "
# batt=""
# esac
# xsetroot -name "$batt$(date +%R)"
# sleep 60
# done &
#conky bar
conky | while read -r; do xsetroot -name "$REPLY"; done &
#executar o dwm
exec dwm
It's all things copied from the wiki page, just for testing if everything was fine...
My /usr/share/xsessions/dwm.desktop file is:
[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Dynamic window manager
Exec=/usr/local/bin/dwm
Icon=dwm
Type=XSession
And I've created a /usr/share/xsessions/user.desktop file that looks like this:
[Desktop Entry]
Encoding=UTF-8
Name=User XSession script
Comment=Runs your ~./Xsession script
Exec=/etc/X11/Xsession
Type=Application
Thanks in advance for any help, I've searched the forums and used google and couldn't find any answer to this problem :S
Last edited by Aeriel (2011-09-01 17:19:02)

haxit, thanks I've managed to solve the problem!
I've installed SLiM and set up everything in .xinitrc.
The dwm.desktop doesn't match with yours because I've changed somethings and because I didn't backup the file (I know, it's super dumb and stupid) I had to paste the defaults I found in the web.
Thanks.
Fellow gdm and dwm users, an advice, put everything in .xinitrc. It's easier.
Last edited by Aeriel (2011-09-01 17:19:30)

Similar Messages

  • [solved]Terminator can not start /bin/bash

    Terminator show an error:
    Unable to start shell:/bin/bash
    this error comes from here:
    /usr/lib/python2.7/site-packages/terminatorlib/terminal.py
    1292 self.pid = self.vte.fork_command(command=shell, argv=args, envv=envv,
    1293 loglastlog=login,
    1294 logwtmp=update_records,
    1295 logutmp=update_records,
    1296 directory=self.cwd)
    1297 self.command = shell
    1298
    1299 self.titlebar.update()
    1300
    1301 if self.pid == -1:
    1302 self.vte.feed(_('Unable to start shell:') + shell)
    1303 return(-1)
    But I can startup terminator using root acount
    the self.pid != -1 when I'm root
    I dont remeber change any privileges ...
    Any idears ?
    Last edited by Hacksign (2013-08-27 01:47:33)

    Scimmia wrote:is /dev/pts listed in /etc/fstab? If so, remove it.
    Thanks, that's actually resolved my problem

  • [SOLVED] How can I start a daemon at boot as a user?

    Well, the topic title says it all! I want to start the hellanzb daemon as my main user 'hb' on boot. If I just add it to the daemons array in rc.conf, it will be run as root, and all my downloaded files will be owned by root:root. How can I make it so it is run by me, not root?
    Last edited by HyperBaton (2008-01-25 18:44:11)

    HyperBaton wrote:Okay I'll try it with the dash added, didn't notice that in your syntax, sorry. How would I add the echo statement exactly? And can I view it in a log or something after booting the computer?
    the echo statement can be as simple as
    echo "this is a test"
    if you want to log something, you can for example add something like
    | tee -a /var/log/mycustom.log
    this appends the output of the command before | to /var/log/mycustom.log.
    So if you want to log for example the echo statement above, put
    echo "this is a test" | tee -a /var/log/mycustom.log
    but of course you can catch the output of every command in this way

  • [Solved/workaround] Can't start xscreensaver anymore o_O

    Hi all~
    Don't know, when this started, as it worked before ...
    I even un- and reinstalled xscreensaver-arch-logo and plain xscreensaver. xscreensaver-demo starts though, but then the service (and the preview) does not! Ends with "check your $PATH and permissions". "cat /var/log/Xorg.0.log|grep xscreensaver" shows nothing~ What the heck?
    As usual, I have it started via ~/.xinitrc:
    /usr/bin/xscreensaver -no-splash &
    Maybe after trying xtrascreenhacks (from AUR). But when xscreensaver ran, either new settings in xscreensaver-demo or ~/.xscreensaver were ignored. Almost nothing except the additional "daisy" and "twinkle" themes were installed anyway, so I uninstalled the whole crap. -- That it had got something to do with it is just a guess.
    When trying to start $ xscreensaver-blah ... from command line, it quits with e.g. "xscreensaver: 16:29:20: /var/log/xscreensaver.log: Permission denied" (log file is set up as said in the wiki) And of course root doesn't let me start the program.
    Any idea would be great.
    Last edited by cameo (2014-06-23 12:17:54)

    Still don't know what's causing the trouble.
    I managed to run the damn xscreensaver though
    by finally editing ~/.xinitrc:
    /usr/bin/xscreensaver -no-splash -log ~/.xscreensaver-log &
    However, does anybody knows how to disable these nasty error or log messages on screen, when xscreensaver is running?

  • [Solved] Thunar in Dwm doesn't start

    I just did a fresh install of arch and dwm. After that i installed thunar, but when i try and start thunar from terminal, it says:
    "thunar: error while loading shared libraries: libstartup-notification-1.so.0: cannot open shared object file:No such file or directory"
    What do i have to install with pacman to get those files?
    Thx.
    Edit: In my /.xinitrc, i've already tried doing:
    exec ck-launch-session /usr/bin/dwm
    and just
    exec dwm
    Last edited by Chance (2010-02-28 02:04:08)

    I tried installing thunar. But that didn't do it.
    I found out it was 'pacman -S startup-notifications' that did it. This never happened before. =S

  • Xinitrc: dwm won't start b/c NewInputDeviceRequest Failed

    When I try to start dwm with this .xinitrc:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    # setxkbmap -option terminate:ctrl_alt_bksp
    # exec gnome-session
    # exec startkde
    # exec startxfce4
    # ...or the Window Manager of your choice
    #feh --bg-scale /home/agi/Images/Windows\ 7\ RC\ Wallpapers/Personnages/Chris\ Sickles\ of\ Red\ Nose\ Studios.jpg
    feh --bg-scale /home/agi/Images/Good\ Wallpapers/linuxwallpaper42.png
    urxvtd -q -f -o &
    xbindkeys &
    xset +dpms &
    xsetroot -cursor_name left_ptr
    #exec xmonad
    #####DWM#####
    while true
    conky | while true; read line; do xsetroot -name "$line"; done &
    exec dwm
    I get to the desktop background, then just before dwm starts, I get this error:
    (EE) config/hal: NewInputDeviceRequest failed (8)
    Which shows up about 3 times in a row. Commenting all the dwm entries and uncommenting "exec xmonad" in my .xinitrc allows me to start up xmonad just fine, so I don't know what the problem could be.
    I'm not using hotplugging. I just use the Xorg.conf file, and that has worked just fine until now.
    Help?

    I met the same problems,  seems the xorg-server in extra is quite unstable.
    i use xfce4. the X server can startup, can see the xfce4 desktop,
    at first, both mouse and keyboard are ok, i can input some characters in somewhere.
    but after several seconds ,  response are slow, then the desktop are freezed quicly.
    check the Xorg.0.log
    (II) config/hal: Adding input device Macintosh mouse button emulation
    (EE) config/hal: NewInputDeviceRequest failed (8)
    (II) config/hal: Adding input device Logitech USB-PS/2 Optical Mouse
    (EE) config/hal: NewInputDeviceRequest failed (8)
    (II) config/hal: Adding input device AT Translated Set 2 keyboard
    (EE) config/hal: NewInputDeviceRequest failed (8)
    Option "AutoAddDevices" "False" is set.
    any clue?
    Last edited by roadt (2009-07-22 06:56:21)

  • After my windows 7 update, Thunderbird can't start correctly, how to solve?

    After my windows 7 update just now, Thunderbird can't start correctly, it says not responding.
    How can I fix this? or at the least rescue my data.

    Solved !
    this problem was caused by another application not working correctly.
    (plex media server)

  • [solved]can't start gnome as user

    I can't start gnome as user  only as root.
    error message: failed to create file /tmp/gconf-test-locking-file-kx6h6t:Permission denied (error=13)
    I think this is an pacman error (permissions)
    I made an clean install  because   last pacman -Syu  crash my os.
    And i  get the error as above so i can't get it to work.
    I also tried to run enlightment but several applications don't start.
    How to solve this?
    Solution was i wiki :chmod 1777 /tmp
    Last edited by fernux (2008-02-11 20:39:41)

    error message: failed to create file /tmp/gconf-test-locking-file-kx6h6t:Permission denied (error=13)
    this is the problem, it states that it can't create a file because of a lack of permissions to do so. Its trying to create the file in /tmp, so that tells us that /tmp directory has permissions that aren't correct or gnome would work. What u need to do is
    ls -ld /tmp
    and post the results here so someone can tell u how to put the correct permissions up.
    edit: I see u found the answer yourself.
    Last edited by jacko (2008-02-11 20:42:30)

  • [SOLVED] Can't Start MySQL after upgrading to 5.1.41-3

    I can't start mysqld with 'mysqld start'.Here is my mysqld output:
    [ahao@sky ~]$ mysqld start
    091125 18:33:48 [Note] Plugin 'FEDERATED' is disabled.
    091125 18:33:48 [Note] Plugin 'ndbcluster' is disabled.
    091125 18:33:48  InnoDB: Started; log sequence number 0 44233
    mysqld: Too many arguments (first extra is 'start').
    Use --verbose --help to get a list of available options
    091125 18:33:48 [ERROR] Aborting
    091125 18:33:48  InnoDB: Starting shutdown...
    091125 18:33:49  InnoDB: Shutdown completed; log sequence number 0 44233
    091125 18:33:49 [Note] mysqld: Shutdown complete
    This is my /var/lib/ complete with permission settings:
    [ahao@sky ~]$ cd /var/lib ; ls -al
    total 84
    drwxr-xr-x 20 root      root      4096 2009-11-25 18:08 .
    drwxr-xr-x 13 root      root      4096 2009-11-25 13:51 ..
    drwxrwx---  2 root      policykit 4096 2009-05-10 09:10 PolicyKit
    drwxr-xr-x  2 policykit root      4096 2009-05-10 09:10 PolicyKit-public
    drwxr-xr-x  3 root      root      4096 2009-09-19 12:19 bluetooth
    drwxr-xr-x  2 root      root      4096 2009-09-16 22:09 dbus
    drwxr-xr-x  2 root      root      4096 2009-11-23 17:38 dhcpcd
    drwxrwxrwt  2 root      root      4096 2009-07-19 18:17 ex
    drwxr-xr-x  2 root      root      4096 2009-09-16 22:38 hwclock
    drwxr-x---  2 root      locate    4096 2009-10-22 06:55 locate
    -rw-r--r--  1 root      root       462 2009-09-20 00:02 logrotate.status
    drwxr-xr-x  2 root      root      4096 2009-09-17 09:14 misc
    drwxr-x---  2 root      locate    4096 2009-11-25 18:09 mlocate
    drwxrwxrwx  4 mysql     mysql     4096 2009-11-25 18:33 mysql
    drwxr-xr-x  6 root      root      4096 2009-09-07 08:54 nfs
    drwxr-xr-x  4 root      root      4096 2009-11-25 18:08 pacman
    drwx------  3 root      root      4096 2009-11-21 03:30 polkit-1
    drwxr-xr-x  2 root      root      4096 2008-09-06 14:33 rarian
    drwxr-xr-x  2 root      root      4096 2009-09-17 09:14 syslog-ng
    drwxr-xr-x  3 root      root      4096 2009-10-19 20:10 wicd
    drwxr-xr-x  2 root      root      4096 2009-11-21 02:35 xkb
    /etc/mysql/my.cnf is out-of-the-box
    What seems to be the problem here? Please shed some light...thank you
    Last edited by akiglobal (2009-11-26 07:41:00)

    How silly of me.....first of all...I entered 'mysqld start', I should have just entered 'mysqld', second of all, I didn't change the file permission on /var/run/mysqld. I change /var/run/mysqld file permission into 'chmod 777 /var/run/mysqld -R', after that mysql works!

  • [Solved] OSS can't be started at system start.

    Hello.
    I got strange issue with OSS.
    I got OSS in deamons array and I can't start it.
    I getting error's:
    When you got something wrong in your config file and I got connection refused at mpd port
    When I restart 2nd times OSS is starting normally.
    Thanks for help.
    Last edited by SpeedVin (2009-10-13 16:07:47)

    R00KIE wrote:Remove oss from your daemons line and start it manually from a console to check if there are more errors (check dmesg and the other logs).
    Logs are fine but I see now when on shutdown sytem stops mpd deamon I got connection refused
    Edit
    Ok this connection refused was from mpd and I  think I know waht going on I added to rc.local script to start oss deamon manually and they start and when I add oss to deamons array in rc.conf it can't be started
    Last edited by SpeedVin (2009-10-08 17:51:15)

  • [Solved] Can't start GParted from XFCE menu

    Hi,
    I have polkit installed but I can't start GParted from the XFCE menu. Do I need to edit any configuration files to make this work? The wiki isn't very clear about what to do after installing polkit. Thanks.
    Last edited by kaixi (2012-11-02 15:09:12)

    In my Xfce4 installation, it's /usr/share/applications/GParted, which I copied over to ~/.local/share/applications/, as kaixi suggested, and it appeared there as gparted.desktop.  Right-click for Properties > Launcher > Command, and in that field (not wanting to install gksu) I put sudo gparted, which works, thanks.

  • Why my KDM can not start kde4.2[SOLVED]

    I install kde and xorg .but  the KDM can not start my kde ,I input my username and passworld ,but i not work
    use gdm instead ,it works. how shoule I do to make the KDM work .
    Last edited by wenzi_lee (2009-04-07 04:37:40)

    guansito wrote:
    Hello again.
    That doesn't work for me! I have already installed hal and fam, but kdm still doesn't log me in kde4.
    I ran "startx" from my user prompt, and i can use kde now, but when I ran kdm as root, I can log in.
    quarkup, here is the output.
    [~]$ ls -la .*authority
    -rw------- 1 juan users 54 Feb 7 17:31 .Xauthority
    I supposed that i have to configure kdm, i was looking for more information when i saw this post.
    that's ok..
      the .ICEauthority was the file which needed a chown/chmod to let me go into kde.. but it's ok i guess, since you don't have it.
    mine is somehow like this:
    ~$ ls -la .*authority
    -rw-rw---- 1 quarkup quarkup 64K Fev 2 13:20 .ICEauthority
    -rw------- 1 quarkup root 1,4K Fev 7 21:55 .Xauthority
    > KDM must be configured to allow the "root" user to access the X11 session - in:   systemsettings > Login Manager > Users(6)  (root account has the uid=0)
    hope it helps you.
    I don't really use the root account for anything, only the very necessary stuff..

  • Can't start KDE applications after update to KDE 4.9 [SOLVED]

    After updating to KDE 4.9, I can not start systemsettings, kwrite, konversation, digikam or any other KDE application using krunner or from a shell. Non-kde applications starts fine. Any help deeply appreciated!
    Last edited by sredna (2012-08-09 15:10:14)

    I got no messages on the terminal, and restarting KDE or even rebooting did not help. But killing some stale processes did, so now I just wonder where those came from...
    Thanks for your help anyways!

  • [SOLVED] X can start after computer crash

    My computer crashed and restarted it self when were using GNOME 3,
    and no I can't start X anymore. It says:
    Fatal server error:
    no screens found
    From the Xorg log file I found:
    (EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version mismatch.
    [dri] This chipset requires a kernel module version of 1.17.0,
    [dri] but the kernel reports a version of 2.12.0.[dri] Make sure your module is loaded prior to starting X, and
    [dri] that this driver was built with support for KMS.
    [dri] Aborting.
    Followed by:
    (EE) Screen(s) found, but none have a usable configuration.
    Last edited by Hibernate (2012-03-30 17:15:36)

    Humm, the update was published 20 minutes before my post,
    the update should have been fetched by
    pacman -Syyuu
    pacman -S `pacman -Q | cut -d ' ' -f 1`
    But I system update now fixed the problem instantly.

  • [SOLVED] Some systemd processes (e.g. systemd-journald) can't start.

    After a fresh install on a new laptop (dual boot with Windows 8.1 vie rEFInd) I notice some error messages whilst booting. systemd-journald fails to start, and I also see some errors relating to the creation of the volatile filesystem. It's hard for me to give a lot detail about this as without journaling as I'm not sure how to get the error messages.
    I did see this from dmesg:
    [ 128.638674] systemd[1]: Starting Stop Read-Ahead Data Collection...
    [ 128.662550] systemd[1]: Started Stop Read-Ahead Data Collection.
    [ 194.545294] systemd[1]: Starting Journal Socket (/dev/log).
    [ 194.545391] systemd[1]: Listening on Journal Socket (/dev/log).
    [ 194.545471] systemd[1]: Starting Journal Socket.
    [ 194.545540] systemd[1]: Listening on Journal Socket.
    [ 194.545613] systemd[1]: Starting Journal Service...
    [ 194.546604] systemd[1]: Started Journal Service.
    [ 194.549797] systemd-journald[711]: Failed to get machine id: No such file or directory
    [ 194.553931] systemd[1]: systemd-journald.service has no holdoff time, scheduling restart.
    [ 194.554205] systemd[1]: Stopping Journal Service...
    [ 24.362121] systemd-tmpfiles[330]: [/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /run/log/journal/%m
    [ 24.364106] systemd-tmpfiles[330]: [/usr/lib/tmpfiles.d/systemd.conf:29] Failed to replace specifiers: /var/log/journal/%m
    [ 24.404888] systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
    [ 24.409499] systemd[1]: Failed to start Create Volatile Files and Directories.
    [ 24.412303] systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.
    And if I check the status of journald through systemctl I get:
    systemd-journald.service - Journal Service
    Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static)
    Active: failed (Result: start-limit) since Wed 2014-08-27 10:37:50 UTC; 1h 2min ago
    Docs: man:systemd-journald.service(8)
    man:journald.conf(5)
    Process: 720 ExecStart=/usr/lib/systemd/systemd-journald (code=exited, status=1/FAILURE)
    Main PID: 720 (code=exited, status=1/FAILURE)
    Status: "Shutting down..."
    I've tried reinstalling systemd, and adding systemd to HOOKS in mkinitcpio.conf, neither of these things seem to help. I also can't start the services manually.
    If anybody can help it would be greatly appreciated, thanks!
    Last edited by Tim Butters (2014-08-28 15:49:50)

    Normally, as Loqs said, 'systemd-firstboot --setup-machine-id' should have been run when you first installed the systemd package.
    You can verify if the '/etc/machine-id' file exists:
    $ ls -l /etc/machine-id
    -rw-r--r-- 1 root root 33 25 mars 2009 /etc/machine-id
    If you don't find one, maybe use 'systemd-machine-id-setup' instead to create one.
    But have you seen error messages during the Arch installation? Because that should not be necessary.
    Edit: 'systemd-firstboot' is new in systemd 216, so should not be found in the live installation disk 2014.08.
    Last edited by berbae (2014-08-28 15:44:52)

Maybe you are looking for

  • IPhoto can not find several photos, shows icon, but not pic itself and I did not move anything

    I have more then 12'000 photos on iPhoto. After the last update it shows me all pics in the small icons, but when I click on them, severals are not whown - a black background with a grey triangle opens and a "!" in the mid. I suppose this means that

  • Unable to see Dashboard over the internet Using Enterprise Portal

    Dear All, I have one issue here which is bit technical, I have made an Xcelsius Dashboard (Connection Type: Excel XML Maps (BW Queries)) and uploaded SWF file on to KM Repository in Portal. I have created Document iview and a role to published the da

  • Jdk1.5

    i'm preparing for scjp5 n using jdk1.4.2.will i've to change my jdk environment to jdk5 or it won't create any problem in exam.

  • Mail forward

    Hi. I want to production old and new mail server parallel with same domain. How to configure new mail server to receive all incoming email and then forward to old mail server by not enable mailforwardingaddress ? It's really difficult to enable mailf

  • After Download, Lightroom won't allow me to tag it to my Dock.

    When I attempted to do so, it dumped into another Adobe app folder.  After I removed it from the folder, it sill won't allow me to tag it to the dock.