View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 10 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Jan 02, 2006 2:28 am 
Offline
Joined: Mon Jan 02, 2006 12:57 am
Posts: 3
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 02, 2006 3:55 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
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.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 02, 2006 4:49 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 03, 2006 2:37 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
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.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
PostPosted: Tue Jan 03, 2006 6:16 am 
Offline
Joined: Mon Jan 02, 2006 12:57 am
Posts: 3
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 03, 2006 11:00 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
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.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
PostPosted: Tue Jan 03, 2006 7:02 pm 
Offline
Joined: Mon Jan 02, 2006 12:57 am
Posts: 3
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 03, 2006 11:32 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
:)

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 12:26 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
This sounds like a great Candidate for a wiki page.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 12:26 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
Eyal

Would it be possible to burn it to a multisession cd?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu