Results 1 to 8 of 8

Thread: [SOLVED] How to make changes in xorg.conf permanent?

  1. #1
    Join Date
    Feb 2008
    Beans
    44

    [SOLVED] How to make changes in xorg.conf permanent?

    Here is the sit:

    I have a partition on my mBP3 as an ubuntu persistence and is doing well except for the changes made in xorg.conf to enable scrolling for my BT mouse. Every time I reboot xorg.conf updated itself and made a copy of my change with some 12 digit # in thhe folder X11. Even though I stop trying it is still generating copies.

    Question 1) Anyway of making the changes permanent?
    2) If not how to stop the copy from forming?


    Thanks below is the link to the changes. Apparently no problem with regular install. Just unique in Persitence!

    http://peterc.org/2008/64-how-to-ena...re-fusion.html

  2. #2
    Join Date
    Feb 2008
    Beans
    44

    Re: How to make changes in xorg.conf permanent?

    No taker?

  3. #3
    Join Date
    Jul 2007
    Location
    Saxony (Germany)
    Beans
    226
    Distro
    Ubuntu Karmic Koala (testing)

    Re: How to make changes in xorg.conf permanent?

    you need root privileges to change the files outside your home folder. It should be documented in almost any ubuntu-wiki available on the web.

    for gnome execute
    Code:
    sudo gedit /etc/X11/xorg.conf

    for kde
    Code:
    sudo kate /etc/X11/xorg.conf


    now you will have write access to xorg.conf.

  4. #4
    Join Date
    Feb 2008
    Beans
    44

    Re: How to make changes in xorg.conf permanent?

    Quote Originally Posted by frog_pilot View Post
    you need root privileges to change the files outside your home folder. It should be documented in almost any ubuntu-wiki available on the web.

    for gnome execute
    Code:
    sudo gedit /etc/X11/xorg.conf

    for kde
    Code:
    sudo kate /etc/X11/xorg.conf


    now you will have write access to xorg.conf.
    That was the first thing I did to enable scrolling. My problem is the editting is ?archived by the ?Xserver like so

    ubuntu@ubuntu:~$ sudo -s
    root@ubuntu:~# cd /etc/X11
    root@ubuntu:/etc/X11# ls
    app-defaults xkb Xresources
    cursors xorg.conf xserver
    default-display-manager xorg.conf.20080601060008 Xsession
    fonts xorg.conf.20080601060705 Xsession.d
    rgb.txt xorg.conf.20080601061714 Xsession.options
    X xorg.conf.20080601155619 Xwrapper.config
    xinit xorg.conf.20080601160029
    root@ubuntu:/etc/X11#

    As you can see the gedited ones are in red and the xorg.conf is the unedited one generated everytime I reboot. As you can see from the user that this is in persistence mode. I am assuming that editting the xorgconf is not possible. Any thought ?

  5. #5
    Join Date
    Jul 2007
    Location
    Saxony (Germany)
    Beans
    226
    Distro
    Ubuntu Karmic Koala (testing)

    Re: How to make changes in xorg.conf permanent?

    Not the
    Code:
    ls
    of the folder is the thing...

    What do you do on saving your changes? Choose "save as" and type
    Code:
    xorg.conf
    Or figure out your preferred xorg.conf backup and execute e.g.

    Code:
    sudo cp /etc/X11/xorg.conf.20080601155619 /etc/X11/xorg.conf
    BTW You dont need to log in as root in ubuntu at all.
    Code:
    sudo -s
    sudo -su
    doesnt meet the ubuntu policy...

  6. #6
    Join Date
    Feb 2008
    Beans
    44

    Re: How to make changes in xorg.conf permanent?

    Thanks for the advise. I did this to make the changes permanent.

    #! /bin/sh
    ### BEGIN XORG INFO
    # Provides: xorg.onf
    # Required-Start:
    # Required-Stop:
    # Default-Start: S
    # Default-Stop:
    # Short-Description: enable same xorg.conf
    ### END XORG INFO

    cp -rf /etc/X11/xorg.conf.20080604052700 /etc/X11/xorg.conf

    It did the trick. But the scrolling is still not working.

  7. #7
    Join Date
    Dec 2006
    Beans
    483
    Distro
    Hardy Heron (Ubuntu Development)

    Re: [SOLVED] How to make changes in xorg.conf permanent?

    I still don't understand why you don't just execute gedit or kate to edit xorg.conf directly. or nano, or whatever.

    Your editing the backup copies then copying them over xorg.conf.

    Seems like a roundabout way of getting there. as long as you execute the edit command with sudo in front, there should be no trouble.

    Russo
    Macbook Pro C2D
    Ubuntu 8.04

  8. #8
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: [SOLVED] How to make changes in xorg.conf permanent?

    I think that the main thing everyone is missing here is that he is running in persistence mode... I think that means he is running Ubuntu from the LiveCD, and storing session data on a thumbdrive or something (a partition on his hard drive it sounds like).
    http://rootprompt.org/article.php3?article=10142

    He edits xorg.conf, but then when he starts up again, xorg.conf is regenerated replacing his customized file. Now, he is essentially copying the backup back over the original on each boot so that he gets his custom config back.

    nano vs kate vs gedit, etc doesn't matter. You whatever editor you want.

Tags for this Thread

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
  •