Applications for the Sharp Zaurus
Ouch. If you tried all the software we suggested, your Zaurus is now having indigestion. The symptoms of this overfilling are simple: ipkg install now gives you “no space left” errors.
You do not have a lot of options. It is either ipkg remove to get rid of useless software or ROM Flash back to version 1.10. This very version will leave you more RAM disk space left.
First, try to remove any temporary files from /tmp by typing cd /tmp ; rm -fr *. This may help a little bit because ipkg leaves the temporary files in /tmp, which increases the overfilling whenever it gets an installation error.
The 32MB of RAM in the 5000D developer version can be filled rather fast. This is because the ROM software has to be uncompressed in the RAM, eating most of the free space. Moreover, the RAM is then shared between the memory you use for your applications and the RAM disk where you are installing applications.
So do not trust the 32MB of RAM sticker for 5000D or the 64MB of RAM claim for the 5500. Think about memory available: in the 5000D with ROM version 1.11, you only have a 6MB RAM disk, i.e., less than a standard Palm!
Fortunately, we have a software solution with Linux: flashing a ROM, which is known to leave a RAM disk big enough to install applications, and creating a swap file to increase the system memory we are using for the RAM disk or flashing a ROM, which will use all the memory available to Linux as RAM, and using an external device like the SDRAM Flash card where you will install your software.
For the first option, you should use the 1.10 version, which has a 16MB RAM disk and for the second option, a custom-made ROM available from www.btinternet.com/~p.flinders/sl-5000d/readme.html will be just fine.
In both cases, purchase a 128MB SDRAM card, and plug it in to the Zaurus. It will free your CompactFlash slot for hardware peripherals like a wireless network card.
If you decide to use the custom ROM, just format the Flash card to use it as disk space where additional applications will be installed.
If you want to use swap (it can be done in both cases even if it is not mentioned on the custom ROM page), get fdisk from handhelds.org/ and create two partitions on the SDRAM: fdisk /dev/mmcda.
Then type n p 1 +25M t 82 to create a first partition of 25MB, which will be used for swap (type 82 is swap). Create a second partition, filling the rest of the card with n p 2 enter enter. It will be used as free disk space.
Now start the swap with swapon /dev/mmcda1 and mount the other partition with
mount /dev/mmcda. g/usr/mnt.rom/card -t ext2
Whenever the system goes in suspend mode or is rebooted, the swap will be removed. This is both a bug and a feature. It can be fixed with some /etc file editing, but you won't want to do that because there is only a limited number of total writes on a Flash card. You will ruin your SD card quickly if you do that.
However, while the NAND-type Flash used in most cards is usually specified at 100,000 erase/write cycles, this is only the minimum specification. Moreover, the Flash card controller adds ECC bytes to each 512-byte block and does wear leveling.
We can assume a continuous writing on a swap area at 100KB per second. Thanks to the wear leveling, the controller will cycle though the sectors, so if we have an 8MB swap area, it will do one erase/write per sector every 80 seconds. A real smart controller might even distribute them over the whole card.
The ECC algorithms will increase the erase/write cycles to at least 1M cycles per sector. That will give you two and a half years before seeing any failing sectors, and at that time the controller will start using spare sectors.
Therefore, if used properly, a Flash card will last for the lifetime of the system and definitely beat the MTBF (mean time before failure) of any hard disk even if you put your swap partition on it.
Having the Zaurus connect to the Internet is quite simple because the Zaurus uses the Linux kernel and its IP stack. You do not need a dirty hack, like the ones required to have a Palm connected.
Basically, you have two possibilities: use the cradle to connect to the Internet or get a wireless card.
If you have followed the “Synchronizing data” guide, you already have a working cradle connection. But this is no fun. Don't you want to be able to walk around with a Star Trek Communicator-like device, browse the Internet, read and write your mail wirelessly and even send instant messages or use IRC? If so, read on.
The best and easiest way to get a working wireless internet connection on the Zaurus is to go 802.11b. You have to buy hardware to do that; a CompactFlash 802.11b card will cost you around $100. Please make sure it will work with the Zaurus before getting one; read the compatibility list on more.sbc.co.jp/slj/peri.asp. If you do not know which card you should buy, go for a Linksys WFC 11. I could get it for $120 at J&R in Manhattan. On the Internet, you can get it for less than $100 with shipping and handling included.
If you have a ROM prior to 1.1x, you will have to edit your configuration file to make it work. Have you installed an editor as suggested? In /etc/pcmcia/wlan-ng.conf, add
card 'Linksys WCF11 11Mbps 802.11b WLAN Card' manfid 0x0274, 0x3301 bind 'prism2_cs'
Restarting the PCMCIA service or rebooting will make the card work. In 1.1x ROM or newer, you just need to plug in the card to make it work—a real plug-and-play with no driver needed.
On the Zaurus, go to Settings --> Network and Sync and configure your wireless card. Give it an IP address on the local network with the laptop IP as the gateway machine, then the DNS IP, or use DHCP to fill this information automatically if there is a DHCP server on your laptop.
Now that you have a 802.11b-capable Zaurus, you need another device to provide internet connectivity via the 802.11b network. You have two choices: purchase an access point or use ad hoc mode with another 802.11b card to share an existing internet connection on the computer using this other card.
An access point is the best option, and you can now get one for $100. A hacker-friendly Linksys WAP11 is just perfect. Not only does it work well with GNU/Linux using SNMP software, but you also can update its firmware, use directional antennas to make a long distance wireless bridge, etc.
Now, if you have an access point, the WAP configuration and installation is up to you. Make sure it is plugged in to your Ethernet network. On the Zaurus, go to Settings --> Wireless LAN, and configure your CompactFlash wireless card to use “access point” mode.
If you are using a PCMCIA 802.11b in a laptop as your access point, install masquerading software on the laptop to share the internet connection. Then set up ad hoc mode. Check the module parameters or the manual you used to configure your wireless connection. On the Zaurus, go to Settings --> Wireless LAN and configure your CompactFlash wireless card to do ad hoc mode as well.
In both cases, should you set up WEP, be sure to use the same settings on your laptop and your Zaurus, otherwise nothing will work. Now if everything went well, try to ping your Zaurus. Does it work? Launch Applications --> Opera and try to access the Internet. Congratulations! You are now on-line and ready for the next part, installing internet-aware applications.
Practical Task Scheduling Deployment
One of the best things about the UNIX environment (aside from being stable and efficient) is the vast array of software tools available to help you do your job. Traditionally, a UNIX tool does only one thing, but does that one thing very well. For example, grep is very easy to use and can search vast amounts of data quickly. The find tool can find a particular file or files based on all kinds of criteria. It's pretty easy to string these tools together to build even more powerful tools, such as a tool that finds all of the .log files in the /home directory and searches each one for a particular entry. This erector-set mentality allows UNIX system administrators to seem to always have the right tool for the job.
Cron traditionally has been considered another such a tool for job scheduling, but is it enough? This webinar considers that very question. The first part builds on a previous Geek Guide, Beyond Cron, and briefly describes how to know when it might be time to consider upgrading your job scheduling infrastructure. The second part presents an actual planning and implementation framework.
Join Linux Journal's Mike Diehl and Pat Cameron of Help Systems.
Free to Linux Journal readers.View Now!
|The Firebird Project's Firebird Relational Database||Jul 29, 2016|
|Stunnel Security for Oracle||Jul 28, 2016|
|SUSE LLC's SUSE Manager||Jul 21, 2016|
|My +1 Sword of Productivity||Jul 20, 2016|
|Non-Linux FOSS: Caffeine!||Jul 19, 2016|
|Murat Yener and Onur Dundar's Expert Android Studio (Wrox)||Jul 18, 2016|
- The Firebird Project's Firebird Relational Database
- Stunnel Security for Oracle
- My +1 Sword of Productivity
- Managing Linux Using Puppet
- Non-Linux FOSS: Caffeine!
- SUSE LLC's SUSE Manager
- Murat Yener and Onur Dundar's Expert Android Studio (Wrox)
- Parsing an RSS News Feed with a Bash Script
- Google's SwiftShader Released
- Doing for User Space What We Did for Kernel Space
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide