tag:blogger.com,1999:blog-108802122009-07-14T14:54:45.950-04:00Cacasodo, the tech answer guy<b>If it was easy, I wouldn't be writing about it.</b>
<br>
as of late..dual boot mac and fedora, expanding LVM disk, VMware Tools recompileCacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.comBlogger150125tag:blogger.com,1999:blog-10880212.post-83798868186903026652009-06-11T20:23:00.001-04:002009-06-11T20:25:55.796-04:00wake on lan on the SC1430Wake On Lan..she is a working on the SC1430 now, after a bit of sturm unt drang:<br /><a href="http://en.community.dell.com/forums/p/19278497/19501270.aspx#">http://en.community.dell.com/forums/p/19278497/19501270.aspx#</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-8379886818690302665?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-36061476987995016972009-03-31T09:56:00.004-04:002009-03-31T10:20:12.851-04:00Fedora 10, xrandr and InFocus projectorSo, I'm doing this presentation at the <a href="http://www.tcf-nj.org/web/">Trenton Computer Festival</a> next month and couldn't get the <a href="http://www.amazon.com/gp/product/B0012PQ7C2?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B0012PQ7C2">InFocus IN2102EP Projector</a><img src="http://www.assoc-amazon.com/e/ir?t=crazmuleprod-20&l=as2&o=1&a=B0012PQ7C2" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> to work on my dual boot MacBook Pro (2.33Ghz Core 2 Duo) that runs both Leopard and Fedora 10, x86-64 using ReFit as the boot loader. I tried to connect the InFocus to the DVI output of the Mac while running under Fedora.<br /><br />The InFocus is connected this way:<br />MacBook external DVI output > DVI-VGA dongle > VGA - <a href="http://www.amazon.com/gp/product/B000067VAS?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000067VAS">M1-DA Cable</a><img src="http://www.assoc-amazon.com/e/ir?t=crazmuleprod-20&l=as2&o=1&a=B000067VAS" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br /> > InFocus M1-DA connector<br /><br />The problem is that though xrandr sees the DVI-0 port as connected, but the InFocus doesn't get the signal or spring to life through the setup listed above.<br /><br />I've verified that the DVI-0 output works with a regular DVI cable connected to the DVI input on my <a href="http://www.amazon.com/gp/product/B001312BV6?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B001312BV6">Dell 1907FP 19-inch Flat Panel LCD</a><img src="http://www.assoc-amazon.com/e/ir?t=crazmuleprod-20&l=as2&o=1&a=B001312BV6" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />. So this means a digital signal is being output from the port. Now, I've also verified that the DVI-0 output from Fedora does NOT work with the DVI-VGA dongle connected to the VGA input on the Dell. When connected with the DVI-VGA setup listed above, xrandr sees that the InFocus is connected (shown below). Also, Gnome sees the InFocus in the connected displays.<br /><br />On the flipside, I've verified that the InFocus projector works using the DVI-VGA cable setup when booted from the Mac OS. So that's odd.<br /><br />Since I can see the output while connected to the Dell's DVI input, I don't think this is a configuration issue. But maybe Fedora just doesn't like the DVI-VGA dongle. I'm sure I could buy an M1-DA direct to DVI adapter and be done with it, but I'd rather save the $55 and figure out why the Mac sees the Infocus, but why Fedora has troubles.<br /><br />Here is the output of xrandr:<br /><span style="font-size:85%;"><span style="font-family:courier new;">[cm@cm ~]$ xrandr<br />Screen 0: minimum 320 x 200, current 2464 x 900, maximum 2720 x 1924<br />LVDS connected 1440x900+0+0 (normal left inverted right x axis y axis) <br />331mm x 207mm<br /> 1440x900 60.0*+<br /> 2048x1536 60.0<br /> 1920x1440 60.0<br /> 1856x1392 60.0<br /> 1792x1344 75.0 60.0<br /> 1600x1200 85.0 75.0 70.0 65.0 60.0<br /> 1400x1050 74.8 60.0<br /> 1280x1024 85.0 75.0 60.0<br />DVI-0 connected 1024x768+1440+0 (normal left inverted right x axis y axis) <br />0mm x 0mm<br /> 1024x768 60.0*+ 85.0 75.1 75.0 70.1 60.0*<br /> 1400x1050 60.0<br /> 1280x1024 75.0 60.0<br /> 1024x768_60.00 60.0<br /> 1280x960 60.0<br /> 1152x864 75.0<br /> 832x624 74.6<br /> 800x600 85.1 72.2 75.0 60.3 56.2<br /> 640x480 85.0 72.8 75.0 72.8 75.0 60.0<br /> 720x400 85.0<br /> 640x400 85.1<br /> 640x350 85.1<br /> 0x0 0.0</span></span><br /><br />Here is my xorg.conf:<br /><span style="font-size:85%;"><span style="font-family:courier new;">Section "ServerLayout"<br /> Identifier "Default Layout"<br /> Screen 0 "Screen0" 0 0<br /> InputDevice "Keyboard0" "CoreKeyboard"<br /> InputDevice "Synaptics Touchpad" "CorePointer"<br />EndSection<br /><br />Section "Module"<br /> Load "synaptics"<br /> Load "extmod"<br /> Load "dbe"<br /> Load "glx"<br />EndSection<br /><br />Section "InputDevice"<br /> Identifier "Synaptics Touchpad"<br /> Driver "synaptics"<br /> Option "SendCoreEvents" "true"<br /> Option "Device" "/dev/input/mice"<br /> Option "Protocol" "auto-dev"<br /> Option "SHMConfig" "true"<br /> Option "LeftEdge" "10"<br /> Option "RightEdge" "1200"<br /> Option "TopEdge" "10"<br /> Option "BottomEdge" "370"<br /> Option "FingerLow" "10"<br /> Option "FingerHigh" "20"<br /> Option "MaxTapTime" "180"<br /> Option "MaxTapMove" "220"<br /> Option "SingleTapTimeout" "100"<br /> Option "MaxDoubleTapTime" "180"<br /> Option "LockedDrags" "off"<br /> Option "MinSpeed" "1.10"<br /> Option "MaxSpeed" "1.30"<br /> Option "AccelFactor" "0.08"<br /> Option "TapButton1" "1"<br /> Option "TapButton2" "3"<br /> Option "TapButton3" "2"<br /> Option "RTCornerButton" "0"<br /> Option "RBCornerButton" "0"<br /> Option "LTCornerButton" "0"<br /> Option "LBCornerButton" "0"<br /> Option "VertScrollDelta" "20"<br /> Option "HorizScrollDelta" "50"<br /> Option "HorizEdgeScroll" "0"<br /> Option "VertEdgeScroll" "0"<br /> Option "VertTwoFingerScroll" "1"<br /> Option "HorizTwoFingerScroll" "1"<br />EndSection<br /><br />Section "InputDevice"<br /> Identifier "Keyboard0"<br /> Driver "kbd"<br /> Option "XkbModel" "pc105"<br /> Option "XkbLayout" "us"<br />EndSection<br /><br />Section "Device"<br /> Identifier "ATI Technologies Inc M56P [Radeon Mobility X1600]"<br /> Driver "radeon"<br /> Option "backingstore" "true"<br /> Option "RenderAccel" "true"<br /> Option "AccelMethod" "EXA"<br /> Option "Monitor-LVDS" "Internal Monitor"<br /> Option "Monitor-DVI-0" "External DVI"<br /> BusID "PCI:1:0:0"<br />EndSection<br /><br />Section "Monitor"<br /> Identifier "Internal Monitor"<br /> HorizSync 30.0 - 110.0<br /> VertRefresh 50.0 - 150.0<br /> Option "DPMS"<br />EndSection<br /><br />Section "Monitor"<br /> Identifier "External DVI"<br /> Modeline "1024x768_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 <br />1060 -HSync +Vsync<br /> Option "Enable" "true"<br />EndSection<br /><br />Section "Screen"<br /> Identifier "Screen0"<br /> Device "ATI Technologies Inc M56P [Radeon Mobility X1600]"<br /> DefaultDepth 24<br /> SubSection "Display"<br /> Depth 24<br /> Virtual 2720 1924 # <--- This is the newly added entry<br /> EndSubSection<br />EndSection<br /><br />Section "DRI"<br /> Mode 0666<br />EndSection<br /></span></span><br /><br />Alex Deucher on the Xorg mailing list was able to help me:<br /><pre>><i> > > If you are using F10 with kernel modesetting (KMS) it doesn't have the<br /></i>><i> > > proper quirks do deal with the broken connector table on the macbooks.<br /></i>><i> > > I think the non-KMS code shipped with F10 should have the proper<br /></i>><i> > > quirk handling, if not, you may need to upgrade your ddx.<br /></i></pre><br />I did a workaround and used the "nomodeset" kernel parameter option on kernel command line in grub.conf. So now, the display wakes up when Gnome starts.<br /><br />Hooray!<br />TAG<br /><br /><span style="font-weight: bold;">Xorg/Xrandr References</span><br /><a href="http://lists.freedesktop.org/mailman/listinfo/xorg">Xorg Info Page</a><br /><a href="http://www.thinkwiki.org/wiki/Xorg_RandR_1.2">XRandr Wiki</a><br /><a href="http://blogs.sun.com/charliebrown/entry/opensolaris_on_macbook_pro_meet">Open Solaris on MacBook Pro</a><br /><a href="http://wiki.debian.org/XStrikeForce/HowToRandR12">XRandr on Debian</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-3606147698799501697?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-20367115209481380482009-03-07T18:56:00.010-05:002009-03-08T16:30:37.403-04:00dual boot: macbook pro and fedora 10Lately, I've been preparing a talk on Linux video production in linux that I will be giving at the end of April. More or less, it will be a technology demo that shows how to accomplish various video related tasks in Linux:<br />-capturing a video (acquisition)<br />-importing the output from the camera via firewire<br />-basics of file formats<br />-editing<br />-rendering<br />-scripting<br />-saving to a final destination (iPod/DVD/Vimeo)<br /><br />So there will be a lot of ground to cover in the hour or so I will be speaking. I considered the mechanics of my presentation and first thought it would be cool to use my JVC HD10U to capture video of the conference which I'd then edit in <a href="http://cvs.cinelerra.org">Cinelerra</a>. I had <a href="http://fedoraproject.org">Fedora 10</a> already running in a virtual machine via VMware Fusion on my <a href="http://www.amazon.com/gp/product/B0006HU56Q?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B0006HU56Q">MacBook Pro 2.33Ghz Intel Core 2 Duo</a>. <br /><br />This method posed one big hurdle: VMware does not support firewire. VMware supports USB, but my camera only transmits high def video over firewire. Thus, I would not be able to capture live video from the camera during the talk. Conceivably, I could use a USB camera, but the quality would be so piss poor as to be embarrassing. So the VMware solution was nixed. The best solution was to dual boot my MacBook. I had my marching orders: I had to figure out how to dual boot my <a href="http://www.amazon.com/gp/product/B0006HU56Q?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B0006HU56Q">MacBook</a>.<br /><br />As expected, I hit a few speed bumps along the way, as the TechAnswerGuy always does. And as usual, you get to learn from my mistakes. Here we go..<br /><br /><span style="font-weight: bold;">Summary</span><br />Here was the high level plan:<br />1) upgrade my system drive to a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822148336&Tpk=7200%20rpm%20seagate%20momentus%20laptop%20320gb">320GB 7200RPM Seagate Momentus</a><br />I was running out of space on the original 120GB drive, so this would be fun.<br />2) partition that fat new system drive to have a 240GB partition for Mac OSX and leave the 60GB unused space for Fedora<br />3) use <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper</a> to backup all important files to the Mac partition<br />4) use either <a href="http://www.apple.com/macosx/features/bootcamp.html">Boot Camp</a> or <a href="http://refit.sourceforge.net/">rEFIt</a> to present a nice dual boot menu when the MacBook boots<br />5) configure the Fedora 10, x86-64 instance with a working copy of <a href="http://cvs.cinelerra.org/">Cinelerra</a>, dvgrab and all the media goodies necessary to make a slam-bang presentation come alive<br /><br /><span style="font-weight: bold;">Devil in the Details</span><br />In order to upgrade my system drive, I needed to migrate the data from the old drive to the new drive. Lucky for Mac users, David Nanian has written a wonderfully simple app called <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper</a> that creates bootable backups of Mac system drives. I prefer the word clone, as it refers to the fact that the backup also makes the drive bootable. Semantics aside, the result is the same. <br /><br />Since my system drive is the drive that came installed in the MacBook, I needed to hook up the new <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822148336&Tpk=7200%20rpm%20seagate%20momentus%20laptop%20320gb">320GB Seagate</a> I had bought. This was done using a very neat little device, a non enclosed disk enclosure called the <a href="http://www.amazon.com/gp/product/B001A4HAFS?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B001A4HAFS">Thermaltake BlacX eSATA Hard Drive Docking Station</a><img src="http://www.assoc-amazon.com/e/ir?t=crazmuleprod-20&l=as2&o=1&a=B001A4HAFS" alt="" style="border: medium none ! important; margin: 0px ! important;" border="0" height="1" width="1" /> that I had bought at the same time for this express purpose.<br /><br /><span style="font-weight: bold;">Thermaltake BlacX..Sweet!</span><br />What a simple, easy little device to use! It is like a little USB disk drive bucket for both 2.5" and 3.5" disks. You just insert a disk connector side down into this bad boy, plug it in via USB into your PC or MAC, turn it on and voila, instant access to your storage! No fussing with screws or metal sleeves. It's cheap too, low $40s. After using enclosures for years, it is nice to not have to pick up a screwdriver to get access to my storage.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bcLw_LVf5nA/SbQkGtbtnhI/AAAAAAAAA3E/JxQUhIDUv8g/s1600-h/new.jpg"><img style="cursor:pointer; cursor:hand;width: 400px; height: 268px;" src="http://2.bp.blogspot.com/_bcLw_LVf5nA/SbQkGtbtnhI/AAAAAAAAA3E/JxQUhIDUv8g/s320/new.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5310909558270303762" /></a><br /><br />Once I plugged in the new drive into the BlacX and turned it on, it was time to 1) partition the empty drive and 2) do the SuperDuper backup. Partitioning the drive with the OSX Disk Utility was fairly easy. I accepted the defaults for the partition:<br />* Mac OS Extended partition (Journaled)<br />* install Mac OS 9 drivers<br /><br /><span style="font-weight: bold;">Partition Hell</span><br />Of the 300GB usable out of the drive, I allocated 240GB in the Mac partition and 60GB Free Space to land my Fedora 10 system. One very important thing that I needed to select is under Options:<br />select <a href="http://en.wikipedia.org/wiki/GUID_Partition_Table">GUID Partition Table</a>. Initially, I had taken the defaults settings and the defaults create a drive that uses the older <a href="http://en.wikipedia.org/wiki/Apple_Partition_Map">Apple Partition Map</a> drive partitioning scheme:<br /><img src="http://www.macintouch.com/leopard/graphics/apm.png"><br /><br />Do NOT use APM because you will get errors in both <a href="http://www.apple.com/macosx/features/bootcamp.html">Boot Camp</a> and <a href="http://refit.sourceforge.net/">rEFIt</a>. The Boot Camp error went something like this:<br /><span style="font-size:85%;"><span style="font-family:courier new;"><span style="font-weight: bold;">Startup disk cannot be partitioned or restored to a single partition.</span> </span><br /><span style="font-family:courier new;">Backup the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) Volume.</span></span><br /><br />The above error is very misleading, because when you look at the format of your partition, the partition is formatted in the correct way. But at the bottom of Disk Utility's Partition screen for the drive, the information about the drive will be listed and the key piece is "Partition Map Scheme". If Apple Partition Map is there, you won't be able to use Boot Camp or rEFIt. In my case, I had to repartition the new drive again to create a partition that had a Partition Map Scheme of GUID Partition Table. Here's a short guide that explains <a href="http://www.macosxhints.com/article.php?story=200710If%20anyone%202511133285">how to convert a drive from APM to GUID</a>. <br /><br />Long story short, you'll have to blow away whatever is on the disk to do the conversion. So be advised.<br /><br /><span style="font-weight: bold;">SooperDooper Indeed!</span><br />Once I had resolved the Partition Map problem, I moved onto backing up my sensitive data to the new drive with SuperDuper. There are a number of guides out there and <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper</a> is really easy to use. It took about three hours to copy 100GB of data from my currently internal old system drive to the new 320GB, 7200RPM hard drive that was plugged into the Thermaltake.<br /><br /><span style="font-weight: bold;">Quid Pro Quo</span><br />The next step was to take apart the MacBook and switch out the old drive for the new. This was non-trivial, required a delicate touch and took about an hour.<br /><a href="http://www.extremetech.com/article2/0,2845,2119529,00.asp">http://www.extremetech.com/article2/0,2845,2119529,00.asp</a><br /><br /><span style="font-weight: bold;">rEFIt</span><br />As I am all for open source solutions, I decided to use <a href="http://refit.sourceforge.net/">rEFIt</a> as my boot manager. rEFIt also provides a clean way to install another OS. <a href="http://refit.sourceforge.net/myths/">In point of fact</a>, you don't need rEFIt to boot into a second operating system on your MacBook. Simply hold down the Option button as your MacBook is booting, and you will see OSX's built in system volume chooser. <br /><br />Once I installed rEFIt, I rebooted the system and I saw the rEFIt boot manager appear. I booted a second time and inserted my Fedora 10, x86-64 install DVD and when the rEFIt boot manager appeared, I now had a second choice appear in the menu. That of Tux!<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SbQjOl4HA3I/AAAAAAAAA28/__tIA7A_Jnc/s1600-h/screen2.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SbQjOl4HA3I/AAAAAAAAA28/__tIA7A_Jnc/s400/screen2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5310908594169250674" /></a><br /><br /><span style="font-weight: bold;">Familiar Territory</span><br />After that, the Fedora install process was the usual. One note: make sure to look at the disk properties in the disk configuration section of the install. Even though Fedora deselects any Mac partitions, it is good to double check this. The Fedora installer make good choices for the partitioning, given that my newly installed system disk in the Mac was found as /dev/sda:<br />* Fedora automatically deselected the first two partitions in /dev/sda as they were Mac partitions<br />* Fedora correctly assigned /dev/sda3 as the boot partition<br /><br />Nice. After confirming Fedora's correct selected defaults for the partitioning layout, I then selected the base installation plus Developer Tools. This selection, plus the dependencies for Cinelerra build resulted in about 5.1GB used on the disk. Not too porky. I went to breakfast and the install finished in about 30 minutes.<br /><br />After the system restarted, I found some troubles with the Mac's touchpad. I resolved them with the synaptics driver and some xorg.conf config, but I will detail that in a second post.<br /><br />I will try to fill in some of the details of this long winded post with pictures to break up the monotony of the text.<br /><br />TAG<br /><br />Other References<br /><a href="http://www.macgeekery.com/tips/cli/nondestructively_resizing_volumes">http://www.macgeekery.com/tips/cli/nondestructively_resizing_volumes</a><br /><a href="http://ubuntuforums.org/archive/index.php/t-766172.html">http://ubuntuforums.org/archive/index.php/t-766172.html</a><br /><a href="http://http://www.shirt-pocket.com/forums/showthread.php?t=3282">http://www.shirt-pocket.com/forums/showthread.php?t=3282</a><br /><a href="http://forum.onmac.net/showthread.php?t=2793">http://forum.onmac.net/showthread.php?t=2793</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-2036711520948138048?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-33929749689635146242009-02-22T20:47:00.010-05:002009-02-23T11:25:44.299-05:00extending a logical volume in FedoraI have a Fedora 10, x86-64 installation running under VMware Fusion on my Mac. Today, I ran out of disk space on my root partition. My root partition sits on a logical volume. In the "df" output below, note that I only have 92MB left on my / drive:<br /><span style="font-size:85%;"><span style="font-family:courier new;">[root@ogre ~]# df -h</span><br /><span style="font-family:courier new;">Filesystem Size Used Avail Use% Mounted on</span><br /><span style="COLOR: rgb(255,0,0);font-family:courier new;" >/dev/mapper/VolGroup00-LogVol00 5.7G 5.4G 92M 99% /</span><br /><span style="font-family:courier new;">/dev/sda1 190M 30M 151M 17% /boot</span><br /><span style="font-family:courier new;">tmpfs 543M 0 543M 0% /dev/shm</span><br /><span style="font-family:courier new;">/dev/sr0 96M 96M 0 100% /media/GParted-live</span></span><br /><br />Oh no!<br /><br /><span style="FONT-WEIGHT: bold">Research Necessary</span><br />Now, I haven't worked with logical volumes in quite some time, so I had to do a bunch of reading to figure out what the heck to do. These documents were of immeasurable help:<br /><a href="http://www.howtoforge.com/linux_lvm">A Beginner's Guide to LVM</a><br /><a href="http://onlytalkingsense.wordpress.com/2007/12/27/vmware-fusion-expanding-a-disk-2/">VMware Fusion - Expanding a Disk</a><br /><a href="http://communities.vmware.com/servlet/JiveServlet/previewBody/4900-102-2-3019/Resizing%20LVM%20Volumes%20in%20Linux.pdf;jsessionid=9DC6B8A9615CEBD28FE94412BA638CE1">Resizing LVM Volumes in Linux</a><br /><br /><span style="FONT-WEIGHT: bold">Summary</span><br />In a nutshell, here are the steps necessary to expand the amount of space in your logical volume on Fedora. The first step is the allocation of new space in the context of VMware, but you could easily substitute the installation of a new hard drive:<br />1) In VMware Fusion, under Virtual Machine -> Settings -> Hard Disk, expand the size of your disk to the desired amount. I increased my disk space allocation from 8GB to 10GB:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bcLw_LVf5nA/SaIDiYqAIVI/AAAAAAAAA2g/pmphKjPKlhI/s1600-h/vmwareFusionResizeDisk.jpg"><img id="BLOGGER_PHOTO_ID_5305807200264921426" style="WIDTH: 400px; CURSOR: pointer; HEIGHT: 294px" alt="" src="http://2.bp.blogspot.com/_bcLw_LVf5nA/SaIDiYqAIVI/AAAAAAAAA2g/pmphKjPKlhI/s400/vmwareFusionResizeDisk.jpg" border="0" /></a><br /><br />2) Make a new partition using unallocated space<br />3) Create a new physical volume from the new partition that was just created<br />4) Extend the volume group into the new physical volume that was just created<br />5) Note the amount of free space in the volume group<br />6) Extend the amount of space in the logical volume using the value of free space<br />7) Resize the filesystem on the logical volume<br />8) Note the increased available space in the filesystem on the logical volume<br />9) Drink beer, you've earned it!<br /><br /><span style="FONT-WEIGHT: bold">Details</span><br /><span style="font-size:85%;"><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#2) MAKE A NEW PARTITION USING UNALLOCATED SPACE</span><br /><span style="font-family:courier new;">########## </span><br /><span style="font-family:courier new;">[root@ogre ~]# parted</span><br /><span style="font-family:courier new;">GNU Parted 1.8.8</span><br /><span style="font-family:courier new;">Using /dev/sda</span><br /><span style="font-family:courier new;">Welcome to GNU Parted! Type 'help' to view a list of commands.</span><br /><span style="font-family:courier new;">(parted) print </span><br /><span style="font-family:courier new;">Model: VMware, VMware Virtual S (scsi)</span><br /><span style="font-family:courier new;">Disk /dev/sda: 10.7GB</span><br /><span style="font-family:courier new;">Sector size (logical/physical): 512B/512B</span><br /><span style="font-family:courier new;">Partition Table: msdos</span><br /><br /><span style="font-family:courier new;">Number Start End Size Type File system Flags</span><br /><span style="font-family:courier new;">1 32.3kB 206MB 206MB primary ext3 boot </span><br /><span style="font-family:courier new;">2 206MB 8587MB 8382MB primary lvm </span><br /><br /><span style="font-family:courier new;">(parted) mkpart primary 8588 10700</span><br /><span style="font-family:courier new;">(parted) print </span><br /><span style="font-family:courier new;">Model: VMware, VMware Virtual S (scsi)</span><br /><span style="font-family:courier new;">Disk /dev/sda: 10.7GB</span><br /><span style="font-family:courier new;">Sector size (logical/physical): 512B/512B</span><br /><span style="font-family:courier new;">Partition Table: msdos</span><br /><br /><span style="font-family:courier new;">Number Start End Size Type File system Flags</span><br /><span style="font-family:courier new;">1 32.3kB 206MB 206MB primary ext3 boot </span><br /><span style="font-family:courier new;">2 206MB 8587MB 8382MB primary lvm </span><br /><span style="font-family:courier new;">3 8587MB 10.7GB 2113MB primary </span><br /><br /><span style="font-family:courier new;">(parted) quit</span><br /><span style="font-family:courier new;">Information: You may need to update /etc/fstab. </span><br /><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#3) CREATE A NEW PHYSICAL VOLUME FROM THE NEW PARTITION THAT WAS JUST CREATED</span><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">[root@ogre ~]# lvm</span><br /><span style="font-family:courier new;">lvm> pvcreate /dev/sda3</span><br /><span style="font-family:courier new;">Physical volume "/dev/sda3" successfully created</span><br /><span style="font-family:courier new;">lvm> pvs</span><br /><span style="font-family:courier new;">PV VG Fmt Attr PSize PFree </span><br /><span style="font-family:courier new;">/dev/sda2 VolGroup00 lvm2 a- 7.78G 32.00M</span><br /><span style="font-family:courier new;">/dev/sda3 lvm2 -- 1.97G 1.97G</span><br /><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#4) EXTEND THE VOLUME GROUP INTO THE NEW PHYSICAL VOLUME THAT WAS JUST CREATED</span><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">lvm> vgextend VolGroup00 /dev/sda3</span><br /><span style="font-family:courier new;">Volume group "VolGroup00" successfully extended</span><br /><span style="font-family:courier new;">lvm> pvs</span><br /><span style="font-family:courier new;">PV VG Fmt Attr PSize PFree </span><br /><span style="font-family:courier new;">/dev/sda2 VolGroup00 lvm2 a- 7.78G 32.00M</span><br /><span style="font-family:courier new;">/dev/sda3 VolGroup00 lvm2 a- 1.94G 1.94G</span><br /><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#5) NOTE THE AMOUNT OF FREE SPACE IN THE VOLUME GROUP</span><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">lvm> vgdisplay VolGroup00</span><br /><span style="font-family:courier new;">--- Volume group ---</span><br /><span style="font-family:courier new;">VG Name VolGroup00</span><br /><span style="font-family:courier new;">System ID </span><br /><span style="font-family:courier new;">Format lvm2</span><br /><span style="font-family:courier new;">Metadata Areas 2</span><br /><span style="font-family:courier new;">Metadata Sequence No 4</span><br /><span style="font-family:courier new;">VG Access read/write</span><br /><span style="font-family:courier new;">VG Status resizable</span><br /><span style="font-family:courier new;">MAX LV 0</span><br /><span style="font-family:courier new;">Cur LV 2</span><br /><span style="font-family:courier new;">Open LV 2</span><br /><span style="font-family:courier new;">Max PV 0</span><br /><span style="font-family:courier new;">Cur PV 2</span><br /><span style="font-family:courier new;">Act PV 2</span><br /><span style="font-family:courier new;">VG Size 9.72 GB</span><br /><span style="font-family:courier new;">PE Size 32.00 MB</span><br /><span style="font-family:courier new;">Total PE 311</span><br /><span style="font-family:courier new;">Alloc PE / Size 248 / 7.75 GB</span><br /><span style="font-family:courier new;"><span style="COLOR: rgb(255,0,0)">Free PE / Size 63 / 1.97 GB</span></span><br /><span style="font-family:courier new;">VG UUID H89xDs-yTqE-y2YZ-ORVq-idgW-HdGf-hHU8m3</span><br /><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#6) EXTEND THE AMOUNT OF SPACE IN THE LOGICAL VOLUME USING THE VALUE OF FREE SPACE</span><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">lvm> lvextend -l+63 /dev/VolGroup00/LogVol00</span><br /><span style="font-family:courier new;">Extending logical volume LogVol00 to 7.75 GB</span><br /><span style="font-family:courier new;">Logical volume LogVol00 successfully resized</span><br /><span style="font-family:courier new;">lvm> lvs</span><br /><span style="font-family:courier new;">LV VG Attr LSize Origin Snap% Move Log Copy% Convert</span><br /><span style="font-family:courier new;">LogVol00 VolGroup00 -wi-ao 7.75G </span><br /><span style="font-family:courier new;">LogVol01 VolGroup00 -wi-ao 1.97G </span><br /><span style="font-family:courier new;">lvm> quit</span><br /><span style="font-family:courier new;">Exiting.</span><br /><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#7) RESIZE THE FILESYSTEM ON THE LOGICAL VOLUME</span><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">[root@ogre ~]# resize2fs /dev/VolGroup00/LogVol00</span><br /><span style="font-family:courier new;">resize2fs 1.41.3 (12-Oct-2008)</span><br /><span style="font-family:courier new;">Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required</span><br /><span style="font-family:courier new;">old desc_blocks = 1, new_desc_blocks = 1</span><br /><span style="font-family:courier new;">Performing an on-line resize of /dev/VolGroup00/LogVol00 to 2031616 (4k) blocks.</span><br /><span style="font-family:courier new;">The filesystem on /dev/VolGroup00/LogVol00 is now 2031616 blocks long.</span><br /><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#8) NOTE THE INCREASED AVAILABLE SPACE IN THE FILESYSTEM ON THE LOGICAL VOLUME</span><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">[root@ogre ~]# df -h</span><br /><span style="font-family:courier new;">Filesystem Size Used Avail Use% Mounted on</span><br /><span style="font-family:courier new;">/dev/mapper/VolGroup00-LogVol00</span><br /><span style="font-family:courier new;"><span style="COLOR: rgb(255,0,0)">7.7G 5.4G 2.0G 74% /</span></span><br /><span style="font-family:courier new;">/dev/sda1 190M 30M 151M 17% /boot</span><br /><span style="font-family:courier new;">tmpfs 543M 0 543M 0% /dev/shm</span><br /><span style="font-family:courier new;">/dev/sr0 96M 96M 0 100% /media/GParted-live</span><br /><br /><span style="font-family:courier new;">##########</span><br /><span style="font-family:courier new;">#9) DRINK BEER!</span><br /><span style="font-family:courier new;">##########</span></span><br /><br />Hooray! Now I won't run out of space in my VM!<br />TAG<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-3392974968963514624?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com2tag:blogger.com,1999:blog-10880212.post-17124762954475486662009-02-22T20:21:00.004-05:002009-02-22T20:32:22.749-05:00vmware tools install in Fedora 10Here are some quick notes to installing VMware Tools in Fedora 10 in Fusion. My particular architecture is x86-64, but these should work for regular x86 installs:<br />1) <span style="font-size:85%;"><span style="font-family: courier new;">yum groupinstall "Development Tools"</span></span><br />2) <span style="font-size:85%;"><span style="font-family: courier new;">yum install kernel-devel* kernel-headers*</span></span><br />3) run <span style="font-size:85%;"><span style="font-family: courier new;">./vmware-install.pl</span></span> as root<br /><br />Also, I had one problem where the kernel-devel* and kernel-headers* package did not match my kernel, which was one revision lower than my installed kernel. The vmware-install.pl program told me this when I tried to run it. The solution to this was to simply update my kernel:<br /><span style="font-size:85%;">yum install kernel</span><br /><br />TAG<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-1712476295447548666?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-82923806891477340722009-02-22T19:41:00.009-05:002009-02-23T09:58:11.279-05:00pulseaudio and Fedora 10 don't get alongWorking with my Fedora 10, x86-64 VM running under Fusion on my MacBook Pro was an exercise in frustration today:<br />- pulseaudio was spitting out noise and I couldn't uninstall it<br />- <a href="http://www.techanswerguy.com/2009/02/vmware-tools-install-in-fedora-10.html">VMware Tools wouldn't compile</a><br />- <a href="http://www.techanswerguy.com/2009/02/extending-logical-volume-in-fedora.html">I was running out of disk space in the VM</a><br /><br /><span style="FONT-WEIGHT: bold">PulseAudio Problem</span><br />The problem with PulseAudio and Fedora 10, x86-64 is that when you use any multimedia application that has sound, the pulseaudio driver just creates noise in your speakers. Also, any video stream associated with the audio stream will be corrupted or at a minimum, sped up or slowed down and generally unwatchable.<br /><br /><span style="FONT-WEIGHT: bold">Solutions that should work, don't</span><br />Under System -> Preferences -> Personal -> Sessions, I unchecked the PulseAudio Sound System. Even with this change, my apps in Gnome kept using Pulse. I'm wondering if this problem is related to Gnome in the last three Fedoras not saving session information properly?<br /><br />Also, reading the man pages for pulse-daemon.conf, pulse-client.conf and pulseaudio wasn't much help as it did not yield a simple solution for disabling it.<br /><br />I couldn't remove pulseaudio, because the beast has hooks into everything:<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ sudo yum remove pulseaudio*<br />compiz-gnome x86_64 0.7.8-7.fc10</span><br /><span style="font-family:courier new;">control-center x86_64 1:2.24.0.1-12.fc10</span><br /><span style="font-family:courier new;">gdm x86_64 1:2.24.0-12.fc10</span><br /><span style="font-family:courier new;">gdm-user-switch-applet x86_64 1:2.24.0-12.fc10</span><br /><span style="font-family:courier new;">gnome-applets x86_64 1:2.24.3.1-1.fc10</span><br /><span style="font-family:courier new;">gnome-panel x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">gnome-session x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">gnome-session-xsession x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">gnome-settings-daemon x86_64 2.24.1-7.fc10</span><br /><span style="font-family:courier new;">gstreamer-plugins-good x86_64 0.10.11-4.fc10</span><br /><span style="font-family:courier new;">libcanberra x86_64 0.10-3.fc10</span><br /><span style="font-family:courier new;">libcanberra-gtk2 x86_64 0.10-3.fc10</span><br /><span style="font-family:courier new;">mencoder x86_64 1.0-0.103.20080903svn.fc10</span><br /><span style="font-family:courier new;">mjpegtools x86_64 1.9.0-0.6.rc3.fc10</span><br /><span style="font-family:courier new;">mjpegtools-gui x86_64 1.9.0-0.6.rc3.fc10</span><br /><span style="font-family:courier new;">mplayer x86_64 1.0-0.103.20080903svn.fc10</span><br /><span style="font-family:courier new;">orca x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">plymouth-gdm-hooks x86_64 0.6.0-0.2008.11.17.3.fc10</span><br /><span style="font-family:courier new;">totem x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">totem-gstreamer x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">totem-mozplugin x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">totem-nautilus x86_64 2.24.3-1.fc10</span><br /><span style="font-family:courier new;">vlc x86_64 0.9.8a-1.fc10</span><br /><span style="font-family:courier new;">vlc-devel </span></span><br /><br /><span style="FONT-WEIGHT: bold">A Working Solution!</span><br />The pulseaudio* removal wasn't going to work, as it was going to remove a helluva lot of dependent programs. However, a different syntax for the removal of pulseaudio seemed to work a little better:<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ sudo yum remove pulseaudio<br /></span></span><br />Without the asterisk (*), yum removed only pulseaudio programs and not any dependencies. So it was just a tweak to the yum remove syntax that did the trick. Thank God. Now my videos don't break up!<br /><br />FYI - As a last resort, if none of these removals work, just rename the binary to something else:<br /><span style="font-size:85%;"><span style="font-family:courier new;">sudo mv /usr/bin/pulseaudio /usr/bin/paudio</span></span><br /><br />That way, the system won't be able to find it. Of course, this isn't the preferred method of disabling pulseaudio!<br />;)<br />TAG<br /><br />Reference<br /><a href="http://forums.fedoraforum.org/showthread.php?t=213711">http://forums.fedoraforum.org/showthread.php?t=213711</a><br />An untested solution:<br /><a href="http://forums.fedoraforum.org/showthread.php?t=206868">http://forums.fedoraforum.org/showthread.php?t=206868</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-8292380689147734072?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-30063253946970975342009-02-20T00:08:00.004-05:002009-02-20T00:14:46.171-05:00smtp mail from evolution to comcastWell, this is completely f'd up. Suddenly, outbound SMTP mail from Evolution on my Fedora 10 install just stopped working. The only thing <a href="http://www.techanswerguy.com/2009/02/pleasure-of-command-line-email.html">I had done was install Alpine</a>, the most recent version of what used to be the Pine command line email program.<br /><br />Digging further, I found <a href="http://www.linuxquestions.org/questions/fedora-35/change-smtp-port-to-587-in-evolution-email-mgr-fedora-10-698627/">this post</a> suggesting that both Compuserve and Comcast have been using port 587 instead of port 25 to receive SMTP email.<br /><br />Thanks Comcast. You just killed more than two hours of my time. You incompetent fools.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-3006325394697097534?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-75390454391429154472009-02-15T20:35:00.010-05:002009-02-18T13:32:54.117-05:00100% cpu on vmware fusion 2.0.2 with Mac OSX 10.5.6This weekend, I installed Fusion 2.0.2 on my MacBook Pro 17" (dual core 2.4Ghz, 2GB RAM) running OSX 10.5.6. I was running an XP SP2 VM using one processor and 512MB. The one dedicated CPU would spike to 100% and my mouse disappeared. Thus, I had to control XP via the keyboard, always an exciting task. Of course, the display was really sluggish <a href="http://communities.vmware.com/message/1172816">as others in this thread</a> have reported. I did try the reinstall of VMware Tools, but that didn't work. Two things in conjunction did work:<br /><br />1) under Settings -> Sharing -> Shared Applications, I disabled "Allow your Mac to open applications in the virtual machine"<br /><br />2) in the same dialog box, select "Never" for "Show running virtual machine applications in the dock". This essentially disables Unity mode for that option.<br /><br /><span style="color:#ff0000;">Update 2009/02/16</span><br />Shutdown your vm and restart Fusion to make sure the changes are effective.<br /><span style="color:#ff0000;">*** end update ***</span><br /><br /><span style="color:#ff0000;">Update 2009/02/18</span><br />I should clarify that my MacBook was upgraded to OSX 10.5 Leopard recently. I believe the DVD upgraded it to 10.5.4, and then I did another interim upgrade via Internet download to 10.5.6<br /><span style="color:#ff0000;">*** end update ***</span><br /><br />When you read the list of caveats in the <a href="http://www.vmware.com/support/fusion2/doc/releasenotes_fusion_201.html">VMware Fusion Release Notes</a>, it is quite a litany of troubles. I guess this is where complexity gets us..too many combinations of guest and host OS versions for the company to adequately QA their products.<br /><br />Unfortunately, it cost me at least two hours of my time today.<br />TAG<br /><br />References:<br /><a href="http://communities.vmware.com/docs/DOC-1110">Beginner's Guide to VMware Fusion</a><br /><a href="http://communities.vmware.com/docs/DOC-1201">Power User's Guide to VMware Fusion</a><br /><a href="http://communities.vmware.com/docs/DOC-7471">Resizing Virtual Disks with Step-by-Step Instructions</a><br /><a href="http://communities.vmware.com/docs/DOC-6263">Run a Virtual Machine at Boot</a><br /><a href="http://pubs.vmware.com/ws6_ace2/wwhelp/wwhimpl/js/html/wwhelp.htm">Workstation 6 Manual</a><br /><a href="http://communities.vmware.com/thread/97712">Modifying Fusion's Network Settings</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-7539045439142915447?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-19810986339839847102009-02-11T09:25:00.010-05:002009-02-11T12:06:10.342-05:00the pleasure of command line emailI don't think there is anything as satisfying as the simplicity of sending an email at the command line. Like so:<br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$ mail -s "short and sweet" cacasododom@gmail.com<br />This is my email.<br />.<br />EOT<br />[sodo@ogre ~]$</span><br /><br /><strong>Simplicity Itself</strong><br />I mean, really, how sweet is that? No opening a big fat email client, no clicking "Compose Email", no clicking into an address textbox field, no surfing through lists of adressees, you get the point. Command line email is simplicity itself. Of course, its simplicity is its drawback..you can't do the fancy stuff. But for simple communications or piping the input of text files into an email and sending it off, command line email can't be beat.<br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$ mail -s "Fedora 10 random lockups" cacasododom@gmail.com </span><br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$</span><br /><br /><strong>Sending Mail Via Comcast</strong><br />Fedora 10's base install comes with "mail". However, you need to tweak your .mailrc file for it to work with your mail provider. In my case, I am on Comcast. Comcast's mail requires your username and password. And of course you need to specify the outbound SMTP server. Finally, I want to set the "From:" address, so replies go to the right place. So my .mailrc file looks like this:<br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$ cat .mailrc </span><br /><span style="font-family:courier new;font-size:85%;">set smtp-auth-user=myaccount </span><br /><span style="font-family:courier new;font-size:85%;">set smtp-auth-password=password </span><br /><span style="font-family:courier new;font-size:85%;">set smtp=smtp.comcast.net </span><br /><span style="font-family:courier new;font-size:85%;">set </span><a href="mailto:from=myaccount@comcast.net"><span style="font-family:courier new;font-size:85%;">from=myaccount@comcast.net</span></a><br /><br />Just put this .mailrc file in your home directory and you should be good to go. Test it by sending a mail from the command line:<br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$ mail -s "test email #1" yourtestemail@mailhost.com < /dev/null </span><br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$</span><br /><br /><strong>Test That This Works</strong><br />After sending your email, you may get a bounce back if something is incorrectly configured. So you may receive a message at the command line:<br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$</span><br /><span style="font-family:courier new;font-size:85%;">You have new mail in /var/spool/mail/root</span><br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$</span><br /><br />Just type "mail" and hit enter. The interactive version of "mail" will start and you'll see a list of mail headers:<br /><span style="font-family:courier new;font-size:85%;">[sodo@ogre ~]$ mail</span><br /><span style="font-family:courier new;font-size:85%;">Heirloom Mail version 12.4 7/29/08. Type ? for help.</span><br /><span style="font-family:courier new;font-size:85%;">"/var/spool/mail/sodo": 2 messages</span><br /><span style="font-family:courier new;font-size:85%;">> 1 Mail Delivery Subsys Fri Feb 6 11:07 253/20968 "Returned mail: see transcript for details" </span><br /><span style="font-family:courier new;font-size:85%;">2 Mail Delivery Subsys Fri Feb 6 11:07 249/20491 "Returned mail: see transcript for details"</span><br /><br />Type the number of the email header (1, 2, 3, etc) to see its contents.<br /><span style="font-family:courier new;font-size:85%;">Message </span><br /><span style="font-family:courier new;font-size:85%;">1:From </span><a href="mailto:MAILER-DAEMON@localhost.localdomain"><span style="font-family:courier new;font-size:85%;">MAILER-DAEMON@localhost.localdomain</span></a><span style="font-family:courier new;font-size:85%;"> Fri Feb 6 11:07:40 2009</span><br /><span style="font-family:courier new;font-size:85%;">Return-Path: <</span><a href="mailto:MAILER-DAEMON@localhost.localdomain"><span style="font-family:courier new;font-size:85%;">MAILER-DAEMON@localhost.localdomain</span></a><span style="font-family:courier new;font-size:85%;">></span><br /><span style="font-family:courier new;font-size:85%;">Date: Fri, 6 Feb 2009 11:07:40 -0500</span><br /><span style="font-family:courier new;font-size:85%;">From: Mail Delivery Subsystem <</span><a href="mailto:MAILER-DAEMON@localhost.localdomain"><span style="font-family:courier new;font-size:85%;">MAILER-DAEMON@localhost.localdomain</span></a><span style="font-family:courier new;font-size:85%;">></span><br /><span style="font-family:courier new;font-size:85%;">To: <</span><a href="mailto:sodo@localhost.localdomain"><span style="font-family:courier new;font-size:85%;">sodo@localhost.localdomain</span></a><span style="font-family:courier new;font-size:85%;">></span><br /><span style="font-family:courier new;font-size:85%;">Content-Type: multipart/report; report-type=delivery-status; boundary="n16G7eTG018842.1233936460/localhost.localdomain"</span><br /><span style="font-family:courier new;font-size:85%;">Subject: Returned mail: see transcript for details</span><br /><span style="font-family:courier new;font-size:85%;">Auto-Submitted: auto-generated (failure)</span><br /><span style="font-family:courier new;font-size:85%;">Status: RO<br /></span><br /><span style="font-family:courier new;font-size:85%;">Part 1:<br /></span><br /><span style="font-family:courier new;font-size:85%;">The original message was received at Fri, 6 Feb 2009 11:07:39 -0500</span><br /><span style="font-family:courier new;font-size:85%;">from localhost.localdomain [127.0.0.1]</span><br /><span style="font-family:courier new;font-size:85%;"><br />----- The following addresses had permanent fatal errors -----<</span><a href="mailto:cacasododom@gmail.com"><span style="font-family:courier new;font-size:85%;">cacasododom@gmail.com</span></a><span style="font-family:courier new;font-size:85%;">> (reason: 554 Blocked by SPAM RBL check senderbase.org orwikipedia.org/wiki/DNSBL)</span><br /><br /><strong>Debug</strong><br />Usually, there will be a very clear indication in the email as to what is going on. Such as in the above email:<br /><span style="font-family:courier new;font-size:85%;">reason: 554 Blocked by SPAM RBL check senderbase.org orwikipedia.org/wiki/DNSBL</span><br /><br />Type "quit" to exit.<br /><br />So that's it. Enjoy your command line email!<br />TAG<br /><br /><br />PS - As shown in the example above, I have been experiencing some random lockups in Fedora 10: <a href="http://forums.fedoraforum.org/showthread.php?t=205950">http://forums.fedoraforum.org/showthread.php?t=205950</a><br />My current workaround is to use the "noapic" command line option. But I will need to further investigate why these lockups just started happening with Fedora 10. They didn't happen with Fedora 9 or 7!<br /></span><span style="font-family:courier new;font-size:85%;"></span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-1981098633983984710?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-16815756249873596082009-02-10T18:10:00.006-05:002009-02-18T22:13:03.758-05:00creating a ramdisk in LinuxSo I have all this extra memory going unused and want to make a really fast drive for video editing.<br /><br />That's how it starts. In the example below, I'll show you the short steps to create a 6GB ramdisk. I'm running Fedora 10, x86-64.<br /><br />1) pass an argument to the kernel<br />This usually involves editing /etc/grub.conf, finding the line beginning with "kernel" and adding the below parameter to it:<br /><span style="font-size:85%;"><span style="font-family:courier new;">ramdisk_size=</span></span><span style="font-size:85%;"><span style="font-family:courier new;">"some size in kilobytes"</span></span><br /><br />For example:<br /><span style="font-size:85%;"><span style="font-family:courier new;">ramdisk_size=6291456</span></span><br /><br />2) reboot<br /><br />3) take a look at your ramdisk on the filesystem<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ dmesg | grep RAMDISK<br />RAMDISK: 37c75000 - 37fef3a0<br />#3 [0037c75000 - 0037fef3a0] RAMDISK ==> [0037c75000 - 0037fef3a0]<br />[sodo@ogre ~]$ ls -lh /dev/ramdisk*<br />lrwxrwxrwx 1 root root 4 2009-02-09 23:15 /dev/ramdisk -> ram0<br />brw-rw---- 1 root disk 1, 0 2009-02-09 23:15 /dev/ram0<br /></span></span><br />Looks like the ramdisk is pointing to /dev/ram0!<br /><br />4) format the ramdisk device as a filesystem<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ mke2fs -m 0 /dev/ram0</span><br /><span style="font-family:courier new;">mke2fs 1.41.3 (12-Oct-2008)</span><br /><span style="font-family:courier new;">Filesystem label=</span><br /><span style="font-family:courier new;">OS type: Linux</span><br /><span style="font-family:courier new;">Block size=4096 (log=2)</span><br /><span style="font-family:courier new;">Fragment size=4096 (log=2)</span><br /><span style="font-family:courier new;">393216 inodes, 1572864 blocks</span><br /><span style="font-family:courier new;">0 blocks (0.00%) reserved for the super user</span><br /><span style="font-family:courier new;">First data block=0</span><br /><span style="font-family:courier new;">Maximum filesystem blocks=1610612736</span><br /><span style="font-family:courier new;">48 block groups</span><br /><span style="font-family:courier new;">32768 blocks per group, 32768 fragments per group</span><br /><span style="font-family:courier new;">8192 inodes per group</span><br /><span style="font-family:courier new;">Superblock backups stored on blocks:</span><br /><span style="font-family:courier new;"> 32768, 98304, 163840, 229376, 294912, 819200, 884736</span><br /><br /><span style="font-family:courier new;">Writing inode tables: done </span><br /><span style="font-family:courier new;">Writing superblocks and filesystem accounting information: done</span><br /><br /><span style="font-family:courier new;">This filesystem will be automatically checked every 37 mounts or</span><br /><span style="font-family:courier new;">180 days, whichever comes first. Use tune2fs -c or -i to override.</span></span><br /><br />4) create a mount point<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ mkdir /mnt/ramdisk</span></span><br /><br />5) mount the ramdisk as a usable filesystem<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ mount /dev/ram0 /mnt/ramdisk</span></span><br /><br />6) check out how much space you have on the filesystem<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ df -m</span><br /><span style="font-family:courier new;">Filesystem 1M-blocks Used Available Use% Mounted on</span><br /><span style="font-family:courier new;">/dev/md0 459121 10491 425309 3% /</span><br /><span style="font-family:courier new;">/dev/md2 469453 413351 32255 93% /mnt</span><br /><span style="font-family:courier new;">/dev/sda1 190 22 159 12% /boot</span><br /><span style="font-family:courier new;">tmpfs 5013 0 5013 0% /dev/shm</span><br /><span style="font-family:courier new;">/dev/ram0 6048 12 6036 1% /mnt/ramdisk</span></span><br /><br />7) copy some files to it<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ ll /mnt/ramdisk/</span><br /><span style="font-family:courier new;">total 4018740</span><br /><span style="font-family:courier new;">drwx------ 2 root root 16384 2009-02-09 23:20 lost+found</span><br /><span style="font-family:courier new;">-rw-rw-r-- 1 sodo sodo 50590800 2009-02-09 23:24 mvi_0703.m2t</span><br /><span style="font-family:courier new;">-rw-rw-r-- 1 sodo sodo 318906280 2009-02-09 23:24 mvi_0705.m2t</span><br /><span style="font-family:courier new;">-rw-rw-r-- 1 sodo sodo 599845208 2009-02-09 23:24 mvi_0706.m2t</span></span><br /><br />Pretty cool.<br /><br />After it seems to be working, I decided to add the few steps necessary to /etc/rc.local, so that my ramdrive can come up on boot:<br /><span style="font-size:85%;"><span style="font-family: courier new;">mke2fs -m 0 /dev/ram0</span><br /><span style="font-family: courier new;">mount /dev/ram0 /mnt/ramdisk</span><br /><span style="font-family: courier new;">chown youruser:youruser /mnt/ramdisk</span></span><br /><br />TAG<br /><br />Reference<br /><a href="http://jayant7k.blogspot.com/2006/08/ram-disk-in-linux.html">http://jayant7k.blogspot.com/2006/08/ram-disk-in-linux.html</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-1681575624987359608?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com2tag:blogger.com,1999:blog-10880212.post-32200377947221536402009-02-03T13:54:00.007-05:002009-02-03T15:32:35.373-05:00handy TOP reference<strong>Top</strong> is a program that monitors the CPU and memory utilization of individual processes on your Unix or Linux machine. The output of top normally defaults to a list of processes sorted from high CPU to low CPU utilization. It is helpful to know some of the commands, so that you can sort through and find specific processes based on memory, status or any number of statistics top has available to it.<br /><br />The command sets listed below were tested in Fedora 10, but vary across distributions. Use the ? or type "h" to get the list of commands specific to your distribution.<br /><br /><strong>default output</strong><br />To run top interactively, just type "top" at a command line and hit enter. It will refresh once every three seconds by default until you quit (press "Q") to exit.<br /><span style="font-family:courier new;font-size:85%;">top - 14:23:03 up 14 days, 4:16, 4 users, load average: 0.25, 0.13, 0.09<br />Tasks: 127 total, 1 running, 125 sleeping, 0 stopped, 1 zombie<br />Cpu(s): 15.8%us, 9.0%sy, 0.0%ni, 74.5%id, 0.0%wa, 0.6%hi, 0.1%si, 0.0%st<br />Mem: 551296k total, 498888k used, 52408k free, 43980k buffers<br />Swap: 2031608k total, 88k used, 2031520k free, 134708k cached<br /><br />PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND </span><br /><span style="font-family:courier new;font-size:85%;">2406 tag 15 0 74868 45m 8860 S 43 8.4 3:58.37 Xorg<br />2541 tag 15 0 68596 17m 8636 S 6 3.3 0:18.07 gnome-terminal<br />18561 tag 15 0 734m 143m 12m S 1 26.6 0:09.36 cinelerra<br />2527 tag 15 0 17804 8992 6532 S 0 1.6 0:13.27 metacity<br />2405 tag 15 0 16636 1652 1080 S 0 0.3 0:06.01 gdm-binary<br />2657 tag 15 0 48260 10m 7788 S 0 1.9 0:22.62 mixer_applet2 </span><br /><span style="font-family:courier new;font-size:85%;">19284</span><span style="font-family:courier new;font-size:85%;"> tag 15 0 2164 1036 796 R 0 0.2 0:00.06 top</span><br /><br />You see the output defaults to a list of processes the length of your terminal window. To shorten this list to a more manageable set of processes, type # or n to limit the number of tasks displayed.<br /><br />To sort the list by a column other than %CPU, type <> to sort the output by the column that is to the left or right of %CPU.<br /><br />To choose a specific column to sort by, press "F" or "O" and select the letter that corresponds to the column you'd like to sort.<br /><br />To reverse the sort, press "R"<br /><br />To toggle columns of data on and off, press "f".<br /><br /><strong>Interactive Mode</strong><br />Here is a list of commands that you can type while in interactive mode:<br /><span style="font-family:courier new;font-size:85%;">f - toggle individual fields on and off<br />F or O - choose a field to sort on<br />?/h - help<br />H - toggle the display of program threads<br />I - toggle IRIX mode<br />K - kill a process<br />M - sort on %MEM<br />N - sort on process ID (PID)<br />P - sort on %CPU<br />R - reverse the sort<br />T - sort on TIME process has been running<br />U - select processes by user<br />#/n - display n number of processes<br />enter - refresh display</span><br /><br /><strong>Process States</strong><br />A process can be in a number of states, shown by the Status column:<br /><span style="font-family:courier new;font-size:85%;">D - uninterruptable sleep<br />R - running<br />S - sleeping<br />T - traced or stopped<br />Z - zombie</span><br /><br /><strong>Command line options</strong><br /><span style="font-family:courier new;font-size:85%;">-d delay in seconds<br />-p display process ID (PID)<br />-H toggle display of threads<br />-i toggle idle processes<br />-n number of iterations before top ends<br />-u monitor by user<br />-v version</span><br /><br />Notes on fields related to memory<br /><span style="font-family:courier new;font-size:85%;">VIRT = total amount of virtual memory used by the task. Includes all code/data/shared libraries and swapped pages<br />VIRT = SWAP + RES<br />SWAP = the swapped out portion of a task's total virtual memory<br />RES = Non-swapped physical memory a task has used<br />RES = CODE + DATA<br />CODE = amount of physical memory devoted to executable code. "text resident set"<br />DATA = amount of physical memory devoted to other than executable code. "data resident set"<br />SHR = amount of shared memory. This reflects the memory that could be potentially shared with other processes.</span><br /><br />On my Fedora 10 machine, I noticed that RES does NOT equal the sum of the text plus data resident sets. Maybe I should file a bug?<br /><br />In any case, that's a synopsis of top.<br /><br />Enjoy,<br />TAG<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-3220037794722153640?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-2671636611136518802009-01-27T14:44:00.011-05:002009-03-01T12:47:45.419-05:00SELinux is preventing npviewer.bin .. unconfined_tI have to say that SELinux on Fedora 10 and media playback via Firefox is just a pain in the ass. At a minimum, SELinux will deny you from listening to audio from YouTube or Vimeo, and at most, will completely lock you out from viewing videos from those sites that use the Flash plugin. <br /><br />In the setroubleshoot message browser, you'll see messages like this:<br /><span style="font-size:85%;"><span style="font-family:courier new;">SELinux is preventing npviewer.bin (nsplugin_t) "destroy" unconfined_t. </span><br /><span style="font-family:courier new;">SELinux is preventing npviewer.bin (nsplugin_t) "getattr" unconfined_t.</span><br /><span style="font-family:courier new;">SELinux is preventing npviewer.bin (nsplugin_t) "read write" unconfined_t. </span><br /><span style="font-family:courier new;">SELinux is preventing npviewer.bin (nsplugin_t) "unix_read unix_write" unconfined_t.</span></span><br /><br />You can always solve this by disabling SELinux entirely. Of course, that's the easy way out, so I figured I'd be a good system administrator and investigate how to allow the Flash plugin to execute while keeping SELinux running. I consulted the Documentation of the Fedora project to find out what the hell to do in order to allow Flash to work in Firefox:<br /><a href="http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385">http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385</a><br /><br /><span style="font-weight: bold;">What To Do</span><br />If you have this problem, you need to resolve it by allowing npviewer.bin to do its thing. Thus, you need to relax the SELinux policies for npviewer.bin. This boils down to a few steps:<br />1) pull out the most recent policy violations in /var/log/messages or /var/log/audit/audit.log<br />2) create a policy exclusion to allow npviewer.bin to run unimpeded by SELinux<br />3) compile the policy as a module<br />4) create a policy package<br />5) load the policy into the kernel<br /><br /><span style="font-weight: bold;">Detail</span><br />1 & 2) audit2allow both pulls out the policy violation information from your log file and formats into a Type Enforcement (.te) file. The Type Enforcement file is the basis for policy exclusions.<br /><br />As my audit log had the SELinux denials listed in it, I ran this command:<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ </span></span><span style="font-size:85%;"><span style="font-family:courier new;">sudo audit2allow -m local -l -i /var/log/audit/audit.log > local.te</span></span><br /><br />The result of that command was the Type Enforcement file. The .te file looks like this:<br /><span style="font-size:85%;"><span style="font-family:courier new;">module local 1.0;</span> <br /><span style="font-family:courier new;">require {</span><br /><span style="font-family:courier new;"> type unconfined_t;</span><br /><span style="font-family:courier new;"> type nsplugin_t;</span><br /><span style="font-family:courier new;"> class sem destroy;</span><br /><span style="font-family:courier new;"> class shm { write unix_read getattr unix_write associate read };</span><br /><span style="font-family:courier new;">}</span> <br /><span style="font-family:courier new;">#============= nsplugin_t ==============</span><br /><span style="font-family:courier new;">allow nsplugin_t unconfined_t:sem destroy;</span><br /><span style="font-family:courier new;">allow nsplugin_t unconfined_t:shm { write unix_read getattr unix_write associate read };</span></span><br /><br />You can see the last few lines look suspiciously like the entries in the setroubleshoot browser, especially the verbs: write, unix_read, getattr, unix_write, associate, read, etc.<br /><br />3) Compile the policy<br />The following command compiles the .te file:<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ checkmodule -M -m -o local.mod local.te<br />checkmodule: loading policy configuration from local.te<br />checkmodule: policy configuration loaded<br />checkmodule: writing binary representation (version 8) to local.mod<br /></span></span><br /><br />4) Create a policy package<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ </span></span><span style="font-size:85%;"><span style="font-family:courier new;">semodule_package -o local.pp -m local.mod</span></span><br /><br />5) Load the policy into the kernel<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ </span></span><span style="font-size:85%;"><span style="font-family:courier new;">semodule -i local.pp</span></span><br /><br />If you try to load the policy as a non-priveleged (not root) user, you get this error:<br /><span style="font-size:85%;"><span style="font-family:courier new;">[sodo@ogre ~]$ </span></span><span style="font-size:85%;"><span style="font-family:courier new;">semodule: SELinux policy is not managed or store cannot be accessed.</span></span><br /><br />These steps should insure that your flash plugin shall run unimpeded on your wonderful new Fedora 10 system!<br /><br />Hooray!<br />TAG<br /><br />Reference<br /><a href="http://docs.fedoraproject.org/selinux-faq-fc5">Fedora Core 5 SELinux FAQ</a><br /><a href="http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385">SELinux: allowing AVS denials</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-267163661113651880?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com4tag:blogger.com,1999:blog-10880212.post-67449171551120762752009-01-20T13:18:00.003-05:002009-01-20T13:34:32.314-05:00sound via RDPI was working today but wanted to listen to Obama's inauguration speech. I noticed my client's (RDP) session was configured to play sound:<a href="http://3.bp.blogspot.com/_bcLw_LVf5nA/SXYXriv4UAI/AAAAAAAAA14/gYKYAwLgrBY/s1600-h/rdpClientSound.jpg"><img style="cursor:pointer; cursor:hand;width: 349px; height: 400px;" src="http://3.bp.blogspot.com/_bcLw_LVf5nA/SXYXriv4UAI/AAAAAAAAA14/gYKYAwLgrBY/s400/rdpClientSound.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5293444448850038786" /></a><br />Under Local Resources, Remote Computer Sound was set to "Bring to this computer."<br /><br />But sound via the terminal services connection was not working. Reading up on this very nice Win2K3 tutorial site:<br /><a href="http://www.visualwin.com/Audio-Mapping/">http://www.visualwin.com/Audio-Mapping/</a><br /><br />I saw that I was missing the server side configuration. What you want to do is open up the Terminal Services Configuration applet (either under Control Panel -> Administration -> Terminal Services Configuration or Start -> Run -> tscc.msc) and select Properties on the RDP-Tcp connection.<br /><a href="http://3.bp.blogspot.com/_bcLw_LVf5nA/SXYYmAfSyEI/AAAAAAAAA2I/-Nt8N0-yhI8/s1600-h/rdpServicesConfiguration.jpg"><img style="cursor:pointer; cursor:hand;width: 400px; height: 137px;" src="http://3.bp.blogspot.com/_bcLw_LVf5nA/SXYYmAfSyEI/AAAAAAAAA2I/-Nt8N0-yhI8/s400/rdpServicesConfiguration.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5293445453265946690" /></a><br /><br />Therein, select the Client Settings tab and under the "Disable the following" section, uncheck Audio Mapping. In order for the new setting to take effect, once you uncheck this setting, you'll have to logoff and log back onto your remote server.<br /><a href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SXYYNOEDC7I/AAAAAAAAA2A/-V1JwyGFMRc/s1600-h/rdpServerSound.jpg"><img style="cursor:pointer; cursor:hand;width: 347px; height: 400px;" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SXYYNOEDC7I/AAAAAAAAA2A/-V1JwyGFMRc/s400/rdpServerSound.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5293445027413035954" /></a><br /><br />Et Voila! You'll have sound through your RDP session! <br /><br />Go Obama!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-6744917155112076275?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-2165306725337494322009-01-17T11:36:00.005-05:002009-01-20T09:56:39.177-05:00VMware clone and IIS 6.0 SSL problemYesterday, we cloned our first virtual machine running Win2K3 that uses IIS 6.0 and runs multiple websites via separate IP addresses. The clone process went smoothly: the new VM was assigned a new IP address and hostname and the IWAM and IUSR accounts and permissions migrated to that new machine name. However, during testing, we encountered a problem with the SecureBindings in the IIS metabase.<br /><br />Because this VM had multiple websites in IIS configured, the SecureBindings setting in the IIS metabase (c:\windows\system32\inetsrv\metabase.xml) kept the old IP address information that was configured in the source VM. I'm not sure if this is caused by VMware or IIS, but the solution is to manually edit SecureBindings in IIS to point the website's SSL to the correct IP.<br /><br /><a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e643878b-67ea-4bf9-a9fd-3245b1baed64.mspx?mfr=true">MS Article on Editing the Metabase</a><br /><br />TAG<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-216530672533749432?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-14204411861653952072008-12-16T14:26:00.005-05:002008-12-16T14:56:53.483-05:00tunneling ssh through proxy serverI needed to create a secure SSH connection to my Fedora box at home. However, I am behind a proxy server at work. In combination with my Fedora virtual machine at work and <a href="http://www.techanswerguy.com/2006/09/yum-through-proxy.html">ntlmaps</a>, the <a href="http://www.agroman.net/corkscrew/">corkscrew program</a> for Linux helped me do this in a quick and easy way.<br /><br />Here is the corkscrew home page:<br /><a href="http://www.agroman.net/corkscrew/">http://www.agroman.net/corkscrew/</a><br /><br />Here is a great instruction set for corkscrew:<br /><a href="http://www.mtu.net/~engstrom/ssh-proxy.php">http://www.mtu.net/~engstrom/ssh-proxy.php</a><br /><br />Now I am able to securely connect and grab files from my home PC. Yeah!<br />TAG<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-1420441186165395207?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-82946373419269188122008-10-29T02:09:00.005-04:002008-10-30T09:37:08.244-04:00helpful svn commandsHere are some useful subversion commands I'd like to remember. But instead, I'll write them down, cause I'm always forgetting.<br /><br />The simplest being the ubiquitous "checkout the latest version of the source", using ffmpeg as the example:<br />svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br /><br />Here's an example of a command to checkout a specific version of code, where "co" is shorthand for "checkout" and "-r" is the parameter to specify a particular revision number:<br />svn co -r 12000 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br /><br />After you've downloaded that version, you can check the date stamps on the files by using the following command. The log option shows you dates/time/version numbers of the files in the svn repository. It sorts the code in the repository by date. I then pipe the output to awk to print only the date column and then remove blank lines with sed:<br />svn log ffmpeg | awk -F"|" '{print $3}' | sed '/^$/d'<br /><br />that's all I have for now. I will update when I have time,<br />sodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-8294637341926918812?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-86120907896389205532008-10-28T14:06:00.013-04:002008-10-29T11:10:30.564-04:00formatted date in Windows scriptI find the output of the full date command in Windows lacking. Thus, I was trying to find a way to date/time stamp a logfile in a Windows batch script.<br /><span style="font-family:courier new;font-size:85%;">C:\WINNT>date /t</span><br /><span style="font-family:courier new;font-size:85%;">Tue 10/28/2008</span><br /><br />I only wanted YYYYMMDD_HHmm, where<br /><span style="font-family:courier new;font-size:85%;">YYYY = four digit year</span><br /><span style="font-family:courier new;font-size:85%;">MM = two digit day</span><br /><span style="font-family:courier new;font-size:85%;">DD = two digit month</span><br /><span style="font-family:Courier New;font-size:85%;">HH = two digit hour</span><br /><span style="font-family:courier new;font-size:85%;">mm = two digit minute</span><br /><br />So, I needed to combine outputs from both the Windows date and time functions.<br /><br />My batch script ended up looking like this:<br /><span style="font-family:courier new;font-size:85%;">set dt=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%</span><br /><span style="font-family:courier new;font-size:85%;">bash "siteBackupAll.sh" | tee log%dt%.txt</span><br /><br />In the example above, the resulting script outputs a logfile named:<br /><span style="font-family:courier new;font-size:85%;">log20081028_1433.txt</span><br /><br />The Windows help for SET is pretty cryptic, much like any Unix man page. You can see all the options for Windows shell programming (variables, operators, expressions, etc) if you type<br /><span style="font-family:courier new;font-size:85%;">SET /?</span><br /><br />at the command prompt.<br /><br />Variable expansion in Windows is a little weird. Here is a snip from the help, but essentially, you can act on the expansion of a variable (ie, pluck parts from the output) by using a numbering scheme that will start counting from the left or right, depending on whether the number you specify is positive (start from left) or negative (start from right). In essence, the numbering is much like any programmatic substr (substring) function:<br /><br /><span style="font-family:courier new;font-size:85%;">May also specify substrings for an expansion. %PATH:~10,5%would expand the PATH environment variable, and then use only the 5characters that begin at the 11th (offset 10) character of the expandedresult. If the length is not specified, then it defaults to theremainder of the variable value. If either number (offset or length) isnegative, then the number used is the length of the environment variablevalue added to the offset or length specified. </span><br /><span style="font-family:courier new;font-size:85%;"></span><br /><span style="font-family:courier new;font-size:85%;">%PATH:~-10%would extract the last 10 characters of the PATH variable. </span><br /><span style="font-family:courier new;font-size:85%;">%PATH:~0,-2%would extract all but the last 2 characters of the PATH variable.</span><br /><br />'sodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-8612090789638920553?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-56670908946775130772008-10-14T10:41:00.006-04:002008-10-14T10:48:44.792-04:00Hacked!This will be a new section on the site that will summarize articles that describe recent exploits that I've noticed occurring on my website. Most of the articles will detail the exploits and how to recognize them. Over time, this post will grow. Pay attention to the date and time of the post to find out when it was last updated.<br /><br /><a href="http://isc.sans.org/diary.html?storyid=4565">ISC: SQL Injection hacks</a><br /><br />'sodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-5667090894677513077?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com2tag:blogger.com,1999:blog-10880212.post-44321134558860072802008-10-04T16:50:00.008-04:002008-10-04T17:13:11.365-04:00vnc on linux won't connect to macI wanted to logon to my Mac via my Fedora 7 installation. Unfortunately, connecting to a mac from a linux box using RealVNC doesn't work:<br /><a href="http://www.realvnc.com/pipermail/vnc-list/2006-March/054423.html">http://www.realvnc.com/pipermail/vnc-list/2006-March/054423.html</a><br /><br />After a bit of Googling, TightVNC seemed to be the ticket. Unfortunately, the VNC and TightVNC libraries conflict:<br /><span style="font-size:85%;"><span style="font-family: courier new;">[root@ogre ~]# rpm -ivh tightvnc-1.3.9-1.i386.rpm </span><br /><span style="font-family: courier new;">Preparing... ########################################### [100%]</span><br /><span style="font-family: courier new;"> file /usr/share/man/man1/vncviewer.1.gz from install of tightvnc-1.3.9-1 conflicts with file from package vnc-4.1.2-20.fc7</span></span><br /><br />Therefore, I yanked out the RealVNC libraries:<br /><span style="font-size:85%;"><span style="font-family: courier new;">[root@ogre ~]# yum remove vnc*</span><br /><span style="font-family: courier new;">Loading "installonlyn" plugin</span><br /><span style="font-family: courier new;">Setting up Remove Process</span><br /><span style="font-family: courier new;">Resolving Dependencies</span><br /><span style="font-family: courier new;">--> Running transaction check</span><br /><span style="font-family: courier new;">---> Package vnc-server.x86_64 0:4.1.2-19.fc7 set to be erased</span><br /><span style="font-family: courier new;">---> Package vnc.x86_64 0:4.1.2-20.fc7 set to be erased</span><br /><span style="font-family: courier new;">---> Package vnc-libs.x86_64 0:4.1.2-19.fc7 set to be erased</span><br /><span style="font-family: courier new;">---> Package vnc-reflector.x86_64 0:1.2.4-3.fc7 set to be erased</span><br /><span style="font-family: courier new;">---> Package vnc-ltsp-config.noarch 0:4.0-3 set to be erased</span><br /><span style="font-family: courier new;">---> Package vnc-libs.i386 0:4.1.2-19.fc7 set to be erased</span></span><br /><br />..downloaded Fedora Core 6 tightvnc rpm from here:<br /><a href="http://www.tightvnc.com/download.html">http://www.tightvnc.com/download.html</a><br /><br />..and installed the Core 6 libraries (though I run Fedora 7) just fine:<br /><span style="font-size:85%;"><span style="font-family: courier new;">[root@ogre ~]# rpm -ivh tightvnc-1.3.9-1.i386.rpm </span><br /><span style="font-family: courier new;">Preparing... ########################################### [100%]</span><br /><span style="font-family: courier new;"> 1:tightvnc ########################################### [100%]</span></span><br /><br />Now my Fedora box can logon to my Mac using TightVNC:<br /><span style="font-size:85%;"><span style="font-family: courier new;">[root@ogre ~]# vncviewer macwired</span><br /><span style="font-family: courier new;"> Connected to RFB server, using protocol version 3.8</span><br /><span style="font-family: courier new;"> Performing standard VNC authentication</span><br /><span style="font-family: courier new;"> Password: </span><br /><span style="font-family: courier new;"> Authentication successful</span><br /><span style="font-family: courier new;"> Desktop name "MACLT"</span><br /><span style="font-family: courier new;"> VNC server default format:</span><br /><span style="font-family: courier new;"> 32 bits per pixel.</span><br /><span style="font-family: courier new;"> Least significant byte first in each pixel.</span><br /><span style="font-family: courier new;"> True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0</span><br /><span style="font-family: courier new;"> Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct</span><br /><span style="font-family: courier new;"> Using default colormap which is TrueColor. Pixel format:</span><br /><span style="font-family: courier new;"> 32 bits per pixel.</span><br /><span style="font-family: courier new;"> Least significant byte first in each pixel.</span><br /><span style="font-family: courier new;"> True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0</span><br /><span style="font-family: courier new;"> Using shared memory PutImage</span><br /><span style="font-family: courier new;"> ShmCleanup called</span></span><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_bcLw_LVf5nA/SOfcTVo4LyI/AAAAAAAAAhw/tMCzDpTImEI/s1600-h/tightvnc.png"><img style="cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_bcLw_LVf5nA/SOfcTVo4LyI/AAAAAAAAAhw/tMCzDpTImEI/s320/tightvnc.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5253409715135196962" width="640"/></a><br /><br />Yeehaw!<br />'sodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-4432113455886007280?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-85188956401604026112008-09-18T12:06:00.006-04:002008-09-20T12:18:30.354-04:00Netgear WNR3500: disappointingHere is my short review of the Netgear WNR3500.<br /><br />I initially purchased a <a href="http://www.amazon.com/gp/product/B00126T6HO?ie=UTF8&tag=crazmuleprod-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B00126T6HO">Netgear WNR3500 </a>as a replacement for my aging <a href="http://www.amazon.com/gp/product/B0000C0XS0?ie=UTF8&tag=crazmuleprod-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B0000C0XS0">Netgear WGT624</a>. Unfortunately, I had two problems, one of them major, necessitating the return of the device: <br />1) poor installation process <br />2) wireless communication drops <br /><br />The installation process took a lot longer than expected: about 1 1/2 hours. It failed twice: once from an older XP notebook PC and second, from a new Vista machine. I could understand from an older notebook, but the install simply failed on the new Vista box. After resetting my network a number of times, the install finall worked from Vista. Resetting the router to its default settings can be a major pain. I learned a few things from this page:<br /><a href="http://vpncasestudy.com/reset.html">http://vpncasestudy.com/reset.html</a><br /><br />Secondly, as I host a website from my wireless PC, the wireless communication drops were unacceptable. I tried three different versions of the firmware with the same result, wireless network drops. As my older Netgear WGT624 worked from the same location (upstairs about 20 feet away from my wirelessly connected MacBook), I have had to rollback to use the WGT624 and return the WRN 3500. Read more about the ongoing drops and DNS proxy errors here: <br /><a href="http://forum1.netgear.com/showthread.php?t=27966&page=3">http://forum1.netgear.com/showthread.php?t=27966&page=3</a><br /><br />On a more positive note, wired connections seemed to work just fine. Also, the administrative interface to the router was 95% the same as my older WGT624, so Netgear did not make me learn new admin commands. <br /><br />However, my two major issues left me with a sour taste in my mouth and disappointed me, given my positive experience with my older <a href="http://www.amazon.com/gp/product/B0000C0XS0?ie=UTF8&tag=crazmuleprod-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B0000C0XS0">Netgear WGT624</a>. Too bad. I was looking forward to blazing RangeMax, 802.11n wireless speeds. What I got was network drops. Blecch!<br /><br />A Bummed Cacasodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-8518895640160402611?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com2tag:blogger.com,1999:blog-10880212.post-49864728639696414192008-09-14T21:47:00.028-04:002008-09-18T11:39:48.085-04:00install and review of Yougle for VMC<span style="FONT-WEIGHT: bold">Background</span><br />One of the major things I wanted to do was integrate all my media as well as Internet TV like Joost, YouTube, Veoh, Brightcove, etc, into Vista Media Center. An industrious programmer from Australia has been working on such a program called Yougle (<a href="http://push-a-button.com/products/youglevista/">http://push-a-button.com/products/youglevista/</a>) that integrates a variety of online video sources, as well as audio sources (like Live365 Internet radio), picture sites (Flickr, of course) and animations. From my perspective, he hits the big one by getting YouTube working within VMC.<br /><br /><span style="FONT-WEIGHT: bold">Review</span><br />The install of the January 2008 build of the software was relatively painless (described in more detail below). Be aware that you will need to install ffdshow for some necessary codecs.<br /><br /><span style="color:#ff0000;">Update 9/17/2008</span><br />The install for the new WIP build seems to hang for about a minute or two on the initial timebar of the install. I then let it sit for those few minutes. The install then continues and installs normally. Not sure what the installer is doing at this point to be hanging like that. If you experience problems, perhaps just let the installer sit for a few minutes to see if that helps. FYI - My box is a P4, 3.2Ghz box w/2GB mem & 500GB SATA internal<br /><br />Another caveat is that since I've installed TV Pack 2008 for VMC, I needed to fake the Yougle installer into thinking I was on an older version of Media Center. TV Pack changes the version (identity) of Media Center from 5.0 to 5.1. If you have TV Pack installed, the thread below shows the registry edit you'll need to make to get this working:<br /><a href="http://push-a-button.com/community/index.php?topic=336">http://push-a-button.com/community/index.php?topic=336</a><br /><br />For video, I've explored YouTube, MSN Soapbox and South Park. Initially, I had some problems with YouTube videos hanging after the first couple of vids loaded. Reading some of the <a href="http://push-a-button.com/community/index.php?board=2.0">Yougle Forums</a>, there is an "embedded" setting within Yougle. Switching to "embedded" seemed to fix the problem. Here is how to tell whether your videos are playing natively or embedded:<br /><a href="http://push-a-button.com/community/index.php?topic=221.0">http://push-a-button.com/community/index.php?topic=221.0</a><br /><br /><span style="color:#ff0000;">Update 9/18/2008</span><br />I also noticed that I lost my sound in Yougle/YouTube for the simple, silly reason that I inadvertantly pressed "mute" on the YouTube flash player. Stupid mistake, but it kept me busy troubleshooting for about 15 minutes.<br /><br />Otherwise, YouTube and MSN are working as advertised. Which is great.<br /><br /><span style="color:#ff0000;">Update 9/17/2008</span><br />Actually, the most stable YouTube player option in Yougle is "YouTube Embedded w/ Minimize". I played around for a few hours last night without losing the YouTube player behind VMC. Awesome!<br /><br />One drawback is that searching YouTube within Yougle doesn't seem to pull up the same results as a YouTube search executed within a browser. The search is based off of YouTube's RSS feeds. Unfortunately, when I used the search function, I couldn't find some of my favorite videos. The developer was kind enough to research this conundrum. Also, when I added South Park as a video source, none of the South Park videos played properly. Specifically, I waited and waited for the embedded player to move from the rotating timer icon to actually start playing the video, but this never happened. A similar thing also happened with the animations. I assume these problems aren't due to a slow Internet connection, as I am hard wired into a 6MB Comcast connection. I will explore these problems later.<br /><br />For audio, Live365 is spotty at best. I could only tune in one out of ten stations that I tried. I tested various Internet radio stations after midnight on Monday morning, but I don't think the timeframe should have any impact. I will explore this more in-depth later.<br /><br />For pictures, the Flickr integration is excellent. High resolution imagery from Flickr looks great on an HDTV.<br /><br />In sum, Yougle isn't perfect, but it is a great start to be able to view YouTube vids in VMC. I'm psyched to start using this on an ongoing basis. Of course, I will update this thread with more information as I go through the discovery process.<br /><br />Kudos to Push-a-Button for some fine work!<br /><br /><span style="FONT-WEIGHT: bold">Installation</span><br />The install process is relatively simple:<br />1) install ffdshow<br />2) install Yougle<br /><br />* if you've installed TV Pack 2008 for VMC, you'll need to make a registry tweak to get Yougle working<br />** note that support for 64-bit Vista is in test mode as of 9/15/2008:<br /><a href="http://push-a-button.com/community/index.php?topic=338.0">http://push-a-button.com/community/index.php?topic=338.0</a><br /><br />Here's a bit more about the install process:<br />1) Install ffdshow<br />- I decided to install the <a href="http://www.afterdawn.com/software/video_software/codecs_and_filters/ffdshow.cfm/rev__610__20061201">latest stable release, from 12/01/2006</a><br />2) Download the older, more stable version of Yougle here:<br /><a href="http://push-a-button.com/downloads/details.php?id=11">http://push-a-button.com/downloads/details.php?id=11</a><br /><br />or download the most recent Work In Progress from the Announcements section on the Forum:<br /><a href="http://push-a-button.com/community/index.php?board=2.0">http://push-a-button.com/community/index.php?board=2.0</a><br /><br />I chose to download the more stable version for now.<br /><br /><br /><strong>ffdshow install process</strong><br />Initial download of v.610 (20061201) here:<br /><a href="http://www.afterdawn.com/software/video_software/codecs_and_filters/ffdshow.cfm/rev__610__20061201">http://www.afterdawn.com/software/video_software/codecs_and_filters/ffdshow.cfm/rev__610__20061201</a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3Jd-z52iI/AAAAAAAAAe8/6Xj9l9hHTxs/s1600-h/ffdshow.jpg"><img id="BLOGGER_PHOTO_ID_5246070657870584354" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3Jd-z52iI/AAAAAAAAAe8/6Xj9l9hHTxs/s320/ffdshow.jpg" width="66%" border="0" /></a><br /><br />Click "Download"<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3JeNKSnII/AAAAAAAAAfE/41TRL8Q7d5g/s1600-h/ffdshow2.jpg"><img id="BLOGGER_PHOTO_ID_5246070661722578050" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3JeNKSnII/AAAAAAAAAfE/41TRL8Q7d5g/s320/ffdshow2.jpg" width="66%" border="0" /></a><br /><br />Run Installer<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3JePiBDQI/AAAAAAAAAfM/VogOpXqi58s/s1600-h/ffdshow3.jpg"><img id="BLOGGER_PHOTO_ID_5246070662358961410" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3JePiBDQI/AAAAAAAAAfM/VogOpXqi58s/s320/ffdshow3.jpg" width="66%" border="0" /></a><br /><br />Accept default directory for install<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3JeexjvtI/AAAAAAAAAfU/WmNHVCpIPKI/s1600-h/ffdshow4.jpg"><img id="BLOGGER_PHOTO_ID_5246070666450681554" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3JeexjvtI/AAAAAAAAAfU/WmNHVCpIPKI/s320/ffdshow4.jpg" width="66%" border="0" /></a><br /><br />Accept default components<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3JeV6rQTI/AAAAAAAAAfc/PjZcStMnaEw/s1600-h/ffdshow5.jpg"><img id="BLOGGER_PHOTO_ID_5246070664073003314" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3JeV6rQTI/AAAAAAAAAfc/PjZcStMnaEw/s320/ffdshow5.jpg" width="66%" border="0" /></a><br /><br />Select Start Menu folder<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3MK8SUdHI/AAAAAAAAAfk/s93KK_KKgqs/s1600-h/ffdshow6.jpg"><img id="BLOGGER_PHOTO_ID_5246073629310219378" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3MK8SUdHI/AAAAAAAAAfk/s93KK_KKgqs/s320/ffdshow6.jpg" width="66%" border="0" /></a><br /><br />Select the default Additional Tasks<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3MK4KW55I/AAAAAAAAAfs/3B_C_Pbd2-I/s1600-h/ffdshow7.jpg"><img id="BLOGGER_PHOTO_ID_5246073628203083666" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3MK4KW55I/AAAAAAAAAfs/3B_C_Pbd2-I/s320/ffdshow7.jpg" width="66%" border="0" /></a><br /><br />Select default speaker setup, unless you have something other than two channel stereo<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3MLCcv5cI/AAAAAAAAAf0/erxCdZYRbb0/s1600-h/ffdshow8.jpg"><img id="BLOGGER_PHOTO_ID_5246073630964573634" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3MLCcv5cI/AAAAAAAAAf0/erxCdZYRbb0/s320/ffdshow8.jpg" width="66%" border="0" /></a><br /><br />Ready to Install!<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3MLGTWHmI/AAAAAAAAAf8/TLrvBuTRvDM/s1600-h/ffdshow9.jpg"><img id="BLOGGER_PHOTO_ID_5246073631998877282" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3MLGTWHmI/AAAAAAAAAf8/TLrvBuTRvDM/s320/ffdshow9.jpg" width="66%" border="0" /></a><br /><br />Installed! Go ahead and click Finish<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3MLWnqDtI/AAAAAAAAAgE/CfYDJ5vc5cM/s1600-h/ffdshow10.jpg"><img id="BLOGGER_PHOTO_ID_5246073636379037394" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3MLWnqDtI/AAAAAAAAAgE/CfYDJ5vc5cM/s320/ffdshow10.jpg" width="66%" border="0" /></a><br /><br /><br /><strong>Yougle install process and registry edit needed with TV Pack 2008</strong><br />Download page<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3NeIK4Q2I/AAAAAAAAAgM/WNy0s6_p0k8/s1600-h/yougle1.jpg"><img id="BLOGGER_PHOTO_ID_5246075058429379426" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3NeIK4Q2I/AAAAAAAAAgM/WNy0s6_p0k8/s320/yougle1.jpg" width="66%" border="0" /></a><br /><br />Click Download<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3NebXk2oI/AAAAAAAAAgU/z_PGQbPqg6U/s1600-h/yougle2.jpg"><img id="BLOGGER_PHOTO_ID_5246075063582907010" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3NebXk2oI/AAAAAAAAAgU/z_PGQbPqg6U/s320/yougle2.jpg" width="66%" border="0" /></a><br /><br />TV Pack 2008 error<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3NeeObV1I/AAAAAAAAAgc/LfAzOOujiBY/s1600-h/yougle3.jpg"><img id="BLOGGER_PHOTO_ID_5246075064349841234" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3NeeObV1I/AAAAAAAAAgc/LfAzOOujiBY/s320/yougle3.jpg" width="66%" border="0" /></a><br /><br />Registry Key for TV Pack 2008..set Ident to 5.0<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3NelMY5MI/AAAAAAAAAgk/m61arL30yLk/s1600-h/yougle4.jpg"><img id="BLOGGER_PHOTO_ID_5246075066220340418" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3NelMY5MI/AAAAAAAAAgk/m61arL30yLk/s320/yougle4.jpg" width="66%" border="0" /></a><br /><br />Once key is edited, restart Yougle setup..now it runs!<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3NehCkCGI/AAAAAAAAAgs/4GxX6EmK53M/s1600-h/yougle5.jpg"><img id="BLOGGER_PHOTO_ID_5246075065105385570" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_bcLw_LVf5nA/SM3NehCkCGI/AAAAAAAAAgs/4GxX6EmK53M/s320/yougle5.jpg" width="66%" border="0" /></a><br /><br />Select default directory for install<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3PRwlNFqI/AAAAAAAAAg0/UTGeUcj49Oc/s1600-h/yougle6.jpg"><img id="BLOGGER_PHOTO_ID_5246077044962170530" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_bcLw_LVf5nA/SM3PRwlNFqI/AAAAAAAAAg0/UTGeUcj49Oc/s320/yougle6.jpg" width="66%" border="0" /></a><br /><br />Vista may show a user account control error message like this one..press Allow!<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3PSPgRVfI/AAAAAAAAAg8/ViGB3T_H5Dw/s1600-h/yougle7.jpg"><img id="BLOGGER_PHOTO_ID_5246077053262976498" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3PSPgRVfI/AAAAAAAAAg8/ViGB3T_H5Dw/s320/yougle7.jpg" width="66%" border="0" /></a><br /><br />Yougle install runs and is finished rather quickly! Click finish.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3PSXYUebI/AAAAAAAAAhE/ohYtNQuAGt4/s1600-h/yougle8.jpg"><img id="BLOGGER_PHOTO_ID_5246077055377111474" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_bcLw_LVf5nA/SM3PSXYUebI/AAAAAAAAAhE/ohYtNQuAGt4/s320/yougle8.jpg" width="66%" border="0" /></a><br /><br />Reset MediaCenter version back to 5.1 in regedit<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3PSXpOW3I/AAAAAAAAAhM/D8R1MRXdQiM/s1600-h/yougle9.jpg"><img id="BLOGGER_PHOTO_ID_5246077055448013682" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_bcLw_LVf5nA/SM3PSXpOW3I/AAAAAAAAAhM/D8R1MRXdQiM/s320/yougle9.jpg" width="25%" border="0" /></a><br /><br />Enjoy!<br />'sodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-4986472863969641419?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-87498878282768204892008-09-11T15:48:00.008-04:002009-04-21T11:34:43.918-04:00command line date time changeHere's another thing I always forget: how to change the date or time at the command line, preferably using the Bourne shell in Linux.<br /><br />Example:<br />To change the date/time on a Linux box to September 10, 2008 at 5:37pm, enter the following:<br /><span style="font-family:courier new;">date 0910173708</span><br /><br />The <em>ordering of the fields is a bit odd</em>, so pay attention.<br /><br />where the date/time format is the following:<br /><span style="font-family:courier new;">MMDDHHmmYY</span><br /><span style="font-family:courier new;">MM - two digit month<br />DD - two digit day<br />HH - two digit hour<br />mm - two digit minute<br />YY - two digit year</span><br /><br />All are zero padded if date/time values are below 10.<br /><br />Changing the date time was never easier!<br /><br />enjoy,<br />sodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-8749887828276820489?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-29010027256475727532008-09-09T16:47:00.003-04:002008-09-09T17:17:57.668-04:00500 errors from IIS and OracleFor the past couple of years, the Microsoft Win2K/Win2K3 website that I support had been plagued with 500 errors and subsequent IIS resets. Our website is a combination of custom ASP and ASP.net code running on 32-bit Windows, connecting via ODBC driver to an Oracle 9.2.0.7 backend on Solaris. The side effect to our customers of IIS blowing up is that for a short period of time (less than an hour, usually), customers would see a number of these 500 server errors from the server that panicked. Usually, this was not much of a problem, as it happened on one or two servers once or twice per day and the number of errors was low. The workaround was to reset IIS.<br /><br />Recently, we added more servers into our web farm and the problem happened more often, with a greater number of 500 errors being spit out when one of these newer, more powerful machines' IIS process loses its mind. So, we contacted Microsoft and used DebugDiag to setup a crash/hang dump to find out what memory threads were in play when IIS died.<br /><br />Sending this information to Microsoft, Microsoft engineers pointed to an interaction between IIS and Oracle. Specifically, there were pointers to the 9.2.0.7 Oracle ODBC driver that we use to connect our web application to our database. In the past, we have had very little luck with Oracle being able to solve any driver related issues for us. But we know that the first thing Oracle Support will ask for is "do you have the latest driver set installed." Knowing that Oracle was going to require this of us, we started the process of upgrading the driver from 9i to 10G (10.2.0.4) in our development environment. More specifically, we needed the following:<br />- the Oracle 10G client (1GB)<br />- the 6810189 patch set for 32-bit Windows (1GB)<br />- the 7218676 patch set for 32-bit Windows (67MB)<br /><br />The install is quite large. Our very basic install took about 500MB of disk space. Once we got the new 10G drivers and patch set installed in development, we put it through a gamut of tests. It seemed to work fine, but development is no substitute for production traffic on a site that gets millions of hits every day. So, we started rolling out the new drivers to the most problematic web servers.<br /><br />The first week was very tense, as we let the drivers cook on one server. Previously, this server blew up at least once or twice a day. With the new drivers in place, two days went by without IIS experiencing a problem. Three days went by. Then an entire week went by without a problem! We were psyched! We started rolling out the driver to the rest of the eighteen web servers, two servers every two days. <br /><br />After a week went by, we could tell that the number of 500 errors and IIS resets were diminishing. After a second week went by, we were about half way through the lot, with every decreasing numbers of 500 errors. Best of all, the boxes that were patched weeks back had not reset themselves. This was unheard of! After using Oracle drivers for eight years, this was the only time in the history of our website that we were not seeing 500 errors! Fabulous!<br /><br />We finished upgrading from 9.2.0.7 to 10.2.0.4 a couple weeks later and are EXTREMELY happy to report that we no longer are experience IIS resets and blasts of 500 errors.<br /><br />Thank you Oracle, for finally fixing this issue!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-2901002725647572753?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-44852660062505457542008-08-17T12:16:00.027-04:002008-09-18T10:19:37.338-04:00performance problems with HD viewing in Media Center resolvedThis is a follow up to my first three posts:<br /><a href="http://www.techanswerguy.com/2008/08/vista-view-saber-da-1n1-i-tuner-and.html">Vista View Saber DA-1N1-I tuner and Media Center</a><br /><a href="http://www.techanswerguy.com/2008/08/vista-ultimate-32-bit-impressions.html">Vista 32-bit, First Impressions</a><br /><a href="http://www.techanswerguy.com/2008/08/choice-of-best-media-center-platform.html">Making Sense of Home Theatre PCs</a><br /><br /><span style="FONT-WEIGHT: bold">Background</span><br />I had quite a battle over the past couple of days. The goal was to get a working Vista Media Center that did not choke while displaying live, HDTV content. First, I have to say that Microsoft has done a kick ass job with Media Center. It has taken a number of years, but the Media Center interface is really slick and easy to use, the content and functionality deep and the possibilities pretty open, given the way they've designed it. You can even download an SDK for it, which is cool.<br /><br />In practice, however, getting Media Center to work on older equipment is challenging and frustrating for the newcomer. The interesting thing is the base system I started with ("started with"..yuk, yuk) was no slouch:<br /><br /><ul><li>Dell 400SC, 3.2Ghz</li><li>2GB PC3200 mem</li><li>128MB ATI All-in-Wonder 9800 Pro AGP 4x card</li><li>120GB 7200RPM IDE system drive</li></ul><br /><span style="FONT-WEIGHT: bold">The Problem</span><br />The main problem was that when I viewed live HDTV channels, I would get drop outs and compression artifacts.<br /><br />As you know, I had already completed the base Vista install, installed a<a href="http://www.amazon.com/gp/product/B000TQ9L9G?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000TQ9L9G">Vista View Saber DA-1N1-I tuner card</a> and layered the latest and greatest Media Center with TVPack update on top of it.<br /><br />There were a couple links to the <strong>Media Center TV Pack Unofficial Download </strong>on <a href="http://www.engadgethd.com/2008/08/06/hands-on-with-the-vista-media-center-tv-pack/3">Engadget's site here</a>. I've plucked out a couple of links to download TV Pack 2008 here, but I'm not sure how long they will be valid:<br /><a href="http://rapidshare.com/files/136020246/MediaCenterTVPack2008-KB953272-x64.zip.html">http://rapidshare.com/files/136020246/MediaCenterTVPack2008-KB953272-x64.zip.html</a><br /><a href="http://www.avsforum.com/avs-vb/showthread.php?s=b523af4d82ccee06f79c49badff6d2a9&p=14451290#post14451290">http://www.avsforum.com/avs-vb/showthread.php?s=b523af4d82ccee06f79c49badff6d2a9&p=14451290#post14451290</a><br /><a href="http://www.mediafire.com/?sharekey=30d15c758a398fcfd2db6fb9a8902bda">http://www.mediafire.com/?sharekey=30d15c758a398fcfd2db6fb9a8902bda</a><br /><a href="http://rapidshare.com/files/138029257/Media_Center_TV_Pack_2008.rar.html">http://rapidshare.com/files/138029257/Media_Center_TV_Pack_2008.rar.html</a><br /><br />The neat thing about <a href="http://www.vistaview.tv/index.php?option=com_docman&task=cat_view&gid=31&Itemid=46">TVPack with the Vista View tuner</a> is that, among many other things it did, was resolve tricky problems with displaying the correct listings in the TV Guide if you have multiple channel sources (ie, cable and antenna signal inputs), as well as add support for clear QAM (<a href="http://en.wikipedia.org/wiki/QAM">quadrature amplitude modulation</a>) channels. QAM channels are the HD channels that a TV provider will send "in the clear" over the cable line. In my case, Media Center sees about 14 clear QAM channels from Comcast.<br /><br /><span style="FONT-WEIGHT: bold">Tuner Setup</span><br />I have a three way splitter in my upstairs loft that splits the cable signal three ways: one to the analog, NTSC connection on the TV tuner card, one to the digital, ATSC connection on the tuner card and one to the cable modem itself. Because I was getting drops, I thought that I was just getting a weak signal. I removed the splitter and plugged the feed directly into the digital connection on the tuner card. No luck, as the signal still broke up.<br /><br /><span style="FONT-WEIGHT: bold">Initial Performance Stats</span><br />Taking a look at the new Reliability and Performance Monitor in Vista (quite nice, really) while an HDTV show was being displayed in MC, I saw that CPU was being driven close to 100% on my hyperthreaded system. Peaking on CPU is never good. I thought the problem could be my video card not offloading enough load from the CPU. Maybe the ATI card was unpowered to the task? I removed it and installed an NVidia 7600GS that I had laying around. Symptoms were the same with the new card.<br /><br />So far, the evidence showed that the problem was not in the source signal or video card since:<br />1) the input source signal was clean<br />2) a capable video card was choking in the same way as an older one<br /><br />Reviewing Performance Monitor, the disk seemed to be quite busy. I assumed this was due to the live tv buffer that MediaCenter keeps while you watch programs. To explain, MediaCenter has the same ability as a regular consumer DVR, in that it buffers live tv in order to allow the viewer to playback the last few minutes of a program. This rewind feature is supported by the system writing huge files to disk.<br /><br />I should have pulled up some disk queue stats to confirm, but I had a gut feeling that the problem was in the disk subsystem. Looking at the disk reads and writes in Performance Monitor, I saw that about 4MB of data were being written to and read from the hard drive every second while an HD program was being shown. My current hard drive was a 120GB IDE. IDE throughput is pretty weak by today's standards. Hmmm..this old drive has to go. So, I was off to the nearest store to get a hard drive.<br /><br /><span style="FONT-WEIGHT: bold">Throwing Money At It Will Solves the Problem!</span><br />*** BEGIN DIVERSION ***<br />In a pinch, Staples is my closest source of computer parts. Of course, it is not the best choice for prices. Oh well, I was on a mission. <a href="http://www.amazon.com/gp/product/B000EY5F5C?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000EY5F5C">Seagate 500GB SATA</a><img style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; MARGIN: 0px; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" height="1" alt="" src="http://www.assoc-amazon.com/e/ir?t=crazmuleprod-20&l=as2&o=1&a=B000EY5F5C" width="1" border="0" />..$130. Eeesh. That is a little too much. I patiently waited for the computer department rep to finish his conversation with another customer. I'm glad I did. I overheard that Staples supported price matching. I scrambled to find a machine with an open internet connection. Finding one, I Googled "site:bestbuy.com seagate 500GB SATA". Lo and behold, they had the very same drive for $90! Great! At the register, the clerk had to confirm the price. I noticed his point of sale system had web browsing directly built in. But he confirmed the price..$40 saved!<br />*** END DIVERSION ***<br /><br />I ran home and installed the drive. Reading through the installation manual, I saw that Seagate has <a href="http://www.seagate.com/www/en-us/support/downloads/discwizard">Disk Wizard</a>, which allows you to format your new drive. It also had an option I hadn't seen before..to clone an older drives' contents onto a newer one. Psych! I was expecting to have to reinstall Vista, but if this Acronis clone software actually worked, I wouldn't have to go through that pain.<br /><br /><span style="FONT-WEIGHT: bold">New Drive Fun</span><br />I installed the drive in the PC and got Disk Wizard running. Selecting the appropriate clone options, clone was to copy the old drives' content, sets the master boot record and reboot. Hitting "go", I saw that the clone ran very quickly, almost too quick, and then asked me to reboot. I figured the process must do the cloning on reboot, but when the box rebooted, the OS did not boot. Oh sh1t. I hope it hadn't blown away my Vista install. Googling for people with similar problems, I learned from someone else's issue that clone changes the master boot record, so my system trying to read off the new disk. Since the clone process didn't go as expected, there was no operating system for the master boot record to access. Luckily, clone did not touch the original system disk, so after unplugging the new one, I was able to verify my base Vista system was still alive.<br /><br />Starting Disk Wizard again, I saw it had a bootable install version of the clone process. Since the initial Vista install process did not work, I thought I'd give this a shot. I burned an ISO to a CD and started up the clone process. This time, I saw progress on the clone procedure meter. It took about 17 minutes to clone 24GB of data from a 120GB IDE to my new 500GB Seagate. After the clone process was complete, the box rebooted. While the box rebooted, I made sure to shut down the box entirely and take the original system disk offline. After doing this, I restarted the system and was overjoyed to see Vista start booting. New drive works with my old install of Media Center! Yay!<br /><br /><span style="FONT-WEIGHT: bold">Did the New Drive Help?</span><br />Moment of truth. I pulled up Media Center with some live HDTV. I still had dropouts even with the new, faster drive. Damn! OK. Since you can't turn off Live TV easily in MediaCenter (why would I want to, with Olympic Volleyball coming up?), I decided to meet the burden head on by using my old IDE RAID card and setup a stripe set of old hard drives. I had two 120GB lying around (the one old system disk plus another), so I installed the card, setup the RAID set in the BIOS and formatted the new RAID set when it came up in Vista. Voila! Lots of fast disk capacity on hand! Now to repoint the destination directory for the live hd temporary files to the RAID set.<br /><br /><span style="FONT-WEIGHT: bold">Move those Temp Files!</span><br />In Media Center, I saw that there was no easy way to turn off the Live TV feature. So I figured the location of the temp file directory was in the registry. Reviewing the Disk statistics of Reliability and Performance Monitor more closely, PerfMon actually shows the location of the directory where disk access (reads and writes) are occurring. Sweet! Looking at the details of the offending process, I saw that this directory was the culprit of most of the reads and writes:<br />C:\Users\Public\Recorded TV\TempRec\TempSBE<br /><br />Cool. I searched on this string in regedit, found the appropriate location:<br />HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Video\Tuners\DVR\IO\Writer<br /><br />Then, I tweaked the values to match a new directory that I setup on the D:. I restarted Media Center for the change to take effect and waited patiently for live HD to come up. Watching it, I saw that HD was definetly smoother, but not perfect. It still hiccupped from time to time. DAMMIT! Looking at the top CPU consumers in Task Manager, I saw that dwm.exe (Desktop Window Manager) kept popping up, albeit with low CPU consumptions of 5-7%. More performance tuning necessary.<br /><br /><span style="FONT-WEIGHT: bold">Optimizing Media Center Performance</span><br />The key to getting Media Center working right is optimizing performance in Vista. Here are a few articles that helped me do that, in order of most useful:<br /><a href="http://www.extremetech.com/article2/0,1558,2110595,00.asp">ExtremeTech article</a><br /><a href="http://www.andrewgrant.org/2008/02/24/how-to-optimize-windows-media-center-on-vista.html">Andrew Grant's blog</a><br /><a href="http://apcmag.com/how_to_improve_the_performance_of_vista_media_center.htm">APCmag.com article</a><br /><a href="http://blog.joshwyse.com/2007/05/hd-video-performance-in-vista-media.html">Jwyse's blog</a><br /><br />Also, the following article has some registry tweaks to get your Media Center setup just the way you like it:<br /><a href="http://www.xpmediacentre.com.au/community/vista-media-center-software/18129-tip-tweaks-tricks-gathered-vista-mce.html">MediaCenter.com.au article</a><br /><br />One feature that I had kept running in Vista was the Aero interface with a sidebar of gadgets (clock, RSS news feed and rotating pictures). Apparently, the process dwm.exe controls the display of these visual effects and gadgets. In Control Panel -> Personalization -> Window Colors and Appearance, I disabled the Aero interface by selecting "Windows Standard" as the color scheme. After the change, I checked live HD. There were less drops, but still an occasional one every fifty seconds or so. Damn! On a hunch, I disabled the RSS news feed that was in the sidebar under the clock. Restarting Media Center, I watched for any live HD dropouts. One minute went by..no problem. Two minutes..no problem. Three minutes..no drops. Awesome! I think I've got the problem licked!<br /><br />Right now, I've had live HDTV (the Olympics) running for four hours. There seems to be a barely noticeable lag sometimes when replaying the live HDTV buffer. I believe this is due, again, to disk access. I may add a third 7200RPM 80GB drive to my stripe set to improve performance. I will let you know how that goes.<br /><br /><span style="FONT-WEIGHT: bold">Conclusions</span><br />In general, if you are skirting the edge of recommended hardware for HD viewing, Media Center seems VERY sensitive to any processes taking up CPU or mouse movements. Disabling any CPU performance hogs is essential in order to have live, HDTV in Vista Media Center run properly on an older system. If I want a perfectly clear HD viewing experience with no dropouts, I will not open ANY programs. Also, I don't have any programs running that update the display, like Task Manager or Performance monitor. In fact, I won't even touch the mouse if I want undisturbed video. Media Center a bit touchy, eh?<br /><br />I assume if I had a new dual or quad core box with a fast CPU, the latest memory, a 1333Mhz front side bus, PCI Express video card and all SATA, I wouldn't have these problems. But I didn't feeling like paying an arm and a leg for a new box. With my trusty old Dell 400SC, I may be able to get by adding a $100 tuner and $100 hard drive only. Time will tell!<br /><br />In sum, once Media Center is running well, it IS pretty sweet. Now to find a usable remote for VMC. Any suggestions?<br /><br />:)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-4485266006250545754?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0tag:blogger.com,1999:blog-10880212.post-83425302433230763212008-08-12T16:58:00.015-04:002008-08-20T09:57:45.113-04:00Vista View Saber DA-1N1-I tuner and Media CenterThis is a follow up to my first two posts:<br /><a href="http://www.techanswerguy.com/2008/08/vista-ultimate-32-bit-impressions.html">Vista 32-bit, First Impressions</a><br /><a href="http://www.techanswerguy.com/2008/08/choice-of-best-media-center-platform.html">Making Sense of Home Theatre PCs</a><br /><br />Last night, I spent a few hours experimenting with Windows Media Center on Vista and the <a href="http://www.engadgethd.com/2008/08/06/hands-on-with-the-vista-media-center-tv-pack/">new TV Pack</a>, with the goal of getting digital cable from Comcast integrated into Media Center. As suggested from the article linked above, I reinstalled Vista (painfully slow). I then installed the TV Pack and associated hotfixes. That day, I had bought a <a href="http://www.amazon.com/gp/product/B000TQ9L9G?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000TQ9L9G">Vista View Saber DA-1N1-I tuner card</a>. It is PCI, to fit in my older Dell 400SC. I let Vista select the driver from the internet and I saw that it found the latest driver.<br /><br />Setup in WMC was straightforward, similar to Ben's experience. I connected the card's NTSC connection to my comcast line. After the requisite asking of where Ilived, downloading of my area's TV guide and inspecting my tuners' connection, WMC got me to the point where I could select my area's cable provider. Since I live in NY Metro, there were about ten choices. I selected Comcast in Jersey City. So sure enough, channels 1-99 on Comcast appeared.<br /><br />I was happy to see I had basic analog connectivity, but wondered where the digital channels went. At the time, I didn't realize that this was regular analog cable from Comcast. I went through the discovery process again, and this time I selected Comcast Digital as my provider. Well, this didn't work, because the cable was plugged into the analog, NTSC connection. In my haste, I hadn't realized that the card I bought is only good for ATSC, over the air HD and NTSC analog cable. It won't get me what I wanted, which was the ability to watch and record unencrypted, clear QAM channels via my Comcast connection. Duh.<br /><br />Taking my idiocy in stride, I moved on to the ATSC output. When I connected my cable connection to ATSC, as expected, WMC didn't find any channels. I thought I might be able to use the cable coming from the back of the PC as an antenna, so I disconnected the opposite end of the cable from the PC (the splitter end), reran the automatic setup and I was nicely surprised to see that the WMC picked up the local over the air HD channel selection, about 14 channels in my case, directly across the river from Manhattan. Performance was a bit choppy, as my signal wasn't very good in my computer closet. I'm sure with a proper antenna, the signal would be great.<br /><br />In both cases, analog cable and over the air, WMC picked the correct guide. The guide picked up all the shows, was really nice to navigate through and had lots of supplemental information. Very slick.<br /><br />Today, I went back to the drawing board and picked up a <a href="http://www.amazon.com/gp/product/B001AZEHD0?ie=UTF8&tag=crazmuleprod-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B001AZEHD0">Hauppauge WinTV HVR-1600 </a>. I'll let you know how this install goes tomorrow.<br /><br />Long story short, though, if you are looking for a card that works for NTSC and ATSC over the air signals out of the box with this latest update for WMC, the Vista View Saber seems to fit the bill.<br /><br /><span style="color:#ff0000;">UPDATE 8/14/2008</span><br />Last Tuesday, VistaView released a QAM patch (a simple registry tweak) for MediaCenter with TVpack to allow the Saber DA-1N1-I to allow you to tune QAM channels on ATSC cable TV: <a href="http://www.vistaview.tv/index.php?option=com_docman&task=cat_view&gid=31&Itemid=46">http://www.vistaview.tv/index.php?option=com_docman&task=cat_view&gid=31&Itemid=46</a><br /><br />I downloaded the patch and rebooted. I split my cable line to go to both the analog NTSC and digital ATSC jacks on the back of the Vista View card. The positive: during the tuner setup, Media Center now sees both the analog tuner and a new digital cable tuner:<br /><br />ViXS PureTV Analog TV Tuner<br />ViXS PureTV ATDC/DVBC Tuner<br /><br />Continuing through the tuner setup, I can select my provider's (Comcast) channel selection and guide. Checking the source of the channels under Guide -> Edit Channels, I get a mix of the OTA HD channels (about 14 channels) on the Digital Cable connection, but the rest (70 or so) are coming through the analog tuner. The digital channels seem to break up a lot. I imagine using an HD antenna instead of the digital cable would help here, since the digital cable is only getting me those 14 channels. If I hook up only one cable to the ATSC input, I only get those 14 channels. I have had no luck seeing any channels I would normally see with the Comcast Motorola box above 99.<br /><br />From the Guide -> Edit channels, I see that most of the available channels that are disabled have padlocks next to them and that the source of them is the digital tuner. I imagine the padlocks mean that they are encrypted.<br /><br />Tonight allowed me to get a bit farther, but am perplexed as to why I'm not seeing any channels above 99. I am a bit of a newbie to this MediaCenter/cable integration stuff. It seems as if Comcast locks everything above 99..not sure right now. Looking at the clear qam guide for my zip code here <a href="https://www.silicondust.com/hdhomerun/lineupui?Cmd=LocationProgramsWeb&Country=US&Postcode=07302">https://www.silicondust.com/hdhomerun/lineupui?Cmd=LocationProgramsWeb&Country=US&Postcode=07302</a>, I notice that the higher range (above 99) channels that I enjoy watching like Military/VH1 classic/Encore/etc are missing from the list. I guess they are not in clear QAM. Maybe I'm just out of luck?<br /><br />So, a bit of progress, a bit of disappointment.<br /><br /><span style="color:#ff0000;">UPDATE 8/15/2008</span><br />One follow up: I'm a bit disappointed in the performance of HDTV in Media Center w/TV Pack. I've got a Dell SC400 (probably four 1/2 years old) P4, 3.2Ghz, 2GB w/120GB IDE drive and ATI all-in-wonder 9800 pro. Not the latest and greatest, sure, but no slouch box either. Viewing standard def, Media Center drives the box to run at 50% CPU without a problem. Running live HDTV (1280x720), MC runs the box to 100%, at which point I get drop outs. Also, I notice SearchIndexer runs constantly, thus sucking up more CPU.<br /><br />Granted, the system is a few years old, but this is unacceptable. I will look for ways to tune or upgrade the system to see if I can relieve the 100% spiking.<br /><br />Andrew Grant has an excellent post on <a href="http://www.andrewgrant.org/2008/02/24/how-to-optimize-windows-media-center-on-vista.html">optimizing Windows Media Center to improve performance</a>. I will try his suggestions out tonight. A more technical article on the same subject is on <a href="http://apcmag.com/how_to_improve_the_performance_of_vista_media_center.htm">APCmag.com</a>.<br /><br /><span style="color:#ff0000;">UPDATE 8/16/2008</span><br />Today, I wasted about an hour tracking this high CPU problem down. I accidentally scheduled a recording and wondered why Media Center Receiver service was taking up so much CPU. This was because it was recording a show and I didn't know it! I went into my Recordings and deleted the scheduled recording.<br /><br /><strong>Reference</strong><br /><a href="http://windowshelp.microsoft.com/Windows/en-US/Help/1ad827fb-c618-4e94-9140-ce0c13122f641033.mspx">Getting Started with Windows Media Center in Vista</a><br /><a href="http://www.microsoft.com/windowsxp/using/mce/expert/hdtv.mspx">Getting Started with HDTV in Media Center</a><br /><a href="http://thegreenbutton.com/blogs/pnear/archive/2006/09/12/202708.aspx">Great intro to channel tweaking in Media Center</a><br /><a href="http://www.microsoft.com/windowsxp/using/mce/expert/elsbree_dec2004.mspx">Tweaking Media Center's HDTV Lineup</a><br /><a href="http://blogs.msdn.com/peterrosser/archive/2006/04/03/MCE-TechTalk-1.aspx">Media Center Receiver Server Technical Discussion</a><br /><br />'sodo<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10880212-8342530243323076321?l=www.techanswerguy.com'/></div>Cacasodohttp://www.blogger.com/profile/05422708734815721628cacasododom@gmail.com0