Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: nbt384 on October 20, 2011, 08:00:26 AM

Title: Editing "read-only" files under /etc/X11
Post by: nbt384 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
Title: Re: Editing "read-only" files under /etc/X11
Post by: hiro 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.
Title: Re: Editing "read-only" files under /etc/X11
Post by: Rich 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.
Title: Re: Editing "read-only" files under /etc/X11
Post by: gerald_clark 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."