Friday 28 August 2009

Telstra APN Settings for HTC Magic (Sapphire)

How to configure mobile wireless GSM GPRS EDGE internet packet data access with Telstra APN settings for HTC Magic / G2 / Sapphire:

Go to Settings > Wireless controls > Mobile networks > Access Point Names.
Press Menu and select "New APN".
Enter the following settings:
Name: Telstra Internet
APN: telstra.internet
Proxy:
Port:
Username:
Password:
Server:
MMSC:
MMS proxy:
MMS port:
MCC: 505
MNC: 01
APN type:

ADB Drivers (HTC Magic USB) for Linux

Using Ubuntu Linux, I was trying to root my HTC Magic (Sapphire). Unfortunately, running ./adb devices returned no devices.
Solution was to run ./adb kill-server and then ./adb devices as root (sudo -s).

Thursday 27 August 2009

Squid: connect (111 Connection refused)

This morning when I turned on my computer, Firefox greeted me by saying "Firefox is configured to use a proxy that is refusing connections." However, my proxy server was turned on and seemed to be functioning correctly - I could ssh into it quite fine, so no network issues. I rebooted, but still no help. My server was running Ubuntu 8.10 (Intrepid) Server Edition with a squid proxy server.

Turns out, by examing the /var/log/squid/cache.log file, I discovered the problem was no free disk space. After freeing up some space on / and restarting squid (/etc/init.d/squid restart), proxy was up and running again.

Tuesday 25 August 2009

iPerf network throughput tester

Use iPerf for testing network throughput / testing network traffic. Also, jPerf provides a GUI interface and windows iperf version.
iPerf and jPerf are both available at: http://sourceforge.net/projects/iperf/

Change directory in windows cmd

Windows cmd.exe command line won't change directory won't cd

cd /d

I am in my c: drive (c:\tools) and do a:
C:\tools>cd d:\music
Strangly, I am still in the c: drive. Only if I do a d:, I see that I changed to the music directory under d:
C:\tools>d:

D:\music>
In order to change both, the drive and the path, the /d flag must be used:
D:\music>cd /d c:\bin

C:\bin>
Source: http://www.adp-gmbh.ch/win/cmd/cd.html

Sunday 2 August 2009

"All Squash" in Samba FIle Server

NFS has the ability to "root squash" or "all squash" - map authenticated users to alternate user ids, for purposes of security. This makes it easy to setup an NFS public folder where all users share the same permissions.

Samba on the other hand, does not have such capabilities. However, you can achieve similar functionality by configuring a "guest" user, which maps to a specific local user id on the server.

Simply open /etc/samba/smb.conf and enable the following line:
guest account = [mapped user id]
That's all there is to it! Now any anonymous client can access the shared folders, and they will automatically have the same access rights as if they were logged into the server locally, with the username specified in the smb.conf file.