Fedora Linux Support Community & Resources Center
  #1  
Old 22nd March 2012, 12:49 PM
JakeR Offline
Registered User
 
Join Date: Feb 2012
Location: Sweden
Posts: 13
windows_7chrome
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.
Reply With Quote
  #2  
Old 16th April 2012, 04:37 AM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
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.
Reply With Quote
Reply

Tags
gconf, liveuser

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 18:03 (Thursday, 24-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat