Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hi, I usually use KDE for the windows manager. But recently I needed to use TWM because I needed to save some resources. I only wanted to use it for one SDL based application which requires lots of resources. I know how to use autologin and autostart in KDE, but how do I use them in TWM? Can anybody help me? Thanks alot in advance.
Well, there's no xinitrd anywhere. Did you mean xinitrc? BTW, I still needed to autologin. In KDE I can do it by enabling the "AutoLogin" in kdmrc. But I don't know how in TWM.
You can modify the ./.bashrc to start X, so when people log in the GUI starts, this requires a text based login tho. To automatically "login" as a user, keep in mind the system starts up in root mode essentially, so the init scripts of the system are run as root, you can essentially just place as the last command a "su" to a normal user, which should trigger the bashrc, which starts X with triggers ./.xinitrc. sorry if this sounds hard, but thats what you get for using something like TWM, altho, i could be wrong. I do know that the GUI login for TWM is XDM, so check its man page for autologin. But, then again, cant KDE's GUI login manager start different sessions, like a TWM session?
Okay, I've solved the autostart by adding my application in .xinitrc. So everytime X is started, it will automatically called. But I have no idea for auto login. What I wanted was:
1. Auto login from the first time system was booted. I guess this means auto login in the terminal itself.
2. Start X without logging in again.
3. Automatically calls the application. Has been done (I think).
In KDE, the autologin is easy. I just changed the "AutoLoginEnable" to true and "AutoLoginUser" to the user name in kdmrc. But I don't how to do it with TWM.
The solution is so simple, it hurts. First off, if you haven't already, disable auto login. Then when you get to the KDM login screen, log into TWM like normal, if it asks, "Do you want to make TWM the default for future sessions?" or something similar, answer YES. Once you're logged in, launch kcontrol from a terminal or a "Run Command" dialog. Once the KDE Control Center is running from within TWM, simply enable auto-login for that user. You're done. KDM's auto login automatically starts the default window manager of the user in question, whether it's KDE, GNOME, or in your case, TWM. As long as TWM is the default window manager for that user, KDM's auto login will use it. Changing your default window manager varies by distribution, but I hope I've helped you. Please note that auto login will not work if you logout within X. You will have to restart the X Window System in order to automatically login. I used to do this with Window Maker back when I used my Linux box as my primary TV.
Hmm, not that I know of. I'm not really familiar with TWM to be honest. If I knew more about the application you were running, and the distro you're using, I might be able to think of something. Why don't you want to install KDE? Is it a disk space issue?
If you don't install KDE or GNOME or XFCE or Fluxbox or etc., then twm will be your window manager. It is installed when you install X Windows. Just startx will give you twm.
Hi, I usually use KDE for the windows manager. But recently I needed to use TWM because I needed to save some resources. I only wanted to use it for one SDL based application which requires lots of resources. I know how to use autologin and autostart in KDE, but how do I use them in TWM? Can anybody help me? Thanks alot in advance.
If you don't install KDE or GNOME or XFCE or Fluxbox or etc., then twm will be your window manager. It is installed when you install X Windows. Just startx will give you twm.
luxbox or etc., then twm will be your window manager. It is installed when you install X Windows. Just startx will give you twm.
Thansk guys. I've successfully done the autologin and autostart issues. Here's what I've done:
1. Updated the newest mingetty
2. Changed the mingetty in tty1 with -autologin user
3. Added startx in the .bash_profile
4. Added the application execution in the xinitrc
Thanks a lot.
@johnnyblade
Well, my application runs very slow and the boot up takes ages because my computer is very low spec (Pentium II 400Mhz with 512 mb memory and an onboard graphics with shared memory).
@johnnyblade
Well, my application runs very slow and the boot up takes ages because my computer is very low spec (Pentium II 400Mhz with 512 mb memory and an onboard graphics with shared memory).
this config interest me.
I use the nuts and bolt on similar machine (or sh***).
Did you try a kernel 2.4 ? it can significantly be faster than the 2.6.
Beside I hear that the slack(ware) distro takes less ressources... but I never check it myself on current distro now
what s ur distro & kernel ?
Recompiling the kernel should improve performances ? to just our needs
Well, I used open SuSE 10.0 with the standart version of kernel from the distro (forgot the version though ). I can't change to another distro because there's a specific hardware driver that I need. It runs perfectly in SuSE but not in other distro.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.