Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: erwin on June 13, 2012, 09:20:51 AM

Title: how to alter a .config file [SOLVED]
Post by: erwin on June 13, 2012, 09:20:51 AM
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?
Title: Re: how to alter a .config file
Post by: Rich on June 13, 2012, 10:10:00 AM
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: [Select]
ls -l /usr/........./xxxx.configthe 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: [Select]
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
You would then add:
Code: [Select]
usr/local/share/geany/filetypes.confto 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.
Title: Re: how to alter a .config file
Post by: erwin on June 14, 2012, 02:08:19 AM
thanks :)
it worked.
Title: Re: how to alter a .config file
Post by: nomer on June 14, 2012, 09:35:57 PM
@erwin
It would be nice if you added [SOLVED] to the subject of your original post ;)
Title: Re: how to alter a .config file [SOLVED]
Post by: Rich on June 14, 2012, 09:44:41 PM
Done.