LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 11-16-2011, 12:38 PM   #1
Taylrl
Member
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 34

Rep: Reputation: 0
Problem displaying GUI after update to ubuntu.


Hi,

I recently chose to download an update to what I think was ubuntu 10.10. Now when I reach the login screen and type in my details it keeps on bringing me straight back to the login screen. I can login to the terminal using ctrl+alt+F4 but apparently there is now no specified display. I was wondering if someone might be able to help me get back to the GUI?

Thanks in advance!
 
Old 11-16-2011, 01:06 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Read your ".xsession-errors" file in your user home directory, there should be answer.
 
Old 11-16-2011, 01:15 PM   #3
Taylrl
Member
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 0
Thanks.

When I type:

cat .xsession-errors

It says:

/etc/gdm/Xsession: Begining session setup...
/home/myname/.profile :23 :Syntax error: Undetermined quoted string

Any ideas what this means?
 
Old 11-16-2011, 01:46 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Error in "/home/myname/.profile" file, show it.
 
Old 11-17-2011, 05:20 AM   #5
Taylrl
Member
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 0
Ok, my .profile contains;

#~/.profile: executed by the command interpreter for login shells.
#This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
#exists.
#see /usr/share/doc/bash/examples/startup-files for examples.
#the files are located in the bash-doc pacakge.

#the default umask is set in /etc/profile; for setting the umask
#for ssh logins, install and configure the libpam-umask pacakge.
#umask 022

#if running
if [ -n "$BASH_VERSION" ]; then
#include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

#set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
PATH="$home/myname/Library/cuda/bin:$PATH"
PATH="$home/myname/Library/cuda/lib:$PATH
PATH="$usr/bin/gcc:$PATH$"
".profile" 25 lines, 802 characters
fi

I noted the missing " at the end of line 24 and corrected it but still not able to display anything or login. Can anyone see where there might be another mistake? Would a mistake in this file lead to me not being able to login? Thanks again :-)
 
Old 11-17-2011, 09:08 AM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
You have following errors here:
Code:
PATH="$home/myname/Library/cuda/bin:$PATH"
Here you use "$home" at the start. If you want your home folder use "$HOME" (watch capital letters) and if normal path - use "/home/myname". "$HOME" is preferred.

Code:
PATH="$home/myname/Library/cuda/lib:$PATH
Same here, by the way, are you sure you have executable files in "lib" directory, I suppose there are only library files, and as I known PATH is not searched for libraries during compilation.

Code:
PATH="$usr/bin/gcc:$PATH$"
Here you should remove first and last "$" sign (I suppose you have no defined variable $usr anywhere), and once again, do you have this directory gcc, as in my system this is a file, and in PATH variable you specify directories to search - not files.


Code:
".profile" 25 lines, 802 characters
This line should not be in this file.

So the correct file should look that, but consider removing two last lines before "fi", as I noted ealier they are probably unnecessary:
Code:
#set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
 PATH="$HOME/bin:$PATH"
 PATH="$HOME/Library/cuda/bin:$PATH"
 PATH="$HOME/Library/cuda/lib:$PATH"
 PATH="/usr/bin/gcc:$PATH"
fi
Also please use CODE tags around your code, beacause it is more readable than and we can see real file not parsed by forum. Also if you still can not login, look again in ".xsession-errors" and show contents - there will be another errors.

Last edited by eSelix; 11-17-2011 at 09:18 AM.
 
  


Reply



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
Fedora8 64 update GUI problem koywa Linux - Newbie 4 07-29-2008 12:50 AM
ubuntu 7.10 After update (gnome& other packages) no gui LinuxNewbie999 Ubuntu 1 03-14-2008 04:49 AM
Problem with monitor not displaying in Ubuntu and Mandriva Jamamp1 Linux - Hardware 6 03-01-2007 07:36 PM
Problem with GUI after update in SUSE 10.2 matuk_444 SUSE / openSUSE 8 01-23-2007 09:30 PM
GUI not displaying due to Processor and M/Board changes lekkie Linux - Hardware 1 05-09-2006 09:46 AM

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

All times are GMT -5. The time now is 03:03 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
Open Source Consulting | Domain Registration