|
At the crossroad of New media, Engineering, Research and Development
|
|
Archive for ‘CLI’ Category
Jul
27
2007
Quickway to check your DNS settings under OSXThis is another CLI command, so get your terminal ready. This gives you a quickway to check the DNS settings on OSX. Now one way is to just cat /etc/resolv.conf , but what if you wanted to see what the system is actually using (not just what it was configured for). Well scutil comes to rescue and gives us an interface to the “dynamic store” data maintained by configd. Here is the command:
Jul
27
2007
OSX Directory Services from Command-lineNew day, new command. dscl is the command in question. It gives you access to Mac OSX’s Directory Services Command Line interface. Very powerful stuff for those of us who like the command line and hate to do the same task a million times. A useful example is the ability to grant Administrator privileges to a user from command line. Normally you would have to pull up System Preferences/Accounts/Click User and check the “Allow user to administrate this computer” box. Well not anymore….Here is how:
There are probably a ton more things you can do with dscl, but that’s beyond the scope of this article (and my knowledge)…..so man dscl and have fun reading. Jul
23
2007
How to set the Boot Volume from CLI in OSXI’ve run into this issue a number of times a year, including today again, and I have to dig up the email I sent to myself last year with the command line in it. If, like us, you have a bunch of headless Xserves and you’re trying to (re)install OSX on them you might have run into this. How the heck do you change the boot volume to the CD/DVD in the drive when you have no keyboard/mouse access or remote desktop? Well turns out it’s quite simple (as usual). Just issue the command below from a ssh session (make sure the install CD/DVD is in the drive first):
You can also set a netboot server as your boot source:
Bless the bless guy for blessing us with the bless tool
- sign up for a account with a real email address. Now go and grab the oldest computer you can find, hookup a wise terminal to it and amaze all your blogging/facebooking/rss’ing friends …..enjoy….. Using hdhomerun_config command you issue the following (after tuning into the channel ofcourse): 1) hdhomerun_config set /tuner0/target none MCast Address is in range of: 224.0.0.0 –> 239.255.255.255 May
28
2007
HDHomeRun: Monitoring Signal Strength from command lineThe Windows GUI version of hdhomerun_config will display the signal strength and signal quality updating every second. Under linux or osx you can use “watch” with hdhomerun_config: (If you have more than one HDHomeRun then specify the device ID rather than FFFFFFFF) May
28
2007
HDHomeRun: Automatic Channel Scan from command lineThe CLI version of hdhomerun_config supports running an automatic channel scan. The CLI version of hdhomerun_config can be downloaded from: Usage: hdhomerun_config FFFFFFFF scan For example: OTA ATSC: Digital Cable: May
28
2007
HDHomeRun: To save the RAW TS stream to diskTo save a 30 second unfiltered clip of a broadcast stream: 1) Use HDHomeRun Config (GUI) to choose the physical channel. 2) Open a cmd prompt and change into the HDHomeRun program directory: 3) Set the filter: 4) Save the stream to disk: 5) Wait 30 seconds and stop the stream by pressing Ctrl-C. May
28
2007
HDHomeRun: Linux/OSX command line reference for hdhomerun_configYou use hdhomerun_config to manually configure HDHomeRun to stream video to a PC running VLC… You will need: VLC – http://www.videolan.org/vlc/ 1) Discover HDHomeRun Run “hdhomerun_config discover” to find the HDHomeRun units on the local network. If you have more than one HDHomeRun on your network then replace the wildcard FFFFFFFF Device ID in the examples with the Device ID of the HDHomeRun you wish to control. 2) Run a channel scan hdhomerun_config FFFFFFFF scan /tuner0 3) Set the channel Antenna: Note that the channel is the physical ATSC channel, not the channel advertised by the TV station. Antennaweb.org is a good site for determining which stations are nearby and what physical channels they operate on: http://www.antennaweb.org/aw/Address.aspx Check the signal strength using the following command: 4) Select the program number hdhomerun_config FFFFFFFF get /tuner0/streaminfo hdhomerun_config FFFFFFFF set /tuner0/program 5) Launch VLC and open network stream From the GUI: 6) Set the target for the video stream hdhomerun_config FFFFFFFF set /tuner0/target Note that the target setting is automatically cleared if the target machine is not listening on the specified port. ie if VLC is not running or you quit VLC. Troubleshooting Check the signal strength using the following command: Check the target using the following command: If it reports “none” then most likely the pc was not listening on the target port and the ip/port was automatically cleared. Double check the following and then set the target again: If the target is correct and the LED on the HDHomeRun indicates it is streaming video then the most likely problem is a firewall blocking the port (UDP port 1234 used in this example). |