You are not logged in.
Hello~!
I've just installed Arch Linux as my primary OS the other day, and am absolutely LOVING it so far!
I've had quite a bit of experience with Linux before, having run Ubuntu, along with some of its variations on several computers, and know my way around the system, but I'm having a problem setting up my Window Manager on Arch.
I've been trying to set up Xmonad to use as my daily driver, and love the idea of dictating the behavior of my WM/DE through code, but I've run into some problems during initial setup.
I've installed the xmonad and xmonad-contrib packages, and can successfully get into Xmonad now (I'm posting from Firefox within Xmonad at the moment,) but cannot get Xmonad to use the xmonad.hs I've set up in my home directory.
I've heard that Xmonad should automatically generate all the required files the first time you run it, but it hasn't for me. I created a .xmonad folder in my home directory, and placed my xmonad.hs folder in it, but didn't see any changes upon logging into Xmonad, even after mashing Mod+q several times. I tried running xmonad --recompile from XTERM, and this is where I got the error:
[jessie@JESSIE-ARCH ~]$ xmonad --recompile
xmonad: /home/jessie/.xmonad/xmonad.errors: openFile: permission denied (Permission denied)
I honestly don't know why a program running under my user wouldn't have permission to access my own home directory.
I've tried running it from root, but it just treats root as a completely different user:
[jessie@JESSIE-ARCH ~]$ su
Password:
[root@JESSIE-ARCH jessie]# xmonad --recompile
xmonad: /root/.xmonad/xmonad.errors: openFile: does not exist (No such file or directory)
[root@JESSIE-ARCH jessie]#
So, of course, it just looks for xmonad.hs in the /root/ folder.
I'm at a loss here, guys.
Any ideas/suggestions?
Last edited by jahildebra (2012-09-03 16:01:29)
Offline
Root is a completely different user! I guess root is the owner for the files you don't have permission to open. To change it so that you become the owner, as root (because you don't have permission to change root's files) or with sudo:
chown -R jessie:users /home/jessie/.xmonadOffline
Root is a completely different user! I guess root is the owner for the files you don't have permission to open. To change it so that you become the owner, as root (because you don't have permission to change root's files) or with sudo:
chown -R jessie:users /home/jessie/.xmonad
Silly me....
I now remember creating the .xmonad directory and xmonad.hs as root. I guess I just assumed that since they were created in my home directory that I'd immediately own them.
[root@JESSIE-ARCH home]# chown -R jessie:users /home/jessie/.xmonad
[root@JESSIE-ARCH home]# chown jessie:users /home/jessie/.xmonad/xmonad.hs
[root@JESSIE-ARCH home]# su jessie
[jessie@JESSIE-ARCH ~]$ xmonad --recompile
Error detected while loading xmonad configuration file: /home/jessie/.xmonad/xmonad.hs
xmonad.hs:4:12: parse error on input `default'
Please check the file for errors.
xmonad: xmessage: executeFile: does not exist (No such file or directory)...It worked! Sort of.
Thank you. ![]()
Now I just need to debug my xmonad.hs file. ![]()
Offline
Please remember to mark this thread as solved (by editing the first post and add [solved] to the title.)
Offline
Please remember to mark this thread as solved (by editing the first post and add [solved] to the title.)
Sorry! Forgot to do that.
Fixed.
Offline