Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: TinyCoreLinux on July 29, 2020, 07:10:15 AM

Title: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 07:10:15 AM
Hello, my friends! I have some simple questions for you here.These are easy questions for you, But it is very difficult for a noob like me who is full of curiosity, and I think these questions are meaningful. I also hope to get your help here, and of course I will share these questions with my friends and others. Thank you all !
Note: In order to save the resources of the server and make it easy to browse, All questions will be posted in the form of comments. Again, I hope you can understand.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 07:13:45 AM
Q1: How do I convert *.deb or *.rpm to *.tcz? And how to solve the dependency problem?
I try to install and run chrome.rpm on TCP64/TCL. There have been some problems when I switch to the first to "/opt/Google/chrome/" directory and enter ". / chrome " running chrome, but tell me linss3.so and libcups are doesn't exist respectively. then I install and load the nss.tcz and libcups.tcz and input again ". /chrome" tried to run again but this time tell "chrome" doesn't exist, why the :chrome" file already exists, but tell me it doesn't exist?why?why?why?
I firmly believe that this is definitely not an environment variable issue, much less a permission issue or directory error, and that "chrome" is an executable, if it is not, it will not at least tell me that the library file is missing and report an error!

I know there's Chromium and Firefox in the repo and I've already used them, But I still want to know the solution to my question.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 29, 2020, 07:45:29 AM
Is it looking for bash or perl or python?
Title: Re: Questions to FAQ about TCL
Post by: andyj on July 29, 2020, 08:32:48 AM
Have you checked this thread? http://forum.tinycorelinux.net/index.php/topic,23768.0.html (http://forum.tinycorelinux.net/index.php/topic,23768.0.html)
Title: Re: Questions to FAQ about TCL
Post by: GNUser on July 29, 2020, 08:33:21 AM
As juanito pointed out, some applications use a launcher script (e.g., a bash, perl, or python script). Perhaps chrome is like that. If the interpreter for the application's launcher script is not present on your system, you'll get a confusing error like the one you're getting (i.e., an error that says "foo does not exist" when foo clearly exists).

Another cause for this kind of error is a binary (ELF file) with wrong path to the system's linker. TCL64 keeps the linker in  /lib  (specifically, /lib/ld-2.30.so and its symlink /lib/ld-linux-x86-64.so.2) while in non-TCL 64-bit distros the linker is usually in /lib64.

These two commands should solve your problem:

Code: [Select]
$ tce-load -wi bash
$ sudo ln -s /lib /lib64

If still no luck, install some more interpreters:
Code: [Select]
$ tce-load -wi perl5 python3.6
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 08:58:26 AM
@juanito @andyj  @GNUser
It seems that you do not understand me, it is true that my English is too poor, well, it is my fault. You can directly follow my steps below and maybe you can understand me.

Code: [Select]
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
rpm -i  google-chrome-stable_current_x86_64.rpm
cd /opt/google/chrome
./chrome // run chrome

And I'm not referring specifically to Chrome, I'm just using Chrome as a metaphor to illustrate my problem.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 29, 2020, 09:22:10 AM
load dbus and start the dbus daemon and then:
Code: [Select]
$ sudo ln -s /usr/local/etc/fonts /etc
$ sudo ln -s /var/lib/dbus/machine-id /etc
$ cd /opt/google/chrome
$ dbus-run-session ./chrome // run chrome
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 09:24:09 AM
The second time I used the Chrome.deb file to illustrate my problem, you can just watch me do it, TCL/CP64 doesn't offer a DPKG package manager, so I had to install it manually.
Code: [Select]
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.deb
ar vx chrome-stable_current_x86_64.deb
tar -xzvf data.tar.gz
find / -name control // The control file for the *.deb
                                   //  package cannot be found in the
                                  //  unzipped file.
cd .../google/chromw
./chrome // run chrome
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 29, 2020, 09:33:01 AM
Chrome ran using the commands I gave above.

The main point here is that tinycore does not use deb/rpm packages - you might be able to get them to work, but it will rely on some troubleshooting on your part.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 09:50:43 AM
If I want to implement what I'm talking about (that is, transformations between packages or compatibility issues between different package managers), what should I do about the dependency aspect? Besides, you only said that chrome is the case, what if there is another *.deb or *.rmp to tcz.dep conversion? What is the essential difference between packages? It is very important for me to solve this problem, because it affects not only the individual but also the development of a new product or software. I hope to get some help or advice from you, thank you again.
Title: Re: Questions to FAQ about TCL
Post by: andyj on July 29, 2020, 10:25:30 AM
Code: [Select]
$ dbus-run-session $(which google-chrome)
So this is the dbus trick to get chrome to run! I still get lots of errors but it does appear to work.

@NOOB, the essential difference between packages is the metadata, which may include dependencies, a description, version info, and such. The rest of the package will be a tar or cpio archive of the application files, compiled for the target distribution using the target's libraries. This is where you will find the incompatibilities, as rarely are two distributions sync'ed up on library versions. It is not a goal of TC or any other distribution that I know of to be in sync with all the rest. If a foreign package works, then you are lucky. If not, complaining here won't help any more than going to Ubuntu, Fedora, Slackware, or anyone else's forum and complaining to them that some foreign package doesn't work.
Title: Re: Questions to FAQ about TCL
Post by: Rich on July 29, 2020, 10:57:02 AM
Hi NOOB
You will need to learn about the format of a  .tcz  extension by unpacking it an examining it:
Code: [Select]
tce-load -w -i squashfs-tools submitqc
mkdir TestArea
cd TestArea
wget http://tinycorelinux.net/11.x/x86_64/tcz/geany.tcz
unsquashfs -d Geany

Now take a look through the  Geany  directory.
You'll see everything (bin, lib, share) is installed under  usr/local.  That's where packages are compiled to install for Tinycore.
usr/local  is also where a program may expect to find things.

If the deb or rpm you are trying to convert expects to be in usr, you may have to place it under  usr  and add links to  usr/local.

Look at:
Code: [Select]
Geany/usr/local/tce.installed/geanyThat contains commands to run after the extension is installed. Notice the file name is identical to the extension name. If it's
not identical, it will not get run.

If you want an icon you will need a  .desktop  file:
Code: [Select]
Geany/usr/local/share/applications/geany.desktopThis one is for  geany  but it shows you the format. Not all extensions provide all of the fields in that file. Once again, the file name is
identical to the extension name.

To create a new  .tcz  file:
Code: [Select]
mksquashfs Geany/ SomeFileName.tcz -noappend
You can check your extension for problems by running this command in the directory containing any extensions you wish to check:
Code: [Select]
submitqc --libs 2>&1 > submitqc.txtThen check the results in  submitqc.txt
Title: Re: Questions to FAQ about TCL
Post by: GNUser on July 29, 2020, 11:19:02 AM
NOOB, getting the same binary to work across different distros can be anywhere from trivial to highly complex (that's why such things as AppImage, Flatpak, Snap, and Nix package manager exist). For bigger applications such as web browsers, the complexity is such that you'd be better off using a cross-distro format such as AppImage than trying to "convert" .deb to .tcz.

By the way, even if two distros are compatible at the level of libraries and glibc, such a simple thing as package names can totally wreck the kind of conversion you're talking about. For example, if a .deb says that it needs "python3", that's not going to translate well because on TCL the package is actually called "python3.6" while on other distros it's simply called "python". Same thing with "openssl" (on TCL64 the package is called "openssl-1.1.1"), among countless other examples.

The bottomline is that each distro is best used on its own terms. TCL was made to work with .tcz extensions. Even supposedly cross-distro formats as AppImage are not always trouble-free :-\ Once you're talking about a frankly alien format (such as .deb or .rpm on TCL), then you'd better know what you're doing and have lots of free time.

P.S. To get the most of TCL (including understanding its own ingenious and minimalistic approach to packaging), read this book: http://www.tinycorelinux.net/corebook.pdf
Title: Re: Questions to FAQ about TCL
Post by: PDP-8 on July 29, 2020, 03:02:45 PM
I'm running a big risk making this statement knowing it could be my last depending on how it is viewed, but I have to be brutally frank in what I see:

1) The recent rash of "noobs" who immediately want to push the adoption of other package formats is merely a political one, not a technical issue!

2) What some desire is to "free" TinyCore from the TCZ format.  Not because of anything technical, but because of the submission/approval process of those in charge of the project.

3) This was revealed earlier by another noob, who went on an anti-tc rant, clearly stating that he despised the control group of tcz's and pines for the days of DSL desktops. Hey, at least he was honest and stated his purpose right off the bat!

4) Rather than fork TC to support a different packaging format / management personnel, the discussions are a way to either make US do the work for a possible fork for them, or somehow try to convince the community that being able to run ANY package without any oversight by a technical organization is good for our soul.

The red-flags about noobs with this agenda:

Proclaiming I'm just starting out with Linux, so be gentle.  Yet can quickly recite all the package formats with proper spellings, or * shortcuts.

Unwillingness to use an installer, but immediately to to avoid tcz's, and just download "parts".  When those manually downloaded parts - which also have dependencies dont work - we are called upon ways to fix it without resorting to tcz packages.

Real noobs usually don't have a problem learning TC first using tcz's.  Those that do, and insist on doing it the hard way with endless threads that go nowhere, may not have TC's best interest at heart.

Sorry - had to get that off my chest.  All it is with this agenda is about not liking tcz's and specifically because there is project management with the ultimate say of what goes in, and what does not.

And my apologies to real noobs to TC.
Title: Re: Questions to FAQ about TCL
Post by: PDP-8 on July 29, 2020, 03:34:16 PM
This has not gone unnoticed either ..

Sadly, John Murga of Murga-Linux has passed away.  R.I.P. John.

http://blog.puppylinux.com/vale-john-de-murga

With the support forum down, there may be void for who knows how long.  Fortunately, Puppy-Linux might be better able to pick up that slack, and might be a better substitute for the "all package format" support to gain some traction.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 07:27:18 PM
@PDF-8
Hello guys! to be honest you don't have to apologize to anyone.because this is just a discussion of technical topics and interests.

In the course of this discussion, it is inevitable for us to reach the same point of view, which I think is normal; otherwise, I think it is abnormal.

If we reach the same point of view, what is the use of discussing?

You may misunderstand what I said, of course I believe it is my fault. It may be due to lack of technical knowledge or poor language skills,I hope you can forgive me.

However, I want to make it clear that I am not trying to resist TCL or persuade others. If so, I would not use TCL. On the contrary, I like TCL very much, and I am very grateful for all the efforts of the TCL team to make TCL such a convenient system.Thank you for your efforts!!!

I don't know how you understand the question. How to convert *. Deb /*. RPM to *. TCZ ".

If the problem is still the same, but they are in a different position, I do not know how you would understand my problem.

It seems that I still have to explain my intention in my question. If you are willing, I hope you can still participate in my discussion in the future. Thank you for your participation!!! :)

Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 07:46:31 PM
Q2: How is the software in the repo compiled? (This question is actually my original intention of Q1. I am afraid that some people may misunderstand me, so I repeat it.)

I have repeatedly read the section on "creating TCZ extensions" in TCL wiki, but I do not understand it.

Is there any friend who can provide me with a simple example to explain the specific steps? For example, I want to compile chromium myself now? What are the steps?
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on July 29, 2020, 08:01:55 PM
*.tcz files are just like zip files in another format and another compression algorithm with only read permission.
Rich already said it. But I am just elaborating it.
As many packages use the famous autotools, I am using them in examples. There are also other tools like cmake, jam(Just Another Make), ...
Simple abbrievated steps :
Like the "./configure, make" steps. Instructions will be in the source inside files like BUILD.md, INSTALL.md.
Code: [Select]
touch mymarker
Code: [Select]
sudo make install
Code: [Select]
sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
editor files [remove unneeded files like ".cache", ".mozilla", etc.]
Code: [Select]
sudo tar -T files --numeric-owner -zcvf extension.tce
Code: [Select]
mkdir /tmp/pkg
cp extension.tce /tmp/pkg
cd /tmp/pkg
sudo tar xf extension.tce
rm extension.tce
cd ..
Code: [Select]
sudo mksquashfs pkg/ extension.tcz
After this, read the Rich's post again. Then you will get a basic idea of the tcz.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 09:07:13 PM
@Sashank999
Thank you very much!

1) Where do I get the source other than git hub? Can you recommend some websites?

2)Where should other autoTools be downloaded?

3)We build the software ourselves do we need to solve the dependency problem? If so, how?
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on July 29, 2020, 09:24:05 PM
1) For some websites, sources are inside the Downloads Section.
For example, to get the source of a python package we usually go to PyPI (here, we are getting source of psutil), https://pypi.org/project/psutil/#files Go here and see the files mentioned as source.
Sourceforge - https://www.sourceforge.net/ and Launchpad - https://www.launchpad.net/ are some others I know.

2) Autotools is the common name of a collection of packages. These are autoconf, automake, libtool, gnulib. On TinyCore, you can install these all by getting the compiletc extension.

3) We ourselves should solve the problem. During compilation, if we don't have the required libraries or header files, make will warn us for required files (in red) and then stop compilation. Then, open Apps browser, change "Search" to "Provides" and then search for the file missing. Then open the tcz listed and see the files section of the tcz if the file is present. Requirements are usually listed inside the Install.md or Readme.md or Build.md or in the website. You would also require *-dev.tcz of the requirements during compilation (not to run it).
Title: Re: Questions to FAQ about TCL
Post by: aus9 on July 29, 2020, 10:25:27 PM
Quote
For example, I want to compile chromium myself now? What are the steps?

There is an old compile script here. You may need to mod it as the build dependences may have changed
and the running dependencies may have changed. I am sure there may be other changes too.
http://tinycorelinux.net/9.x/x86_64/tcz/src/chromium-browser/compile_chromium-browser

Have a gander at the times please
[0:20:11] + [7h 41m 50s]

I look forward to someone who has the time to do that.

You might be better off just trying to compile other packages first that require git and ninja?
I know one (giggles) but I am by no means an expert on anything.
http://tinycorelinux.net/11.x/x86_64/tcz/src/slurp/build-slurp.sh

If interested in trying out...use Apps and download only each of these packages
compiletc submitqc meson wayland-dev cairo-dev scdoc-dev git libxkbcommon-dev

they will pull down other dependencies eg meson will pull ninja

Good luck

Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 11:31:01 PM
@aus9
[0:20:11] + [7h 41m 50s]????? :o :o :o
Thank you very much! Are you kidding me? May I venture to ask on which machine this data was obtained? So I can prepare myself psychologically in advance. :D
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 29, 2020, 11:35:07 PM
It was an Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 2 Core(s), 4 Logical Processor(s)

If you wish to try compiling it might be better to start with something simple like "sed" for example.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 29, 2020, 11:37:32 PM
@Juanito @Rich @Administrator
Can you update Chromium-browser.tcz? Why is there no such thing as" Chromium_getLatest.tcz" Extensions for updating Chromium?How do I update Chromium?
Title: Re: Questions to FAQ about TCL
Post by: curaga on July 29, 2020, 11:39:40 PM
Extensions are user contributed. As you see in chromium-browser.tcz.info, it was sent by Arslan S. If there is no extension for something, it is because no user (like you) cared enough to make one.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 30, 2020, 12:05:32 AM
@Juanito
Thank you for advice!

@Juanito @Rich @curaga
 I sent you a private message. Can you have a look at it?! :P

@curaga
Oh, I see!
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 30, 2020, 12:15:57 AM
Q3: Why the Chinese input method(fcitx-sunpinyin.tcz) can not be activated without any reaction after installation? How do I properly install and configure the Chinese input method so that I can enter Chinese.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 30, 2020, 03:06:04 AM
When I uninstalled Wine, the extensions related to my GUI were uninstalled, and I don't know why this happened.

If an extension has dependencies, it should not be deleted, but this is not the case.Again, I hope the administrator can fix this problem.

 Now as soon as I use "tce-load" to download xorg-7.7, there will be an error and it cannot be downloaded. Do I have to reinstall the system?Is there any other way?
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 30, 2020, 03:18:03 AM
How are you uninstalling wine?

As long as wine is not in onboot.lst and you reboot, it will not be loaded, but will remain in your tce/optional folder in case you need to use it in future.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 30, 2020, 03:20:48 AM
Hello @Juanito
I am used "Apps Browsers" →"Makeup Deletion"
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 30, 2020, 03:37:54 AM
At the end of marking wine for deletion the apps gui states which extensions will be removed.

I just made a test, marking wine for deletion and rebooting - only wine was deleted.

What exact error do you get with the following:
Code: [Select]
$ tce-load -w Xorg-7.7-3d
Title: Re: Questions to FAQ about TCL
Post by: GNUser on July 30, 2020, 06:51:07 AM
2) What some desire is to "free" TinyCore from the TCZ format.  Not because of anything technical, but because of the submission/approval process of those in charge of the project.
Hi, PDP-8. Interesting observation. I, for one, have never had any problems with the submission/approval process. The rare time a tcz contribution of mine was rejected was when I had done shoddy work and I knew it. If some folks want to "free" TCL from its caretakers' sensible QA, it must be because their work is not very good.

Being built on FOSS, TCL is amenable to being forked. Anyone can fork it into a distro without QA or with more lax QA if they want. I wish them luck--they'll need it :D
Title: Re: Questions to FAQ about TCL
Post by: PDP-8 on July 30, 2020, 11:31:57 PM
We're splitting the thread into two directions, so I'll say this and drop out of thread.

Of course I agree.  One could fork.  But it's quite another to support that fork by building and supporting that community, otherwise it's just a flash in the pan.

.. outta' the thread ...
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 02:41:58 AM
Hello @Juanito

$ tce-load -w Xorg-7.7-3d
Xorg-7.7.tcz.dep OK
...
xf86-input-libinput.tcz.dep OK
Downloading: mtdev.tcz
Connecting to mirrors.163.com (59.111.0.251:80)
wget: server returned error: HTTP/1.1 416 Requested Rang Not Statisfiable
md5sum: WARNING: 44of 44 computed checksums did NOT match
Error on mtdev.tcz
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 31, 2020, 03:06:09 AM
mtdev.tcz.md5.txt is OK on the server, so maybe you have a corrupted download - perhaps you could delete mtdev.tcz* and try again?
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 04:18:00 AM
I did this before, but it still didn't work. I guessed later that it might be due to missing mtdev.tcz.md5.txt, but it was too late. I did something impulsive: I had deleted all of md5.txt. The solution I've come up with now is to use WGET to download md5.txt from the repository for all the extensions, but I don't know exactly how to write the command because I'm really new. My friend, can you tell me exactly how to write this command? Or do you have any other way? If not, I won't bother you, I have to reinstall the system.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 31, 2020, 04:22:40 AM
For example:
Code: [Select]
$ wget http://tinycorelinux.net/11.x/x86_64/tcz/mtdev.tcz.md5.txt
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 04:27:11 AM
@Juanito
I know. But I'd be suffocated.
Because I'm going to repeat this command for a hundred variations.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 04:30:19 AM
@Juanito
Is there a way or command to simplify this duplication of work?
 I knew I could probably do it through shell programming, but I really didn't know anything about these things.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 31, 2020, 04:35:08 AM
Something like:
Code: [Select]
$ cd /etc/sysconfig/tcedir/optional
$ ls *.tcz > files
$ for file in `cat files`; do wget http://tinycorelinux.net/11.x/x86_64/tcz/"$file".md5.txt ; done
$ rm files
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 04:41:04 AM
@Juanito
Thanks
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 04:55:31 AM
Q5: How do I install Flash in Firefox or Chromium?
I followed the official Firefox approach, which doesn't seem to work because there isn't a ".mozilla/Firefox /plugins" directory, and it doesn't work if I put the libflashPlayer.so file in each lib directory listed in the PATH variable.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 31, 2020, 05:02:48 AM
What happens when you create /home/tc/.mozilla/firefox/plugins and put the file in there?
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 05:11:39 AM
@Juanito
I also created it by hand like you before, but it still doesn't work.  :(

A side note: Although H5 is now the mainstream, a large part of the website still uses Flash. I feel the same frustration as Adobe!!! >:(
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 31, 2020, 05:23:20 AM
Does this give an error:
Code: [Select]
$ ldd /home/tc/.mozilla/firefox/plugins/*.so
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on July 31, 2020, 07:20:10 AM
I am sorry to say this but I actually created the plugins folder and it worked.

Instructions here : https://support.mozilla.org/en-US/kb/install-flash-plugin-view-videos-animations-games .
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 03:58:47 PM
@Sashank999
I'll try again. :-[
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 10:33:49 PM
@Juanito
Code: [Select]
tc@box:~$ ldd /home/tc/.mozilla/firefox/plugins/*.so

Code: [Select]
        linux-vdso.so.1 (0x00007ffc0807e000)
        libGL.so.1 => /usr/local/lib/libGL.so.1 (0x00007f80d5129000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f80d5124000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f80d5105000)
        librt.so.1 => /lib/librt.so.1 (0x00007f80d50fc000)
        libX11.so.6 => /usr/local/lib/libX11.so.6 (0x00007f80d4fde000)
        libXt.so.6 => /usr/local/lib/libXt.so.6 (0x00007f80d4f84000)
        libnss3.so => not found
        libsmime3.so => not found
        libssl3.so => not found
        libnspr4.so => not found
        libgtk-x11-2.0.so.0 => not found
        libgdk-x11-2.0.so.0 => not found
        libgdk_pixbuf-2.0.so.0 => /usr/local/lib/libgdk_pixbuf-2.0.so.0 (0x00007f80d4f5e000)
        libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0 (0x00007f80d4f1a000)
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x00007f80d4edf000)
        libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x00007f80d4e95000)
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00007f80d4d98000)
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00007f80d4ae1000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f80d496b000)
        libm.so.6 => /lib/libm.so.6 (0x00007f80d4846000)
        libc.so.6 => /lib/libc.so.6 (0x00007f80d46c5000)
        libglapi.so.0 => /usr/local/lib/libglapi.so.0 (0x00007f80d468e000)
        libdrm.so.2 => /usr/local/lib/libdrm.so.2 (0x00007f80d467d000)
        libxcb-glx.so.0 => /usr/local/lib/libxcb-glx.so.0 (0x00007f80d4663000)
        libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x00007f80d463b000)
        libX11-xcb.so.1 => /usr/local/lib/libX11-xcb.so.1 (0x00007f80d4636000)
        libxcb-dri2.so.0 => /usr/local/lib/libxcb-dri2.so.0 (0x00007f80d4630000)
        libXext.so.6 => /usr/local/lib/libXext.so.6 (0x00007f80d461e000)
        libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0x00007f80d4418000)
        libXdamage.so.1 => /usr/local/lib/libXdamage.so.1 (0x00007f80d4413000)
        libXxf86vm.so.1 => /usr/local/lib/libXxf86vm.so.1 (0x00007f80d420d000)
        libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x00007f80d41eb000)
        libxcb-dri3.so.0 => /usr/local/lib/libxcb-dri3.so.0 (0x00007f80d41e5000)
        libxcb-present.so.0 => /usr/local/lib/libxcb-present.so.0 (0x00007f80d41e0000)
        libxcb-sync.so.1 => /usr/local/lib/libxcb-sync.so.1 (0x00007f80d41d7000)
        libxshmfence.so.1 => /usr/local/lib/libxshmfence.so.1 (0x00007f80d3fd5000)
        /lib/ld-linux-x86-64.so.2 (0x00007f80d648a000)
        libXau.so.6 => /usr/local/lib/libXau.so.6 (0x00007f80d3fce000)
        libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x00007f80d3fc6000)
        libSM.so.6 => /usr/local/lib/libSM.so.6 (0x00007f80d3fbc000)
        libICE.so.6 => /usr/local/lib/libICE.so.6 (0x00007f80d3fa2000)
        libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x00007f80d3f9d000)
        libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x00007f80d3e16000)
        libfribidi.so.0 => /usr/local/lib/libfribidi.so.0 (0x00007f80d3bfa000)
        libharfbuzz.so.0 => /usr/local/lib/libharfbuzz.so.0 (0x00007f80d3b74000)
        libbz2.so.1.0 => /usr/local/lib/libbz2.so.1.0 (0x00007f80d3b66000)
        libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x00007f80d3b2a000)
        libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0x00007f80d38ff000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f80d38ea000)
        libgraphite2.so.3 => /usr/local/lib/libgraphite2.so.3 (0x00007f80d36c7000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007f80d36bf000)
        libffi.so.6 => /usr/local/lib/libffi.so.6 (0x00007f80d34b8000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f80d34a4000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00007f80d348d000)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on July 31, 2020, 10:47:04 PM
@Sashank999
(https://s1.ax1x.com/2020/08/01/a3q2g1.png)
Code: [Select]
tc@box:~/.mozilla/firefox/plugins$ ls -al...
-rwxrwxrwx    1 root     staff     16649352 Aug  1 05:26 libflashplayer.so
...
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on July 31, 2020, 10:51:31 PM
Ownership is root:staff. But firefox is usually launched as tc user.
Change ownership with :
Code: [Select]
sudo chown tc:staff *
Title: Re: Questions to FAQ about TCL
Post by: Juanito on July 31, 2020, 10:57:05 PM

Code: [Select]
        libnss3.so => not found
        libsmime3.so => not found
        libssl3.so => not found
        libnspr4.so => not found
        libgtk-x11-2.0.so.0 => not found
        libgdk-x11-2.0.so.0 => not found

You need to load gtk2 and nss.
Title: Re: Questions to FAQ about TCL
Post by: Rich on July 31, 2020, 10:59:44 PM
Hi NOOB
I just went through this with Firefox 79. This is what it wanted:
Code: [Select]
/usr/lib/mozilla/plugins/libflashplayer.so
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 12:45:24 AM
(https://s1.ax1x.com/2020/08/01/a8K4qx.png)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 01:21:03 AM
@Juanito
The Flash plugin can now be detected by the Firefox browser, but the error in the image above will occur.
Code: [Select]
tc@box:/usr/lib/mozilla/plugins$ ldd *.so
        linux-vdso.so.1 (0x00007fff044e5000)
        libGL.so.1 => /usr/local/lib/libGL.so.1 (0x00007fcb669c9000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007fcb669c4000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fcb669a5000)
        librt.so.1 => /lib/librt.so.1 (0x00007fcb6699c000)
        libX11.so.6 => /usr/local/lib/libX11.so.6 (0x00007fcb6687e000)
        libXt.so.6 => /usr/local/lib/libXt.so.6 (0x00007fcb66824000)
        libnss3.so => /usr/local/lib/libnss3.so (0x00007fcb6652c000)
        libsmime3.so => /usr/local/lib/libsmime3.so (0x00007fcb66309000)
        libssl3.so => /usr/local/lib/libssl3.so (0x00007fcb660b2000)
        libnspr4.so => /usr/local/lib/libnspr4.so (0x00007fcb65e72000)
        libgtk-x11-2.0.so.0 => /usr/local/lib/libgtk-x11-2.0.so.0 (0x00007fcb65b49000)
        libgdk-x11-2.0.so.0 => /usr/local/lib/libgdk-x11-2.0.so.0 (0x00007fcb65abb000)
        libgdk_pixbuf-2.0.so.0 => /usr/local/lib/libgdk_pixbuf-2.0.so.0 (0x00007fcb65a97000)
        libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0 (0x00007fcb65a53000)
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x00007fcb65a18000)
        libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x00007fcb659ce000)
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00007fcb658d1000)
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00007fcb6561a000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fcb654a4000)
        libm.so.6 => /lib/libm.so.6 (0x00007fcb6537f000)
        libc.so.6 => /lib/libc.so.6 (0x00007fcb651fe000)
        libglapi.so.0 => /usr/local/lib/libglapi.so.0 (0x00007fcb651c7000)
        libdrm.so.2 => /usr/local/lib/libdrm.so.2 (0x00007fcb651b6000)
        libxcb-glx.so.0 => /usr/local/lib/libxcb-glx.so.0 (0x00007fcb6519c000)
        libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x00007fcb65174000)
        libX11-xcb.so.1 => /usr/local/lib/libX11-xcb.so.1 (0x00007fcb6516f000)
        libxcb-dri2.so.0 => /usr/local/lib/libxcb-dri2.so.0 (0x00007fcb65169000)
        libXext.so.6 => /usr/local/lib/libXext.so.6 (0x00007fcb65157000)
        libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0x00007fcb64f51000)
        libXdamage.so.1 => /usr/local/lib/libXdamage.so.1 (0x00007fcb64f4c000)
        libXxf86vm.so.1 => /usr/local/lib/libXxf86vm.so.1 (0x00007fcb64d46000)
        libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x00007fcb64d24000)
        libxcb-dri3.so.0 => /usr/local/lib/libxcb-dri3.so.0 (0x00007fcb64d1e000)
        libxcb-present.so.0 => /usr/local/lib/libxcb-present.so.0 (0x00007fcb64d19000)
        libxcb-sync.so.1 => /usr/local/lib/libxcb-sync.so.1 (0x00007fcb64d10000)
        libxshmfence.so.1 => /usr/local/lib/libxshmfence.so.1 (0x00007fcb64b0e000)
        /lib/ld-linux-x86-64.so.2 (0x00007fcb67d2a000)
        libXau.so.6 => /usr/local/lib/libXau.so.6 (0x00007fcb64b07000)
        libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x00007fcb64aff000)
        libSM.so.6 => /usr/local/lib/libSM.so.6 (0x00007fcb64af5000)
        libICE.so.6 => /usr/local/lib/libICE.so.6 (0x00007fcb64adb000)
        libnssutil3.so => /usr/local/lib/libnssutil3.so (0x00007fcb648af000)
        libplc4.so => /usr/local/lib/libplc4.so (0x00007fcb646ab000)
        libplds4.so => /usr/local/lib/libplds4.so (0x00007fcb644a6000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007fcb64491000)
        libXinerama.so.1 => /usr/local/lib/libXinerama.so.1 (0x00007fcb6448c000)
        libXrandr.so.2 => /usr/local/lib/libXrandr.so.2 (0x00007fcb64481000)
        libXcursor.so.1 => /usr/local/lib/libXcursor.so.1 (0x00007fcb64476000)
        libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x00007fcb64471000)
        libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0 (0x00007fcb6445f000)
        libXcomposite.so.1 => /usr/local/lib/libXcomposite.so.1 (0x00007fcb6445a000)
        libatk-1.0.so.0 => /usr/local/lib/libatk-1.0.so.0 (0x00007fcb64433000)
        libcairo.so.2 => /usr/local/lib/libcairo.so.2 (0x00007fcb6435d000)
        libpixman-1.so.0 => /usr/local/lib/libpixman-1.so.0 (0x00007fcb642cf000)
        libEGL.so.1 => /usr/local/lib/libEGL.so.1 (0x00007fcb6429d000)
        libGLESv2.so.2 => /usr/local/lib/libGLESv2.so.2 (0x00007fcb6428f000)
        libxcb-shm.so.0 => /usr/local/lib/libxcb-shm.so.0 (0x00007fcb6428a000)
        libxcb-render.so.0 => /usr/local/lib/libxcb-render.so.0 (0x00007fcb6427b000)
        libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0x00007fcb64072000)
        libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x00007fcb63eeb000)
        libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0 (0x00007fcb63ed6000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007fcb63ecc000)
        libbz2.so.1.0 => /usr/local/lib/libbz2.so.1.0 (0x00007fcb63ebe000)
        libharfbuzz.so.0 => /usr/local/lib/libharfbuzz.so.0 (0x00007fcb63e38000)
        libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x00007fcb63dfc000)
        libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0x00007fcb63bd1000)
        libgraphite2.so.3 => /usr/local/lib/libgraphite2.so.3 (0x00007fcb639b0000)
        libfribidi.so.0 => /usr/local/lib/libfribidi.so.0 (0x00007fcb63794000)
        libffi.so.6 => /usr/local/lib/libffi.so.6 (0x00007fcb6358d000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fcb63579000)
        libgbm.so.1 => /usr/local/lib/libgbm.so.1 (0x00007fcb63568000)
        libxcb-xfixes.so.0 => /usr/local/lib/libxcb-xfixes.so.0 (0x00007fcb6355f000)
        libwayland-client.so.0 => /usr/local/lib/libwayland-client.so.0 (0x00007fcb6354f000)
        libwayland-server.so.0 => /usr/local/lib/libwayland-server.so.0 (0x00007fcb6353b000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00007fcb63524000)
Title: Re: Questions to FAQ about TCL
Post by: aus9 on August 01, 2020, 03:02:04 AM
FF will completely disable this plugin in Dec 2020
https://www.fxsitecompat.dev/en-CA/docs/2019/flash-player-can-no-longer-always-be-activated/

Try the trouble shoot page(s) please
https://support.mozilla.org/en-US/kb/keep-flash-up-to-date-and-troubleshoot-problems
https://support.mozilla.org/en-US/kb/adobe-flash-plugin-has-crashed

and the last one.....I may regret saying it....as I have not used flash in years
it might be possible for you to change your useragent.

Changing useragent is useful for some sites to lie what your web browser is.
But I have no interest in installing flash and testing this last theory out.

I will shout it....firefox support ENDS DECEMBER 2020
find a better site now would be a smart solution IMHO

Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 03:36:58 AM
@aus9
I knew... But Thank you for your advice! :)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 03:52:33 AM
Q6: Why are files or folders recorded in the /opt/.filetool.lst configuration file still deleted?
But opt and home directories can always be kept.
pre-work:
Code: [Select]
mkdir /usr/share/fonts
cp *.ttf /usr/share/fonts
The following is the content of my file ".filetool.lst":
Code: [Select]
opt
home
...
/usr/share/fonts #or /usr/share/fonts/xxx.ttf
The result: Fonts folder was still deleted. :o
Is there any way to persist the entire disk's data? Once and for all.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 01, 2020, 04:17:10 AM
For large static files you should make your own local extension and then either load it "onboot" or when needed.

If you insist on storing large files in your backup, which will slow down shutdown and booting, you should either use the gui cpanel/Backup/Restore to add the files or manually add them to /opt/.filetool.lst and remove the leading slash, for example:

usr/local/share/fonts/xxx.ttf

and not

/usr/local/share/fonts/xxx.ttf
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 04:28:04 AM
@Juanito
Thank you for your advice and reminder. But first I'd like to know what you mean by "you should make your own local extension"?Does fireflysung.tcz do it that way?How do you do that?
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 01, 2020, 04:41:48 AM
Making your own extension using squashfs-tools is explained at the end here: https://www.linuxsecrets.com/tinycorelinux-wiki/wiki:creating_extensions.html

I would guess that, once loaded, fireflysung needs the following commands to work with firefox:
Code: [Select]
$ sudo fc-cache /usr/share/fonts
[and maybe]
$ sudo ln -s /usr/local/etc/fonts /etc
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 05:06:07 AM
@Juanito
oh.I had previously persisted opt and home directories by booter code to avoid generating mydata.tgz files.
But now if you want to persist other directories or files you must select "Backup" option before you shutdown. Is there any way to implement the persistence like "opt" and "home" without generating the mydata.tgz file without affecting the startup and shutdown speed.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 01, 2020, 05:12:58 AM
If you have setup a persistant /home and /opt you need to remove home and opt from /opt/.filetool.lst

As long as you only backup relatively small files like /usr/local/etc/someapp/some.config, mydata.tgz will remain relatively small and there will be a minimal effect on shutdown and reboot speed.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 05:21:44 AM
In other words, mydata.tgz files must be generated anyway to persist other files or directories, right?
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 01, 2020, 05:23:40 AM
Yes, but use it for small files or files that change - make a personal extension for large static files.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 05:32:01 AM
Well,You say this is only suitable for small files. File links are the smallest relative to any other files. Is there any way to solve this problem through file links? Then my mydata.tgz file will be very small.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 05:57:30 AM
@Juanito
Fortunately, I've just tried this and it works very well. 8)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 06:06:42 AM
@Rich
Help me mark other posts as problem solved, except for this one.Thank you!
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 01, 2020, 06:22:02 AM
Hi NOOB
... Is there any way to persist the entire disk's data? Once and for all.
Yes, switch to a Linux distro that was designed to work that way.
Trying to force Tinycore to work that way will eventually cause problems.
Running Tinycore that way is not supported here.
If you try to run it that way, you would need to resolve any problems on your own.

...  But first I'd like to know what you mean by "you should make your own local extension"?Does fireflysung.tcz do it that way?How do you do that?
I feel I answered that in reply #11:
http://forum.tinycorelinux.net/index.php/topic,24132.msg152359.html#msg152359
It shows how to unpack and repack an extension using  geany.tcz  as an example. Take some time to read it and study what is going on.

To make a local extension, create a work directory containing the the directory structure you want:
Code: [Select]
mkdir -p package/usr/share/fontsCopy files:
Code: [Select]
cp *.ttf package/usr/share/fontsThen package it:
Code: [Select]
mksquashfs package/ My-Favorite-Fonts.tcz -noappend
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 06:39:07 AM
@Juanito
Yes, I wanted to tell you that you told me already, but Thank you very much for telling me again.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 06:48:17 AM
@Juanito
No, It seems That I was too happy too early. I found that the file link could not be backed up at all.  :-[What should I do? How can I make file links back up as well?  :-\
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 01, 2020, 06:53:38 AM
Hi NOOB
... I found that the file link could not be backed up at all. ...
How did you create the link?
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 01, 2020, 07:12:42 AM
Hi NOOB
@Rich
Help me mark other posts as problem solved, except for this one.Thank you!
I marked the first and last posts in 4 of the topics you started as  [Solved].
We do not mark every post in a thread.
I do not know if you started any other topics. By deleting your previous account, you deleted the list of topics you started.
You can see which of your topics I marked here:
http://forum.tinycorelinux.net/index.php/board,62.0.html
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 07:18:40 AM
@Juanito
Code: [Select]
ln -s ~/fonts /usr/share/fonts
ln -s ~/locale /usr/lib/locale
then, I added two of its file links to the ".filetool.lst" file using the Cpanle.
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 01, 2020, 07:35:37 AM
Hi NOOB
Instead of trying to backup those links, add those 2 commands to  /opt/bootlocal.sh.
That will recreate those links every time boot.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 07:47:10 AM
Thanks.I did exactly as you said. :P
But here's the question, why is ~/xxx used in the *.sh file when it really means /root/xxx instead of /home/tc/xxx? :o
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 08:02:54 AM
@Rich
I didn't see any change in the status of my posts. :-[
in fact, All you need to do is change the "Message icon" of my post to "Standard".
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 01, 2020, 08:03:07 AM
Hi NOOB
Sorry, I forgot about that. The  bootlocal.sh  and  bootsync.sh  are being executed by the user  root  (i.e. superuser, admin, etc.)  so
you need to specify a full path for any commands:
Code: [Select]
ln -s /home/tc/fonts /usr/share/fonts
ln -s /home/tc/locale /usr/lib/locale
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 08:11:49 AM
Thanks! The path that the symbol "~" represents depends on the user type, right?
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 01, 2020, 08:23:08 AM
Hi NOOB
Thanks! The path that the symbol "~" represents depends on the user type, right?
Yes.

... in fact, All you need to do is change the "Message icon" of my post to "Standard".
Message icons changed.
We mark topics as being solved by adding  [Solved]  to the  Subject  line:
http://forum.tinycorelinux.net/index.php/topic,24110.0.html
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 08:41:00 AM
@Rich
Thank you, but you missed one: http://forum.tinycorelinux.net/index.php/topic,24084.0.html.
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 01, 2020, 08:54:50 AM
Hi NOOB
Fixed it.
By the way, I did not miss it because I did not look for it.
... By deleting your previous account, you deleted the list of topics you started. ...
The only way to figure out the threads you previously started is to look at the  Subject  line of all of your posts. I'm not checking 113 posts.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 09:00:05 AM
Q7: How do I make screen brightness persistent?
The screen brightness configuration data is lost every time I turn it off, so that I need to reset the screen brightness every time I turn it on. Which configuration file is the screen brightness controlled by? Or what am I supposed to do?
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 05:28:49 PM
Q8: How do you get TCL to support standby mode and screen saver (you can also set the lock screen for your password)?
Title: Re: Questions to FAQ about TCL
Post by: aus9 on August 01, 2020, 07:04:28 PM
Quote
screen saver (you can also set the lock screen for your password)?
are you on TC32 or TC64?

TC32 has xscreensaver-base. I do not run TC32 so ..

TC64 has xscreensaver that should work on most window managers. I am not sure if Gnome (a desktop environment) has its own App or can use xscreensaver.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 08:00:53 PM
@aus9
Thank you for your recommendation.
I have a question, why can I use it without installing any desktop environment? Does Xorg-7.7 integrate with the Xfce desktop? Is xfce the smallest desktop environment?
Title: Re: Questions to FAQ about TCL
Post by: aus9 on August 01, 2020, 08:33:50 PM
I "perceive" you have refused to accept an answer to Q7 already answered here.
http://forum.tinycorelinux.net/index.php/topic,24103.msg152159.html#msg152159

I "perceive" a refusal to answer my question on whether you were on TC32 or TC64
I have learnt from other forums, if you let members "get away" with not answering questions, it will come back to bite me. Although you may be different from other people, typically, they have a focus. They have a initial perception and anything outside of that reality is not accepted to them. That allows them, in their own mind to be selective which questions they will answer.

I accept that I make mistakes and may be guilty of false perceptions. But I try to answer questions asked of me.

My advice to you is....go distrowatch.com and look for linux distros that support your native language out-of-the-box.
Pretending Mandarin (Chinese) is your locale/language preference this link might assist
https://en.wikipedia.org/wiki/Category:Chinese-language_Linux_distributions

I will not post to you any further. I am a volunteer here but have my own time pressures.
Just in case you are feeling remorse, do not bother pm me as I have just added you to me ignore list
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 09:06:24 PM
Q9: Is fcitx not working properly? Run in the right-click menu Fcitx, FcitxConfiguration, FcitxSkinInstaller programs don't have any response.
I tested it on the latest Mint and Ubuntu and it worked, but it didn't work on TCL.
Code: [Select]
tce-load -wil fcitx-sunpinyin-locale.tcz
...
tc@box:~$ (INFO-7491 addon.c:151) Load Addon Config File:fcitx-sunpinyin.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-xkbdbus.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-xkb.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-xim.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-x11.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-vk.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-unicode.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-table.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-spell.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-remote-module.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-qw.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-quickphrase.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-punc.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-pinyin.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-pinyin-enhance.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-notificationitem.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-kimpanel-ui.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-keyboard.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-ipcportal.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-ipc.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-imselector.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-fullwidth-char.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-freedesktop-notify.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-dbus.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-clipboard.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-classic-ui.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-chttrans.conf
(INFO-7491 addon.c:151) Load Addon Config File:fcitx-autoeng.conf
(WARN-7491 dbusstuff.c:248) DBus Service Already Exists
(ERROR-7491 instance.c:443) Exiting.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 01, 2020, 09:27:51 PM
@aus9
First of all, Thank you very much for your advice and I'm really sorry to bother you. I think others can choose to answer your question or not.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 01, 2020, 10:53:56 PM
Q7: How do I make screen brightness persistent?

It depends on your hardware, but you could use a command analogous to this in bootlocal.sh:
Code: [Select]
$ echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 01, 2020, 10:58:00 PM
Q8: How do you get TCL to support standby mode...

You can use a command like this, but it is not certain that all of your hardware will wake up:
Code: [Select]
# echo -n mem > /sys/power/state
Title: Re: Questions to FAQ about TCL
Post by: PDP-8 on August 01, 2020, 10:59:48 PM
aus9 - hah, you're catching on.  Don't sweat it.

Remember that on the anonymous internet, anybody can claim to be anybody or anything they want.  I could be Linus Torvalds masquerading as a TinyCore hacker in between compiling kernels, and Rich could be Steve Ballmer giving us support from Antartica for all we know.

The only thing that matters is action.  And so far, the only action I have seen from NOOB is adamantly trying to turn TC into Mint or Ubuntu with lazer-like focus.

Usually a "community" involves a little bit of give and take, not JUST thank-you's, or requesting custom extensions to be built 12 or more times in a row.

So far I only see an attitude of taking, "Answer my questions!"  "Build my extensions!"

I value your contribution as a community member, but sadly at some point entire threads that may contain valuable information are just ignored completely.  I'm sure *I* am guilty of that, so maybe I recognize it sooner than most. :)

My biggest fear is that the devs and other contributors may just tire of it and walk away from TC.  Again, being the anonymous internet, one never knows if that's the intention here.


Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 01, 2020, 11:01:06 PM
Q9: Is fcitx not working properly? Run in the right-click menu Fcitx, FcitxConfiguration, FcitxSkinInstaller programs don't have any response.

You could pm the maintainer of the fcitx-sunpinyin extension and ask for help?
Title: Re: Questions to FAQ about TCL
Post by: PDP-8 on August 01, 2020, 11:57:43 PM
Again, being the anonymous internet, one never knows if that's the intention here.

Sorry to interject again - but to make it clear about the anonymous internet:

For all we know, NOOB could be some guy or gal down the street trying to stir-up anti-Asian sentiment by engaging in classic internet troll behaviour to get us frustrated.

We just don't know, other than actions.  Don't be paranoid, just be on guard in today's world.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 12:29:18 AM
@Juanito
Thank you, but I've supplemented your response for my friends and others to browse through.  8)
If there is any problem with the command I wrote, I hope you can correct me. Thank you! ;D
Code: [Select]
EXPORT monitor=acpi_video0 or intel_backlight
cat /sys/class/backlight/$monitor/max_brightness
$ echo 0~max_brightness | sudo tee /sys/class/backlight/$monitor/brightness
Your answer to Q8 is very useful.Everything is file and it seems to make sense.
What does the "-n mem" in the below command mean?!
Code: [Select]
echo -n mem > /sys/power/state
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 02, 2020, 01:09:36 AM
The choices are:

mem -> suspend to ram
disk -> suspend to disk
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 01:24:30 AM
@PDP-8
Thank you. I will not refute anyone's opinion of me. After all, right or wrong, good or bad is always a subjective matter, and it doesn't matter at all. I firmly believe that at any time the mentality, mind is the most important.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 01:30:14 AM
Ok, I see. :)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 04:34:56 AM
Q10: TCL does not display Chinese properly.
The following is my configuration information:
Code: [Select]
tc@box:/$ localedef --list-archive
en_US.utf8
zh_CN.gbk
zh_CN.utf8

Code: [Select]
tc@box:/$ echo $LANG
zh_CN.UTF-8

Code: [Select]
tc@box:/$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

Oddly enough, if I had a "/usr/lib/locale/location-archive" file on my computer, the firefox window title (used to display the currently active site title) would appear as messy code when the web title was In Chinese.
If I delete the locale-archive file, when the site title is in Chinese, the window title only appears as " Mozilla firefox".
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 06:03:09 AM
I don't like to explain anything to anyone, but I still need some clarification.

The first thing I need to say is that I am not what problems immediately in the BBS to ask for help. First, I will according to their own efforts to try to solve these problems, the second, if still can't solve I'll browse some domestic open source web site and try to find the answer. If still can't solve I may go and ask my friend, finally there is no way, I will come to this BBS Posting to you for help.

So I am very grateful to several friends who have been helping me and those who have helped me... I don't know anything about technology, and I may be what some people call a "lazer", but I must be the one who loves technology the most.

As some people have said, I can't contribute anything to the community and Just say thank you. The only thing I can do is to promote TCL to my friends in China, and this post may help them solve the problems I have encountered when they are also facing these problems.That's all.
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 02, 2020, 06:37:25 AM
Q10: TCL does not display Chinese properly

Have you used the getlocale extension to set up a Chinese locale and rebooted?
Is the bootcode "lang" set to the same Chinese locale?
Do you have fonts capable of displaying Chinese characters loaded?
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 07:19:33 AM
There are three things you said that I have repeated at least five times before.Here's how I did it.
Have you used the getlocale extension to set up a Chinese locale and rebooted?
Code: [Select]
tce-load -wil getlocale.tcz
tce-load -wil glibc_add_libs.tcz
sudo getlocale.sh
# select "zh_CN_UTF-8" -> OK
mkdir -p /usr/lib/locale
localedef -i zh_CN -f GBK zh_CN
localedef -i zh_CN -f UTF-8 zh_CN
# added usr/lib/locale/locale-archive to /opt/.filetool.lst

Is the bootcode "lang" set to the same Chinese locale?
Code: [Select]
#/boot/syslinux/syslinux.config
lang=zh_CN.UTF-8

Do you have fonts capable of displaying Chinese characters loaded?
Code: [Select]
cd /usr/share/fonts/
wget xxx/wqy-mirohei.ttf
# added usr/share/fonts/wqy-microhei.ttc to /opt/.filetool.lst
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 02, 2020, 07:35:54 AM
You wouldn't have to repeat things five times if you started a different thread for each separate problem.

Did you run the fontconfig fc-cache command on the fonts after restoring them?
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 07:49:16 AM
Did you run the fontconfig fc-cache command on the fonts after restoring them?
No...
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 02, 2020, 07:56:03 AM
I would guess that, once loaded, fireflysung needs the following commands to work with firefox:
Code: [Select]
$ sudo fc-cache /usr/share/fonts

 :P
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 08:12:18 AM
My firefox actually displays Chinese all the time...
But aterm, flwm(window manager),... cannot.
Please look at the title of the window.
(https://s1.ax1x.com/2020/08/02/atHBHP.png)
(https://s1.ax1x.com/2020/08/02/atHvHx.png)
(https://s1.ax1x.com/2020/08/02/atbAKA.png)
Title: Re: Questions to FAQ about TCL
Post by: andyj on August 02, 2020, 08:35:44 AM
Use rxvt instead of aterm.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 08:49:19 AM
@andyj
Although it can't solve the fundamental problem, thank you for your recommendation. :)
Title: Re: Questions to FAQ about TCL
Post by: xor on August 02, 2020, 09:00:38 AM
flwm :(
windowmaker + windowmaker-locale :)

http://tinycorelinux.net/11.x/x86_64/tcz/

Code: [Select]
tce-load -wi windowmaker windowmaker-locale
My firefox actually displays Chinese all the time...
But aterm, flwm(window manager),... cannot.
Please look at the title of the window.
Title: Re: Questions to FAQ about TCL
Post by: andyj on August 02, 2020, 01:18:13 PM
@andyj
Although it can't solve the fundamental problem, thank you for your recommendation. :)
Rxvt supports true type fonts and unicode while aterm does not so it can display Chinese text in a terminal window, which was my point.
Title: Re: Questions to FAQ about TCL
Post by: PDP-8 on August 02, 2020, 02:19:56 PM
NOOB - there is nothing personal here.

You are an anonymous internet persona, who wanted to have a development discussion.

So far, it's just been a one-way street with you refusing to answer OUR questions.
That is no longer a discussion.  It's disingenuous, no matter who you claim to be.


The end result is that you are just tying up developers time better spent on improving the project itself since you are clearly not interested in discussion, but merely demanding that they meet your your needs only.

Since it is not a discussion, you are merely a time-waster, and sadly, from which nothing can be learned.

Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 09:09:01 PM
@PDF-8
I'm just a rookie who doesn't understand technology, culture or education. I feel that what you said may be right, but I don't understand anything. Well, could you give me some advice? You tell me what to do? Are you implying that I should leave here? Or are you implying that I shouldn't use TCL or Linux?

Don't try to convince anyone, to change anyone, because no one can do, you can do is to change yourself.

If you do irrelevant answer in the future, I will not reply to you.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 09:17:29 PM
@andyj
 Oh, I see. :)
Title: Re: Questions to FAQ about TCL
Post by: PDP-8 on August 02, 2020, 09:34:56 PM
I apologize to you and our community members.

I have never suggested you actually do anything, so that is up to you.

I won't pursue the subject any further and wish you success in your TCL endeavors.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 09:44:15 PM
@PDP-8
Thanks.you don't have to apologize to anyone.
as you say, so that is up to different people.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 09:46:14 PM
@xor
Ok, I'll try.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 10:19:57 PM
Code: [Select]
tc@box:~/locale$ localedef --list-archive
en_US.utf8
zh_CN.gbk
zh_CN.utf8

Code: [Select]
tc@box:~/locale$ tce-load -i getlocale
libzstd.tcz: OK
squashfs-tools.tcz: OK
dialog.tcz: OK
glibc_apps.tcz: OK
glibc_i18n_locale.tcz: OK
getlocale.tcz: OK

Code: [Select]
tc@box:~$ sudo getlocale.sh
#Choose which locales to support: [zh_CN.UTF-8/UTF-8] [OK]
Press enter to start processing. [Enter]
Now processing... /
Locales installed. Creating extension... cp: can't stat '/usr/lib/locale/locale-archive': No such file or directory
-

Done. The extension is at /mnt/sda1/tce/optional/mylocale.tcz and in onboot.lst
mylocale.tcz is smaller than 10 kB (i.e., probably broken).
Reboot with lang=xyz (for example lang=) to start using this.


Press enter to quit.


finally, /usr/lib/locale/locale-archive was deleted.
Code: [Select]
tc@box:/$ localedef --list-archive #nothing
tc@box:/$ ls /usr/lib/locale #nothing
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 02, 2020, 11:36:53 PM
Hi !

If you have some free time or want to help community, you can help doing translations at here :
http://forum.tinycorelinux.net/index.php/topic,7169.html
https://translations.launchpad.net/tctools/trunk/+pots/tinycore
.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 02, 2020, 11:55:00 PM
@Sashank999
Well. :)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 03, 2020, 01:56:01 AM
The Q10 issue has been resolved. :D
mainly because aterm and flwm do not seem to support unicode encoding at all. :-[
Changing to a different desktop environment such as GNOME should solve this problem. :)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 03, 2020, 07:37:37 AM
[bug] getlocale.sh generates the mylocale.tcz file which is empty and does not contain any appropriate locale-archive file.
Title: Re: Questions to FAQ about TCL
Post by: andyj on August 03, 2020, 07:44:52 AM
Maybe you highlighted the locale you wanted without actually selecting it? Make sure you select the locales you want before you hit OK.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 03, 2020, 08:15:33 AM
@andyj
Of course not. If you look at the command I gave you earlier, you'll see that it's hard to generate the correct locale file, so you have to do it manually using the localedef command.
Code: [Select]
...
The extension is at /mnt/sda1/tce/optional/mylocale.tcz and in onboot.lst
mylocale.tcz is smaller than 10 kB (i.e., probably broken).
...
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 03, 2020, 07:33:54 PM
Q11: A confusing question: What's the difference between ~ /.xresources and ~ /.xdefaults? All I know is that they are just a profile. Are they profiles for all applications or specific programs? When should I use ~ /.xresources and when should I use ~ /.xdefaults? But I found that TCL only had ~ /.xdefaults.
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 03, 2020, 07:55:40 PM
With some googling, what I got is that :
Quote
Xresources is a user-level configuration dotfile, typically located at ~/.Xresources. It can be used to set X resources, which are configuration parameters for X client applications.

Among other things they can be used to:

configure terminal preferences (e.g. terminal colors)
set DPI, anti-aliasing, hinting and other X font settings
change the Xcursor theme
theme XScreenSaver
configure low-level X applications like: xorg-xclock, xpdf, rxvt-unicode

Note:
Most Display managers load the ~/.Xresources file on login.
The older ~/.Xdefaults file is read when an X11 program starts, but only if xrdb has not been used in the current session.
Got from here : https://wiki.archlinux.org/index.php/x_resources
Also see this for more clarity : https://bbs.archlinux.org/viewtopic.php?id=71742 .
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 03, 2020, 08:55:54 PM
@Sashank999
Oh! Does vi not support configuration files? I've been looking for a long time and all I can only find vim's configuration file.
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 03, 2020, 09:09:24 PM
No. The standard command-line vi doesn't have any startup or configuration files.
Here : https://unix.stackexchange.com/questions/180710/where-is-the-rc-file-for-vi-editor .

You better switch to vim or nano if you want configuration files. I recommend nano (Thanks to aus9).
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 03, 2020, 10:11:26 PM
@Sashank999
NOTE: My English is poor. If there is anything unclear or confusing, you can ask me.

I can only say thank you, my friend, that you still answer the kind of questions that others think are very retarded.

 I don't even know what's a good question to ask here. What problems should I solve myself? Maybe I know that 90% of the problems should be solved by myself, not here." Lazer" Ask the same questions to meet myself needs.

But then again, no man is born wise, so who is free from doubt?
Besides, for a farmer like me who has no culture, no education, no experience in Linux, and no technology, the seemingly simple question is actually very difficult for me.

You may not know much about our open source environment or the so-called open source community in China. In our country, it seems that it is not easy for you to get help through search engines. The more data you can get, it is not help, but advertising and irrelevant answer, which are mainly based on commercialization. (This may have been a very sad thing for a long time)

So I am forced to try to get some help on this.

My friend, I would like to know, when you meet these problems, how do you solve them? Can you recommend some relevant websites or communities to me?
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 03, 2020, 11:09:52 PM
@NOOB
Mostly try to solve problems yourself. I think that problems faced by me might be faced by others. Hence I search them in Google for a solution. Mostly Google shows me the solution. If google doesn't give me good results (happens sometimes), I will try in DuckDuckGo, Bing or Yahoo. If none give good results, I will try "howdoi". Howdoi is a python module that makes search easy and automatically identifies and presents good search results.

Most problems faced by you might already be solved. Just search for their solutions.

Even I was a noob when I started linux. I mainly thought Linux is only for great programmers and hackers. But after entering the world of linux, I found that linux also has many other uses.

It doesn't matter who you are or what your occupation is, you just need the interest, time and patience to learn Linux. No need of any magic skills or any special coaching.

Never ever ask questions in only one community. If you ask the same questions others asked, you will not receive any answers. The questions others asked might be solved. Just look for their solutions.

Some places I know for good solutions :
https://bbs.archlinux.org/
www.askubuntu.com
www.stackoverflow.com
https://unix.stackexchange.com
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 03, 2020, 11:41:29 PM
@Sashank999
Thank you for your valuable advice, which I think will be very useful to me. :)

 In China, most foreign websites (including the ones you listed) cannot be accessed due to national policy issues.(I think this may be the reason why the open source business in China has not been developing well, and the reason why the two countries have not been able to have deeper cultural exchanges. They have completely isolated themselves from the outside world.) :(

Therefore, VPN is required. There is no such client as v2rayN in TCL's repo. What should I do? Which VPN clients support the Vmess link?
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 04, 2020, 08:31:34 PM
Hello @Rich
Help me mark the following two posts as resolved.
http://forum.tinycorelinux.net/index.php/topic,24095.0.html (http://forum.tinycorelinux.net/index.php/topic,24095.0.html)
http://forum.tinycorelinux.net/index.php/topic,24098.0.html (http://forum.tinycorelinux.net/index.php/topic,24098.0.html)
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 05, 2020, 04:28:00 AM
TCL does not have a .bashrc profile. What should I do? Is this just the pursuit of uniqueness?
I feel like TCL is deliberately changing the name of the configuration file that some distributions adhere to in order to be unique. I wonder if there is any practical point in doing so?
I feel that trying too hard to be unique can cause problems for users because they don't know which configuration to use to configure the application.
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 05, 2020, 04:38:20 AM
There is a standard .bashrc file in /usr/local/etc . You can copy it to home directory.

Code: [Select]
cp /usr/local/etc/bashrc ~/.bashrc.
bashrc is in multiple locations and it will be placed there form the bash.tcz when you load the bash.tcz (by custom startup scripts).
Locations :
/etc/skel/.bashrc
/root/.bashrc
/usr/local/etc/bashrc
/home/tc/.bashrc .
Title: Re: Questions to FAQ about TCL
Post by: Juanito on August 05, 2020, 04:42:11 AM
There's also one in the bash extension.
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 05, 2020, 04:44:00 AM
Hi NOOB
Did you check  ~/.bashrc ?  I'm pretty sure it's part of the base installation.

Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 05, 2020, 05:13:53 AM
@Rich
I searched the whole thing a few times and couldn't find the.bashrc file, but now I know why. It turns out that even the TCL configuration file was loaded by extension.
@Juanito & Sashank999
The reason I'm looking for.bashrc is because I want to permanently change the configuration of environment variables and terminals, because in my mind debian, Redhat, Suse and so on all use.bashrc configuration files... But I couldn't find.bashrc. Although I can find the.bashrc file with your help now, I still can't make environment variables and terminal configuration permanent. As long as I close the terminal, environment variables, aliases, terminal configuration data, etc., are all gone. Every time I open a new terminal, I have to reset them again...
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 05, 2020, 05:27:29 AM
Whenever you open a new aterm window, it loads TCL Default shell - "ash".

Type in :
Code: [Select]
bashto get back to bash shell so that you get those environment variables back.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 05, 2020, 05:39:36 AM
Do you mean that the system uses .arshrc files or.bashrc depending on the shell being used?
Title: Re: Questions to FAQ about TCL
Post by: andyj on August 05, 2020, 07:53:57 AM
Every shell uses it's own rc file. This is the case for all Linux systems. However they should all use .profile and /etc/profile. You will be better off to use these instead. If you want to use bash instead of busybox ash you will need to modify /etc/passwd to set the default shell.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 05, 2020, 08:44:04 AM
@andyj
ok.I get it.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 06, 2020, 04:13:16 AM
I was curious how TCL managed to restore the system to its original state when it was turned off, and how it loaded the entire system into RAM when it was turned on. What is the technical term for these techniques? Is this done by storing all the system files in the Initrd file? Is there any reference or technical literature?
Title: Re: Questions to FAQ about TCL
Post by: Rich on August 06, 2020, 05:16:54 AM
Hi Trump
These diagrams should help:

Mount mode:
http://distro.ibiblio.org/tinycorelinux/architecture.html

Copy mode:
http://distro.ibiblio.org/tinycorelinux/arch_copymode.html
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 06, 2020, 05:21:37 AM
I confused about 30 min looking at that diagram figuring where to start (I saw it in the TCL page an eternity ago). Start from "Files in CD/HDD/USB".

 I don't know the technical literature terms used but what I know is that the TCL uses the same method of "Live Linux CDs". Live Linux CDs load their Linux OS into RAM and then do our work. In the same way, TCL does the same thing. It has all of its required files in the kernel and initrd. And on what I researched, it is called tmpfs.

Source :
https://www.quora.com/How-does-the-live-CD-of-Ubuntu-Linux-work
https://en.wikipedia.org/wiki/Tmpfs
http://tinycorelinux.net/corebook.pdf - Corebook, Page 3 .
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 06, 2020, 06:50:02 AM
@Sashank999 @Rich
I'm confused...
Title: Re: Questions to FAQ about TCL
Post by: Sashank999 on August 06, 2020, 06:57:49 AM
tmpfs means loading full OS files into RAM. And its full description and info is in Wikipedia link above.

The diagrams Rich said are flowcharts that contain whole info about the TCL loading on boot up into RAM. Start at "Files in CD/HDD/USB" in those diagrams to get info about files you need to run TCL.
Title: Re: Questions to FAQ about TCL
Post by: TinyCoreLinux on August 09, 2020, 06:59:24 PM
Q12: The following error messages appear every time you boot. How can you eliminate them? Or just turn it on and not show all the information?
Code: [Select]
Booting Core 11.1
Running Linux Kernel 5.4.3-tinycore64.
...
Loading extensions...udevd[182]: unknown key 'RUN{program}' in /etc/udev/rules.d/73-seat-late.rules:17
udevd[182]: unknown key 'RUN{program}' in /etc/udev/rules.d/73-seat-late.rules:17
udevd[182]: unknown key 'RUN{program}' in /etc/udev/rules.d/73-seat-late.rules:17
udevd[182]: unknown key 'RUN{program}' in /etc/udev/rules.d/73-seat-late.rules:17
...
hehe login: [drm:0xffffffffa024c888] *ERROR* CPU pipe A FIFO underrun
...