LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Redhat 9 Boot problem plz help (https://www.linuxquestions.org/questions/linux-newbie-8/redhat-9-boot-problem-plz-help-231793/)

zedhal 09-17-2004 10:28 AM

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

MartinN 09-17-2004 10:33 AM

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

chrism01 09-17-2004 11:14 AM

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 ...

zedhal 09-17-2004 06:04 PM

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.

MartinN 09-20-2004 12:19 AM

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

nitin_batta 09-20-2004 12:31 AM

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.

zedhal 09-20-2004 04:51 PM

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

nitin_batta 09-20-2004 11:59 PM

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

zedhal 09-25-2004 02:36 PM

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.


All times are GMT -5. The time now is 05:13 AM.