770 Previous Post Redux

This post has already been read 8413 times!

Some important updates on my past 770 posts.

Swap

  • If you are using .51 firmware and want to use swap, use 24 megs or less.
  • I had problems using 128, then 64, then 32 megs. Finally Andy Flegg was able to tip me off that there is an issue with using anything over 32 megs. I re-partitioned my MMC card down to a 24 meg swap partition and it’s been working very well. I really recommend you add some swap to help the memory on the 770. I ran a bunch of apps, games and opened four browser windows the 770 was super responsive.

Firmware bootstrap scripts

  • I posted some simple scripts for user and root to quickly install some basic packages and setup the environments for the default user and the root user. The installer commands should be run as the user ‘install’ and not as root. I’ve posted the updated script below. If you install them as root, you’ll have to uninstall them as root- you can’t use the GUI (which runs as user and uses a sudo for the install user to add and remove packages with the proper permissions).
  • This script will setup sshd to be launched at each boot, and it will be run as root, which is normal for most unix boxes– but just beware that sshd will always be running.
  • This version also incorporates Andy Flegg’s suggestion to make it one script and let it figure out who is running it. So you run it twice- once as user to setup user and again as root to setup things for root.
  • Recall that you have to have R&D mode enabled via the flasher utility to become root.
  • ----------------CUT_HERE---------------------------------------------------------------------
    #!/bin/sh
    if [ `id -u` == “0″ ]; then
    echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/install/usr/lib' >> /root/.profile
    echo 'export PATH=$PATH:/var/lib/install/usr/bin:/var/lib/install/usr/sbin' >> /root/.profile
    echo 'export EDITOR=/var/lib/install/usr/bin/vim' >> /root/.profile
    echo 'set nocompatible' >> /root/.vimrc
    sudo -u install app-installer-tool install /media/mmc1/Installers/load-plugin_0.2.4-1_arm.deb
    sudo -u install app-installer-tool install /media/mmc1/Installers/dropbear-client_0.46-2_arm.deb
    sudo -u install app-installer-tool install /media/mmc1/Installers/dropbear-key_0.46-2_arm.deb
    sudo -u install app-installer-tool install /media/mmc1/Installers/dropbear-server_0.46-2_arm.deb
    sudo -u install app-installer-tool install /media/mmc1/Installers/vim-tiny_5.6.070-1.1_all.deb
    sudo -u install app-installer-tool install /media/mmc1/Installers/fbreader-maemo_0.7.1b-1_arm.deb
    ln -s /var/lib/install/etc/init.d/dropbear-server /etc/rc2.d/S20dropbear-server 
    fi
    
    if [ `id -u` == “29999″ ]; then
    echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/install/usr/lib' >> /home/user/.profile
    echo 'export PATH=$PATH:/var/lib/install/usr/bin:/var/lib/install/usr/sbin' >> /home/user/.profile
    echo 'export EDITOR=/var/lib/install/usr/bin/vim' >>  /home/user/.profile
    echo 'set nocompatible' >> /home/user/.vimrc
    
    mkdir /home/user/.ssh
    cat /media/mmc1/keys/id_rsa_mac >> /home/user/.ssh/authorized_keys
    cat /media/mmc1/keys/id_rsa_XP >> /home/user/.ssh/authorized_keys
    chmod 400 /home/user/.ssh/authorized_keys 
    chmod 700 /home/user/.ssh
    fi
    ----------------CUT_HERE---------------------------------------------------------------------
    

Bookmarks

  • You can export to HTML and import right into the bookmark manager!
  • After all the time and energy that I spend exporting bookmarks from Firefox in XBEL format and modifying them for the OSSO Bookmark application, you can import right from inside the Bookmarks app itself. That’s a lot easier. Look under the Tools menu in the Bookmarks Application – not in the Browser.
  • Below is an example of some output from the 770’s export bookmarks function.

  • <!DOCTYPE NETSCAPE-Bookmark-file-1>
    <!-- This file was automatically generated by Sputnik
    It will be read and overwritten.
    Do Not Edit! -->
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
    <TITLE>Bookmarks</TITLE>
    <H1>Bookmarks</H1>

    <DL><p>
    <DT><A HREF="http://www.accuweather.com" ADD_DATE="1118841481" LAST_VISIT="1137019750">AccuWeather.com</A>
    </DL><p>

  • Export your bookmarks from Firefox and then scp the resulting html file over to the 770. Put it into the MyDocs folder or your MMC card. Then use the Tools/Import to open the file.
  • To scp from Mac to 770:
    dillera$ scp bookmarks.html user@192.168.251.53:MyDocs
    
  • It might be wise to pare down your bookmarks if you have a lot. I imported about 1000 of mine, and it does take the Bookmarks application a little bit of time to parse them.

Wow. I can’t believe I have swap and the Apple BT keyboard working. There isn’t much else I really want for my 770 at this point. I guess its time to just enjoy using it.

One thought on “770 Previous Post Redux

  1. […] Is this a fear of over-using (-stressing?) the RS-MMC? Or the non-hacker user’s reluctance to attempt nontrivial modifications — cf The Synching Apple’s reformatting of his MMC card to a 24 megabyte swap partition — and inability to become root? […]

Comments are closed.