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 09-17-2004, 11:28 AM   #1
zedhal
LQ Newbie
 
Registered: Sep 2004
Location: United Kingdom
Posts: 4

Rep: Reputation: 0
Redhat 9 Boot problem plz help


Hello to you all,...

Am new to linux and have recently installed RedHat 9 on my machine, my aim is to use it as an www/ftp server. After the installation everything was working fine, and while i was configuring the php and mysql something went wrong.

Basically after i restarted it, as i would if i made changes to windows. Well all it does it loads into the command line but not the guy interface.

this is where it stops

Red Hat Linux release 9 (Shrike)
Kernel 2.4.20-0 on an i686

localhost login:



basically its asking to login to it using the command line, and when i use the root and its password it loges me in and displays command line

Last login: Fri Sep 17 15:24:56 on tty1
[root@localhost root]#


And i have no idea where to go from now, i simply want to bring up the guy interface, no idea how to do it through the command line, please help.

in addition, i have done some testing, it seems that all services are still working in background such as my ftp server
 
Old 09-17-2004, 11:33 AM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi zedhal! Welcome to LinuxQuestions!

It's a good idea not to run a gui on your server, it's just eating a lot of resources (memory and CPU) that you could use for server performance instead. However, when you configure it you could start the gui. Just give the command:
startx

If you want to shut down the server from command line, type:
halt -p

Or to reboot it:
reboot

Good luck with your server!
Martin
 
Old 09-17-2004, 12:14 PM   #3
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
Actually, on a modern box, the GUI doesn't use much resource unless you are actively using the GUI.
The scheduler gradually swaps out unused processes...
It's handy to have for people who don't know the cmd line well. Of course you could use Webmin remotely ...
 
Old 09-17-2004, 07:04 PM   #4
zedhal
LQ Newbie
 
Registered: Sep 2004
Location: United Kingdom
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, to both of you....

As am at work i can not test it now, but its the first thing that am gonna try to do when i get home at 6am.

I see the point of having the server running in command line, and i also understand posibility of the new processor management enhancements with the new OS.

Well, as am new to the Linux (Red Hat 9) for the time been i will stick to GUI for configurations. And once i configure it i will look into just booting it into the command line, that way hopefully i will learn bit of both sides.

Before the problem i did notice that when some one logs into my ftp using the guest account through a web explorer they only gain access to the folder i set my ftp to. However, when some one uses an ftp client they are able to navigate back to the root directory, with abilities to change, add and delete what ever they want.

Any thoughts on how to prevent that from happening? As i only ant them to be able to upload and download, i wana share 20gig like i did when i had win server.

Oh, one other big thing, as i spend lots of time at work, i would love to be able to log into my server from here, as i have Internet available. Can any one point out what to use and how to establish a remote desk top access to Linux from my windows xp laptop.

ONCE AGAIN THANK YOU ALL.
 
Old 09-20-2004, 01:19 AM   #5
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
I don't think you should launch your server before you are pretty sure about the security of it. The vsftpd (ftp server) has lots of options for configuration. But it's strange that you say that an ftp user can break out of the ftp directories. Didn't think that was possible on a default RH9. Read some documentation!
http://vsftpd.beasts.org/vsftpd_conf.html
http://www.vsftpd.org/rpm/

For a secure connection between two machines, SSH is the recommended method. SSH creates an encrypted connection between the computers making it difficult to sniff passwords.

Also, you should make sure that the firewall is correctly configured! It's called 'iptables'. Search (on this site or the net) for tips on how to set it up correctly.

Good luck!
Martin
 
Old 09-20-2004, 01:31 AM   #6
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
You should check you inittab file for the default run level.

Yoy can change ur run level to 5 in case tou want to go into GUI everytime you reboot the machine.
 
Old 09-20-2004, 05:51 PM   #7
zedhal
LQ Newbie
 
Registered: Sep 2004
Location: United Kingdom
Posts: 4

Original Poster
Rep: Reputation: 0
thanks a lot for the help

however i have a diff problem now :d emm, when it starts it gos through a the comands and it comes up to this part of the screen where it's ment to let you log in using command line

well the problem is that at this stage the sceen use to blink one and the gui starts up, well now the screen just keeps on blinking and no gui coming um, and yes the runlevel is 5

and i have not edited any files

if any sugestions please help
 
Old 09-21-2004, 12:59 AM   #8
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Quote:
well the problem is that at this stage the sceen use to blink one and the gui starts up, well now the screen just keeps on blinking and no gui coming um, and yes the runlevel is 5
reconfigure your display card and the monitor refresh rates and also try and configure xfree86 .... i dunn remember the command i guess it is redhat-config-xfree86
 
Old 09-25-2004, 03:36 PM   #9
zedhal
LQ Newbie
 
Registered: Sep 2004
Location: United Kingdom
Posts: 4

Original Poster
Rep: Reputation: 0
I tried runing the redhat-config-xfree86 but there was an error starting it.

However i managed to find a file that referes to an error, its states

Code:
#!/bin/sh

MSG3=`gettext -s "I cannot start the X server (your graphical interface).  It is likely that it is not set up correctly.  You will need to log in on a console and rerun the X configuration program.  Then restart GDM."`
MSG4=`gettext -s "Would you like me to try to run the X configuration program?  Note that you will need the root password for this."`
MSG5=`gettext -s "Please type in the root (privileged user) password."`
MSG6=`gettext -s "I will now try to restart the X server again."`
MSG7=`gettext -s "I will disable this X server for now.  Restart GDM when it is configured correctly."`
MSG8=`gettext -s "I cannot start the X server (your graphical interface).  It is likely that it is not set up correctly.  Would you like to view the X server output to diagnose the problem?"`

# there are some env vars defined:
# XLOG = the log file for the X server
# BINDIR = location of gdm binaries
# SBINDIR = location of gdm system binaries

# return values are
# 0 = try again, runs this server again
# 1 = abort this display, removes this server from the list
# 32 = something went very wrong, things will just get logged.
#      this means this script didnt work so do alternative things
#      to tell the user if possible

#
# First see if we can find an X configuration program
#  (first one in the list will be used)
#
XCONFIGURATOR=
for n in \
  /usr/bin/redhat-config-xfree86 \
  /usr/sbin/XFdrake		 \
  /usr/bin/X11/XF86Setup	 \
  /usr/bin/X11/Xconfigurator	 \
  /usr/bin/X11/xf86cfg		 \
   ; do
  # standard shell test has no or and loops have no breaks, eek
  if test "x$XCONFIGURATOR" = "x" ; then
    if test -x "$n" ; then
      XCONFIGURATOR="$n"
    fi
  fi
done

#
# Now we check for dialog and gdmaskpass
#
DIALOG=`which dialog`
if test "x$DIALOG" = "x" ; then
  DIALOG=`which gdialog`
  if test "x$DIALOG" = "x" ; then
    DIALOG=`which whiptail`
  fi
fi
if test -x "$SBINDIR/gdmaskpass" ; then
  ASKPASS="$SBINDIR/gdmaskpass"
else
  ASKPASS=
fi


#
#  If this is a mouse problem try mouseconfig and modify some
#  messages
#
if grep '^Cannot open mouse ' "$XLOG" ; then

  MSG8=`gettext -s "I cannot start the X server (your graphical interface).  It seems that the pointer device (your mouse) is not set up correctly.  Would you like to view the X server output to diagnose the problem?"`

  if test -x /usr/sbin/mouseconfig ; then
    XCONFIGURATOR=/usr/sbin/mouseconfig
    # Note: we know this is a mouse problem and yay we have mouseconfig
    MSG4=`gettext -s "Would you like me to try to run the mouse configuration program?  Note that you will need the root password for this."`
  fi

fi

#
# If we don't have an X configurator we abort right now
#

# we require 'gdmopen', to open a console, because we really dont
# have one.  Perhaps someone should try to figure out some shell
# black magic to get this to work on other then linux systems
if test ! -x "$SBINDIR/gdmopen" ; then
  exit 32
fi

# when we run ourselves from the open we will pass a -noopen argument
if test "x$1" = "x-noopen" ; then
  shift
else
  #
  # We do a lot of work wastefully over again, but oh well,
  # perhaps this needs fixing.
  #
  "$SBINDIR/gdmopen" /bin/sh --login -c "$0 -noopen $@"
  exit $?
fi

clear

# Note, dialog required, though this script could be fixed to not require it
# I suppose
if test "x" = "x$DIALOG" ; then
  echo =======================================================================
  echo 
  cat "$XLOG"
  echo 
  echo =======================================================================
  echo
  if test -x /usr/bin/fmt ; then
    echo  "$MSG3" | /usr/bin/fmt
  else
    echo  "$MSG3"
  fi
  echo
  echo =======================================================================
  read
  exit 1
fi

if "$DIALOG" --yesno "$MSG8" 10 50 ; then 
  "$DIALOG" --textbox "$XLOG" 22 76
fi

if test "x$XCONFIGURATOR" = "x" ; then
  "$DIALOG" --msgbox "$MSG7" 8 50
  exit 1
fi

if "$DIALOG" --yesno "$MSG4" 10 50 ; then 
  clear
  echo
  echo "$MSG5"
  if test "x$ASKPASS" = "x" ; then
    # dirty trick to fool su into asking the root password even if were
    # root
    su nobody -c "su -c $XCONFIGURATOR"
  else
    if "$ASKPASS" ; then
      "$XCONFIGURATOR"
    fi
  fi
  clear
  "$DIALOG" --msgbox "$MSG6" 8 50
  exit 0
else
  "$DIALOG" --msgbox "$MSG7" 8 50
  exit 1
fi
Could anyone post a copy of their file copies for

/etc/grub.conf and /etc/lilo.conf

so that i could compare them with mine.
 
  


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, dual boot, xp/redhat, cdtray kept ejecting, del redhat part. wont boot a OS mraym84 Linux - General 2 08-22-2004 02:46 PM
plz plz solve my route mapping problem nedian123 Linux - Networking 1 07-12-2004 10:41 PM
Boot problem with GRUb (Plz help me!) djkoe Linux - Laptop and Netbook 1 01-04-2004 09:19 PM
redhat problems plz plz help sap666 Linux - Newbie 5 07-30-2003 11:57 AM
Problem installing KDE 3 on Redhat 9, help plz danny_kurniawan Linux - Software 2 07-28-2003 01:40 PM


All times are GMT -5. The time now is 03:12 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