Monday, 14 July 2008

FTP servers for Windows

Looking for a free ftp server? Well there is an openssh client / server called: SSHWindows or FileZilla
FileZilla is a free FTP client (many OS) and server (for windows only).

The FileZilla Client is a fast and reliable cross-platform FTP, FTPS and SFTP client with lots of useful features and an intuitive interface. Among others, the features of FileZilla include the following:
  • Easy to use
  • Supports FTP, FTP over SSL/TLS (FTPS) and SSH File Transfer Protocol (SFTP)
  • Cross-platform. Runs on Windows, Linux, *BSD, OSX and more
  • Available in many languages
  • Supports resume and transfer of large files >4GB
  • Powerful Site Manager and transfer queue
  • Drag & drop support
  • Configurable Speed limits
  • File name filters
  • Network configuration wizard
  • Remote file editing
  • Keep-alive
  • FTP-Proxy support

Windows Open Source Utilities

See also The table of equivalents / replacements / analogs of Windows software in Linux.

SDelete
To zero out free space use SDelete http://www.microsoft.com/technet/sysinternals/Security/SDelete.mspx from Microsoft Technet. 
Example:
sdelete -c c:temp
Putty
Use Xming portable PuTTY to give you a tight X Window Server as well.
Go here for the original PuTTY
Xming - X Window Server
JWhich
JWhich is a program to find Java resources such as class files or property files. Just as the Unix which command finds executable files by searching the PATH, JWhich finds Java classes by searching the CLASSPATH.
Monitoring Tools
Nagios: http://www.nagios.org/
Zenoss: http://www.zenoss.com/
Perforce
A simple Backup Script:
$ cat bin/backup.sh
#!/usr/bin/sh

cd /cygdrive/c/projects
rm -f /cygdrive/c/projects/*.zip
for d in `ls -1`; do jar cfM $d.zip $d; done

cd /cygdrive/C/tu/Documentation
# rm -f DocumentationBuild.zip
jar cfM /cygdrive/c/projects/DocumentationBuild.zip Build

# rm -f SolutionDesign.zip
jar cfM /cygdrive/c/projects/SolutionDesign.zip SolutionDesign
# mv -f /cygdrive/c/tu/Documentation/*.zip /cygdrive/c/projects

mv -f /cygdrive/c/projects/*.zip /cygdrive/f/
WinMerge
An Open Source file merge utility.
Open Source Firewall Software for Windows
SensiveGuard is license free for personal use.
iSafer - a Winsock firewall.
iSafer Sourceforge site:
Tail for Win32
Tail for Win32 is a Windows version of the UNIX 'tail -f' command.

Sunday, 13 July 2008

Linux on IBM Thinkpad R40 / R41

The following sections is information related to the installation of Linux to a IBM Thinkpad R40 / R41. This is a laptop that I built for my brother.

BIOS Updates

It's worth checking from time to time for BIOS updates and so on at IBM. There are reasonably full technical specifications from IBM are here.

Page keys

There are a couple of special keys above the left and right arrow keys, which I gather are bound to Forward and Back in Internet Explorer under Windows. Using xev, I identified their keycodes as 233 and 234, and I put the following into my ~/.Xmodmap:
keycode 233 = Next_Virtual_Screen
keycode 234 = Prev_Virtual_Screen

More references

http://www.thinkwiki.org/wiki/ThinkWiki
https://wiki.ubuntu.com/LaptopTestingTeam/ThinkpadR40-2681
http://www.ecn.wfu.edu/~cottrell/thinkpad/tpr40/
http://priyadi.net/archives/2004/12/20/gentoo-linux-under-thinkpad-t41p/

Wireless Broadband using Huawei E220

HOWTO: 3G Connection to Internet with Huawei E220

System Rescue

Get System Rescue CD from http://www.sysresccd.org/Main_Page
One of my favourites is Knoppix http://www.knoppix.org/

Screen

http://www.redhatmagazine.com/2007/09/27/a-guide-to-gnu-screen/

Free Books

http://freebooks.homelinux.org/

HOWTO: 3G Connection to Internet with Huawei E220

The following guide is adapted from a guide found on the Ubuntu forms here. I have updated it with information from my own experiences setting this up for use with the Australian 3G Vodafone network on a kubuntu system, with kernel 2.6.24-19-generic.

Installation

This HOWTO is intended to get a Huawei E220 modem working properly any time you plug it in. I've documented what worked for me with the hope it works for you too:

  • Open a terminal and make sure you have the tools you will need:
    sudo apt-get install wget libusb-dev build-essential

  • Get the source code for the driver program huawei-e220:
    wget http://download386.mediafire.com/ddemxzdoxslg/l5jtywnmycn/huawei-e220.tar.gz

  • Compile it:
    tar zxvf huawei-e220.tar.gz

    cd huawei-e220

    ./setup.sh

  • The setup script installs the driver program and creates a udev rule which ensures that the huawei-e220 driver is loaded every time the modem is plugged in. It also runs a quick test, using the wvdial program. You can customise the wvdial.conf
    You can review these udev rules by viewing:
    vim -R /etc/udev/rules.d/50-huawei-e220.rules

    This should show:
    SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/usr/local/bin/huawei-e220"

    SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/bin/sleep 5"

    SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1003"

  • After you plug the modem in you will see the following devices:
    ls /dev/ttyUSB*

    /dev/ttyUSB0 /dev/ttyUSB1
    This means that the modem is communicating properly with your computer.
    By default the modem is connected to /dev/ttyUSB0.

  • For convenience, create a symbolic link from USB0 to modem:
    ln -sf /dev/ttyUSB0 /dev/modem

  • Configure your connection. Using kppp create a modem:
    In the Modem tab, set
    Modem port to: /dev/modem
    Give the Australian phone number of: *99***1#
    Provide a dummy user id and password, I used: vodafone / vodafone

Problems


  • The first time I installed this, everything worked out OK. The following morning I encountered a strange problem of having a successful connection, where email worked, lynx worked, but firefox and other graphical browsers didn't. In the end I saw that the default gateway was invalidly set to 0.0.0.0, see results from command:
    route -n

    So I had to reset this using:
    route del default gw 0.0.0.0route add default gw 10.64.64.64
    That seemed to do the trick ... momentarily. When I rebooted knetworkmanager had once again reset my default gateway. This time when I quit knetworkmanager I asked it not to automatically load on restart.

  • Why doesn't the vodafone dialup show in knetworkmanager? This is a known problem and may have something to do with knetworkmanager running as root, while kppp was ran as a local user. I added the configuration manually to knetworkmanager, but still no go. So, as a work around I use just kppp from the local user., and ensure that knetworkmanager is not running.

References