You are not logged in.

#1 2010-02-08 00:28:28

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Bash PS1 Prompt slow to appear

After I log in through the virtual console (I don't use a login manager), I receive the little "last time logged in was...." message and then I need to wait a good 10-15 seconds for my bash prompt to appear. It is very weird and I can't figure out why this is happening. After it finally appears, I can log in through other VCs and it works fine and comes up right away, it's only that first time that it happens. Ideas? Here is my PS1 from ~/.bashrc:

PS1='\[\e[0;34m\]\$\[\e[0m\]'

(It is just a light blue $ sign)

Offline

#2 2010-02-08 01:14:05

sdolim
Member
Registered: 2010-01-20
Posts: 67

Re: Bash PS1 Prompt slow to appear

Try typing "bash -lv".  (That's "l" as in "login".)  This starts a login shell, which will rerun all the initialization files (like /etc/profile) that get run when you log in the first time.  The v flag tells bash to print out each command before it executes it.  See if you can spot a big delay somewhere in there.  (Don't forget to exit the shell when done.)

Offline

Board footer

Powered by FluxBB