This will create a GHC environment in ~/.config/xmonad so that the librariesĪre available for recompilation of the config file, and also install the $ cabal install -package-env = $HOME/.config/xmonad xmonad $ cabal install -package-env = $HOME/.config/xmonad -lib xmonad xmonad-contrib GHCup is widely available and is considered less error prone than other installation options. Probably one of the best ways to get cabal-install is to use GHCup, which is the main Haskell installer according to language’s official website and community survey. Build using cabal-install Install cabal-install If you’re getting build failures while building the X11 package it mayīe that you don’t have the required C libraries installed. Installed via your package manager and uninstall it. In case it does not, check if you still have xmonad Make sure to add thatĭirectory to your $PATH! The command which xmonad should now return Packages ( stack build) and then copy the relevant executables Install the correct version of GHC, as well as build all of the required Installing things is as easy as typing stack install. Use xmonad -recompile, symlink your real stack.yaml into the xmonadĬonfiguration directory, or use a custom build script. If you want to keep xmonad sources and the stack project elsewhere, but still Stack ghc instead of just ghc when (re)compiling its configuration. With stack.yaml alongside xmonad.hs, xmonad now knows that it needs to use I run the following command "sudo update-alternatives -config x-session-manager" and the only option is openbox, no good I want fluxbox to be the default x-session, time to add it.Resolver : url : packages : - xmonad - xmonad-contrib It's installed on this OS, however there isn't a choice for it in x-session-manager out-of-box. Some however are not as refined and a little finnagling is needed to get them to show up as a choice. Any full blown Desktop (and many others) are going to automatically add an entry in x-session-manager. Choosing whichever DE/WM they want to be launched by setting it in x-session-manager. xinitrc file from their users /home and just use the first part of the tute. xinitrc file, namely Debian's update-alternatives. Of course yours truly was also babbling away in the thread and it reminded me of an approach to this which doesn't require use of an. xinitrc file could cause issues, whereas also said simply running startx does the same thing using a display manager would. Haven't had any issues and the info in this seems fine to me as is but followed the link Ohnonot had provided. Hey folks, hope everybody here is doing well. There are tons of ways people do this, no shortage of methods but this one works well for me and hopefully somebody gets good use of the info. Above I've got openbox-session uncommented and am using openbox. Only one should be left uncommented at a time and switching is just a matter of editing this file. To select what I'm going to use, I just uncomment one of them, removing the # in front of it. # exec gnome-session -session=gnome-classic # Executed by startx (run your window manager from here) After which the sucker should be up and running again. If at some point in future you wish, re-enable the sucker with "sudo systemctl enable lightdm" and you may also need to run "sudo dpkg-reconfigure lightdm" too. Another would be to use "sudo systemctl disable lightdm" to disable lightdm and keep it from automatically starting every time the system boots up. Couple options, remove the display manager from your OS, you can always reinstall it later if desired. For all this automagic-ness to work, you'll have to change that. You'll be met with a command-line login to enter the user and password you want to use.įinally, you likely already have a display manager running. Easy, peasy, just skip step 1 (or remove the directory/nf file. NOTE: Ok another scenario, the above is perfectly fine for a single user system but what about a multi-user one or one on which you want to be able to login more than one username. Once it's selected it'll launch as default x-session until something else is chosen. In the above, I'm installing something to the x-session-manager group of update-alternatives, in this case, fluxbox, /usr/bin/fluxbox is where fluxbox errrr, lives and I'm giving it a priority of 40 there. Sudo update-alternatives -install /usr/bin/x-session-manager x-session-manager /usr/bin/fluxbox 40
0 Comments
Leave a Reply. |