Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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 am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout
I does not know how to add my script in it ?Kindly guide me.
thanks
mypass
I don't know that one can force closure of a terminal at log-out
though. You can do processing after the gnome session ended; but
not during (to the best of my knowledge, I don't use gnome, and
don't feel a deep desire to familiarise myself with it).
hi,
I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout
I does not know how to add my script in it ?Kindly guide me.
thanks
mypass
Change your default session to xterm before you login on the login screen. Check if this can help.
well if i only focus that when the user login the terminal windows automatically open then which file should i choose and the script to add into it.
Normally every time i right click on the desktop and then click to open the terminal which is a bit time consuming. How can it automatically open ?
well if i only focus that when the user login the terminal windows automatically open then which file should i choose and the script to add into it.
Normally every time i right click on the desktop and then click to open the terminal which is a bit time consuming. How can it automatically open ?
thanks
garden
No, in that failsafe xterm session you will only get a single terminal opened for you after login, there is no gui, no desktop nothing there..
thanks for the reply. Oh sorry I forgot to tell you that in run level 5 i.e GUI interface we can do it ?
Yes, and Tinkster gave you the solution in the first reply.
Open the users .profile or .bashrc file, and put a command at the bottom to run whatever you want. You don't say what desktop environment you're using (KDE, Gnome, etc.), and there are different methods to autostart things for each. The link Tinkster gave you should get you started. In KDE (4.x at least), if you log out and something is running, it'll start it back up when you log back in.
divyashree, telling the OP to set their default login environment to be xterm is dangerous advice, and didn't address the OP's original question.
If you don't know why, that's a good sign you shouldn't have suggested it.
Think about it; you're setting your X windows default session to be an X Windows APPLICATION. That is recursive. One can't start without the other. So, dead session, but locked in a very unique way. The only chance you have is to connect to the box over the network, and either restart the DM, or TRY to kill the x term window...which may or may not work. If you're on a server with other folks, a restart may be in order.
If you don't know why, that's a good sign you shouldn't have suggested it.
Think about it; you're setting your X windows default session to be an X Windows APPLICATION. That is recursive. One can't start without the other. So, dead session, but locked in a very unique way. The only chance you have is to connect to the box over the network, and either restart the DM, or TRY to kill the x term window...which may or may not work. If you're on a server with other folks, a restart may be in order.
I suggested , because he wants a terminal only opened after login.
Ok, But I cant understand how its recursive. And if remote we can use hummingbird exceed to connect xterm.
Last edited by divyashree; 06-08-2011 at 11:08 PM.
I suggested , because he wants a terminal only opened after login.
Right, which is why there are many methods of auto-starting an application after login.
Quote:
Ok, But I cant understand how its recursive.
Then you need to think about it. You are telling the X Window Manager to use an X Window APPLICATION as the MANAGER. Can't have one without the other.
Quote:
And if remote we can use hummingbird exceed to connect xterm.
There are many more things to use than Hummingbird, but stay focused on the OP's quesiton. They don't mention remote access or Hummingbird, so mentioning it is pointless.
There are many more things to use than Hummingbird, but stay focused on the OP's quesiton. They don't mention remote access or Hummingbird, so mentioning it is pointless.
I only just responded to you previous post, about connecting remotely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.