WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: I can't restart after deleting an application.  (Read 3306 times)

Offline clyde987

  • Newbie
  • *
  • Posts: 18
I can't restart after deleting an application.
« on: November 04, 2015, 08: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:~$ _




Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: I can't restart after deleting an application.
« Reply #1 on: November 04, 2015, 10:02:46 AM »
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.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: I can't restart after deleting an application.
« Reply #2 on: November 04, 2015, 12: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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: I can't restart after deleting an application.
« Reply #3 on: November 04, 2015, 07: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.

Offline clyde987

  • Newbie
  • *
  • Posts: 18
Re: I can't restart after deleting an application.
« Reply #4 on: November 05, 2015, 02: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.

Offline clyde987

  • Newbie
  • *
  • Posts: 18
Re: I can't restart after deleting an application.
« Reply #5 on: November 05, 2015, 02: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.

Offline clyde987

  • Newbie
  • *
  • Posts: 18
Re: I can't restart after deleting an application.
« Reply #6 on: November 05, 2015, 02: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)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: I can't restart after deleting an application.
« Reply #7 on: November 05, 2015, 02: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.

Offline clyde987

  • Newbie
  • *
  • Posts: 18
Re: I can't restart after deleting an application.
« Reply #8 on: November 05, 2015, 03: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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: I can't restart after deleting an application.
« Reply #9 on: November 05, 2015, 03: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.

Offline clyde987

  • Newbie
  • *
  • Posts: 18
Re: I can't restart after deleting an application.
« Reply #10 on: November 05, 2015, 06: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?
« Last Edit: November 05, 2015, 06:04:17 AM by clyde987 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: I can't restart after deleting an application.
« Reply #11 on: November 05, 2015, 06: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...

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: I can't restart after deleting an application.
« Reply #12 on: November 05, 2015, 08:44:22 AM »
A missing dep file could result in 'tce-audit delete' deleting libXfont if it thought the extension had no further dependers.

Offline clyde987

  • Newbie
  • *
  • Posts: 18
Re: I can't restart after deleting an application.
« Reply #13 on: November 06, 2015, 12: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? :'(

Offline clyde987

  • Newbie
  • *
  • Posts: 18
Re: I can't restart after deleting an application.
« Reply #14 on: November 06, 2015, 12: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.