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


Reply
  Search this Thread
Old 02-06-2012, 11:28 PM   #1
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Rep: Reputation: 15
Cent OS 4.8 Problem


Hell Friends,

I installed Centos 4.8. I have couple of problems in server.

1st - I cannot get proper GUI in runlevel 5. Xorg always crash while loading. I have to put in runlevel 3 and start gui by gdm.

2nd - When I logged into terminal with root user, I cannot get shell.

I get only this -bash-3.00# . I have to use /bin/bash command to get a login shell.

Please someone help me on this. I am online for 8 hours so whatever information you need, let me know. I will reply fast.

Thanks in advance.
 
Old 02-07-2012, 12:10 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
This
Code:
-bash-3.00#
is the system prompt, telling you that you are using bash v3.0 and you are logged in as root ('#').
A normal user would have '$' at the end of the prompt string.
You are already in a shell.

FYI, RHEL 4.x is going out of support as of Feb 29 this year (2012) so I recommend you get 5.x or (better) 6.x from Centos.
 
Old 02-07-2012, 12:35 AM   #3
byoungguk,kim
LQ Newbie
 
Registered: Sep 2011
Location: Korea
Distribution: Centos,Ubuntu,Debian,Freebsd,Fedora
Posts: 17

Rep: Reputation: Disabled
# -> root
 
Old 02-07-2012, 12:44 AM   #4
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
This
Code:
-bash-3.00#
is the system prompt, telling you that you are using bash v3.0 and you are logged in as root ('#').
A normal user would have '$' at the end of the prompt string.
You are already in a shell.

FYI, RHEL 4.x is going out of support as of Feb 29 this year (2012) so I recommend you get 5.x or (better) 6.x from Centos.
Thanks for your quick reply .

When I login root by terminal or ssh I get that this -
Code:
-bash-3.00#
I can execute all commands and when I execute
Code:
/bin/bash
I get proper shell like
Code:
[root@example.com ~]#
I think now its clear.
 
Old 02-07-2012, 01:10 AM   #5
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by byoungguk,kim View Post
# -> root
Thanks a lot for replying but I am sorry to say but really I don't understand.. Is it command or something else?

Please clarify.
 
Old 02-07-2012, 09:16 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by chrism01 View Post
This
Code:
-bash-3.00#
is the system prompt, telling you that you are using bash v3.0 and you are logged in as root ('#').
A normal user would have '$' at the end of the prompt string.
You are already in a shell.

FYI, RHEL 4.x is going out of support as of Feb 29 this year (2012) so I recommend you get 5.x or (better) 6.x from Centos.
Don't you think after a fresh installation in CentOS the shell should look something like
Code:
root@server ~]#
and not
Code:
-bash-3.00#
Even though it is a bash shell, I don't feel the OS is properly installed and the answer which OP was looking for doesnot matches your answer, I would say it is rather incomplete.


Quote:
Originally Posted by ayush1440 View Post
Thanks for your quick reply .

When I login root by terminal or ssh I get that this -
Code:
-bash-3.00#
I can execute all commands and when I execute
Code:
/bin/bash
I get proper shell like
Code:
[root@example.com ~]#
I think now its clear.
If you are not able to login directly to GUI then change the default run level
Code:
#vi /etc/inittab
# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon

and if you are not getting a /bin/bash shell by default then try this command
Code:
#export PATH=$PATH:/bin/bash
 
  


Reply


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
Problem to use printer in cent os greatcyrus Linux - Hardware 3 03-19-2011 07:09 AM
Cent os Custom Hard Disk Partition problem. gardenair Linux - Newbie 1 03-03-2011 02:25 AM
linux cent os vps Problem majid_3ma Linux - Networking 1 01-19-2011 10:34 AM
problem in installing cent os sharaf.satishkumar Linux - Newbie 4 07-26-2010 03:39 AM
Problem with networkin in Cent OS duffmckagan cAos 8 04-19-2005 11:45 AM


All times are GMT -5. The time now is 08:43 AM.

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