Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: clyde987 on November 04, 2015, 11:58:16 AM
-
Hello everyone, :)
I can't restart Tiny Core Linux 6.4 after I deleted
chromium-browser.tcz and tried to reboot. :'(
My laptop is "hp compaq nx9040", 40GB hard drive, 220MB RAM.
I have Frugal, and /dev/sda1 for partition.
What should I put after "tc@box:~$ ", to restart it?
Or should I delete all data on the hard drive ( I use dban for this.)
and reinstall TCL6.4? ???
Thanks in advance. :D
I can't upload the image.
It says:
( '>' ) Core is distributed with ABSOLUTELY NO WARRANTY.
/) TC (| www.tinycorelinux.net
(/-_--_-|)
nohup: redirecting stderr to stdout
failed in waitforX
tc@box:~$ _
-
Don't delete a mounted tcz
You are probably hung now.
If "sudo reboot" does not work you will need to power cycle the computer.
-
Having a hang up because something went wrong does not mean you need to re-install Tiny Core, unless it wasn't installed properly in the first place.
If sudo reboot does not work then hold down Alt-SysRq and slowly and individually press r e i s u b keys.
-
You don't mention whether you're using Xvesa, Xfbdev or Xorg-7.7?
If you look at the file ~/.xsession, you can enter the first line at the console prompt to get error details, which might show what the problem is.
-
Thank you for your advice, gerald_clark. :)
I'm afraid that neither "sudo reboot" nor power cycling worked.
I have powered cycle another computer (Windows7) before, and
I thought it should work for this, too.
-
Thank you for your advice, nitram. :)
I did the following:
# echo 1 > /proc/sys/kernel/sysrq
Then, Alt-SysRq r e i s u b.
But I'm afraid I wasn't able to restart TCL.
-
Thank you for your advice, Juanito. :)
I think I use Xvesa. Because I have never done anything to these servers yet.
I did the following:
$ cat .xsession|grep Xvesa (This gave me some messages.)
$ cat .xsession|grep Xfbdev (Nothing happened.)
$ cat .xsession|grep Xorg-7.7 (Nothing happened.)
$ cat .xsession
(Xvesa -br -screen 1024x768x32 -shadow -2button -mouse
/dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm-errors &
export WM-PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f -print | while read F;
do. "$F"; done)
-
OK, so at the console prompt, try this:
$ Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I
..you should get an error message indicating what the problem is.
-
Juanito, thank you for your quick reply. :D
It says:
Xvesa: error while loading shared libraries: libXfont.so.1: cannot
open shared object file: No such file or directory
-
It looks like you deleted more than you thought?
What does this show: $ tce-status -i | grep X
It should show that Xvesa, Xprogs, Xlibs, libXfont and others are loaded.
-
:) Juanito, I have:
Xlibs Xprogs Xvesa libX11 libXau libXcomposite libXcursor
libXdamage libXdmcp libXext libXfixes libXft libXi libXinerama
libXandr libXrender libXxf86vm
And I'm missing: libXfont
I have deleted some applications (ace-of-penguins.tcz, firefox-ESR.tcz
, etc) using the following command line, and there were no problem
when rebooting. But it is not going well this time.
$ tce-audit builddb
$ tce-audit delete chromium-browser.tcz
Should I have used Apps (from GUI) to remove applications?
-
This should fix your problem:
$ tce-load -w libXfont
$ tce-load -i libXfont
The tce-audit delete and Apps gui delete should be the same - as I recall, the Apps gui calls tce-audit anyway...
-
A missing dep file could result in 'tce-audit delete' deleting libXfont if it thought the extension had no further dependers.
-
Hi Juanito, :)
I did the following as you mentioned:
$ tce-load -w libXfont
$ tce-load -i libXfont
Then:
$ sudo reboot
It didn't work yet, and I did the following to make sure
libXfont is downloaded.
$ tce-status -i | grep X
But libXfont isn't included in the list yet. Why??? :-\
$ tce-load -w libXfont
It says: libXfont is already downloaded.
This is strange, isn't it? I wonder why my computer doesn't
recognize libXfont. Maybe my libXfont is corrupted? :'(
-
Hi gerald_clark, :)
Thank you for the info. I read a few articles about Dependent file.
I like increasing my knowledge of computer stuff.
-
If you just do ...
tce-load -i libXfont
startx
... will it then start the desktop session?
If so, as gerald_clark said, you might be missing a .dep file.
Apps -> Maintenance -> Dependencies And Deletions --> Dependencies -> Update .dep files.
or
for i in `ls /etc/sysconfig/tcedir/optional/*.tcz` ; do [ -e "$i.dep" ] || tce-fetch.sh $i.dep ; done
-
Thank you very much, Misalf, :)
I was finally able to start the desktop session!!
I did "Apps -> Maintenance -> Dependencies And Deletions --> Dependencies -> Update .dep files." too,
and I saw nothing in the "Result" box, that means there are no missing dep files for now.
-
"for i; do; done" is interesting. :)
$ for i in "1 2 3" "4 5 6" "7 8 9 10"; do echo $i; done
Result:
1 2 3
4 5 6
7 8 9 10