Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can`t configure xmonad
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 149

PostPosted: Mon Jun 19, 2017 7:24 pm    Post subject: [SOLVED] Can`t configure xmonad Reply with quote

I have just made a minimum install of Gentoo, which I have never used before. As my display manager I have installed SDDM and Xmonad as my window manager. I have not received any sort of error messages during the installation, but I just can`t configure xmonad. I have been following all this link https://beginners-guide-to-xmonad.readthedocs.io/intro.html, which seems to be a reference for beginners in xmonad (which is my case), but the environment seems totally unresponsive of the changes I made. I have installed xmobar, xmonad-contrib, stonalonetray, have created the .xmonad directory and also the xmonad.hs file inside of it. I have copied the contents of the xmonad.hs file from the link https://beginners-guide-to-xmonad.readthedocs.io/configure_xmonadhs.html into my xmonad.hs file and nothing changes, even after reboot. I get errors when I follow the suggestion in the link https://wiki.gentoo.org/wiki/Xmonad and run the commands xmonad --recompile and got nothing when I run xmonad --restart:

Code:
vinicius@mossadegh ~ $ xmonad --recompile
xmonad: /home/vinicius/.xmonad/xmonad.errors: openFile: permission denied (Permission denied)
vinicius@mossadegh ~ $ xmonad --restart
vinicius@mossadegh ~ $

I dont know if this is of any help, but here is my emerge --info output:

emerge --info
Code:
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf
Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r4, 4.9.16-gentoo x86_64)
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i7-3612QM_CPU_@_2.10GHz-with-gentoo-2.3
KiB Mem:     8034224 total,   7042984 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 19 Jun 2017 16:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.c3sl.ufpr.br/ ftp://gentoo.c3sl.ufpr.br/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://www.las.ic.unicamp.br/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Thank you all for your attention!

[Moderator edit: added [code] tags to preserve output layout; fixed url reference confused by trailing comma; switched http: to https: for readthedocs. -Hu]


Last edited by vcmota on Mon Jul 03, 2017 12:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
saturnalia0
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2016
Posts: 95

PostPosted: Tue Jun 20, 2017 7:29 pm    Post subject: Reply with quote

> openFile: permission denied

That seems to be your problem... Who is the owner of the configuration file? Use `ls -l` to find out and `chown vinicius:vinicius /path/to/the/file` (as the owner of the file, probably root) to set it to your user. If you installed xmonad with Portage I think you have to set up hooks with Portage to patch it every time it is upgraded since you configure it by editing a source file and recompiling, and that will change every time you upgrade... At least that's how it was with dwm when I installed it with Portage. Which, by the way, is an extremely idiotic way of doing it - just clone xmonad/dwm from git on your home folder and build it yourself in there. That's what I do with dwm, which is a finished software so there is no point in having a package manager deal with it.

By the way may I suggest using dwm instead of xmonad? xmonad is just a Haskell clone of dwm, which is infinitely lighter dependency-wise (it has none, except gcc and xlib which you already have), more responsive, and IMO easier to configure (just for being in C instead of Haskell).
Back to top
View user's profile Send private message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 149

PostPosted: Tue Jun 20, 2017 10:28 pm    Post subject: Reply with quote

saturnalia0 wrote:
> openFile: permission denied

That seems to be your problem... Who is the owner of the configuration file? Use `ls -l` to find out and `chown vinicius:vinicius /path/to/the/file` (as the owner of the file, probably root) to set it to your user. If you installed xmonad with Portage I think you have to set up hooks with Portage to patch it every time it is upgraded since you configure it by editing a source file and recompiling, and that will change every time you upgrade... At least that's how it was with dwm when I installed it with Portage. Which, by the way, is an extremely idiotic way of doing it - just clone xmonad/dwm from git on your home folder and build it yourself in there. That's what I do with dwm, which is a finished software so there is no point in having a package manager deal with it.


Thank you very much Saturnalia0, that was it!! I deleted the folder .xmonad and rewrote it as user instead of root and it worked. Thank you!

Quote:
By the way may I suggest using dwm instead of xmonad? xmonad is just a Haskell clone of dwm, which is infinitely lighter dependency-wise (it has none, except gcc and xlib which you already have), more responsive, and IMO easier to configure (just for being in C instead of Haskell).


In fact I became interested in xmonad because of haskell mostly. I am about to invest some time to learn haskell and it made sense to use a window manager writen on haskell, which would "force me" to be permanently in contact with the language. Also I became tired of Mate, Gnome, LXDE, etc..., I wanted a window manager that I could fully understand and configure, and xmonad seems seems to provide that.
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