Technology

Twitter Weather Forecasts Using Linux

twitter sh2

Twitter’s feature to allow updates from terminal allows for a lot of creative ways to use twitter. I used some already written scripts and commands and put it all together to receive weather forecasts for my area at 9am every day on my phone.  Example of SMS message sent to my phone “Forecast for: DES MOINES, IA    Today    Mainly clear and frigid – Low 10“  Here is how I did it:

First I used a written shell script and made output modifications so length would be under Twitter’s length limitations. The modified script is listed below:

Note: I take no credit for the original script. It was available online, and I modified it based on my needs. Dave Taylor is the original author, and offers a book full of shell scripts I recommend checking out! Page Here

#!/bin/sh
# weather - report weather forecast, including lat/long, for zip
# Dave Taylor - found at http://www.intuitive.com/wicked/showscript.cgi?063-weather.sh
# Edited for twitter use by MadHatter (maddhat.com)
llurl="http://www.census.gov/cgi-bin/gazetteer?city=&state=&zip="
wxurl="http://wwwa.accuweather.com"
wxurl="$wxurl/adcbin/public/local_index_print.asp?zipcode="

if [ "$1" = "-a" ] ; then
   size=999; shift
else
   size=5
fi

if [ $# -eq 0 ] ; then
   echo "Usage: $0 [-a] zipcode" >&2
   exit 1
fi

if [ $size -eq 5 ] ; then
   echo ""
   # get some information on the zipcode from the Census Bureau
   lynx -source "${llurl}$1" | \

   sed -n '/^<li><strong>/,/^Location:/p' | \

   sed 's/<[^>]*>//g;s/^ //g'

fi

# the weather forecast itself at accuweather.com

lynx -source "${wxurl}$1" | \
sed -n '/Start - Forecast Cell/,/End - Forecast Cell/p' | \
sed 's/<[^>]*>//g;s/^ [ ]*//g' | \
sed 's/10-Day AccuWeather.com//' | \
sed 's/Today/Today:/' | \
uniq | \
head -$size

exit 0

Save this as weather.sh in your home folder. Then open a text editor and create “tw.sh” saved to your home directory with the following contents:

Note: You need to replace the USER:PASSWORD with the username and password for the secondary twitter account.

#!/bin/sh
#tw.sh
curl -u USER:PASSWORD -d status="$*" http://twitter.com/statuses/update.xml

For this script to run correctly curl must be installed. For ubuntu the command is “sudo apt-get install curl

Now we have the necessary scripts created. To receive updates you will need to create a second twitter account of which to send updates. Make sure you follow this new account with your primary twitter account and turn on device updates if you are looking for update to your mobile device.

All that is left to get things up and running is to add the crontab entry. I added to my sudo crontab by the following “sudo crontab -e” and adding the following entry:

Note: This will run at 9am every day. You can edit yours however you’d like. For testing it may be a good idea to start with “* * * * *” to run every minute to ensure updates are working as planned. Replace “user” with your user name, as well as ZIPCODE with the zip code of the area you would like weather forecasts for.

0 9 * * * /home/user/tw.sh $(/home/user/weather.sh ZIPCODE)

Save the crontab entry. Check that it was added by typing “sudo crontab -l”. That’s all there is to it.

Some useful links for help and customization:

Twitter API, Cron.

Testing Network Performance Using Iperf

Just a quick post on a great tool for testing network performance. Iperf is a very slim tool that will measure TCP/UDP bandwidth performance. It is an available ubuntu package “iperf ” and also has Windows/OSX binaries available. I found a working mirror here. What makes Iperf a good test versus a simple SMB/CIFS transfer for bandwidth performance is that it works in memory versus being limited by hard drive and CPU limitations.

Now a quick guide to get things up and running. The guide will be for two Ubuntu machines, testing network performance between the two.

1.Install – Type the following in terminal “sudo apt-get install iperf ” for both machines

2.Server Setup – Decide upon a server machine and a client. On the server type the following in terminal “iperf -s ”. This will place iperf in server mode, and it will listen for incoming connections.

iperf server

3.Client Setup - On the client machine you have a lot of options to play around with regarding how you want to connect to the server. You can explore what each of these are by typing “iperf –-help ”. The following is a simple test between the server (192.168.2.104), and the client (192.168.2.103).

4.Testing - Type “iperf 192.168.2.104 -i 2” (replacing the IP here with the test server IP and then enter key to start testing. This will connect to the server running on 192.168.2.104 and have an interval of 2 seconds. There will then be 6 tests completed. This should give you all of the information you need regarding your connection speed between the two machines.

iperf client

This should be enough to get you started using iperf. Check out the man page here if you have any usage questions.

New WD Media Player Reviewed, Stripped Naked

wd a inhand

Over the weekend, Western Digital silently introduced their WD TV HD Media Player. It is an extremely small device (think two WD Passport drives stacked on top of each other) which packs an extreme amount of processing power. And best of all: I picked one up on sale at Best Buy for $99.99.

The unit’s design is nearly identical to WD’s MyBook series drives. features two USB ports (one on the back, one on the side), an HDMI output supporting up to 1080p60, and an optical SPDIF output. It supports drives formatted with FAT32, NTFS, and HFS+ file systems.

wd a back

Plugging it in to my current AV setup was very easy. This device not only boasts an optical SPDIF output, it also supports audio over HDMI, though no bitstreaming support for HD audio formats (more on that later).

At first, I did not really expect much. For a device with an MSRP of $129.99, what can one really expect? It seems Western Digital has decided to pack support for nearly everything into this tiny box at such a tiny price. From the manufacturer’s website:

Music - MP3, WMA, OGG, WAV/PCM/LPCM, AAC, FLAC, Dolby Digital, AIF/AIFF, MKA
Photo - JPEG, GIF, TIF/TIFF, BMP, PNG
Video -MPEG1/2/4, WMV9, AVI (MPEG4, Xvid, AVC), H.264, MKV, MOV (MPEG4, H.264)
Playlist - PLS, M3U, WPL
Subtitle -SRT (UTF-8)

Disclaimer: I did not test all of the formats listed above, as I’ve basically switched my entire media library to MKV containers with H.264 and AC3/DTS audio. I also did not bother testing analog outputs.

After getting it connected to my TV and receiver, I plugged in one of my drives. The first thing I noticed was how bad the “media library” function is. It might be a good thing for people with unorganized drives, but I already know my folder structures, so I’d prefer to just have a folder view. After turning the “media library” function off in the system settings, I had a normal folder view. I also switched the view to “list” instead of “thumbnail” since it is much faster. The other essential setting is to switch the audio output to “digital”, otherwise it’ll just play two channels even if you’re connected via SPDIF.

The first file I played was a recorded TV show with 720p resolution, encoded with x264 at around 5mbps, and containing AC3 (Dolby Digital 5.1) audio. So far, so good. My receiver showed Dolby Digital coming through, and the video playback was very smooth.

wd ua chip

The one thing I did notice is that the decoder chip inside (Sigma SMP8635LF) seems to be doing some type of video processing work, because the 720p files seemed to have added sharpening or “edge enhancement” which I was not able to turn off – somewhat annoying, since at times it would add unnecessary noise especially in dark scenes. This was not a problem when I switched the output resolution to 720p.

wd ua compareipod

Next, I tried a 1080p x264 file, also in an MKV container, this time with DTS audio. The video bitrate was around 15mbps, and I honestly expected many dropped frames. However, I was proven wrong, as the file played back with no issues at all. My receiver showed DTS audio coming through, and the video played back on my TV with no dropped frames.
Since I was playing back a 1080p file and the player was outputting 1080p60, I did not notice the sharpening effect mentioned above. I’m going to assume this is because there was no scaling going on, therefore no postprocessing of any kind.

With each file I tested, I increased the bitrate, so next I tested a 25mbps MPEG2 file (I had to change the extension from .TS to .MPG as the player won’t recognize .TS files). It was a 1080i movie captured from DTheater tape, and looked very nice. The player did a decent job with deinterlacing/IVTC, but when I switched the output resolution to 1080i and let my TV do the work, I did notice a slight increase in picture quality and motion was a bit smoother. This was mainly noticeable during slow camera pans.

Finally, I tested a couple of Blu-Ray backups. The player would recognize an .ISO file, however it didn’t understand the Blu-Ray structure, so it would not play that particular file. I decided to extract the .m2ts from the .ISO image and test that, and to my surprise, it worked! This particular movie was encoded with AVC at a bitrate of around 30mbps. The WD TV played it without breaking a sweat. Fast motion and lots of action, with bitrate peaks of over 45mbps, and playback was flawless. I’m sold.

wd a digg

A few miscellaneous issues:
Sometimes the video won’t completely fill the screen at first. It’s easily fixed by zooming in, then back out. But for some reason, the decoder just doesn’t scale the video properly. This doesn’t happen always. It seems to happen completely randomly. Once I zoomed in and out to fix it, it would play properly for the rest of the file. This issue is pretty annoying, and hopefully it can be fixed.

wd a picerr

I tried playing an MKV file containing MPEG2 video and AC3 audio, and it did not play. While that’s not a traditional container for those codecs, it still should have played.
The interface is a bit sluggish, although not the worst I’ve seen. It’s not unbearably slow, but there is definitely room for improvement.

1080p24 would be really nice. I shouldn’t necessarily expect that for $99.99, but I don’t think it would be very difficult to add that functionality via a firmware update.

I’m really upset that there is no network connectivity with this device. If I had to guess, I’d say WD did this because they want people to buy their drives as a complement to the media player.

Finally, I wish this device could switch the output resolution to the currently playing file’s native resolution. If I’m playing a 1080p file, output 1080p. If 1080i, output 1080i and let my TV do the deinterlacing (the chip inside of the player, while not terrible, does not do a great job). If 720p, output 720p, and so on… you get the point.

Conclusion:
The WD TV HD Media Player is worth every penny. Power consumption is much lower than using an HTPC. It’s completely silent. It plays back 1080p files like they’re no big deal. If you’re like me and have been waiting for a device like this, I can tell you with confidence that you won’t regret purchasing this. Though I had a few minor complaints, it’s a great deal for $129.99.

Full Gallery below:

Setup DNS Cache Server Using Dnsmasq and Ubuntu

dnsmasq

I’m always looking for ways to improve on my LAN, especially when it’s free. A friend suggested DNS caching to speed up browsing. I gave it a shot and was impressed with the results. I’m now saving at least 70ms for every DNS query (after it’s been cached the first time of course.) The installation is pretty simple, and takes only a couple of minutes. I’ve logged what I have done getting it running on an Ubuntu 8.04 machine:

Notes before starting: I didn’t need much for this system setup. The machine has a P4, with 512mb RAM. The NIC was only 100mbit, and the hard drive only 40GB. I chose a box to install this on that isn’t pegged with other processes. I don’t think you need to dedicate a whole box to this project if this is for a small LAN (mine is ~10 machines), but one that isn’t constantly being used for network tasks would be a good idea (not much of an incentive to run DNS locally if it doesn’t speed up the response time.) These are just my recommendations, and it will vary depending on the size of your LAN on what you would like to setup. There are many variables differ based on your setup.

As stated before, for this installation I’m using Ubuntu 8.04. I installed the server edition, but eventually installed the ubuntu-desktop packages, because I like having the GUI when working with experimental servers. Obviously, using the ubuntu-server edition will slim the machine down and be much more efficient.

1. Open Synaptic package manager and search for “dnsmasq”. Install both packages shown by right clicking “Mark for installation”.

2. Navigate to System > Administration > Networking to open the network configuration for the machine.

3. Click on the tab “DNS”. This is the list of name servers for the machine. You can keep the original name servers in the list but press “Add” on the side and add in “127.0.0.1″, and make sure it is at the top of the list. For your secondary name servers you may want to consider moving to opendns versus using your local ISP’s.

4. Once your 127.0.0.1 entry is at the top of the list you may press OK to exit the menu.

5. To start/stop/restart dnsmasq service use the following commands:

/etc/init.d/dnsmasq start
/etc/init.d/dnsmasq restart
/etc/init.d/dnsmasq stop

You will most likely need to restart the service after installation and the changes you’ve made. This will also let you the service is starting correctly.

6. Now it’s time to make sure it’s working. Type the “dig” command with the website of your choice and pay attention to the query time. The first time the DNS entry will be cached, and so the second time you try the dig command on the same site the response should be significantly lower. The format is $dig WEBSITE

Another way of testing is enabling logs to syslog so that each query will be logged. You can enable logging by removing the # at the line #log-queries in the file /etc/dnsmasq.conf You will need to restart dnsmasq for changes to take effect. Syslog can be viewed from System log viewer, or any text editor. After verifying that everything was working correctly, I added the # back into the config file so that it no longer logged queries.

7. After you’ve tested all is working correctly, make sure you change the primary DNS server on the client machines to the IP address of the server you have been working on. Here are pictures that show the primary name server being changed to the local machine just setup for DNS. The examples are for Ubuntu 8.04 and Windows XP:

ubuntudns
vistadns

So that’s it. Hopefully this speeds things up for you as it did for my LAN. Thanks for reading.

MIT Siftables

siftables

I generally do not like to simply re-post links because it brings no new content to the net and makes the site a copy cat off others. However, this video struck me as very inspiring and I would like to make an exception to share it. It is from the labs at MIT and it allows some unique ways to physically move data on your computer.

youtube.com/watch?v=vbwzBBHtNGI

As depicted in the video, with one “siftable” representing a photo album name or grouping, it seems as though you would need a large amount for anything to get done in a timely manner. However, the problem could most likely easily be solved by incorporating some elements with the computer’s monitor.A few questions I would have with these devices before using it:

-how is the battery life for a device like this which is constantly communicating via Bluetooth and also has an OLED display? Rechargable batteries connected by some sort of dock seems like a likely solution but also seems like a hassle. An idea that comes to my mind is some sort of wireless charging solution such as splashpower.

-price per unit. OLED display, Bluetooth, how much for each “siftable”? It’s just a guess but I would guess a user would need more than 10. Even $50/per unit brings us to $500!

Despite some of the possible issue with price and power it seems like an incredibly great idea for modern computing. As working with computers becomes normal in everyday life I am always looking ahead to what will be the more interactive way in working with them. The individual device idea seems a bit less practical than microsoft’s surface technology but also seems like a great concept and worth mentioning. For more information on all functions check out the youtube video and the links below.

Via engadget / ohgizmo
Image credits: MIT siftables page

Unboxing the new MacBook Pro

0 Day release – unboxing pictures and comparison pictures of the new MacBook Pro released Feb. 26, 2008.

My roommate has been anxiously awaiting the release of the new MacBook Pros and today we were greeted by the pretty new pictures on apple’s site. He rushed to the Des Moines Apple store and picked one up. We got a few shots of it as he was unboxing as well as a few comparisons with an lenovo x61 12″ non-widescreen laptop to show size a bit better. I apologize in advance for the crummy linksys router in the back of some of the shots. Here they all are. Enjoy apple fanboys! :-P

mbpo4

mbpo2

mbpo1

mbpo3

mbpo5

mbpo6

mbpo7

If you want another view shown or some comparison let me know and I will steal it and take a few shots.

-MadHatter

Creating Backtrack 3 Live USB Drive

bt3banner

Booting to live CDs seems to be sluggishly slow when compared to booting from a USB drive. I previously posted about creating a Live BackTrack 2 USB drive, and here is the instructions for the new BackTrack 3 Beta. They have a special release specifically for USB drives this time around so it’s getting easier as new versions are released. Keep in mind that BT3 is in Beta and may still have several bugs. If you would like to run the stable version try BT2. So here is my step by step tutorial on how to create a bootable USB drive running BackTrack 3.

Note:
-you should use at least a 2GB USB drive to make bootable. The boot files total around 946MB of space on the drive. You may be able to get by with a 1GB drive but it would be pushing it to the limit on space. Drives are getting cheaper and cheaper that it shouldn’t be a big pain to cough up the extra $5 for the 2GB alternative

1. Go to: http://www.remote-exploit.org/backtrack_download.html Choose the backtrack 3 beta the USB version (unless you want to create a bootable cd choose the CD version).

2. You will need something to extract the files from the RAR archive. WinRAR is my favorite.

3. Once you have a RAR extractor installed then extract all the folders to the destination drive (USB Drive). There should be two folders named “BT” and “Boot” along with a text file called “INSTALL.txt”.

4. After extracting the files power down unit and restart (make sure that boot order is changed so it boots from the USB drive first, and keep in mind that some older machines do not support USB boot, so you may need to use the CD version instead.)

5. the first menu you are presented with is the boot menu. The default is to boot into KDE. (you may want to change to a graphics safe environment if it does not work properly the first time on your system but I have yet to see a case where it doesn’t work properly at first boot).

6. Just wait and it will boot the rest of the way up and show the back track desktop. Click on the 2nd icon that says “System” that looks like an IC chip. Navigate to MEDIA > Your removable drive (names differ) > BOOT folder. Here you will find a file named “bootinst.sh.”

7. Open up “shell” by clicking on the 2nd icon on the left which looks like a monitor with a black screen. Drag “bootinst.sh” to the shell. Click “Paste”. Press ENTER

8. This will now give a warning screen that it will format the drive to boot this distro only. Make sure that the drive listed in that warning is the same as the drive you are browsing (which is shown in the location bar at the top) so that you don’t tamper with the computer’s other drives by mistake. Press ENTER when you are sure.

If task completes successfully your drive is now bootable! If you are having problems or have questions with any of these steps head over to the Back Track Forums.

If you would prefer using the stable BackTrack 2 here is my article pertaining to creating bootable USB drives for BT2: http://maddhat.com/?p=16

Creating NAS In 10 Minutes

NASbanner

Network Attached Storage has become increasingly popular the last couple of months. Interest has only grown more since apple’s release of Time Capsule which is a NAS device that also has the capabilities to create incremental backups of computers on the network. NAS can be very useful for any home network with a lot of media. It also places less load on other computers on your home network. Being a technician I hear countless times how all the client wants is pictures from the machine and some home videos, etc. All of this media can be moved to a NAS device so that if a system goes down all can still be accessible from another machine quickly. Backups are also essential in that equation, but it can easily be achieved with an external Seagate drive or countless others. What I would like to discuss today is the use of this free NAS software (with TONS of features for sharing media) to get media shared in less than 10 minutes. This may be extremely useful at LAN parties for those trying to share content to one another (perhaps the latest 600mb patch of Battlefield 2!) Also, this method allows the computer to run the NAS software without disturbing the original OS. Just like any other linux live CD, FreeNAS (freeBSD based) has features that lets you boot from a CD or USB drive. If you need more information on NAS devices to see all the possible uses check out the wikipedia entry.
There are many different configuration options for getting it all up and running, but I will go into detail about that which I found to be the fastest. A few things to note before going through these steps:

-you do NOT need to remove all partitions on the machine you intend to setup as a NAS device. You may if you want to, but it doesn’t really matter unless you are performing a full installation or would like more storage space. You can leave everything intact, and there will be NO changes to the OS if you follow steps as I direct. If you stray from the path you could easily end up formatting the drive, but there are warnings before this would happen as well so don’t worry too much.

-you will need to know how to burn ISO’s onto a CD, just like any other linux distro.

-you do NOT need a lot of technical experience to get it up and running if you just follow this guide. Though the more knowledge you have about your computer hardware the better.
-you do NOT need know how to use linux, or BSD, or even know what they are. If you have hardware problems any time throughout this tutorial you could always hop over to the support forum and someone should be able to help you get on the right track.

-for default setup to work without changes you will need to already have an address such as 192.168.*1*.25. The *1* being the key factor there. Some routers by default are setup on different ones such as 192.168.0.1. It depends on the network.
Alright lets jump right into things. I will explain it step by step as all my other tutorials.

1. Download the ISO here and burn it to a CD.

2. Place the CD you just burned into the drive and boot up. You may want to have your keyboard and monitor hooked up to the machine to make sure your CD ROM drive has 1st boot priority. If it does not, simply go into your BIOS and change the boot order (there should be a button to hit such as F1, DEL, or F10).

3. Your CD should start booting the software automatically. Within about

2 minutes (if there are no errors) it should boot up for you and show the splash screen. You can press Enter and configure options (such as machine IP or connection to use such as wired or wireless) but it is up and running at that point. Note: the only thing your computer actually needs plugged in in the back is power and the data connection (which you would need none obviously if it is wireless).

4. On another machine on the same network open up your browser of choice and type “http://192.168.1.250″ into the address bar. This is the default HTTP control panel for FreeNAS.

5. Hit enter and you will be prompted for a username and password. Default username = admin. Default password = freenas.

6. Hit enter and you will now be at the main page. This is a status page and can give you some basic information about the system. Lets navigate to the left hand side and go to Disks > Management.

7. On the lower right side there is a + in a circle for you to add drives for it to recognize. Click to continue to the next screen.

NASdisk

8. You will need to choose your Disk (make sure and do NOT select your CD ROM drive) to setup. Find your hard drive on the list. Also make sure you select the format type of your drive (if the drive has windows installed on it you will choose NTFS. Click “Add” once completed. Repeat this process for any other hard drives installed in the machine if any.

9. Hit apply changes on the Disk Management screen. It should say “the changes have been applied successfully. If it does not you most likely made a mistake when configuring the disk.

10. Go to the Disks > Mount Point menu on the left side of the window.

11. We are now going to create a mount point for the drive. Click the button on the lower right to continue.

12. Choose your configured disk under the “disk” drop down menu and make sure you select Partition type 1. I’m going by the assumption that most users are going through these tasks with an NTFS formatted drive. Go to the drop down and select NTFS. Name and describe the drive as you wish (note that it is limited on the types of characters, it may be that it only allows spaces, numbers, and letters.)

13. Press the “Save” button and click “Apply Changes” on the following screen once you have configured all of your drives. If it says that all changes have been applied successfully the hard part is over and it is configured. Now we are going to verify, and setup a means by which your files are accessible over the network.

14. Go to Status > System on the left hand side. Look at the “Disk space usage” box at the bottom. It should show your configured drive there along with how much space has been filled on the drive. If all is there then the drive is configured properly and is reading correctly under FreeNAS.

NASdiskspace

15. For the sake of saving time I am going to assume you do not want any security on this box for the time being and will allow anonymous connections for sharing. You may configure them if you wish in the Access > Users and Groups menu. Lets go to the Services > CIFS/SMB menu on the left side.

16. Once in the menu you need to first enable the sharing service to run by clicking the checkbox in the upper right hand with the text “enable”.

17. Click the “Save and Restart” button at the bottom (note: this will just restart the service, not the computer).

18. After changes have been applied, go to the top and click on the “shares” tab.

19. Click the + button

20. Create a share name and comment. You may leave path blank. All other options should be okay by default. Hit the “Save” button and the “Apply Changes” button on the next screen.

21. Now close out of your browser and just open “My Computer”. Replace the text in the address bar to “\\192.168.1.250″ and hit enter. You should see your share listed below as a folder. Open and view, edit, save, delete your files just as if it was a locally connected drive.

NASaddress

Now a few closing notes. There are a lot of options we left blank, a lot of thing we could have changed with this system. Spend some time messing around with it, just be carefull of the “Format” menu. Because this is a live boot all changes you make will NOT be saved once the computer is powered down. You will need to reconfigure all of these settings as we have in this tutorial. After doing it a few times this should only take 5 minutes or less to reconfigure in the future. FreeNAS can also be installed as a full or embedded install. I will not cover this today but may in a future entry. If you are having any difficulties throughout the setup process head over to the support forum for help. Hope this gets you going on creating a NAS device for free.

Network Camera Viewing From Google

cams

This is an old trick I thought was a good time waster. Everyday businesses install video servers and network cameras so that they can view the business remotely. They want to have them monitor key points of the business that may include valuable equipment or a lot of customer traffic. Both of these factors make these very entertaining to watch. Try it out for yourself! Just go to Google and type any of these in as a search string and browse the results! Try a few different ones because different search strings will direct you to different types of video servers or cameras, some having better quality than others. This looks to be all legal as long as you are just viewing and do not try to get past any password protection (password prompt). A great example of why you should password protect ANY equipment for a business connected to the internet. Have Fun.

* inurl:"ViewerFrame?Mode=
* intitle:Axis 2400 video server
* inurl:/view.shtml
* intitle:"Live View / - AXIS" | inurl:view/view.shtml^
* inurl:ViewerFrame?Mode=
* inurl:ViewerFrame?Mode=Refresh
* inurl:axis-cgi/jpg
* inurl:axis-cgi/mjpg (motion-JPEG)
* inurl:view/indexFrame.shtml
* inurl:view/index.shtml
* inurl:view/view.shtml
* liveapplet
* intitle:"live view" intitle:axis
* intitle:liveapplet
* allintitle:"Network Camera NetworkCamera"
* intitle:axis intitle:"video server"
* intitle:liveapplet inurl:LvAppl
* intitle:"EvoCam" inurl:"webcam.html"
* intitle:"Live NetSnap Cam-Server feed"
* intitle:"Live View / - AXIS"
* intitle:"Live View / - AXIS 206M"
* intitle:"Live View / - AXIS 206W"
* intitle:"Live View / - AXIS 210?
* inurl:indexFrame.shtml Axis
* inurl:"MultiCameraFrame?Mode=Motion"
* intitle:start inurl:cgistart
* intitle:"WJ-NT104 Main Page"
* intext:"MOBOTIX M1? intext:"Open Menu"
* intext:"MOBOTIX M10? intext:"Open Menu"
* intext:"MOBOTIX D10? intext:"Open Menu"
* intitle:snc-z20 inurl:home/
* intitle:snc-cs3 inurl:home/
* intitle:snc-rz30 inurl:home/
* intitle:"sony network camera snc-p1?
* intitle:"sony network camera snc-m1?
* site:.viewnetcam.com -www.viewnetcam.com
* intitle:"Toshiba Network Camera" user login
* intitle:"netcam live image"
* intitle:"i-Catcher Console - Web Monitor"

Simple Firefox Bookmarks Toolbar Cleanup Tip

Here is a real short tip that tidies up your bookmarks toolbar in Firefox but is surprisingly unknown. I decided to write this after noticing many friend of mine who would like to achieve the same look.

firefox

1. Add the site of your choice to your bookmarks toolbar folder.
2. Right click the icon for the selected link on the bookmarks toolbar and click on Properties
3. In the Properties menu you will see a “Name” label and text field. Simply clear the text field and press OK.

firefox1

You will now have a clean and uncluttered bookmark toolbar. Sorry this is incredibly obvious for some but still a worthy tip to share. I will hopefully have a full length article posted by the end of the week.

Setup Remote Desktop in ubuntu 7.10

This is an in-depth tutorial covering the simple act of setting up Remote Desktop in 7.10 and forward the ports on your router so you may access your ubuntu machine from anywhere. I find this handy when in a different city and needing to access a file on my local network. I merely plug my USB thumb drive into the computer, run my portable Ultra VNC Viewer, and connect. I also use it to work in Linux instead of windows (because it is setup to the same screen size as my laptop. I just full screen the VNC connection and work in ubuntu; however I do have to stand connection issues).

So I will go slowly and step by step through this procedure as well. 7.10 makes it EXTREMELY easy to get it up and running, so you should be able to get it up and running in 5 minutes or so.

1. Boot up ubuntu of course and login.

2. As shown in the picture, on the ubuntu menu, go to System > Preferences > Remote Desktop.

gotordp

3. This will bring you to the Preferences window. Check “Allow other users to view your desktop”

4. Check “Allow other users to control your desktop” if you want the user to be able to actually control the mouse and keyboard once logged in. If you are merely letting people login to view your desktop then you can leave it unchecked.

5. Uncheck “Ask for confirmation”. If you have this checked it will make a confirmation window popup every time a user tries to connect remotely. The local user will need to allow them to connect before they can begin their remote session. If there is no local user to confirm this, and you are on a trip and forgot to uncheck it… you sir are SOL.

6. Check “Require the user to enter this password” and enter in the password in the text box below. The remote user will be prompted to enter this password before they are given access to the remote machine. This is a MUST. Otherwise, anyone who connects to that address will be able to control your machine remotely as they please.

rdp

7. Click the close button to close the Preferences window. Your remote connection is now setup for your LAN and you may access that ubuntu machine from any other pc on your network without port forwarding.

For those of you familiar with port forwarding, don’t bother reading the next section because it’s merely a step by step. Basically, forward a port of your choice to port 5900 for the ubuntu machine you are setting Remote Desktop on.

8. Now for some simple router changes. First, we are going to need to gather some information. The gateway and the IP address of the ubuntu machine. This is easy to find out. First, lets open up our network connection by going to System > Administration > Network.

9. Click on the connection type you are using. In my case I am using a wired connection. I would suggest using a wired connection if you are planning to routinely use this machine remotely because it tends to be a lot more reliable than wireless.

10. This will bring up a window with your connection settings. If you are using DCHP then you can’t gather much from this. I recommend switching over to Static IP address (but beware, that this must be enabled in your router, but is usually already enabled by default). I’m not going to go in depth with a lot of router settings, so if you have questions about functions such as router access or static configuration, Google it!

ifconfig

11. Write down the IP Address of your machine, and also the Gateway address. We will need this soon.

12. Open up a web browser and type in http:// and your gateway after. For example http://192.168.1.1 this should bring up the login screen.

13. You should be able to login now. Make sure you have permission to edit your router. If you have another LAN administrator, check with them before logging in and making any changes.

14. This is a part that is different for everyone depending on your router type and model. I am using DD-WRT on a crappy wireless router. All you need to do is go to the section regarding port forwarding.

15. Once you navigate to this section, we have a port to add (to allow the outside connections to this computer on your LAN). The default VNC port is 5900. Your router may have different names for some of this, but it all should be relatively similar. My example is listed in the picture below. So, let me explain what it all means.

portforward

Application: A brief description of what you are forwarding so that you can quickly reference it. I just named it ubuntu because I know that port 5900 is VNC so I don’t need to know the application.

Port from: this is the port the machine not on your LAN will try to make a connection from. It is suggested to make it something that is not the normal 5900 because this is a dead giveaway for attackers. I just made this one 8000. (Be careful, some ports are reserved for certain applications, so if you aren’t sure, Google the port before you choose for sure).

Protocol: TCP and UDP. Can’t remember if VNC needs both, so just go ahead and click both.

IP Address: this is where you will enter in the IP address you previously wrote down. This tells the router what machine to make a connection with.

Port to: set this to 5900. This is the port that the remote desktop application will connect on.

Enable: obviously we want to enable this.

16. After making the necessary changes, you will need to save the new settings, and most likely restart the router for it to take effect. It is a good idea to log back in and make sure the settings saved correctly.

17. Alright, so now you have setup Remote Desktop on your machine, and forwarded the port on your router so you may access from the outside. So, how do you connect? Well… this is a complex question. It really depends on your connection, and if you are on a residential where the external IP changes every few hours or days. If it does then you will need to find a solution such as NO-IP that sets a name while it tracks changes in your IP, and changes the name to that. I won’t go in depth with that so ill just post this link if you need more information. http://www.no-ip.com For a temporary test, lets just use www.whatismyip.com

18. Copy paste your external IP (given from the link above) and :port number into your vnc viewer and test. For example 12.35.33.58:8000 will be your connection if “12.35.33.58″ is your external IP. NOTE** you cannot connect to your external IP from a machine in your LAN. You must test from a computer outside of your network for it to work. After all, this is what you set up the port forwarding for.

19. At this point, if you have a successful test, you are setup and good to work remotely on your ubuntu machine. If you cannot connect, you may want to check that your IP has not changed, and go through our configuration process once again. If you have any simple questions you may refer to the ubuntuforums (which has great user support) or try googling some troubleshooting options.

Whew, that was a little more in-depth than I wanted to get with this simple procedure, but I do want to give as much detail and help for new users as possible. Hopefully this helps one or two of you. Please check back for further Ubuntu 7.10 user tutorials in the near future.

Here is the VNC Viewer I use and enjoy. RealVNC is decent as well. http://www.uvnc.com/