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.
We have a centos machine which serves as a web server. We also have a mysql server running on it. Currently we log-in via a gui prompt into a gui session. We are looking at changing this aspect; we want to login via the shell instead of gui. We'd need to keep all the current services on that machine running however. What should we do?
Even once this is done I'd need to know how to start a gui session from the shell itself.
When the server is booted, it will be in runlevel 3. That means multiuser with network but no GUI. When in runlevel 3, you can type init 5, as root, to get to runlevel 5, which is multiuser with network and GUI. To go back, you type init 3.
yeah type init 5 to go back to GUI or type telinit 5,to reboot type telinit 6.
Regarding second question it depends if the mysql server is allowed to start in runlevel 5. do this chkconfig --list and grep for mysql.If its off in runlevel 5 then enable it throught
It seems you can only do an init 5 from the root prompt if you want to log-in to the gui session from the shell. Is this process similar to a normal restart?
Now after the default session to set to a shell, we do a normal login and then interchange to the gui session. There, on logging out it by default displays the login to a gui session. How to change this? I mean from a gui session if I did a logout I want to see my shell login prompt...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.