Thursday, 15 May 2008

Settings for Manually Mapping Synology DS207+ Shared Folder from the Neuros OSD

(OSD using the new Arizona software platform)
Both the Synology DS207+ and the Neuros OSD use open source software.

From the OSD's main menu Play.Browse>Network Shares>Map Network Share Manually>

Connection Type = Windows
Server Address = [DS207+ LAN IP address], example: 192.168.2.20
Share Location = [folder name], example: share-ds207
Share Name = [folder name], example: share-ds207

Accept

Input user details (check user privileges using the DS207+ admin pages)

Done

Sunday, 27 April 2008

Stop My Asus Eee PC Going Into Standby Mode When the Lid is Closed

I'm sitting on the train happily surfing the web on my Asus Eee PC using the now free WiFi Internet, available since National Express took over from GNER a few months ago (available on the UK east cost service anyway!). I use my Eee PC as an MP3/OGG player. I decided I wanted to stop surfing the web, and read a book instead (a momentous decision), this meant closing the lid of the Eee and leaning my book on top of it for maximum comfort. However, this reminded me that when you close the lid, the Eee automatically goes in to standby mode - very annoying if you want to carry on listening to music!

So, since I'm on the train and have nothing else to do, I thought I would investigate how to stop it going in to standby mode when you close the lid, and instead do nothing except turn the screen off.

It took a few mins to find out how to do it...

First, open a terminal. In easy mode (default Linux setup) simply press the CTRL, ALT and T keys on your keyboard all at the same time. The default terminal program in Easy mode is named lxterm.
(Info from: http://wiki.eeeuser.com/howto:openaterminal)

Then, in the console type

sudo kwrite /etc/acpi/lidbtn.sh

You should see

#!/bin/sh
LID_STATE=`cat /proc/acpi/button/lid/LID/state | awk '{print $2 }'`if [ $LID_STATE = "closed" ] ; then
/etc/acpi/suspend2ram.sh
fi
exit 0


Replace with the code below and save the file.

#!/bin/sh
LID_STATE=`cat /proc/acpi/button/lid/LID/state | awk '{print $2 }'


if[$LID_STATE = "closed"]; then
# /etc/acpi/suspend2ram.sh
su user -c "DISPLAY=:0 xset dpms force suspend"
elif[$LID_STATE = "open"];then
su user -c "DISPLAY=:0 xset dpms force on"
fi


Close the lid to test. That's it.,
(Info from: http://wiki.eeeuser.com/close_lid_shutdown)

Thursday, 3 January 2008

Network Printing Ubuntu and Synology DS-207+ Disk Station

Setting up a client computer (i.e. laptop or desktop) running Ubuntu Gusty to print over the home network with a Synology DS-207+ Disk Station as the print server.

There is also a very rough video version (my first ever video tutorial!) of this How To.

This part of the How To assumes that the network printer is pluged in to the DS-207+ and that the DS-207+'s IP address and Samba user name and password are know, and that the network is setup and ready to go. If this is not the case please see the sections below and the Synology DS-207+ setup CD and manual.

Setting up a Network Printer on a Client Computer Running the GNU/Linux Ubuntu Gutsy Operating System
- Open up the "Print Configuration" window - System>Administration>Printing

Open Print Configuration Window

- Click "New Printer".

Select Samba Printer

- In the add printer dialog window select "Windows Printer via SAMBA" and then in the "Samba Printer" input box type the IP address and printer designation (this is hard set by the DS-207+ and cannot be changed - "/usbprinter") of the DS-207+ (i.e. 192.168.2.20/usbprinter).
- Click "Authentication required" and add the user name and password and click "Verify".

Check Printer is Available

- Once the printer has been verified as being available click forward.
- On the next screen, select the printers manufacturer from the list and click forward.
- On the next screen, select the printer model from the list and click forward.

Choose Printer Name

- Choose a name for to identify the network printer by.

Print a Test Page

- Select the newly installed printer from the list on the left and click the "Print Test Page" button.

All being well the printer is installed correctly and will print a test page.

Get the Home Network DHCP Allocated IP Address of the DS-207+
- To login the network router open up Firefox and type the IP address 192.168.2.1 (the default IP Address for this particular Belkin router) into the address bar and then hit "Enter".
- Login to the router administrations pages using the admin user name and password.
- Click the option "DHCP Client List" in the left hand menu.
- The DS-207+ host name will be "null" and the IP address is indicated to the left.
NOTE: I have "hard set" the DS-207+'s IP address so itis outside the DHCP allocated addresses (it is 192.168.2.20) and will not change if the router is restarted. This is because the client computers have to know the correct IP address for the DS-207+ in order access the network printer. To hard set the IP address see the instructions below.
Get DS-207+ IP DHCP Address from the Network Router


Login to the DS-207+
- - To login the DS-207+ open up Firefox and type the IP the address 192.168.2.20 (this is the IP Address I have hard set the DS-207+ t0) into the address bar and then hit "Enter". Otherwise find the IP address of the DS-207+ as allocated by the routers DHCP server - see instructions above.
- Login to the DS-207+ administration pages using the admin user name and password.

"Hard Set" the DS-207+ Home Network IP Address
- To "hard set" the DS-207+ IP address login to its administration pages as above and then click the "System" option in the left hand menu.
- Input the IP address that you want making sure it is within the home networks range i.e. 192.168.2.2 - 192.168.2.xxx.

Hard Set the DS-207+ IP Address


Create a New Samba User

Check Pinter is Attached to the DS-207+

Wednesday, 2 January 2008

Getting an HP LaserJet 1018 Printer Woirking With Gutsy 7.10

The HP LaserJet 1018 printer stopped working for some reason, although it had worked out-of-the-box. This thread on the Ubuntu forums sorted things tho, specifically using the code below.

$ wget http://foo2zjs.rkkda.com/firmware/sihp1018.tar.gz
$ tar xvzf sihp1018.tar.gz
$ arm2hpdl sihp1018.img > sihp1018.dl
$ sudo cp ./sihp1018.dl /usr/share/foo2zjs/firmware/sihp1018.dl
$ sudo cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/usb/lp0

Tuesday, 1 January 2008

Re-Encoding AVI Using Mencoder

I had a home movie file that was not playing well on the Neuros OSD so I checked out how to re-encode it. Specifically I followed these instructions.

mencoder original-movie.avi -oac mp3lame -ovc xvid -xvidencopts pass=2:bitrate=800 -o new-version-of-movie.avi

Once re-encoded the movie worked perfectly.

Monday, 17 December 2007

Neuros OSD Media Player - Auto Mount Network Shares

Neuros OSD: http://www.neurostechnology.com/

IMPORTANT: Remember to turn off the firewall on the computer with the shares!
(Use Fire Starter and add a rule to allow the OSD access)


Setup Samba
This was basically to allow basic networking and so the script files created using gedit could be copied on to the OSD.
Create Samba user: http://linux.byexamples.com/archives/123/creating-samba-user/
Open terminal and type...

smbpasswd -a username


Telnet into the OSD
Open terminal and type...

telnet
open [IP address]
User name: root
Password: pablod
cd ..
ls

Auto Mount Script
General instructions: http://forums.neurostechnology.com/index.php?topic=7918.0
Specific script I adapted: http://forums.neurostechnology.com/index.php?topic=7918.msg41934#msg41934

Create the script and rc.user files using gedit and copy them to /mnt/OSD folder on the OSD

cp /rc.user /mnt/OSD
cp /mount_script.sh /mnt/OSD


Thursday, 15 November 2007

Sharing Files Over A Local Area Network (LAN) - Ubuntu and Windows

Straight forward and clear tutorial for getting files sharing between Ubuntu and Windows machines using Samba: http://ubuntuforums.org/showthread.php?t=202605&highlight=network+sharing

I used this with Ubuntu Gutsy 7.10 and and Vista, and it worked great.

[Edit] Another good tutorial: http://www.youtube.com/watch?v=Ad17kma8rNM