Firefox updating display very slowly when running as normal user
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.
I created a new user with useradd -m temp. When I ran su temp and then startx,
This is seriously bad practice. You should log out and then log in as a particular user before attempting to run "startx". No wonder you have so many problems! There are oodles of environment variables that aren't set properly if you su without a dash ("su temp" vs "su - temp"). You're going to make a mess of things.
Rather than try and be clever about exactly what the correct procedure is to su to another user, you should log out entirely and log in as the other user.
If this is the sort of stuff you've been doing, there's no telling how messed up your system has gotten. If I were you, I'd start with a fresh OS install. This time, make sure to never run any GUI programs as root.
The events happened in this order:
* I ran startx as lithoria
* From within Ratpoison, I ran su root to log in as root.
* From within the above terminal, as root, I ran firefox.
* I opened a new terminal without closing the other one.
* In the new terminal I was already lithoria, so I ran firefox.
* Firefox updated the display quickly.
Needless to say, don't do anything like that again. Besides the problems of running Firefox as root in another user's X session, you switched to root without a dash - meaning a lot of environment variables were pointed to the user's settings. And then when you ran firefox again as the regular user, you messed things up even more, because firefox doesn't start a new process if it has detected it's already running. Instead, it will open a new window with the currently running process...
Time to stop being too clever by half. Try using the software in the most basic way possible, as would be expected of a newbie. Don't use su at all with anything to do with X or GUI programs. You're not doing it right, and this is messing up your system in difficult to fix ways. Just do the more straightforward thing. Log out. Log in as another user. Don't use "su" with any sort of GUI programs. Keep it basic, and see how it goes.
'lspci | grep VGA' should be sufficient to see if there is more than just Intel.
Some hardware exposes bugs that other hardware doesn't. This provides an overview, but doesn't help with why Firefox only as normal user. Someone in a Mozilla-specific forum, e.g. on IRC, might be able to provide insight.
This is seriously bad practice. You should log out and then log in as a particular user before attempting to run "startx". No wonder you have so many problems! There are oodles of environment variables that aren't set properly if you su without a dash ("su temp" vs "su - temp"). You're going to make a mess of things.
Rather than try and be clever about exactly what the correct procedure is to su to another user, you should log out entirely and log in as the other user.
If this is the sort of stuff you've been doing, there's no telling how messed up your system has gotten. If I were you, I'd start with a fresh OS install. This time, make sure to never run any GUI programs as root.
Thank you for the feedback. I haven't run any GUI applications other than Firefox as root, normally run startx as only lithoria, which I log in as, and with a single possible exception, don't know of any errors occurring on my machine. Do you think I should still do a fresh install?
Thank you for the feedback. I haven't run any GUI applications other than Firefox as root, normally run startx as only lithoria, which I log in as, and with a single possible exception, don't know of any errors occurring on my machine. Do you think I should still do a fresh install?
Yes. You do not seem to be aware of the things you have done previously which have messed up your system. However, it is likely that you will continue to do things that will mess up your newly installed system. Some tips to help you not mess up your system in the future:
1) Never use "su" without a dash.
2) Never run any GUI program as a different user than the one which is currently logged in. Log out and log back in before doing so.
3) It is okay to "su -" to root within any terminal (console or graphical) if you wish to run strictly command line programs. But be very aware when you do so about ANYTHING that can affect any files in another user's home directory. In your case, it's probably best to immediately habitually "cd /root/" after every invokation of "su -" just to make sure.
I'll be honest-I personally never use "su -". I only use "su" without the dash and this has never caused me any problem. But I am also very conscious and aware of the potential pitfalls of "su" so I'm always careful to only do the minimum necessary when su'd to root.
Yes. You do not seem to be aware of the things you have done previously which have messed up your system. However, it is likely that you will continue to do things that will mess up your newly installed system. Some tips to help you not mess up your system in the future:
1) Never use "su" without a dash.
2) Never run any GUI program as a different user than the one which is currently logged in. Log out and log back in before doing so.
3) It is okay to "su -" to root within any terminal (console or graphical) if you wish to run strictly command line programs. But be very aware when you do so about ANYTHING that can affect any files in another user's home directory. In your case, it's probably best to immediately habitually "cd /root/" after every invokation of "su -" just to make sure.
I'll be honest-I personally never use "su -". I only use "su" without the dash and this has never caused me any problem. But I am also very conscious and aware of the potential pitfalls of "su" so I'm always careful to only do the minimum necessary when su'd to root.
Thank you for the tips. I'll reinstall Arch Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.