LinHES Forums http://forum.linhes.org/ |
|
R5A26: how does 'myconfig' work? http://forum.linhes.org/viewtopic.php?f=11&t=7650 |
Page 1 of 1 |
Author: | eyal [ Mon Jan 02, 2006 2:28 am ] |
Post subject: | R5A26: how does 'myconfig' work? |
I am a new KnoppMyth user, but am using k I am using KnoppMyth as a live CD frontend. I want to use a USB stick to store the config. Not finding doco on how to use it, I simply exited mythfrontend, opened an xterm and typed 'saveconfig'. I then selected /mnt/sda1 and got a prompt that the config was saved fine. Nevertheless, on a boot using 'myconfig=/mnt/sda1' I see that the config is being restored, but I am still presented with the dummy sql setup rather than the one from the restore. I checked and the config tar does contain '/home/knoppix/.mythtv/mysql.txt' with the correct information. I want to set it up for easy booting into the frontend off the CD. I would like to not see the questions about my timezone and DHCP too (are these stored with the config?). So, in summary: - how should I create the saved config? - should all the questions be skipped when a restored config is used? TIA |
Author: | Xsecrets [ Mon Jan 02, 2006 3:55 pm ] |
Post subject: | |
didn't even know that option was there. I've seen this discussed several times, but to my knowledge there is no way to keep the config across boots other than to remaster a cd with your config. |
Author: | iscraigh [ Mon Jan 02, 2006 4:49 pm ] |
Post subject: | |
I would love it if that worked, didn't know it was possible. It would be great if you could just add a config file to the CD like DSL's work on Damn Small Linux. that would be a lot easier for the less technical among us (ME) than remastering. |
Author: | Xsecrets [ Tue Jan 03, 2006 2:37 am ] |
Post subject: | |
yes it would be nice and at some point it might happen, and like I said it's been discussed before, the problem is as soon as you say you want something like that everyone wants it to do one more thing and it becomes an even larger project than it already would be and gets put further back on the shelf. |
Author: | eyal [ Tue Jan 03, 2006 6:16 am ] |
Post subject: | Anyone knows the answers then? |
I see a few "me too"s, but is there someone on this forum that can tell me how to use this feature (it is listed in the lilo help screen and the 'saveconfig' script is present). Or is it some work-in-progress undocumented feature that I should leave alone for now? Thanks |
Author: | Xsecrets [ Tue Jan 03, 2006 11:00 am ] |
Post subject: | |
you must not have read my post. this must just be something that is left over from the knoppix boot that is used, but no work has gone into integrating anything like this, so it will most likely not work till/unless the devs look into making it work. |
Author: | eyal [ Tue Jan 03, 2006 7:02 pm ] |
Post subject: | Here is one way to do this |
Not one to give up easily, here is my solution. What I needed is a hook that will restore mysql.txt after it was overwritten by the standard script, Turns out that this is easy because the default path includes ~/.dist/bin as the first component allowing me to override all commands. I will enhance 'mythfrontend'. - Boot the CD and start as frontend. Answer all the questions as normal and see that the frontend works. - Exit mythtv - Start an xterm. You should now be in /home/knoppix. Execute the following commands: Code: # save your good settings: cp .mythtv/mysql.txt .mythtv/mysql.txt.restore # override the mythfrontend program: mkdir -p .dist/bin cat >.dist/bin/mythfrontend <<EOF #!/bin/sh # This is /home/knoppix/.dist/bin/mythfrontend FILE="\$HOME/.mythtv/mysql.txt" test -f \$FILE.restore && cp \$FILE.restore \$FILE /usr/bin/mythfrontend EOF # make the file executable chmod +x .dist/bin/mythfrontend # now save the new config saveconfig On the next boot just hit enter to all the sql questions, the correct values will be restored later. I boot from a USB stick with Code: tv vga=normal myconfig=/mnt/sda1
I find that a floppy is too small due to .mythtv/themecache being saved. If you remove this directory before you save the config then it should fit on a floppy. Works for me. Good luck. |
Author: | cesman [ Tue Jan 03, 2006 11:32 pm ] |
Post subject: | |
![]() |
Author: | Xsecrets [ Wed Jan 04, 2006 12:26 am ] |
Post subject: | |
This sounds like a great Candidate for a wiki page. |
Author: | iscraigh [ Wed Jan 04, 2006 12:26 am ] |
Post subject: | |
Eyal Would it be possible to burn it to a multisession cd? |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |