SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The attached script sets the default X session for the user who runs it in runlevel 3 (using startx) and 4: I have tested it with xdm (with some caveat, see the comment on top), gdm2, kdm, lxdm, lightdm. If it works also with gdm3 or sddm, please let me know.
Alternatively if you don't intend to install lightdm (that needs PAM), jut edit the script accordingly.
You will also need to edit it to add window managers, that would need to have a .desktop stored in /usr/share/xsessions.
TIP: the lightweight window managers often don't ship with a .desktop, but there are a lot of them in /usr/share/apps/kdm/sessions/, that you can just copy to /usr/share/xsessions
Save the script in /usr/bin and make it executable or include it in a package.
Last edited by Didier Spaier; 11-25-2017 at 07:33 AM.
Reason: Title modified
Alternatively if you don't intend to install lightdm (that needs PAM), jut edit the script accordingly.
That phrase made me to raise a eyebrow...
BLASPHEMY!SLINT CONTAINS PAM!
You should be excommunicated and to be sent out of village with no pants, because you insult The True Slackware Way and you pact with the unbelievers and PAM worshipers! BOB have mercy for you!
P.S. Now downloading the latest SLINT ISO, to see with my eyes your sins...
P.S.2 For those who wonder about "with no pants" part, it is for historical consistence, as in Medieval France the excommunicated ones was (forcefully) sent out from the city or village, well... with no pants.
I have no information if that rule was applied also to ladies.
Last edited by Darth Vader; 11-25-2017 at 08:35 AM.
P.S.2 For those who wonder about "with no pants" part, it is for historical consistence, as in Medieval France the excommunicated ones was (forcefully) sent out from the city or village, well... with no pants.
If you happen to have a whole fortune file with such informative hilarious trivia facts, please do share.
It it is, but not as versatile. For instance, it can't set the default session for lightdm or gdm. You can choose a session in lightdm's greeter, but this setting is not accessible to blind users.
I have also modified xwmconfig to add these features, but that's another story, and some people may prefer a text UI to a ncurses dialog.
Last edited by Didier Spaier; 11-25-2017 at 10:47 AM.
I use XDM myself with a custom /etc/X11/xdm/Xsession file(I don't like the stock one). I've never seen the point of gdm, and now that I know it doesn't respect the users .xsession file, I'm even less inclined to go near it.
Sure, but it's a fairly invasive rewrite of X11 related parts.
Firstly, the motivation behind the change was primarily that I didn't like how the stock Xsession file runs and re-runs the /etc/profile file: First it sources them and then there's another section which runs 'bash --login' in order to dynamically determine the PATH (which will run through it all again in the subshell). I really hated that, so I ripped it all out and just had it run /etc/xprofile instead.
I created a /etc/xprofile.d/ directory which contains symlinks to the files in /etc/profile.d minus any that aren't really appropriate for an X environment. So basically something like this:
if the user presses F1 instead of enter after typing their password they get the fail-safe, press F2 and they get xfce. Just hit enter and they get whatever their ~/.xsession does.
Anyway, I've been using this for a while now and it works for me, but it is a significant deviation to what stock Slackware provides.
files attached:
PS. I also included my rc.4.local as I do some interesting stuff in there to to help prevent SAK issues.
I recently wrote a slackware xdm theme (requires imagemagick, and optionally numlockx) which looks like this :
This theme can be customized at different levels using configuration files.
For instance, it is possible to :
* defines whether or not the clock is displayed.
* defines which buttons must be present in the buttons bar and their order.
* specify one or more extra image operations that are applied to the background image. Here is two example :
1. extra image ops: "-emboss 8"
2. extra image ops: "-grayscale Rec709Luminance" "-emboss 8" "" "-flop"
Note: As extra image ops can be time consuming, an image cache is used to avoid to have to regenerate the (same) background image each time xdm (re)starts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.