Monday, December 28, 2009

iptables for ssh and gmote

Run these commands to open up incoming SSH and Gmote through iptables. Be sure to open the appropriate port/ip combination in the router.

SSH:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT

Gmote (port 8889):
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8889 -j ACCEPT

I think it works to run simultaneously, but I haven't tested it yet.

Copying Tapes to DVD

Use the CyberLink PowerDirector v5 (not Producer!) supplied with the KWorld PCI Card. Plug the red/black audio feeds from the card into the audio out (L and R, doesn't really matter which, just be consistent) on the VCR. The yellow video out should be plugged into the yellow video out of the VCR.

Make sure the CyberLink PowerDirector is installed. Then open it on your computer. As a test run, plug in the USB end of the KWorld card into your computer, and the audio end into the microphone jack (Windows *should* automatically detect both). Click on 'capture' and then click the hammer/nail picture below the main box on the left hand side of the screen (it's a configuration menu). Make sure the video is coming in through USB and audio is coming in through "Line-in". Finally, check in control panel --> sound settings --> microphone that the "Line-in" is not muted, and that the sound is not turned down too far.

Now do a test run: Push play on the VCR. On the right side of hte screen, you should see your video playing, but you probably won't hear any sound -- don't panic. Press the record button on the left side of the screen to make a test recording for like 30 seconds. Press "stop" (you should be prompted to name the video clip you've just made), then also stop the VCR. Click on the new clip on the right side of the screen. It should open up a viewer screen where you just push 'play', after which the video should play and you should hear sound.

If you don't hear sound, be sure you're listening in the right place! Is the sound configured to go to the headphones or to the speakers? You can probably configure this somewhere in CyberDirector, but on my laptop, it went to the headphones by default (it only does this in CyberDirector?), so to listen to the video, I needed to plug in headphones. If the sound is OK, then you're good. If not, discard this video and try adjusting the Line-In volume and the volume on the video. Then repeat the test.

Once you're happy, select the 'quality' of the recording (DVD-HD, SP, LP, SLP; better quality means more disk space. You want to be sure the quality of the recording will not use too much of the laptop disk, and will *also* fit on the DVD you're going to copy to. There are some meters in the capture screen that give you estimates of the space consumed by the video, and that should be enough to calculate the approximate final size of the video. There's probably not much point in ever being higher than SP if you're recording from VCR tapes, but you can view the quality for yourself.

When all of that is set, make your recording. It will take as long as it takes the VCR to play the tape at normal speed. When done, press stop, and be sure the clip is saved. Then click 'Edit', which will take you to an interface for editting what you have recorded. Here, you can try various tools in the CyberDirector to clean up the video and audio (the audio clean-up of white noise seems to work pretty well for crappy old tapes). You can also carve up the video into chapters, edit the length, etc. The best thing to is to experiment, and to be sure you don't permanently screw up the ~2hr video you just made.

Next, you can prepare to copy to a DVD...

Thursday, December 10, 2009

Backing up CDs in Linux

1) Sound Juicer to copy as OGGs.
2) Sound converter to convert OGGs to mp3.

Here's a link to the latter, as it's an install option.