Sunday, December 28, 2014

Windows Resource Protection found corrupt files

I will transcribe this page. In the meantime, here is the screenshot of the problem and solution.

Getting the middle buttton on Lenovo trackpads to behave like a middle button

The default behavior of the middle button on Lenovo Trackpads does not generate a middle click. If you use linux or cygwin, you may want the middle button to behave like a middle button for pasting. If you use Windows, you may want the middle button to open new tabs in your browser.

Open the Ultranav Options, Manage Settings, Ultranav Tab, Trackpoint settings, settings in scrolling function section, choose 'smooth' button.

Firmware for Belkin N300 F7D7301 wireless router

This post contains links to the various firmwares available for the Belkin F7D7301 router.

Belkin Firmware
http://www.belkin.com/us/support-article?articleNum=4716

DD-WRT Firmware
ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2013/05-27-2013-r21676/broadcom_K26/
dd-wrt.v24-21676_NEWD-2_K2.6_mega.bin

Tomato Firmware
http://www.4shared.com/dir/v1BuINP3/Toastman_Builds.html#dir=LeCeiFJV
tomato-K26USB-1.28.7497.1MIPSR2-Toastman-RT-Ext.trx

References:
http://www.linksysinfo.org/index.php?threads/toastman-releases.36106/

Calling bash from batch

I came across a neat trick for calling cygwin scripts using Windows batch files.
http://blog.dotsmart.net/2011/01/27/executing-cygwin-bash-scripts-on-windows/

Saturday, December 27, 2014

Setting up wireless internet on Raspberry Pi

Confirm the compatibility of your device here.
https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported

This guide assumes using Raspbian release 2014-12-24.

If you have not yet installed wpa_supplicant, install it by running the following command.
sudo apt-get wpa_supplicant

Add the following lines to the end of /etc/wpa_supplicant/wpa_supplicant.conf.
network={
    ssid="SSID"
    scan_ssid=1
    psk="KEY"
}

Restart your wireless network interface by running the following commands.
sudo ifdown wlan0
sudo ifup wlan0

Good luck.

Reference:

Play youtube audio from the command line on Raspberry Pi

mps-youtube allows you to play youtube content via a text terminal without needing X. As a result, without X, all you will get is audio. For me, I want to stream youtube audio to speakers, so this is one solution.

Prerequisites:
Install the latest Raspbian onto a SD card. If you are not familiar with how to do this, follow this guide.
http://www.raspberrypi.org/documentation/installation/installing-images/
I used Raspbian release 2014-12-24 for this guide.

Installation:
1. Boot into the newly flashed Raspbian image.
2. Install python-pip by running the following command.
sudo apt-get install python-pip
3. Install mps-youtube using pip by running the following command.
sudo pip install mps-youtube

The version of Raspbian that I used included omxplayer as part of the default image. If you do not have it, you will need to install it by running the following command.
sudo apt-get install omxplayer

Running:
1. Invoke mps-youtube by running the following command from a terminal.
mpsyt
2. Configure the audio player by running the following command.
set player omxplayer
3. For me, I also needed to set the following options for omxplayer.
set playerargs -o local
4. Search for youtube content by running the following command.
/<search terms>
5. Select one of the results to play by typing the number.

Notes:
If you do not hear audio, you should check the audio output of your raspberry pi.
http://www.raspberrypi.org/documentation/configuration/audio-config.md
Similarly, you should also test omxplayer.
http://www.raspberrypi.org/documentation/usage/audio/

Good luck.

Tuesday, July 01, 2014

McAfee Host Intrusion Prevention blocks Chromecast

There are multiple reasons why Chrome may display the Chromecast "No Cast devices found" message when you try to cast a webpage. One such reason is blocking that is performed by McAfee Host Intrusion Prevention. If you are running McAfee Host Intrusion Prevention, confirm this by opening it and click on the "Activity Log" tab. You may see multiple copies of the following message.

Google Chrome (chrome.exe) Blocked Incoming UDP - Source xxx.xxx.xxx.xxx : (xxxx) Destionation xxx.xxx.xxx.xxx Block All Traffic

To resolve this issue, you will need to add an exception to the Firewall.

Click on the "Firewall Policy" tab. Click Add.

On the Action and Direction page, enter "chromecast" as the Name. Select Either for the Direction. For Action, click Allow and click Next.

On the Protocol and Address(es) pages, for Network Protocol, select Any Protocol. Click Next.

On the Protocol and Ports page, click Next.

On the Application page, click Next.

On the Set schedule page, click Finish.

After these changes have been made, you should be able to access the cast device in Chrome. If not, you may have another problem. To isolate the problem, try the following.
  • disable the firewall
  • disable VPN connection

Wednesday, June 18, 2014

Accessing the CFE miniWeb Server page after installing DD-WRT

If you are accessing the CFE page from the default Belkin firmware, you should configure your client with a static IP of 192.168.2.x. However, if you have already installed DD-WRT and are trying to access the CFE page, you should configure your client with a static IP of 192.168.1.x.

See instructions here on how to access the CFE page.

Tuesday, May 06, 2014

Exporting NFS shares from OpenELEC 4.0

OpenELEC 4.0 does not automatically export shares of external USB devices. To do this automatically, create the samba.conf file.

cd /storage/.config
cp samba.conf.sample samba.conf

Add the following to the bottom of samba.conf.

[USB Drives]
path = /media
available = yes
browsable = yes
public = yes
writable = yes

Reference:
http://wiki.openelec.tv/index.php/Sharing_files_from_OpenELEC

Friday, May 02, 2014

Sharing folders in Windows 8

To share folders in Windows 8, you can accomplish this by moving the shared content to the Public folder. It is possible to share content that is not in the Public folder. The following steps below document how to make any folder accessible by another computer on the network.

Right click -> Properties
Select the Sharing tab
Click Advanced Sharing
Select "Share this folder"
Provide a share name and click Add
Press OK
Click Share
In the drop-down box, select Everyone and click Add
Change the Permission Level for Everyone to "Read/Write"
Click Share

Now you should be able to access the share via
\\<computer name>\<share name>

Monday, March 31, 2014

Avoid security prompts when copying or moving files within your network

Windows may prompt you with a warning when you attempt to copy or move files across systems on your network.

To get around this problem, you will need to tell Windows that the other host computer is a system on your Intranet. Follow the steps below.

Go to Internet Options.
Click on the Security tab.
Select Local intranet and click the Sites button.
Click on the Advanced button.
In the Add this website to the zone: box, type
file://192.168.1.*
click the Add button.

Note: You will need to substitute 192.168.1 depending on your network setup. You may also specify hostnames like file://*.<domainname>.

Mounting OpenELEC shares from a linux client

If you are running OpenELEC, there may be the need to access the OpenELEC filesystem from a client computer. Unfortunately, simply enabling SAMBA (without setting a password) on OpenELEC only allows Windows clients to connect to it. For Linux clients, attempting to mount OpenELEC shares results in the system prompting for the password even though one is not set by default.

To resolve this issue, add a password for the SAMBA service in the OpenELEC configuration settings. Now both Windows and Linux systems can mount shares on the OpenELEC system.

Here is the command to mount a OpenELEC share from a Linux client.
sudo mkdir /mnt/openelec
sudo mount -o username=<OpenELEC SAMBA username>,password=<OpenELEC SAMBA password> //<host>/<share> /mnt/openelec

The default OpenELEC SAMBA username and password are openelec and openelec.

Latest DD-WRT firmware for Belkin Share Max N300 (F7D7301)

In a previous post, I described how to install DD-WRT onto the Belkin Share Max N300 (F7D7301) router. Since then, a number of firmware revisions have been released. I have had success with the revision r21676. It can be found below.

Note: There are yet newer revisions available, but please be advised that some revisions could be buggy and may corrupt your router. If you have had success with another revision, please let me know and I will add it to this page. Thanks.

r21676 for the Belkin Share Max N300
ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2013/05-27-2013-r21676/broadcom_K26/