Setting default Runlevel

 

This was written for Fedora, not sure how many other other distros it applies to.

There are three ways to change your runlevel: 

* While the Computer is Running: 
1. Open a Terminal. 
2. Become root. 
3. Type: 

init number 

where number is the runlevel that you want to change to. 

You will then be switched into the new runlevel. 
* While You Are Booting the Computer: 
1. When you first start your computer, the GRUB screen (where you choose your Operating System) appears. Select the Fedora that you want to boot into, but press the a key instead of pressing Enter. 
2. You will see a line somewhat like the following: 

kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet 

Add the number of your runlevel to the end of that line, and then press Enter. For example, to boot into text-only mode, the line would look like: 

kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet 3 

You will then boot into the new runlevel this time only. 
* Permanently Set a Default Runlevel: 
1. Open a Terminal. 
2. Become root. 
3. Open the file /etc/inittab in your favorite text editor: 

gedit /etc/inittab 
4. Find the line: 

id:number:initdefault: 

where number is your current default runlevel (probably 5). 
5. Change the number in the middle of the line to the new runlevel that you want your computer to start in by default. For example, if you want to start in text-only mode by default, change it to: 

id:3:initdefault: 

You will then boot into that runlevel every time you start the computer.

Posted in Linux General | Leave a comment

Encrypted USB Drives for Linux and Windows

 

I played with 2 options:

TrueCrypt and FreeOTFE

TrueCrypt has a Windows and Linux GUI making it pretty easy to use cross platform.  It also do some pretty cool encryption of the boot drive to secure the whole computer, but I haven’t messed with that yet.

FreeOTFE has cool because it has a WIndows GUI and can automount under linux if you encrypt a whole partition as opposed to a volume (file) stored on a partition.  I really wanted to go with FreeOTFE for the automounting, but ran into a deal breaker issue.  Windows can only mount a single partition from a USB drive, so I couldn’t have a small  partition to run FreeOTFE from (so it was portable to any Windows computer) and have a 2nd large encrypted  partition for the data.

Configuring FreeOTFE and Linux see http://emcken.dk/weblog/archives/164-encrypted-usb-drive-in-ubuntu.html. My notes just in case the above link ever goes away:

sudo apt-get install cryptsetup
sudo modprobe dm-crypt ## If you haven’t rebooted

sudo cryptsetup –verbose –verify-passphrase luksFormat /dev/sdb5

sudo cryptsetup luksOpen /dev/sdb5 sdb5

# Based on fat32 or ntfs
sudo mkfs.vfat /dev/mapper/sdb5 -n “tpearsall”
sudo mkntfs -f /dev/mapper/sdb5

sudo cryptsetup luksClose sdb5

Posted in Linux General | Leave a comment

ROM Burning Service

http://www.tiptonware.com

Posted in MAME | Leave a comment

Building SDLMame

You need to spoof the user-agent to get the source with wget 

 

Code:
wget –user-agent='Mozilla/4.0' http://rbelmont.mameworld.info/sdlmame0118.zip
Posted in MAME | Leave a comment

SDLMAME Binaries

http://wallyweek.altervista.org/

Posted in MAME | Leave a comment

Ubuntu LIRC Setup

 

Good Instructions

https://help.ubuntu.com/community/InstallLirc/Gutsy

Command I keep forgetting:  sudo dpkg-reconfigure lirc

Posted in MythTV | Leave a comment

All In One URC 6131n

Most of this is pulled from http://wilsonet.com/mythtv/ 



Install Modules 

Code:
yum install lirc-kmdl-$KVER 
yum install lirc





Check if eveything is there: 

Code:
$ rpm -qa | grep lirc 
lirc-devices-0.7.0-1.rhfc4.at 
lirc-kmdl-2.6.12-1.1447_FC4-0.7.2-48.rhfc4.at 
lirc-0.7.2-48.rhfc4.at 
lirc-lib-0.7.2-48.rhfc4.at





modprobe.conf 

Code:
## TSP   For Serial Port 1 
alias char-major-61 lirc_serial 
options lirc_serial irq=4 io=0x3f8 
install lirc_serial /bin/setserial /dev/ttyS0 uart none ; /sbin/modprobe –ignore-install lirc_serial 
## TSP





Put lircd files in place: 

Set lircd.conf as needed 

Put .lircrc in the user home 

ln ~/.mythtv link lircrc to ../.lircrc[/code]

Posted in MythTV | Leave a comment

HD Channels

 

Tuning HD Channels 

Scan for Channels

  1. atscscan us-Cable-Standard-center-frequencies-QAM256 
  2. store results to chan.conf

Tune Channels 

  1. azap -r -c chan.conf {channel number} 
  2. cat /dev/dvb/adapter0/dvr0 | mplayer -vo xv -ao alsa – OR 
  3. cat /dev/dvb/adapter0/dvr0 | mplayer -vo xv -ao alsa -vid {vid pid} -aid {aud pid} –

Current channels.conf 

ABCFAM:537000000:QAM_256:20:21 
TNT:537000000:QAM_256:25:26 
NBC:543000000:QAM_256:16:17 
WHUT:543000000:QAM_256:18:19 
MPT:657000000:QAM_256:49:52 
WJZ-DT:657000000:QAM_256:33:36 
MPT-KIDS:657000000:QAM_256:81:84 
MPT-PS:657000000:QAM_256:97:100 
MPT-DT:657000000:QAM_256:65:68 
MPT-LEARNER:657000000:QAM_256:113:116 
WBALTV-DT:717000000:QAM_256:49:52 
WMAR-DT:717000000:QAM_256:113:116 
WMAR:717000000:QAM_256:33:32 
NBC11:717000000:QAM_256:65:68 
WB:723000000:QAM_256:16:17 
FOX5:735000000:QAM_256:16:17 
BFF-DT:kexec561000000:QAM_256:20:21 
JWLTV:567000000:QAM_256:49:50

Complete Scan Results

WJZ-DT:657000000:QAM_256:33:36:2 
MPT-DT:657000000:QAM_256:65:68:6 
WBALTV-DT:717000000:QAM_256:49:52:8 
WMAR-DT:717000000:QAM_256:113:116:7 
BFF-DT:561000000:QAM_256:20:21:4 
ABCFAM:537000000:QAM_256:20:21:19 
TNT:537000000:QAM_256:25:26:21 
NBC:543000000:QAM_256:16:17:14 
WHUT:543000000:QAM_256:18:19:15 
MPT:657000000:QAM_256:49:52:1 
MPT-KIDS:657000000:QAM_256:81:84:3 
MPT-PS:657000000:QAM_256:97:100:4 
MPT-LEARNER:657000000:QAM_256:113:116:5 
WMAR:717000000:QAM_256:33:32:15 
NBC11:717000000:QAM_256:65:68:12 
WB:723000000:QAM_256:16:17:3 
FOX5:735000000:QAM_256:16:17:8 
JWLTV:567000000:QAM_256:49:50:12 

[0ae-0002]:645000000:QAM_256:0:37:2 # No 
[0e2-0001]:699000000:QAM_256:0:17:1 # No 
[101-000d]:729000000:QAM_256:0:50:13 # No 
TWC:543000000:QAM_256:0:0:19 # No 
GUIDE:543000000:QAM_256:0:0:2 # No 
CN8:543000000:QAM_256:0:0:21 # No 
SNBC:543000000:QAM_256:0:0:3 # No 
GAC:543000000:QAM_256:0:0:211 # No 
MTV:555000000:QAM_256:0:0:104 # No 
USA:555000000:QAM_256:0:0:112 # No 
CMDY:555000000:QAM_256:0:0:103 # No 
DISC:555000000:QAM_256:0:0:109 # No 
NICK:555000000:QAM_256:0:0:106 # No 
WJLA:555000000:QAM_256:0:0:101 # No 
TOON:555000000:QAM_256:0:0:102 # No 
SCIFI:555000000:QAM_256:0:0:107 # No 
TLC:555000000:QAM_256:0:0:110 # No 
VH1:555000000:QAM_256:0:0:111 # No 
AMC:555000000:QAM_256:0:0:108 # No 
DISN:555000000:QAM_256:0:0:105 # No 
iNDB:633000000:QAM_256:0:42:3 # No

Good Links

http://www.pchdtv.com/forum/viewtopic.php?t=693 
http://www.xmission.com/~pchdtv/forum/viewtopic.php?t=688 
http://www.gossamer-threads.com/lists/mythtv/users/149939?search_string=atsc%20channels%20manual;#149939

Posted in MythTV | Leave a comment

Programming the All In One URC 6131n

These are the steps that I followed to get my remote to work. 



1. Copy the lircd.conf file to /etc/lircd.conf. 



2. Load in the lirc modules and start lircd. 



3. Decide which button to assign on the remote for MythTV. I use PVR (as this is a remote meant for PVR's). It is assumed that you are using PVR, please substitute your button where necessary. 



4. Whichever button you pick, if it's not VCR, then you need to make it a VCR button. Following the procedure in the user manual, map a VCR type to your selected button: 

a) Press and hold the SET button until the LED blinks twice, then release SET. 

b) Enter 992. The LED will blink twice. 

c) Press VCR once, then press PVR once. The LED will blink twice. 



5. The Hauppauge PVR-250 IR receiver will only accept RC-5 codes. The URC-6131 can output RC-5 codes, if it is set to emulate a remote control that outputs RC-5 codes. RC-5 codes are typically used by Phillips, Marantz and Magnavox. A code that makes most of the buttons on the remote available is 0081. To set your PVR button to use 0081, do this: 

a) Press the PVR button to select it. 

b) Press and hold the SET button until the LED blinks twice and then release SET. 

b) Enter 0081. The LED should blink twice, acknowledging the programming. 



6. Before going any further, verify that the IR receiver on the PVR-250 is receiving the RC-5 codes. 

a) Start irw, the LIRC testing tool. Usually the command "irw" works, however, you may need to specify a path to it. 

b) Start pressing buttons on the remote control. Some buttons will not be recognized, but at least the number keys, the directional arrows and SELECT should work. 



7. At this point, there are several keys that we want to program to send RC-5 codes, so that they can be used by LIRC/MythTV. The One For All remote controls are excellent for programming, and although the manual doesn't document it, it is possible to program what are called "advanced codes". This method will allow you to program the non-working buttons to send out RC-5 codes. Here's how to program individual buttons: 

a) Press and hold the SET button until the LED blinks twice, and then release SET. 

b) Press 994, and then tap the SET key. The LED should blink once. 

c) Enter one of the three-digit codes below, and then press the key that corresponds to that three-digit code. 



Code Button 

108 GUIDE 

147 Replay (Backwards curved arrow) 

178 Skip (Arrow pointing right with vertical line) 

111 Next Chapter 

143 Previous Chapter 

018 Audio/CC 

238 SUBT 

079 ANGLE 

047 Slow motion (vertical bar with arrow) 

140 Enter* 

113 PIP 

145 SWAP 

236 Move 

224 Thumbs Up 

192 Thumbs Down 

240 PVR Menu 



From: http://mythtv.org/pipermail/mythtv-users/2004-April/038525.html

Posted in MythTV | Leave a comment

Ubuntu Sound Muted by Default

 

amixer set Master 100% unmute

amixer set PCM 100% unmute 

Posted in MythTV | Leave a comment