When trying to change the port server name (I have a USB printer hooked up to a router) for the network attached printer, you get this message, Windows Port Error: 0x000000aa when trying to change printer properties in Windows 7. What to do?
Read the rest of this entry »
September 8th, 2012 | Posted in NIX Posts | No Comments
Time to setup some APC ( Battery bacup or uninterruptible power supply – UPS ) monitoring for the home equipment. The tool we’ll use for this is the APCUPSD daemon available in RPM format. We’ve set one up for our HTPCB server for a home redundancy / backup solution to protect against power surges and bridge the various power outages in the neighborhood that have been happening recently.
apcupsd-cgi.x86_64 : Web interface for apcupsd
apcupsd-gui.x86_64 : GUI interface for apcupsd
apcupsd.x86_64 : APC UPS Power Control Daemon for Linux
Unfortunately, when setting it up and configuring it, we got this result:
Sep 6 22:27:01 mbpc apcupsd[12526]: apcupsd FATAL ERROR in linux-usb.c at line 605#012Cannot open UPS device: "/dev/ttyS0" --#012For a link to detailed USB trouble shooting information,#012please see <http://www.apcupsd.com/support.html>.
Sep 6 22:27:01 mbpc apcupsd[12526]: apcupsd error shutdown completed
Read the rest of this entry »
September 8th, 2012 | Posted in NIX Posts | No Comments
While setting up my gigabit ethernet network, during simulataneous Windows 7 file transfers to the HTPC+B setup, I've received a number of disconnects, virtually every time while transferring my files. At the point, I not only lost connectivity with the HTPC+B but also my web access most of the time. Here are the culprits and here's how we went about resolving them:
WINDOWS:
An error occurred while reconnecting Y: to \\192.168.0.14\HTPCFirstEntertainment Microsoft Windows Network: The local device name is already in use. This connection has not been restored.
WireShark:
Header checksum: 0x0000 [incorrect, should be 0xd7e7 (may be caused by “IP checksum offload”?)]
TCP Dup ACK microsoft-ds (port 445)
WINDOWS:
There is a problem accessing Z:\
Make sure you are connected to the network and try again.
HTPCFileStorage (\\192.168.0.14)
Read the rest of this entry »
September 6th, 2012 | Posted in Hardware, Network, NIX Posts, Windows | No Comments
VNC or the Linux equivalent of Remote Desktop Connection in Windows, allows us to establish a GUI connection to our remote Linux machines as if we were sitting at the machine itself. Here, we'll undertake the task of configuring this sort of connection to allow us to remotely interact with the Gnome Desktop.
Read the rest of this entry »
September 3rd, 2012 | Posted in NIX Posts | No Comments
While configuring SAMBA / CIFS and file sharing over the network, the following errors popup eventually after the HTPC is restarted. A bit baffling at first since SSH works just as it did before the restart. However the problems persist and look like this:
Windows cannot access \\192.168.0.14\HTPCBackupXFS
Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
Error code: 0x80070035
The network path was not found.
On the Linux side of the world, things looked different but the overall message was the same:
# smbclient -L 192.168.0.14 -U'root%SECRET'
Enter root@SECRET's password:
Connection to 192.168.0.14 failed (Error NT_STATUS_HOST_UNREACHABLE)
#
However, when I test using SSH I can reach 192.168.0.14 from 192.168.0.13. Both hosts sit on two separate, though connected, routers. Here's how to resolve this problem:
Read the rest of this entry »
August 30th, 2012 | Posted in NIX Posts | 1 Comment
Tried to connect my Camcorder to my RHEL based system over here but instead of connectivity I got:
# grep usb /var/log/messages
Aug 28 14:08:32 mbpc kernel: usb 7-4: new full speed USB device using ohci_hcd and address 3
Aug 28 14:08:32 mbpc kernel: usb 7-4: device descriptor read/64, error -62
Aug 28 14:08:32 mbpc kernel: usb 7-4: device descriptor read/64, error -62
Aug 28 14:08:32 mbpc kernel: usb 7-4: new full speed USB device using ohci_hcd and address 4
Aug 28 14:08:32 mbpc kernel: usb 7-4: device descriptor read/64, error -62
Aug 28 14:08:32 mbpc kernel: usb 7-4: device descriptor read/64, error -62
What I wanted to see is tihs:
Aug 28 14:30:00 mbpc kernel: usb 2-2: new high speed USB device using ehci_hcd and address 2
Aug 28 14:30:00 mbpc kernel: usb 2-2: New USB device found, idVendor=054c, idProduct=02b0
Aug 28 14:30:00 mbpc kernel: usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 28 14:30:00 mbpc kernel: usb 2-2: Product: Sony Camcorder
Aug 28 14:30:00 mbpc kernel: usb 2-2: Manufacturer: Sony
Aug 28 14:30:00 mbpc kernel: usb 2-2: SerialNumber: 08FE800A57B0
Aug 28 14:30:00 mbpc kernel: usb 2-2: configuration #1 chosen from 1 choice
Aug 28 14:30:00 mbpc kernel: usbcore: registered new interface driver usb-storage
and lsusb output doesn't give anything particularly meaningful. Here's how I went about solving it:
Read the rest of this entry »
August 29th, 2012 | Posted in NIX Posts | No Comments
In this post we'll look at setting up a dual router 1GB/s home network using the TL-WR1043ND routers, both with DD-WRT software. DD-WRT is one of the documented projects and it goes a long way in making the product very stable and easy to work with. The routers are also capable of Wireless N connections however in this case we were also aiming for high stability, speed and to avoid the fluctuations in speeds braught on about by the N and G wireless connections. This also to allow streaming / watching movies without having to copy them from system to system to avoid choppy video / sound and also to accommodate the needs of our HTPC+B solution through file sharing.
Read the rest of this entry »
August 28th, 2012 | Posted in Hardware, NIX Posts, Perl | 1 Comment
So I received this 500 internal Server Error when trying to save my long posts on my WordPress 2.6.2. In my case I have 1and1.com hosting and at first impressions, the problem appeared to be with MySQL and the time it took to save a post. On top of this, my host doesn't allow access to the error_log files (HTTPD Error Log files) and only to the Access Log files (access_log) so I can't really see what the real issue is. Here's how I solved the problem in my case:
Read the rest of this entry »
April 6th, 2012 | Posted in Web | No Comments
Overview:
HTPC / Home Backup: MDADM, RAID6, LVM, XFS, CIFS and NFS
In this post we'll take a look at setting up a 4TB storage, HTPC, and active backup using basic components that can be bought from the local PC store and freely available software. Here I set out to try and consolidate my storage to something central running RHEL Linux (Or a clone, such as the Scientific Linux that's freely available) that could also serve as a makeshift entertainment center in replacement of my current one. In other words, upgrade my HTPC and turn it into an HTPC+B, if you will, with the following statistics:
-
4TB usable storage (6TB HDD – 2 HDD for RAID6).
-
XFS Filesystem
-
317MB/s WRITES.
-
300 MB/s READS.
-
A Wireless N card + 1GIG ETH in a bonding configuration. (Redundancy in case of failure)
-
Scientific Linux 6.1 (RHEL 6.1).
When it's all said and done then shared with the rest of the network , including a new Nexus 7 running Android through AndSMB, and tweaked for quick data transfers it should make a nice subtle addition to the decor as well. ( And yes, it is also very very quiet ):
Read the rest of this entry »
April 2nd, 2012 | Posted in Network, NIX Posts, Perl, Web | 11 Comments
Here we'll look at obtaining persistent naming rules for SATA devices so we can reference these hardware devices through a constant name. This is particularly useful when one needs a persistent name to a device through unique serial and model numbers that remains the same throughout reboots / restarts and shutdowns.
In this post, we'll create six unique naming rules to uniquely identify those HDD we'll need for our RAID6 HTPC+B configuration. Amongst other things, the rules would help to uniquely identify those devices that belong to the RAID6 array and those that don't to help prevent human error and remove confusion.
Read the rest of this entry »
April 1st, 2012 | Posted in NIX Posts | 1 Comment