kvpnc save config

Asked by docloy

I'd like to create a kubuntu live CD to access the network at my university. I already could install kvpnc and also have a desktop icon.
Usually the config is stored in /root/.kde/share/config/kvpncrc.

I tried to copy the whole .kde folder into ~/tmp/remaster-root/root but without success. If I boot from the new live CD I have the kvpnc icon on the desktop. But if I launch the programm there is no profile or config.

Any ideas? Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Customization Kit Edit question
Assignee:
No assignee Edit question
Solved by:
Krzysztof Lichota
Solved:
Last query:
Last reply:
Revision history for this message
Fabrizio Balliano (fabrizio-balliano) said :
#1

/root is always removed from the livecd, actually i don't know why we do that

Revision history for this message
Fabrizio Balliano (fabrizio-balliano) said :
#2

you could patch uck not to remove /root, it's quite easy

Revision history for this message
docloy (docloy) said :
#3

Thank you for the very quick answer. How can I patch uck not to remove /root?

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) said :
#4

IMO programs do not store their config in /root, so what you are
trying to do is wrong.
The config is kept in user directory, but on live CD it is not kept,
it is generated from /etc/skel.

So I think you should copy your settings to /etc/skel/.kde/share/

Revision history for this message
docloy (docloy) said :
#5

Yeah you are right, usually programms store their config in /home/user/*

But fpr vpnc you need root rigths and so the config for kvpnc is stored in root. I tried it and on my kubuntu system there is no config in the home directory from kvpnc but in the root directory.
So how can I patch uck not to remove the /root folder?

Revision history for this message
Best Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) said :
#6

2008/5/27 docloy <email address hidden>:
> So how can I patch uck not to remove the /root folder?
Just remove the following 2 lines in ./uck/libraries/remaster-live-cd.sh:

chroot "$REMASTER_DIR" rm -rf /root || failure "Cannot remove /root
directory, error=$?"
chroot "$REMASTER_DIR" mv /root.saved /root

Revision history for this message
docloy (docloy) said :
#7

Thanks Krzysztof Lichota, that solved my question.

Revision history for this message
BraveSpear (bravespear) said :
#8

Did that work for you? When you had them in /root did the profiles, etc. show up on your LiveCD?