Need help I goofed up my machine


Forum: HD Install
Topic: Need help I goofed up my machine
started by: u2musicmike

Posted by u2musicmike on April 14 2006,14:45
I don't know exactly what I did.  I was trying out several new things:  I mounted tcltutor.uci for the first time.  I tried to format some bad floppys.  I was looking at the contents of a zip file.

Afterwards I noticed that aterm will not work.  It just flashes on the screen real quick and disappears.  I tried ctrl-alt-F1 and no prompt and then I tried ctrl-alt-backspace and only logon comes up.  The only way I get a prompt is if I run tclsh.

My machine is an old pentium 64meg and it is a hd install.

Thanks,
Mike

Posted by mikshaw on April 14 2006,17:40
I'm not sure why you should be logged out when you ctrl+alt+backspace...as far as I know it should take you to a bash prompt.  Maybe bash itself is having trouble? Generally I use a bash shell to troubleshoot application troubles, but I've never seen a situation where i couldn't get a bash shell.

Did you change any environment variables, such as SHELL?

Some things you could try...

Open the run dialog and type aterm or xterm or rxvt.  They are all actually aterm, but if one works when another does not, it may narrow down the problem (e.g. perhaps there is a messed up .Xdefaults file).

See if you can start some other console applications from the menu, such as midnight commander or top.  If they succeed, then aterm is working, and you can look elsewhere for the trouble.

Open the run dialog and type in "aterm &>aterm.log".  After aterm flashes you can then open up aterm.log and see if there are any error messages listed.

Edit .xinitrc to redirect your window manager's output to a file.  In the "case" statement where it starts your chosen window manager, add "&>wm.log" after the window manager command.  If there is already a "&>/dev/null" there, replace /dev/null with the log filename.

Posted by u2musicmike on April 15 2006,19:53
I didn't have much luck trying to make the log files.  For aterm it made an empty log file in emelfm so I tried it in tclsh and it gave aterm bad option.  The window manager entry didn't produce anything.  Here is what I had after the case statement:
fluxter &>wm.log &

Do you think tcl highjack my shell?  I had installed the tcl dsl packages but could get them to do anything so I was trying the tutor.  How do I remove uci and tcl packages?

Thanks,
Mike

Posted by mikshaw on April 15 2006,23:12
fluxter &>wm.log & wouldn't work, since fluxter is not the window manager.  If you do fluxbox &>wm.log you should get a log with all stdout/stderr messages that are not already handled by other applications or redirected to /dev/null.

Tcl won't hijack your shell, as far as i can see.  Even if it did somehow manage that, it would not cause aterm to crash.  Have you successfully opened tclsh from the icon right-click? It's not the tkcon shell that you get from  the menu or by simply clicking on the icon, but the one you get from a right-click on the icon and selecting "Standard Tcl Console".  If this works, then the problem is definitely not aterm itself.

The uci packages are mounted rather than installed....you can use the uci tool to umount them.  The Tcl libraries are installed into /opt/tcl_libs.  You can delete that whole directory without any negative effects.  This may be a biased opinion, but i really doubt installing Tcl or related packages has anything to do with your trouble.  It is most likely some change you made that perhaps you thought was unrelated.  It would help a lot if you could remember more specifically what you did and what changes you may have made...any changes to config files? Did you run any commands from tclsh, or from a bash shell before installing Tcl?

Did you try the other suggestions?
You say you tried to start aterm from tclsh, and you got "bad option"?  That sounds like you tried to start it with a commandline parameter that aterm can't understand, which would cause aterm to automatically shut down.  This is the most logical cause that i can think of at the moment.  But the big question is "How did this bad parameter get thrown into the mix?".  Can you please try to start aterm from tclsh again, and this time take note of any specifics besides just "bad option"?  It should have been followed by the actual bad parameter that was passed to aterm, and then we'd have a better idea of what to look for.  My initial guess is that there is something wrong with .Xdefaults, or you made an alias to aterm with a bad parameter in it.

Posted by u2musicmike on April 17 2006,00:17
Thanks for the help I really don't know what I'm doing.  I got &>wm.log in the right place and this was the only message: sh: line 1: /tmp/pipe.lua: Permission denied  What do these permissions need to be?

Tcl won't hijack your shell, as far as i can see.  

Tcltutor wouldn't start so I executed wish from my /bin directory which didn't appear to do anything.  I finally got around doing a man wish and it is a TCL shell where if you run it with no perimeters it waits for a TCL command.  When I hit crtl-alt-F1 it has no prompt and shows anything that I type and I hit crtl-c and it displays xinit: unexpected signal 2 then asks for login.  Do you think it killed Bash because wish is still waiting?  How do I turn off wish if it is on?

I think aterm works but won't open.  tclsh said "&>aterm.log" was a bad option when I run aterm &>aterm.log  so I tried it with the options in the icon aterm -T "Bash" -e /bin/bash &>aterm.log and got an empty log file.  It didn't make  icons for tclsh or wish I find them under the MyDSL menu tree when I right click.  I did get tcltudor.uci unmounted and at least I do get a proper shutdown now.

Mike

Posted by mikshaw on April 17 2006,02:31
Quote
sh: line 1: /tmp/pipe.lua: Permission denied  What do these permissions need to be?
This looks like an unrelated issue, but i don't know what that script does.

Quote
Tcltutor wouldn't start so I executed wish from my /bin directory which didn't appear to do anything.
When you tried Tcltutor, did you already have Tcl/tk installed?  TclTutor won't run without it.  
Executing "wish" from a shell won't work if you are using the Tcl/tk UCI.  You need to use the full path to wish, or add the wish bin directory to your PATH variable.

Quote
When I hit crtl-alt-F1 it has no prompt and shows anything that I type and I hit crtl-c and it displays xinit: unexpected signal 2 then asks for login.
When you press ctrl-alt-F1 you enter the shell from which X was run...it will display messages from your X session. Ctrl+c most likely killed your X session.  You *should* be able to use the command "startx" to get it back, but it looks like it's coming back to the original problem of being logged out when you close X.  I'm starting to wonder if you somehow set your shell to be xinit or something similar.  Did you change your default runlevel?  Using xdm or some other login manager?

Quote
tclsh said "&>aterm.log" was a bad option when I run aterm &>aterm.log
"&>" is a Bash redirect...it won't work in Tcl.

You still didn't say whether you tried the other suggestions...running aterm/rxvt/xterm from a "run" dialog....starting other console apps from the menu...?

Posted by u2musicmike on April 18 2006,00:21
Quote
When you tried Tcltutor, did you already have Tcl/tk installed?


Yes I installed tcltk8.3.dsl last month but didn't know how to use it.


Quote
Did you change your default runlevel?  Using xdm or some other login manager?


No I wouldn't know how to do this.  Could it have been when I mounted tcltutor.uci in emelfm it changed this?  I noticed that it made a tcltutor directory in opt eventhough I unmounted.

Quote
You still didn't say whether you tried the other suggestions...running aterm/rxvt/xterm from a "run" dialog....starting other console apps from the menu...?


I tried that from the run command menu and from emelfm command line and got an empty aterm log file.  I think that I will reinstall this weekend and never try to mount a uci file from a harddrive install.

Thanks,
Mike

Posted by u2musicmike on April 21 2006,15:00
mikshaw,

I really appreciate your help and hope that I didn't offend you.  It is frustrating when a PC has problems just when everything was running so well.  I was thinking that I needed to get something more secure than win95 and tried DSL.  I like DSL much better.  It's not bloatted and it runs really good on my old hardware.  What I was actually doing was trying to use this old PC to record wave files from a Reveal radio card and got sidetracked trying to learn TCL.  I was having visions of having a TCL frontend for a SQLite database.  The possiblities are just fun.  The uci mountables may not be the cause of my problems but I am a little gun shy now.  For HD installs is there a way to convert them to dsl or deb?

Thanks,
Mike

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.