LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stuck in terminal - turned on text desktop by accident (https://www.linuxquestions.org/questions/linux-newbie-8/stuck-in-terminal-turned-on-text-desktop-by-accident-253234/)

dinkydarko 11-10-2004 10:17 AM

Stuck in terminal - turned on text desktop by accident
 
This my sound like a silly question but for someone stuck in windows for so long i have never came had to worry about the terminal b4. However, i have managed to get myself stuck in the greenbackgrounded SuSE 9.1 termial on startup because i turned off the graphical desktop (rather foolishly i know see). Could someone help fix this problem?

LoungeLizard 11-10-2004 10:19 AM

in the /etc/inittab change the default runlevel to 5

dinkydarko 11-10-2004 10:21 AM

if this works i'll be forever thankfull. i spend 2hours looking at the pretty green terminal window wanting to destoy it.

thanks

dinkydarko 11-10-2004 11:00 AM

problem, i'm probly just doing this wrong but when i get to /etc/ and type 'cd inittab' it just says 'permission denied'

Ygarl 11-10-2004 11:25 AM

Hi!
Fellow Newbie here....

inittab is a file (sorry - it's the standard way files are written in Linux...)

You'll have to edit using vi or whetever editor you're familiar with. Or be really lazy and copy the file to your Windoze partition, change in on notepad and copy it back.

But that's just being REALLY noob! ;-)

Good luck - it's easy to change though.

P.S. if you want to get to the desktop, type startx - should work straightaway.

rjlee 11-10-2004 11:30 AM

inittab is not a directory, so you are not likely to have directory-change permissions on it. Edit the inittab file using an editor like nano.

Alternatively, type
Code:

startx
to get back to a GUI (this will only work until the next reboot).

ror 11-10-2004 11:31 AM

NEVER use windows editors to change UNIX text files, especially system files.

Also, you'll have to be root to edit the file.

dinkydarko 11-10-2004 11:58 AM

startx didnt work as there was some problem with a link to a bin in /ver/X11R6/bin/x i think
how do u edit in the terminal? edit inittab ?

ror 11-10-2004 12:04 PM

use vi or pico or one of the many many console edittors.

dinkydarko 11-10-2004 12:11 PM

tried typing 'pico inittab' in /etc/ and just got the command error message

ror 11-10-2004 12:16 PM

try full paths, pico /etc/inittab as root should do it.

perfect_circle 11-10-2004 12:25 PM

if you cannot use startx, this probably means something is wrong with your X-windows.

try:
telinit 5
or:
init 5
if you get errors you can't use graphical mode (5), and it's pointless to edit inittab.

if you can use graphical mode login as root and alter the inittab.

pico is not the de-facto editor of linux.
you need to have pine installed in order to have pico.

better learn how to use vi.

What kind of error do u get?

abisko00 11-10-2004 12:38 PM

Hi dinkydarko!

You could also change the runlevel using yast:

login as root
type 'yast'
select 'system' 'runlevel-editor'
change to 'expert-mode' (Alt+highlighted key)
select runlevel 5 as default runlevel
exit yast
type init 5

the netxt reboot you should get automatically into graphical mode

Maybe the options are named a little different, I do not have an english version right now.

dinkydarko 11-10-2004 12:39 PM

i'll try going into a little more detail about the problem.
I was getting an error mesage on start up SuSE 9.1 telling me that my monitor wasnt reporing x values which might cause problems. i went into Yast and reprobled my graphics settings and then (foolishly) told it to use text decktop instead (learn from errors). at the time it told me i could change this but i was too fast with my clicking to read how. now it starts in run level 3.

when i try 'startx' i get the error message i mentioned above about the link not working,
i dont think i have pico or any other editor as having tried all the onese mentioned i get the same error message, commmand unregognised or soemting alson those lines. help :(

abisko00 11-10-2004 12:52 PM

Strange since pico is usually a standard console editor in suse. What do you get when you just type pico? But anyway, you may also re-configure your graphics using yast -> hardware -> graphics (or what ever it is called in english).

But if startx doesn't work, there might be another problem. Could you post the exact error message please?

dinkydarko 11-10-2004 01:19 PM

sorry, i'll go abck in and find out.
i tried chaging the run level in Yast and then exited and typed init 5 and got to level 5 in the termninal but no graphical desktop.
i then tried changin the hardware settigns/graphic config in Yast and this make no differece even on reboot (just seemed to go back to text mode)
then tried what it said in the Graphic setting, instructing me to type SaX2, this then told me i needed to be on run level 3 to use it. so u went back to run level 3 and tried and got this erroe message 'ups lost card during probing...aborting'

abisko00 11-10-2004 01:24 PM

Maybe you need to install special drivers for your card? You could install the drivers for nvidia with YOU (yast online update) if you have a working internet connection.

sax2 is nothing else than the graphics module in yast !

dinkydarko 11-10-2004 01:27 PM

ok, i'll try You. its a PCI nvidia 5200FX card i have but i was working ok with the original drivers.

kevinatkins 11-10-2004 01:27 PM

hello,

if you've used YaST to make some changes to your x configuration, chances are it will have saved the original file as a backup. i don't use SuSE anymore, but from memory, the XFree86 config file is in /etc/X11. Actually, I'm not sure whether SuSE 9.1 uses XFree86 or Xorg, no matter - if it's XFree86, the config file will be XF86Config; Xorg should be Xorg.conf.

Anyway, if a backup copy has been made, it'll usually have a tilde appended - eg, XF86Config~. Have a look and see..

If a backup has been made, just rename the current file to something else (best not to delete it for now...), then rename the backup to XF86Config. You'll need to be root to do all this, and the commands are, eg:

#cp XF86Config XF86Config-old (copy you current config to a new file)

then

#cp XF86Config~ XF86Config (rename the YaST backup..)

then try startx again..

dinkydarko 11-10-2004 01:56 PM

ok, here is the latest.
i tried downloading the drivers via Yast and You but i dont really know what to do once the are installed.
i went to /etc/x11 and found XF86CONFIG-linux , XF86CONFIG.Yast2save and XF86CONFIG.install
that help?
anyhting else i can give u?

kevinatkins 11-10-2004 02:12 PM

ok,

well, it looks like XF86CONFIG.Yast2save is the Yast backup... but where's the XF86Config file?!! Hmm, I'll hazard a guess that the XF86CONFIG-linux might be the current version. I think I'd still be inclined to copy the Yast2Save file to XF86Config, and also to the other files, too (but make sure you make copies of them just in case)..

ie,

#cp XF86CONFIG.Yast2save XF86Config

... then try a startx

if that doesn't work...

#cp XF86CONFIG-linux XF86CONFIG-linux-old
#cp XF86CONFIG.Yast2Save XF86CONFIG-linux

.. etc

But I'm a bit puzzled as to the whereabouts of your original XF86Config.. it might be XF86Config-4... sorry, I'm really going from memory here, and Mandrake 10, which I now use, uses Xorg....

Let us know how you get on.

dinkydarko 11-10-2004 02:16 PM

will do, i'm using duel boot so takes a min to try it out and get back
thanks

dinkydarko 11-10-2004 02:38 PM

k, i tried making the 2 other files the -linux files as u sugested. noluck in the startx department tho.
could it be a KDE problemor am i just being noobie and naive there?
would the full startx error message help?

kevinatkins 11-10-2004 02:48 PM

hi,

the startx error message probably would help. could you also post a listing of the contents of your /etc/X11 directory..

it doesn't sound like a KDE problem....

cheers.

dinkydarko 11-10-2004 03:11 PM

ok, sorry for wait. took a min

startx

there is no link /var/X11R6/bin/x to correct x server binary.
Please configure the correct x server with SaX/SaX2, which will create the missing link. I'm aborting now.

SaX doesnt work

SaX2

SaX2: invalid runlevel for consol mode
SaX2: please switch to init 3

SaX2 Aborting

(in level 3 it pauses and make the screen goe weird with a movable moue on it and then says'ups lost card during probling...abourt')

dinkydarko 11-10-2004 03:16 PM

contents of /etc/X11

.kstyierc.lock
.qt_plugins_3.3rc.lock
.qtrc.lock
XF86Config-linux
XF86Config-linux-old
XF86Config.Yast2save
XF86Config.install
Xmodmap
Xmodmap.remote
Xresources
fs
fvwm2
kstylerc
lbxproxy
proxymngr
qt_gtk_fnt2fntrc
qt_plugins_3.3rc
qtrc
rstart
twm
xdm
xim
xlinit
xkb
xserver
xsm

dinkydarko 11-10-2004 03:43 PM

would reinstalling suse work?
is it possible?
help

kevinatkins 11-10-2004 03:53 PM

ok,

looks like you're missing a symbolic link in your /etc/X11 directory to your x server binary, XFree86, which should reside in /usr/X11R6/bin.

First, check that the file is in there. Then, you need to remake that symbolic link -

Do the following as root -

#ln -s /usr/X11R6/bin/XFree86 /etc/X11/X

then try startx again..

(Sorry for delay - watching film on telly and nipping to computer during advert breaks!)

kevinatkins 11-10-2004 04:31 PM

Quote:

would reinstalling suse work?
Yes, you could do that, but I'd try and leave that as a last resort :D

abisko00 11-11-2004 02:01 AM

First of all you should try to reinstall XFree86 only (to install the whole system should not be necessary).

Next: if I read your post with the error-message correctly, the link should reside in /var/X11R6/bin and not /etc/X11.

The command would then be:

#ln -s /usr/X11R6/bin/XFree86 /var/X11R6/bin

dinkydarko 11-11-2004 04:44 AM

i got so anoyed last night with it i took the windows way out. I reinstalled the system. Gave me the chance to use new found knowlege to make a better install with better settings. Thanks with all the help. i think i'm going to learn a little more about the terminal as i felt like a big hairy newbie trying fix the problem. At least if another poor foolish soul tries to get rid of their graphics desktop they can find help in your advice.

thanks for all the help,
david

kevinatkins 11-11-2004 05:47 AM

Hi David,

OK fair play - glad you're up and running again...


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