<---- template headericclude ----->
Gconf for Liveuser
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gconf for Liveuser

    Hi

    I have a custom livecd and I change some settings with gconftool-2 (rpm package post script):
    Code:
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=string --set /system/proxy/mode "manual"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=bool --set /system/http_proxy/use_same_proxy "TRUE"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=bool --set /system/http_proxy/use_http_proxy "TRUE"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=string --set /system/http_proxy/host "localhost"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=int --set /system/http_proxy/port "8080"
    The liveuser does not get affected of this settings (firefox). If I create a new user on the booted livecd it works. Why?

    This command shows the correct settings:
    gconftool-2 -R /system
    Last edited by JakeR; 22nd March 2012 at 12:54 PM.

  2. #2
    Join Date
    Oct 2010
    Posts
    894
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gconf for Liveuser

    Hi JakeR,

    You could try adding the gconftool-2 lines to /etc/init.d/livesys from within the %post section of your .ks with something like:


    Code:
    %post
    cat >> /etc/rc.d/init.d/livesys << EOF_livesys
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=string --set /system/proxy/mode "manual"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=bool --set /system/http_proxy/use_same_proxy "TRUE"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=bool --set /system/http_proxy/use_http_proxy "TRUE"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=string --set /system/http_proxy/host "localhost"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=int --set /system/http_proxy/port "8080"
     EOF_livesys
    That should work for the live session but if you want the changes to be persistent for a HD install try adding the lines to /etc/rc.d/init.d/livesys-late with something like:

    Code:
    %post
    cat >> /etc/rc.d/init.d/livesys-late << EOF_lateinitscript
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=string --set /system/proxy/mode "manual"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=bool --set /system/http_proxy/use_same_proxy "TRUE"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=bool --set /system/http_proxy/use_http_proxy "TRUE"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=string --set /system/http_proxy/host "localhost"
    gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type=int --set /system/http_proxy/port "8080"
    EOF_lateinitscript


    Hope this helps,
    Last edited by AndrewSerk; 16th April 2012 at 04:48 AM.

Similar Threads

  1. liveuser password / autologin problem
    By jenaniston in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 25th August 2011, 11:38 PM
  2. How can I customize liveuser profile in a ReMix
    By LinuxTom in forum Using Fedora
    Replies: 4
    Last Post: 14th January 2010, 07:44 PM
  3. Liveuser needs password?
    By lemtree in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 13th December 2009, 03:18 PM
  4. Liveuser Password?
    By havinfun2000 in forum Installation, Upgrades and Live Media
    Replies: 8
    Last Post: 11th June 2009, 05:21 AM
  5. Remove Liveuser ?
    By ddalley in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 10th April 2009, 02:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]