Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Make changes to read-only file in text editor (syslinux.cfg)

  1. #1
    Join Date
    Jan 2011
    Beans
    19

    Make changes to read-only file in text editor (syslinux.cfg)

    I'm trying to follow all the steps in this thread and I'm stuck at the following step:

    append initrd=/ubninit file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- persistent
    Rebooted, changes were persistent.
    Which C.S.Cameron translated for me as the following:

    Press Alt F2 and type "gksu nautilus"
    Or you can open terminal and type "gksu nautilus"
    (this opens nautilus as super user).
    Now click file system, then double click cdrom, then you right click on syslinux.cfg and open with text editor.
    I opened syslinux.cfg with text editor and it was a read-only file and I couldn't make any changes to it. Any help would be greatly appreciated as this is the last step of what I'm trying to accomplish.

  2. #2
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,779

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    How much command line experience do you have?


    Open a terminal and type in

    Code:
    gksudo gedit /path/to/syslinux.cfg
    If you need further help just tell me where your file is located..
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss


  3. #3
    Join Date
    Mar 2008
    Beans
    115

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    Right click on the file, properties, permissions and set up access options to read and write. After then try to open the file again with your editor (I'm not exactly sure that you can do the permission change, but tryx it.)
    Being a target means being on the internet. End of line.
    Takedown blog (hungarian)

  4. #4
    Join Date
    Nov 2010
    Beans
    168
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    Quote Originally Posted by sh4d0w808 View Post
    Right click on the file, properties, permissions and set up access options to read and write. After then try to open the file again with your editor (I'm not exactly sure that you can do the permission change, but tryx it.)
    DO NOT DO THIS!!

    While this is definitely away to circumvent the system its dangerous and not something that should be suggested, especially not to those who have little experience with linux in general.

    The best way to edit the file is gksudo or sudo <cli editor> because permissions don't get screwed up causing potential boot issues or what have you later on.

  5. #5
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,779

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    Quote Originally Posted by TechWiz2100 View Post
    DO NOT DO THIS!!

    While this is definitely a way to circumvent the system its dangerous and not something that should be suggested, especially not to those who have little experience with linux in general.
    +1

    Lets just keep walking the OP through the gksudo way
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss


  6. #6
    Join Date
    Jan 2011
    Beans
    19

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    Quote Originally Posted by Caboose885 View Post
    How much command line experience do you have?


    Open a terminal and type in

    Code:
    gksudo gedit /path/to/syslinux.cfg
    If you need further help just tell me where your file is located..
    I did that and it just opens an empty pop-up box. No clue what to do next. BTW, I'm trying to make changes that are on my flash drive so I can make a persistent flash drive.

  7. #7
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,779

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    Ok. What is the path to the file that you used? (my /path/to/syslinux.cfg was an example and not what you are supposed to use.)

    Since its a thumb drive it should be something like /media/"thumbdrive"/syslinux.cfg
    Last edited by Kirboosy; February 28th, 2011 at 06:59 PM.
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss


  8. #8
    Join Date
    Jan 2011
    Beans
    19

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    I got there by typing in what I pasted earlier:
    Press Alt F2 and type "gksu nautilus"
    Or you can open terminal and type "gksu nautilus"
    (this opens nautilus as super user).
    Now click file system, then double click cdrom, then you right click on syslinux.cfg and open with text editor.
    When I get to cdrom, there is a little grey lock on the icon (not sure if that's meaningful information, but I thought I should mention it).

  9. #9
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,779

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    Well the CDROM drive is readonly since the CD is most likely a CD-R. Unless you copy the files somewhere else you won't be able to modify the files.


    Since you are trying to make a persistent thumbdrive why don't you use "Startup Disk Creator"? (System-->Admin-->Startup Disk Creator)
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss


  10. #10
    Join Date
    Jan 2011
    Beans
    19

    Re: Make changes to read-only file in text editor (syslinux.cfg)

    Quote Originally Posted by Caboose885 View Post
    Since you are trying to make a persistent thumbdrive why don't you use "Startup Disk Creator"? (System-->Admin-->Startup Disk Creator)
    I just tried Startup Disk Creator and I'm having the same issue with it that I did attempting various installers- I get hung up on boot up. When I get to where Ubuntu is displayed in the center of the monitor with the five sequentially flashing white to red dots underneath it, that page stays there and the desktop never appears. At least with the method I've been trying to accomplish in this thread, I can successfully boot up, get on the internet, etc.


    Well the CDROM drive is readonly since the CD is most likely a CD-R. Unless you copy the files somewhere else you won't be able to modify the files.
    There is no more CD-R in the method I've been trying, I'm just booting up with the flash drive.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •