Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: clyde987 on November 04, 2015, 11:58:16 AM

Title: I can't restart after deleting an application.
Post 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:~$ _



Title: Re: I can't restart after deleting an application.
Post by: gerald_clark on November 04, 2015, 01:02:46 PM
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.
Title: Re: I can't restart after deleting an application.
Post by: nitram on November 04, 2015, 03:59:52 PM
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.
Title: Re: I can't restart after deleting an application.
Post by: Juanito on November 04, 2015, 10:48:30 PM
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.
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 05, 2015, 05:08:06 AM
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.
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 05, 2015, 05:10:35 AM
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.
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 05, 2015, 05:36:31 AM
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)
Title: Re: I can't restart after deleting an application.
Post by: Juanito on November 05, 2015, 05:47:04 AM
OK, so at the console prompt, try this:
Code: [Select]
$ 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.
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 05, 2015, 06:50:21 AM
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
Title: Re: I can't restart after deleting an application.
Post by: Juanito on November 05, 2015, 06:56:18 AM
It looks like you deleted more than you thought?

What does this show:
Code: [Select]
$ tce-status -i | grep X
It should show that Xvesa, Xprogs, Xlibs, libXfont and others are loaded.
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 05, 2015, 09:01:11 AM
 :) 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?
Title: Re: I can't restart after deleting an application.
Post by: Juanito on November 05, 2015, 09:37:53 AM
This should fix your problem:
Code: [Select]
$ 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...
Title: Re: I can't restart after deleting an application.
Post by: gerald_clark on November 05, 2015, 11:44:22 AM
A missing dep file could result in 'tce-audit delete' deleting libXfont if it thought the extension had no further dependers.
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 06, 2015, 03:46:19 AM
Hi Juanito, :)

I did the following as you mentioned:
Code: [Select]
$ tce-load -w libXfont
$ tce-load -i libXfont

Then:
Code: [Select]
$ sudo reboot

It didn't work yet, and I did the following to make sure
libXfont is downloaded.

Code: [Select]
$ tce-status -i | grep XBut libXfont isn't included in the list yet. Why??? :-\

Code: [Select]
$ tce-load -w libXfontIt 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? :'(
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 06, 2015, 03:57:11 AM
Hi gerald_clark, :)

Thank you for the info.  I read a few articles about Dependent file.
I like increasing my knowledge of computer stuff.
Title: Re: I can't restart after deleting an application.
Post by: Misalf on November 06, 2015, 04:05:25 AM
If you just do ...
Code: [Select]
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

Code: [Select]
for i in `ls /etc/sysconfig/tcedir/optional/*.tcz` ; do [ -e "$i.dep" ] || tce-fetch.sh $i.dep ; done
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 07, 2015, 08:43:45 AM
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.
Title: Re: I can't restart after deleting an application.
Post by: clyde987 on November 07, 2015, 08:56:36 AM
"for i; do; done" is interesting. :)

Code: [Select]
$ 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