Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


Closed Thread
  Search this Thread
Old 09-04-2010, 01:23 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Constant errors in .bash_profile and startx does not load automatically

Hello one and all.
I am already grateful for coming across this site not to mention the delight in reading many earlier responses that have aided me in resolving issues with linux installations.

Here is to hoping that you guys would aid once again.

I have installed Damn Small Linux on an old laptop.
Every boot reports that the SSH has loaded as I have configured it to do so but does not load startx as instructed in .bash_profile.

After bootup, the following is reported by the system.

-bash: /home/dsl/.bash_profile: line 12: syntax error: unexpected end of file

This is the content of the .bash_profile
export DISPLAY=:0
RUNLEVEL=`runlevel|cut -f2 -d' '`
if [-z"$SSH"];then
if[$RUNLEVEL -eq 5];then

I have tried to # entries and realized that I had to # starting from the IF statement and all the way to the end in order to eliminate the error.

Startx will load properly after boot but will not load automatically as a part of the boot.

I can also load startx from a SSH session but the minute I terminate the SSH session the GUI unloads back to prompt.

If you know were I have gone wrond I would greatly appreciate it if you point it out.

In advance, thanks....... Mmoi5
Old 09-04-2010, 07:33 AM   #2
Senior Member
Registered: Jan 2010
Posts: 1,622

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
duplicate post of

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
startx automatically free_andrew Slackware 17 11-10-2014 10:40 AM
no ~.bashrc ~.bash_profile. Pythonpath always bringing errors when using compiz, etc. Romanus81 Slackware 3 05-22-2008 11:29 PM
startx automatically devavictrix Linux - Newbie 5 03-13-2006 11:44 PM
how to startx automatically on login kushalkoolwal Debian 11 10-29-2005 12:16 PM
errors in .bash_profile psyklops Linux - General 4 09-03-2003 12:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration