WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to alter a .config file [SOLVED]  (Read 2812 times)

Offline erwin

  • Newbie
  • *
  • Posts: 7
how to alter a .config file [SOLVED]
« on: June 13, 2012, 06: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?
« Last Edit: June 14, 2012, 06:44:24 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: how to alter a .config file
« Reply #1 on: June 13, 2012, 07: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.

Offline erwin

  • Newbie
  • *
  • Posts: 7
Re: how to alter a .config file
« Reply #2 on: June 13, 2012, 11:08:19 PM »
thanks :)
it worked.

nomer

  • Guest
Re: how to alter a .config file
« Reply #3 on: June 14, 2012, 06:35:57 PM »
@erwin
It would be nice if you added [SOLVED] to the subject of your original post ;)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: how to alter a .config file [SOLVED]
« Reply #4 on: June 14, 2012, 06:44:41 PM »
Done.