LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 09-04-2010, 12:23 AM   #1
mmoi5
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
#!/bin/bash
export IRCNICK=DSL
export DISPLAY=:0
SSH=`env | grep SSH_CONNECTION`
RUNLEVEL=`runlevel|cut -f2 -d' '`
if [-z"$SSH"];then
if[$RUNLEVEL -eq 5];then
startx
fi
fi


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, 06:33 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,614

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
duplicate post of
http://www.linuxquestions.org/questi...ically-830265/
 
  


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 09:40 AM
no ~.bashrc ~.bash_profile. Pythonpath always bringing errors when using compiz, etc. Romanus81 Slackware 3 05-22-2008 10:29 PM
startx automatically devavictrix Linux - Newbie 5 03-13-2006 10:44 PM
how to startx automatically on login kushalkoolwal Debian 11 10-29-2005 11:16 AM
errors in .bash_profile psyklops Linux - General 4 09-02-2003 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 PM.

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