Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have a machnie installed with Redhat Enterprise Linux WS release 4 update 4.with kde3.3.
When i login as a user to the machine and open 10 terminals and reboot the machine.
After the completion of rebooting again when i login as user i should see the 10 opened terminals.
Do you mean adding another 4 terminals from the default 6 in the console? Modify your /etc/inittab and add another 4 entries from the group that has something like c1:*, c2:*.... for example:
in the section
Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
add another 4 to make it:
Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
c7:2345:respawn:/sbin/agetty 38400 tty7 linux
c8:2345:respawn:/sbin/agetty 38400 tty8 linux
c9:2345:respawn:/sbin/agetty 38400 tty9 linux
c10:2345:respawn:/sbin/agetty 38400 tty10 linux
this works most of the time but i don't know if it works with 10
--- EDIT ---
sorry i haven't seen your second reply.. what type of terminal do you mean anyway? do you mean sessions in konsole or gnome terminal or something?
Last edited by konsolebox; 03-12-2008 at 03:28 AM.
Reason: mistake
i don't know how to configure things that way but in my machine running a gentoo dist, i just log my session out without closing the terminals and that's it.. when i go back using 'startx' from the console, everything goes back to where it was even mozilla firefox.
the problem is unlike yours, i don't use a login manager .. i just start x directly from the console and no more login is required.. or perhaps it was not configured to be done that way..
try to logout only when shutting down then try to shutdown from the login screen instead.
Please verify that I understand correctly - you want KDE to remember what windows you had open last time you use the computer, and re-open them next time you log in?
the next time when i login i should be automatically open all the terminals (10-15) which i had opened previously.
This says that you want the 10-15 terminals to start the next time you log into KDE.
Quote:
My question is i dont want to have any extra terminals.
This says that you don't.
It you close the "konsoles" before logging out, they shouldn't be there the next time you log in. Then you can go to the KDE configuration and decide if you want your last session saved or not or if you want to start with a blank session.
Quote:
My question is i dont want to have any extra terminals.
This says that you don't.
My answer was to Mr. Konsolebox as he sujjested me to do the below steps.
Do you mean adding another 4 terminals from the default 6 in the console? Modify your /etc/inittab and add another 4 entries from the group that has something like c1:*, c2:*.... for example:
in the section
Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linuxadd another 4 to make it:
Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
c7:2345:respawn:/sbin/agetty 38400 tty7 linux
c8:2345:respawn:/sbin/agetty 38400 tty8 linux
c9:2345:respawn:/sbin/agetty 38400 tty9 linux
c10:2345:respawn:/sbin/agetty 38400 tty10 linuxthis works most of the time but i don't know if it works with 10
Any ways as u have understand my question
Please tell me how should i open the old sessions(first time login sessions) when i login the second time.
waiting for your reply
It's OK. Perhaps what he means is that my first reply was wrong and that he wants to have his session saved and put back the second time he logs in. Have you already tried the procedure I told you? Did it work?
Go to control center -- > KDE components -> session manager-> and check the option restore previous session.
And reboot the machine.
It will work.
For Gnome
Go to Applications->Preferences->morepreferences->sessions and select the Session Options tab.
Check the box for automatically remember running applications when logging out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.