Tiny Core Base > TCB Q&A Forum

how to alter a .config file [SOLVED]


I use core 4.2 on a sd card over usb and would like to alter a xxxx.config file.
So I type sudo nano /mnt/sdxx/usr/........./xxxx.config and alter the file, but when I want
to save the file, there is a message saying cannot open this file to write.

What is to do , to save the file?

Hi erwin
The file you are trying to alter is actually a link to a file in a  read-only  filesystem. If you enter:

--- Code: ---ls -l /usr/........./xxxx.config
--- End code ---
the file listed to the right of the  ->  is where the link is pointing to. Here is an example of how to make it editable:

--- Code: ---tc@box:~$ ls -l /usr/local/share/geany/filetypes.conf
lrwxrwxrwx 1 root root 54 Jun  6 09:49 /usr/local/share/geany/filetypes.conf -> /tmp/tcloop/geany/usr/local/share/geany/filetypes.conf
sudo rm /usr/local/share/geany/filetypes.conf
sudo cp  /tmp/tcloop/geany/usr/local/share/geany/ /usr/local/share/geany/filetypes.conf
sudo nano /usr/local/share/geany/filetypes.conf
--- End code ---
You would then add:

--- Code: ---usr/local/share/geany/filetypes.conf
--- End code ---
to your  /opt/.filetool.lst  file to make the change persist between boots.
At least that is what you would do with a standard TC installation. You however indicated  /mnt/sdxx/usr/....
which suggests a scatter installation, so you may have to adapt these instructions to meet your needs.

thanks :)
it worked.

It would be nice if you added [SOLVED] to the subject of your original post ;)



[0] Message Index

Go to full version