Xterm (any X terminal) starts fast, but initializes very slow
Linux - GeneralThis 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
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.
Xterm (any X terminal) starts fast, but initializes very slow
Hello!
When i start Xterm (or another terminal in X, tried others; aterm & rxvt), it appears very quickly on the screen, but it takes a while (4-5 seconds) before 'kevschef@debian:~$' appears, and i can start using it. After that it works normally, but its really annoying and slowing down my work because i start a lot of xterms Btw i'm running Debian testing. Everything else is fast as normal.
Does anyone know what causes this delay? I tried searching i could not think of good keywords.
The problem is most likely something in your shell config. If you can't figure out what it is, then lob a 'set -x' at the top of ~/.bashrc (or whatever), this should show you what it's doing.
Great! Thanks alot soggycornflake for the quick awnser. I had a look at .bashrc, and it seems its doing ALOT before starting. I'll see into this, i wonder what its for.
Thanks again, it seems to work well if i empty the file, but ill look into the file later to see what i will be missing in that case.
It's usual to have a fair amount of stuff in there, most of it doesn't cause any slow-down (aliases for example shouldnt' be any problem, I have a couple of hundred). Obviously, if you're running a lot of external commands, that's going to takes it's toll. Another thing that can slow it down, depending on how fast your box is, is if you have a large HISTSIZE (the number of lines stored in the history file). On my main box (Athlon 64), I have a nice large 10,000 lines, but on my old laptop (PII-300), I cut this down to 2,000, otherwise it takes ridiculously long to start a shell.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.