This isn’t so much as a comprehensive guide as more of a point you in the right direction guide to using mythTV on dialup.
Step 1)
The first step is to locate a modem that will work with linux. I only use internal modems so my list of working modems is smaller then external working modems. In this case I used “USR5610B” its actually kind of an expensive modem, but I had one laying around.
Now there is two scenarios
a) you do a fresh install of knoppmyth and it will detect and install the modem assuming it supports it. if it doesnt install it goto scenario
b and manually install it. If it does detect and install your modem skip to step 2.
b) You are adding a modem to an already running knoppmyth system. This part worked for me but may not be necessary for you. Kudzu is a kind of plug and play hardware installer. When you type
Code:
kudzu
at command line it will detect and install keyboards, modems etc. In my case it would segfault as soon as it found my modem. So I:
Code:
apt-get remove kudzu-knoppix
it removes two other sister packages as well. Then just ran “apt-get install kudzu” and it installed the debian specific kudzu which found and installed my modem. (kudzu will hopefully remove the need to install drivers, however if you modem comes with drivers feel free to install them instead of kudzu)
Step 2)Now that your modem drivers are installed your modem still doesn’t work until you setserial.. next setup is to create a setserial line for you modem. One thing to keep in mind is that Seterial disappears on each boot so you need to add your line to a startup script.
An example setserial statement
Code:
setserial /dev/ttyS3 port 0xe800 irq 10 uart 16550A
copying this line probably wont work for you system, we need to customize it for your computer.
Run
Code:
lspci –v
this will list all your PCI devices on your computer. Find the modem on the list. Here is an example modem.
Quote:
00:0c.0 Serial controller: US Robotics: Unknown device 1008 (rev01) (prog-if 02)
Subsystem: Unknown device 12b9:00ad
Flags: medium devsel, IRQ 10
I/O ports at e800
Capabilities: [dc] Power Management version 2
Notice 2 things about this modem.. it says its IRQ. If your modem has irq 18 you need to have your setserial line reflect that. In this case the modem has an IRQ of 10 and our setserial line is :
setserial /dev/ttyS3 port 0xe800
irq 10 uart 16550A
now we have our IRQ. Next we need the port. Refer back to our example. It says
“I/O ports at e800” You need to add an
“0x” to the front of whatever port you have on your modem.. so now we have :
setserial /dev/ttyS3
port 0xe800 irq 10 uart 16550A
Last part you need to customize is the “/dev/ttyS3” and this step I need help with. How I did it was ran this:
Quote:
setserial /dev/ttyS3 port 0xe800 irq 10 uart 16550A
setserial /dev/ttyS2 port 0xe800 irq 10 uart 16550A
setserial /dev/ttyS1 port 0xe800 irq 10 uart 16550A
setserial /dev/ttyS0 port 0xe800 irq 10 uart 16550A
ran it four times in a row. This tried to initialize all ttyS3 to 0. Now goto next step. i know there is a better way, so i await a response
Step 3) Code:
apt-get install wvdial
after it installes it asks if you want to setup you say yes. It will scan all the /dev/ttySx devices and tell you which one it found a device on. Keep that in mind you now know what to finish your set serial line with.
Make sure setserial runs on EVERY startup. Also wvdial will ask you your ISP’s phone number .. your username password etc. if you type wvdial it should now fire up your modem dial, and connect, however you may not be able to open web pages yet. Next step.
Step 4) if your on a network your mythbox will already have a default route setup (if you don’t know what it is, don’t worry just networking garbage), so every time your dialup you need to run the command:
Code:
route delete default
this will make the able to detect new paths to other clients.. (ie the internet)
After your done surfing the internet you should reset your default route like so:
Code:
route add default gw 192.168.100.5
change the IP address to whatever your gatways address is.
So here is a typical internet session..
Code:
wvdial &
(wait for the connection)
Code:
route delete default
**surf the internet, become cross-eye with boredom**
Code:
route add default gw 192.168.100.5
(remember to change to your IP addressing scheme)
Code:
killall wvdial
(kills you’re your dialup connection)
So to wrap it up here is my VERY simple script that runs at 2 (via cron) in the morning.
Quote:
wvdial &
route delete default
sleep 60
mythfilldatabase
route add default gw 192.168.100.5
killall wvdial
copy and paste into a file called whatever.sh and run
Code:
crontab –e
add this line
Quote:
0 2 * * * /where_you_put_it/whatever_you_named_it.sh
That’s it, it will not dial out to get guide data a 2am every night. KEYPOINT make sure setserial runs on EVERY boot.
