| BradTrupp.com - Little slices of my life and my projects | BradTrupp.com -- Pages |
| ||
BradTrupp.com -- Pages -- Page 2 - 2007/05/26 - 2007/08/23
Page 2 - 2007/05/26 - 2007/08/23 Mac Mini HTPC - Network Attached Storage (Apple) (2007/08/23) Mac Mini HTPC - Network Attached Storage
My primary systems are still Windows XP and because of that, all my NAS or network attached storage uses SMB protocols for Windows Workgroups. At the moment, I use a Buffalo Linkstation but I plan to set up a spare PC using FreeNas or Ubuntu real soon.
Connecting to the Network for the first time Using the Finder's menu bar, open up the "Go" menu and select "Connect to Server". Enter the server address with the "smb:" prefix (for example smb://nas9/usbdisk1 where //nas9/usbdisk1 is the share name. Enter the workgroup and password information as necessary. Magic will happen and the drive icon should appear on your desktop. Automate the Drive Mount Making the drive mount automatically really should be as simple as dragging the mounted drive icon it to "Login Items" (under Systems Preferences / Accounts ) however this approach never seemed to work for me. I decided to write a short Apple Script to do the mount instead and add the script to my "Login Items" instead.
![]() Basic steps are:
There is a good article on how to automount smb network shares in OSX at Happy Beggar. Add a SymLink to make navigation easier Once the NAS drive was mounting automatically, create a symlink from the network storage to the Movies directory.
To create the symlink --
What's Next? Previous step -- Extending Quicktime with additional Codecs... Next step -- Alternatives to Quicktime and more great software... Mac Mini HTPC - Extend Quicktime with additional Codecs (Apple) (2007/08/03) Mac Mini HTPC - Extend Quicktime with additional Codecs
The Quick and Easy My choice was an all-in-one approach using Perian. Perian bills itself as the swiss-army knife for QuickTime and it is an apt tag line. Perian is a free, open source QuickTime component that adds native support for many popular video and audio formats including AVI, FLV, and DIVX. Find it at http://www.perian.org/.
Perian provides a Quicktime video for complete beginners like myself on how to download and install Perian so instructions are not repeated here. Other Choices You can always install just the codecs you want directly from the manufacturers. For example --
Microsoft and Windows WMV Microsoft also offers a free version of Flip4Mac for playing Windows media files on the Mac. What's Next? Previous step -- Basic Setup and VNC... Next steps -- Network Attached Storage and alternatives to Quicktime... Keyboard Shortcuts for Front Row (Apple) (2007/07/29) Here are some keyboard shortcuts for using Front Row on your Mac Mini.
If you know of any more shortcuts, please let me know. Mac Mini HTPC - Basic Setup and VNC (Apple) (2007/07/27) Mac Mini HTPC - Basic Setup and VNC
OK. So I decided to buy a Mac Mini and hook it up as a HTPC or Home Theatre Personal Computer. The newer Apple TV product can do this but the Mac Mini and the right choices for software make it a much more powerful choice. Basic Setup OK. First step was actually putting together the Mac Mini and learning a little about the operating system. In my case, the "tv" is a two year old Dell w3000 which is a 30" lcd tv with all the usual inputs including DVI so hooking up the Mac Mini was just like hooking up any old computer. I plugged in a usb keyboard and mouse for the time being. Later on, I will pick up some different audio cable so the sound will go both to the tv and to my stereo.
![]() I picked up a Logitech EX110 cordless keyboard and mouse later for about $29. Once everything is set up over the next few weeks, I will be using the Apple remote with Front Row most of the time so the keyboard and mouse will be put away under a coffee table for infrequent use. For other tasks, I will being using remote access software. This is a basic entry level Mac Mini with the 1.66Ghz Intel Core Duo. I ordered it with the memory upgrade to 1 gb from 512 mb and a 80 gb drive instead of the standard 60gb. This was mostly a guess on configuration -- I know more memory is always a good thing -- and the 80gb drive gives me well over 55 gb free space --even though I plan to keep most of my multimedia file on a NAS or network storage system. The First Time... This was my first time using a Mac so it definitely was an bit of an adventure. Run the Software Update a few times to get everything current. You find it by clicking on the little apple on the top left corner. One weird thing is that it wanted me to shut down itunes so it could install an update. Took me a few minutes to figure out how. Right -click in the iTunes icon to get the menu and select "Quit". Why do you want VNC? In my case the mac mini and the tv are one part of my house and my home office is in another. VNC or Virtual Network Computing allows me to control the mac from another computer. Really, it is going to be a lot more convenient to install software, et al, from my desk than sitting on the couch in the living room. This way I can open open multiple browser windows on the main computer at the same time to research how to do things as I play and learn about the mac and its operating system. To steal from Wikipedia for a moment -- In computing, Virtual Network Computing (VNC) is a graphical desktop sharing system which uses the RFB protocol to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.VNC on the Mac Mini I am told that there is a built-in vnc server in the operating system but the research I did indicated that the open source product OSXvnc Vine Server at http://sourceforge.net/projects/osxvnc/ was my best choice. A few tips before installing VNC --
Once you install OSXvnc Vine Server --
Adding a VNC Viewer on Windows My choice for a VNC viewer on my main XP machine is RealVNC at http://www.realvnc.com/. The personal edition for home use is free. I use it at my day job and it works well. Just download the VNC Personal Edition Viewer for Windows Stand-alone Viewer since that is all you will need. What's Next? Next step -- extending Quicktime with additional Codecs... Add another Hard Drive to Ubuntu (Ubuntu) (2007/07/14) Add another Hard Drive to Ubuntu
You just picked up that new hard drive at a bargain price and have installed into your Ubuntu box. The bios see it but nothing else does yet. Install the tools - Gnome Partition Editor Select Add/Remove... under the Applications menu item to open up the "Add/Remove Applications" window. Type in partition or gparted into the search box, press enter, and see what comes up.
![]()
If necessary, change the Show box from "Supported Ubuntu applications" to "All available Applications" and the list should expand. Find ""Gnome Partition Editor"" and select it. Press the "Apply" button. Up comes a confirmation screen to "Apply the following changes". Press the "Apply" button. You will be prompted for your password to perform administrative tasks. Enter it and away we go. Ubuntu will download and install the necessary files. Running Gnome Partition Editor Start up the Gnome Partition Editor. It should be under System / Administration menu. Select the new drive from the drop down list. It should show all drive space as unallocated. Make sure you are looking at the right drive since there is no going back once you start formatting. Click on the "unallocated" partition and the "New" icon should become enabled.
![]()
Click on "New". First prompt is to set the disklabel on the new device -- in my case /dev/sba -- the first SATA drive, as my boot drive is /dev/hda. Click on "New" again and the "Create new Partition" dialog appears. Stick with the defaults "Primary Partition" and "ext3".
![]()
Click on the "Apply" button, verify that you are serious, and "Apply" to start. The Gnome Partition Editor executes the pending operations and formats the new drive. Once all operations have completed successfully, close the pending operations dialog and close Gnome Partition Editor. As my drive was /dev/sda, the new partition is /dev/sda1. I rebooted at this point but it probably is not necessary. Using the Places / Computer menu, you should see the new volume. Click on it to mount it onto the desktop (as /media/disk). At this point, you should be able to browse the disk but likely have no write access. Right-click and select "Unmount Volume" to unmount it. Mounting the new Partition Open a terminal window and enter the following commands -- (1) Create the Mount Point
(2) Back up the /etc/fstab file.
(3) Edit the /etc/fstab file and add the new partition to /etc/fstab. Since the file is owned by "root", we need to use sudo to start an editor.
Add this line to /etc/fstab. Use tab instead of space to separate the various columns.
To save your changes, press Control-X for save, Y to confirm, and then press Enter to exit. (4) We have made changes to the /etc/fstab file, so let ask Ubuntu to mount the drives again
(5)Now give ourselves proper permissions to use the new drive. Assume in this example that my userid is "freddie".
Now the new drive is mounted as /nas2 and is ready to use. One more Thing
Also, as a convenience and ease of use, you can also create a symbolic link (using the ln -s command) on your desktop back to the /nas2 folder. Just click on the new link to open the folder in the default file browser.
Monitor CPU Temperature in Ubuntu (Ubuntu) (2007/07/14) Monitor CPU Temperature in Ubuntu By Brad Trupp (c) 2007 The ability to monitor your CPU temperature and other hardware performance is a good idea. I recently replaced the CPU fan with a quieter one and wanted to make sure that it was keeping things cool enough. The module that monitors all the various sensors on your motherboard is lm-sensors. Installing it is simple enough.
Using Sudo to install lm-sensors Open a terminal window. Enter the command:
Enter your root password and away you go. Configuring lm-sensors It is not going to do much good until you add the appropriate hooks into the system.
Again, in the terminal window, enter the command:
It will as you a bunch of questions that you enter YES to and then shows you a summary of the probes and the findings. It will offer to update /etc/modules automatically and you might as well let it do so otherwise you have to type it in yourself. Restart Ubuntu. Installing a Monitor. Select Add/Remove... under the Applications menu item to open up the "Add/Remove Applications" window. Type in sensors into the search box, press enter, and see what comes up.
![]()
If necessary, change the Show box from "Supported Ubuntu applications" to "All available Applications" and the list should expand. Find ""X Sensors"" and select it. Press the "Apply" button. Up comes a confirmation screen to "Apply the following changes". Press the "Apply" button. You will be prompted for your password to perform administrative tasks. Enter it and away we go. Ubuntu will download and install the necessary files. Once it is installed, just run it. Look under the Applications / System tools menu. It should display all the various sensor measurements that it found sensors for -- voltages, temperatures, fan speeds.
![]()
Watch the displays -- my computer shows me the temperatures when I reboot, and for me, the CPU and Motherboard temperatures appear to be reversed in xsensors. Odd but apparently not that unusual. Play MP3's with Ubuntu (Ubuntu) (2007/07/14) Play MP3's with Ubuntu
Ok. You just done the standard install and everything is just wonderful. As Ubuntu loads, you hear the odd choice of start-up music playing on your speakers and you think - hey! I want to play my tunes. You open up a File Browser, find your mp3's and start your player and you get an error.
![]()
That is because support for MP3's and number of other formats are not installed by default. The reason is licensing restrictions. Many multimedia applications using the GStreamer plug-ins to provide support for the different codecs and additional GStreamer plug-ins is what you need to install. Select Add/Remove... under the Applications menu item to open up the "Add/Remove Applications" window. Type in gstreamer into the search box, press enter, and see what comes up. Lots of applications but not what you are looking for.
![]()
Change the Show box from "Supported Ubuntu applications" to "All available Applications" and the list expands. Select "GStreamer extra plugins" to get support for mp3,sid, mpeg1, AC-3 and more. There will be a pop-up indicating that this is restricted software. Read the terms and click on the OK button to accept (or Cancel if you are feel you are not eligible). Also select the "GStreamer ffmpeg video plugin" if you want to be able to play movies using mpeg, divx, or other formats. Again there will be a popup with the restricted software warning.
![]()
Also select "GStreamer plugins for aac, xvid, mpeg2..." and "GStreamer plugins for mms, wavpack,...". This will give you extreme flexibility in what you can play. Press the "Apply" button. Up comes a confirmation screen to "Apply the following changes". Press the "Apply" button. You will be prompted for your password to perform administrative tasks. Enter it and away we go. Ubuntu will download and install the necessary files.
![]()
Once it finishes, close the "Add/Remove Applications" window and you are ready. Give it a try and enjoy!
UUMerge Command Line Text File Merge (Delphi) (2007/07/01) UUMerge Command Line Text File Merge - Source Code
uuMerge Freeware Edition was a command line utility that can be used either to combine multiple text files into a single text file with a separator line between the contents of each file; or alternatively to process a 'merged' file ( previously created by uuMerge or other processes ) and recreate the multiple files. The original version of uuMerge being written back in 2002 when I could not find a quick and easy way to merge together a bunch of text files so I could edit them as a single file. It is written in Borland Delphi and this final version was compiled with version 7. Using uuMerge Files are separated internally with special delimiter line prefixed by "./ ADD NAME=". This odd choice of delimiters allows the file to be processed by the IBM mainframe utility IEBUPDTE. Alternatively, you can use the '-nice' option to create a '>>>>>>>>>> ' delimiter line instead so it looks nicer for printing. You could also use any text editor to do a global replace of the delimiter text to any string you wish. However you will not be able to use uuMerge to extract files at a later point. Usage: 1. Merge files in a directory to a single file. uumerge -merge indir outfile
2. Restore files. uumerge -extract infile outdir
Notes: Use on text files only - results are unpredictable otherwise.
Here is the source code for your viewing pleasure. uumerge.dpr
code0001.pas
Las Ramblas, Barcelona, Spain, 2007 (2007/05/27) La Rambla or Les Rambles (Catalan) / Las Ramblas (Spanish) is an iconic and busy street in central Barcelona, popular with both tourists and locals alike.... Continue Reading » Montserrat, Spain, 2007 - Page 1 (2007/05/26) Montserrat is a mountain near Barcelona, in Catalonia, in Spain. It is the site of a Benedictine abbey, Santa Mar¡a de Montserrat, which hosts the Virgin of Montserrat sanctuary.... Continue Reading »
|
|