Re: [dev] Introducing XLSH
well I had a lot of fun coding it and it works for me do we have a fortunes file?
Re: [dev] Introducing XLSH
2011/10/21 Michał Siejak mic...@siejak.pl: Back to the topic: xlsh github page now has proper wiki with HOWTOs on compiling and installing it on Arch and Ubuntu Linux as well as configuration articles. Head to: https://github.com/Nadrin/xlsh/wiki Thanks for writing this, Michał. Some reports on getting it working on Debian. In order to start it as your X display manager you need the following line in your /etc/inittab: x:2:respawn:/usr/local/sbin/xlshd -f Similar to arch, but different runlevel. Since the xdotool in debian/wheezy does not support the --sync option to the search command, I had to apply the hack in attached diff to give the xterm window focus. I'm sure there are better ways, it it seems to work. Also, xlsh fails to set my PATH to what's in include/config.h, but rather leaves it as /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin as specified in xlshrc. I don't know why. -- Mikael Schönenberg diff --git a/etc/xlshrc b/etc/xlshrc index ca9fbba..e1df4f4 100644 --- a/etc/xlshrc +++ b/etc/xlshrc @@ -19,7 +19,7 @@ fi xrdb -merge $XRESFILE xsetroot -solid $BGCOLOR if which xdotool; then - ( xwindow=$(xdotool search --sync --class $TERMINAL) -xdotool windowfocus $xwindow ) + ( xwindow=$(sleep 1 xdotool search --class $TERMINAL) +xdotool windowfocus --sync $xwindow ) fi exec $TERMINAL -g 80x15+$px+$py -e $(which xlsh)
Re: [dev] Introducing XLSH
On Thu, Oct 20, 2011 at 6:16 PM, Bjartur Thorlacius svartma...@gmail.com wrote: On Thu, 20 Oct 2011 15:00:48 -, Anders Andersson pipat...@gmail.com wrote: My .bash_profile looks like this: # auto startx if logging in at VC/1 if [[ -z $DISPLAY ]] [[ $(tty) = /dev/tty1 ]]; then startx ~/.myXLog logout fi Uhm, so you've configured bash to exit immediately after starting X if run as a login shell on tty1? Spawning bash only to spawn a wrapper script around xinit seems like an overkill. It's not like I can remove bash if I stop using it for this, and the extra milliseconds while starting X doesn't bother me much compared to having a completely new program that replace those lines.
Re: [dev] Introducing XLSH
# auto startx if logging in at VC/1 if [[ -z $DISPLAY ]] [[ $(tty) = /dev/tty1 ]]; then startx ~/.myXLog logout fi I do the same. Fastest login manager I know. If you have anything faster to suggest, I'll take it.
Re: [dev] Introducing XLSH
On 10/21/11, Anders Andersson pipat...@gmail.com wrote: It's not like I can remove bash if I stop using it for this, and the extra milliseconds while starting X doesn't bother me much compared to having a completely new program that replace those lines. It's far from terrible, but passing the filename of a short script to a minimalistic statically compiled shell from init seams cleaner. But your way doesn't pose any problems if you don't ever use bash on tty1. I do so on daily bases, and thus code differently.
Re: [dev] Introducing XLSH
It's not like I can remove bash if I stop using it for this... Why?
Re: [dev] Introducing XLSH
On Fri, Oct 21, 2011 at 6:41 AM, Bjartur Thorlacius svartma...@gmail.com wrote: It's far from terrible, but passing the filename of a short script to a minimalistic statically compiled shell from init seams cleaner. But your way doesn't pose any problems if you don't ever use bash on tty1. I do so on daily bases, and thus code differently. Do you use all (six?) of your ttys? --Andrew Hills
Re: [dev] Introducing XLSH
On Fri, Oct 21, 2011 at 1:44 PM, Andrew Hills hills...@gmail.com wrote: Do you use all (six?) of your ttys? No, I usually run bash on two to four ttys, and Xorg on one.
Re: [dev] Introducing XLSH
Lots of nice and simple solutions here. I, by no means, claim xlsh/xlshd is the best way to ditch popular *DMs but well I had a lot of fun coding it and it works for me. :) Back to the topic: xlsh github page now has proper wiki with HOWTOs on compiling and installing it on Arch and Ubuntu Linux as well as configuration articles. Head to: https://github.com/Nadrin/xlsh/wiki -- Michał Siejak
Re: [dev] Introducing XLSH
Awesome! Will try it soon and let you know about the results. Catalin 2011/10/21 Michał Siejak mic...@siejak.pl: Lots of nice and simple solutions here. I, by no means, claim xlsh/xlshd is the best way to ditch popular *DMs but well I had a lot of fun coding it and it works for me. :) Back to the topic: xlsh github page now has proper wiki with HOWTOs on compiling and installing it on Arch and Ubuntu Linux as well as configuration articles. Head to: https://github.com/Nadrin/xlsh/wiki -- Michał Siejak -- ** Catalin David M.Sc. Smart Systems 2012 B.Sc. Computer Science 2010 Jacobs University Bremen Phone: +49-(0)1577-49-38-667 Hans-Hermann-Sieling-Strasse 2A Bremen, 28759 Germany **
Re: [dev] Introducing XLSH
Thanks for sharing your work and I am waiting for some sort of tutorial to make it run on my machine. +1 pgpKmRxZqPFS0.pgp Description: PGP signature
Re: [dev] Introducing XLSH
The most suckless login was in windows 95 and 98 where one could just press escape to login.
Re: [dev] Introducing XLSH
Myself, I used to run openvt bash from inittab. Anyone who knows how to do anything useful in a commandline knows how to boot from an alternative OS anyway. (Now I use login for no generally applicable reason).
Re: [dev] Introducing XLSH
On Thu, Oct 20, 2011 at 3:00 PM, Bjartur Thorlacius svartma...@gmail.com wrote: Myself, I used to run openvt bash from inittab. Anyone who knows how to do anything useful in a commandline knows how to boot from an alternative OS anyway. (Now I use login for no generally applicable reason). My .bash_profile looks like this: # auto startx if logging in at VC/1 if [[ -z $DISPLAY ]] [[ $(tty) = /dev/tty1 ]]; then startx ~/.myXLog logout fi
Re: [dev] Introducing XLSH
On Thu, 20 Oct 2011 15:00:48 -, Anders Andersson pipat...@gmail.com wrote: My .bash_profile looks like this: # auto startx if logging in at VC/1 if [[ -z $DISPLAY ]] [[ $(tty) = /dev/tty1 ]]; then startx ~/.myXLog logout fi Uhm, so you've configured bash to exit immediately after starting X if run as a login shell on tty1? Spawning bash only to spawn a wrapper script around xinit seems like an overkill.
Re: [dev] Introducing XLSH
Overkill? We amerce using bash like Genocides.
[dev] Introducing XLSH
Hello. Recently I've written a simple program for myself and I think it fits well into minimalistic suckless philosophy, so I present to you XLSH or eXtended Login Shell. Let me paste a chunk of relevant info from the README file: A simple login shell with readline functionality and PAM integration. * When run stand-alone on a virtual console it can replace standard login program. * When run in cooperation with X daemon component (xlshd) it can replace XDM/GDM/KDM. Features: * Small and simple, written entirely in C. * Easily hackable because of compact codebase (~1000 source lines). * Uses PAM for authorization and session management. * Ability to select non-default shell/window manager during logon. * Entirely keyboard driven display manager replacement (when used with xlshd) without the need for any fat libraries or GUI toolkits. * Defaults configured before compilation, some of them can be changed by setting few environment variables. * Single shell script file (/etc/xlsh/xlshrc) for customizing how xlshd launches xlsh. * Introduces a concept of pre-login shell known from GNU/HURD. * Only *three* important commands: 'login', 'reboot' and 'shutdown'. * New commands can be easily added (if you need any) by editing xlsh.c * Username autocompletion on TAB. * Zenburn color scheme by default (when run under X). So that's it. I grew tired of XDM/GDM/KDM so I rolled my own solution. I currently run it both on my ttys and instead of XDM. It serves me well, I find simple keyboard shell-like interaction very comfortable and it fits into my awesome WM look feel (which is also Zenburn). Source code is here: https://github.com/Nadrin/xlsh Example screenshot is here: https://github.com/Nadrin/xlsh/wiki If any of you guys find it useful let me know. :) Constructive criticism/peer review is more than welcome. Cheers! -- Michał Siejak
Re: [dev] Introducing XLSH
Hey! 2011/10/19 Michał Siejak mic...@siejak.pl: Hello. Recently I've written a simple program for myself and I think it fits well into minimalistic suckless philosophy, so I present to you XLSH or eXtended Login Shell. Let me paste a chunk of relevant info from the README file: A simple login shell with readline functionality and PAM integration. * When run stand-alone on a virtual console it can replace standard login program. * When run in cooperation with X daemon component (xlshd) it can replace XDM/GDM/KDM. Features: * Small and simple, written entirely in C. * Easily hackable because of compact codebase (~1000 source lines). * Uses PAM for authorization and session management. * Ability to select non-default shell/window manager during logon. * Entirely keyboard driven display manager replacement (when used with xlshd) without the need for any fat libraries or GUI toolkits. * Defaults configured before compilation, some of them can be changed by setting few environment variables. * Single shell script file (/etc/xlsh/xlshrc) for customizing how xlshd launches xlsh. * Introduces a concept of pre-login shell known from GNU/HURD. * Only *three* important commands: 'login', 'reboot' and 'shutdown'. * New commands can be easily added (if you need any) by editing xlsh.c * Username autocompletion on TAB. * Zenburn color scheme by default (when run under X). So that's it. I grew tired of XDM/GDM/KDM so I rolled my own solution. I currently run it both on my ttys and instead of XDM. It serves me well, I find simple keyboard shell-like interaction very comfortable and it fits into my awesome WM look feel (which is also Zenburn). Sounds pretty awesome. I was also very tired of GDM and KDM and their bloatness. I tried SLiM at some point, but then for some reason it stopped working (I think I did an upgrade) and had to fall back to GDM. I've had a Linux box for quite a while now, but I don't quite know what needs to be done to replace GDM with XLSH. So, if anyone can help on that, it would be great -- I'm running Ubuntu, but I am sure I can replicate any instructions you might give for your ArchLinux box. Also, I was wondering how it behaves on a dual screen setup (if you got a chance to test it) and whether it automatically runs the .xsession file (which starts DWM). Thanks for sharing your work and I am waiting for some sort of tutorial to make it run on my machine. Catalin Source code is here: https://github.com/Nadrin/xlsh Example screenshot is here: https://github.com/Nadrin/xlsh/wiki If any of you guys find it useful let me know. :) Constructive criticism/peer review is more than welcome. Cheers! -- Michał Siejak -- ** Catalin David M.Sc. Smart Systems 2012 B.Sc. Computer Science 2010 Jacobs University Bremen Phone: +49-(0)1577-49-38-667 Hans-Hermann-Sieling-Strasse 2A Bremen, 28759 Germany **