LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-06-2007, 10:55 AM   #1
g4j31a5
Member
 
Registered: Sep 2006
Distribution: open SuSE 10.0
Posts: 116

Rep: Reputation: 15
Autologin and Autostart in 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.
 
Old 02-06-2007, 12:21 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
If it does not use any of the TWM interface things for anything you can just start it before you start the windows manager in xinitrd

Code:
 
#begin xinitrd 
neededapp & 
twm
Might need a exec but i doubt it
 
Old 02-06-2007, 07:57 PM   #3
g4j31a5
Member
 
Registered: Sep 2006
Distribution: open SuSE 10.0
Posts: 116

Original Poster
Rep: Reputation: 15
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.
 
Old 02-06-2007, 08:03 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
What is autologin?

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?
 
Old 02-07-2007, 02:23 AM   #5
g4j31a5
Member
 
Registered: Sep 2006
Distribution: open SuSE 10.0
Posts: 116

Original Poster
Rep: Reputation: 15
^^

Thanks, but that's not what I really wanted.

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.
 
Old 02-08-2007, 11:37 AM   #6
johnnyblade
Member
 
Registered: Mar 2004
Location: Indiana
Distribution: Slackware64 13.1
Posts: 30

Rep: Reputation: 15
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.
 
Old 02-11-2007, 10:03 PM   #7
g4j31a5
Member
 
Registered: Sep 2006
Distribution: open SuSE 10.0
Posts: 116

Original Poster
Rep: Reputation: 15
Well, I don't want to install KDE at all. So, is there any other way? Thanks though.
 
Old 02-15-2007, 11:49 AM   #8
johnnyblade
Member
 
Registered: Mar 2004
Location: Indiana
Distribution: Slackware64 13.1
Posts: 30

Rep: Reputation: 15
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?
 
Old 02-15-2007, 01:02 PM   #9
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 02-15-2007, 03:19 PM   #10
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by g4j31a5
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.
i use the nuts & bolt autologin http://linuxgazette.net/issue72/chung.html

and tinywm or openbox

enjoy this hint

thank you xeratul

Last edited by Xeratul; 02-15-2007 at 03:24 PM.
 
Old 02-15-2007, 03:22 PM   #11
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by Arow
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.

Last edited by Xeratul; 02-15-2007 at 10:54 PM.
 
Old 02-19-2007, 10:25 PM   #12
g4j31a5
Member
 
Registered: Sep 2006
Distribution: open SuSE 10.0
Posts: 116

Original Poster
Rep: Reputation: 15
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).
 
Old 02-21-2007, 12:17 PM   #13
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by g4j31a5
@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
 
Old 02-21-2007, 11:58 PM   #14
g4j31a5
Member
 
Registered: Sep 2006
Distribution: open SuSE 10.0
Posts: 116

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TWM window j4r0d Programming 1 12-08-2004 04:48 AM
Twm ! Cdzin Slackware 1 07-30-2003 01:51 PM
Uh oh, TWM? orange400 Linux - General 3 03-26-2003 08:18 PM
Help with TWM. jake Linux - General 0 01-21-2002 06:12 AM
Twm Mimician Linux - Newbie 2 12-03-2001 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration