WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Shutdown computer without exittc  (Read 3187 times)

Offline rexi

  • Newbie
  • *
  • Posts: 38
Shutdown computer without exittc
« on: November 29, 2023, 02:41:49 PM »
Hello,
is there any way to shut down tinycore (QUI version) without using exittc?
Thanks

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Shutdown computer without exittc
« Reply #1 on: November 29, 2023, 02:46:23 PM »
sudo poweroff
sudo halt
ctrl+alt+f1 + "exit"

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Shutdown computer without exittc
« Reply #2 on: November 29, 2023, 04:00:19 PM »
Hi rexi
You can issue the command:
Code: [Select]
exitcheck.shif you want to shut down.

Or, you can issue the command:
Code: [Select]
exitcheck.sh rebootif you want to reboot.

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #3 on: November 30, 2023, 10:23:57 AM »
I used exitcheck.sh and shut down the computer. Thank you
And one more question, can this be made into a TCZ extension (or at least if this command/file exists somewhere as a .sh file)?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Shutdown computer without exittc
« Reply #4 on: November 30, 2023, 10:55:15 AM »
Hi rexi
... (or at least if this command/file exists somewhere as a .sh file)?
It is included as part of the base system:
Code: [Select]
tc@E310:~$ which exitcheck.sh
/usr/bin/exitcheck.sh
tc@E310:~$

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #5 on: November 30, 2023, 11:40:14 AM »
THX

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #6 on: December 22, 2023, 08:42:32 AM »
I did a bit of development and ran into a problem. Does anyone know how to block the functionality of the exit button? (see picture)


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Shutdown computer without exittc
« Reply #7 on: December 22, 2023, 09:16:07 AM »
Hi rexi
Are you just trying to remove that menu entry?
Are you just trying to remove both menu entries?
Are you also looking to remove the  Exit  icon?

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #8 on: December 22, 2023, 09:29:28 AM »
I'm trying to make the exit button not work. But if it is completely removed or the menu is removed, it will not be a problem at all.
(I'm trying to block the terminal  and the command line completely, for my project)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Shutdown computer without exittc
« Reply #9 on: December 22, 2023, 09:45:16 AM »
Hi rexi
This should remove the icon and one of the  Exit  entries
from the menu:
Code: [Select]
sudo rm /usr/local/share/applications/tinycore-exittc.desktop
setupdesktop > /dev/null 2>&1

This will remove the  exittc  GUI program:
Code: [Select]
sudo rm /usr/local/bin/exittc
I'm not sure where the  Exit  you outlined in red comes from. It may be
hardcoded somewhere, but it will not function.


Edit:  Fixed capitalization on sudo commands (Paul-123)
« Last Edit: December 22, 2023, 10:03:00 AM by Paul_123 »

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #10 on: December 22, 2023, 10:13:28 AM »
We have already removed the exit application (your method works, but I also used the method where I deleted the application from the boot disk). If I do this and press the red marked button (see image), the tinycore GUI shuts down and tinycore starts in command line mode. And I'm trying to prevent this situation from happening.

But I guess I got the idea. The menu that opens when you click on the screen is part of the FLWM application, if I modified the application so that it did not contain the menu, the problem would be solved.

And you might be wondering why I am trying to remove command line and terminal from linux. The explanation is simple, I am making a tinycore distribution that is supposed to be an alternative to Chrome OS. You can visit my website and download the OS.
http://gogleos.xf.cz/
The website doesn't look very good (I made it quickly in MS word).

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Shutdown computer without exittc
« Reply #11 on: December 22, 2023, 10:34:05 AM »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Shutdown computer without exittc
« Reply #12 on: December 22, 2023, 11:05:45 AM »
You can edit flwm code or use a different WM. I think some other WMs are meant for kiosk use.
The only barriers that can stop you are the ones you create yourself.

Offline rexi

  • Newbie
  • *
  • Posts: 38
Re: Shutdown computer without exittc
« Reply #13 on: December 22, 2023, 01:50:31 PM »
I tried deleting files in flwm for a while, but nothing works after trying all logical combinations. In the meantime, I thought about your answer (deleting a piece of source code) and then realized that it would be simpler to modify the exittc application itself. But I realized that I don't know how to compile the application after editing, could someone send me instructions (link to the page) on how to do it?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790