Tiny Core Base > TCB Tips & Tricks
Preventing user to switch to CLI (consoul/shell) from GUI.
ipmeel:
Is it possible to prevent use to switch to CLI (consoul/shell) from GUI?
How to disable "CTL+ALT+Backspace" and "CTL+ALT+F1", that kills GUI?
How to disable or remove "Exit to Prompt" option in "TC Exit Options" (see attached image)?
ipmeel:
Customised 'exittc': removed 'Exit to Prompt' option (see attached image).
On ubuntu system, installed FLTK library and dependencies.
downloaded 'exittc.fl' file from https://github.com/tinycorelinux/fltk_projects/blob/master/exittc/exittc.fl.
Compiled ‘exittc.fl’ with following command, it created 2 files ('exittc.cxx', 'exittc.h')
--- Code: ---fluid -c exittc.fl
--- End code ---
Executed following command to create 'exittc' (an executable file)..
--- Code: ---fltk-config --compile exittc.cxx
--- End code ---
Replaced the existing 'exittc' file with new one (Location: "TinyCore.iso>cde>optional>Xprogs.tcz>usr>local>bin>exittc")
It is working file, now there is no option for 'Exit to Prompt'.
The only issue is that size of new file is about 500KiB, but the size of original was just about 8KiB!!! (any recommendations)
Juanito:
You could use the Makefile in git to ensure exittc is compiled with the tinycore cxxflags and dynamically linked.
..and compile it on tinycore
Edit: alternatively:
--- Code: ---$ g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -fpic -lfltk -o exittc exittc.cxx
--- End code ---
ipmeel:
Hi Juanito,
Thank you for the suggestions.
I don't have much experience with Linux and C++.
May I ask if you could make it from attached files.
Kind regards.
Juanito:
see attached.
You can achieve the same thing yourself with:
--- Code: ---$ tce-load -i compiletc fltk-1.3-dev sstrip
$ cd exittc
$ g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -fpic -lfltk -o exittc exittc.cxx
$ sstrip exittc
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version