WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Editing "read-only" files under /etc/X11  (Read 1979 times)

Offline nbt384

  • Newbie
  • *
  • Posts: 17
Editing "read-only" files under /etc/X11
« on: October 20, 2011, 08:00:26 AM »
Hi

As per some advice that I was given almost 2 years ago by Juanito that I have just looked back on now after getting back into micro/tinycore, I have beet trying to edit /etc/X11/xorg.conf.vesa as root (to get my tablet peripheral working), but however I try to do it (using vi under a command line, doing it through editor as root), when I try to save, it just says that it's a read-only file and can't be edited.

I thought that this was part of what being root was meant to do - get around read-only, etc.

Any ways on getting around this?

Thanks

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Editing "read-only" files under /etc/X11
« Reply #1 on: October 20, 2011, 08:07:37 AM »
ls -l /etc/X11 will show you xorg.conf.vesa is a symlink to the read-only squashfs mount. You would have to copy the file to the X11 folder in order to edit it. If you want you can then delete the symlink and rename the edited file to the original name.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11581
Re: Editing "read-only" files under /etc/X11
« Reply #2 on: October 20, 2011, 08:15:13 AM »
Hi nbt384
And don't forget to add the file to  /opt/.filetool.lst  so it gets backed up.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Editing "read-only" files under /etc/X11
« Reply #3 on: October 20, 2011, 12:11:25 PM »
xorg.conf.vesa is just a sample file.
Copy it to /etc/X11/xorg.conf and make your changes.
As Rich said, "And don't forget to add the file to  /opt/.filetool.lst  so it gets backed up."