Saturday, July 17, 2010
SCP from N810 to desktop
# scp -r root@192.168.0.103:/usr/share/navit/navit.xml /mnt/sdb7/
SSH to N810
To allow other machines to connect to your tablet/phone. If you wish to access a shell on the tablet from a remote machine (to edit a local file with a real keyboard, perhaps), then all that you need to do is make sure OpenSSH server is installed on the tablet and
ssh root@tablet ip
then input password of N810/N800
Sunday, December 6, 2009
Comparison between MicroB, tear, digia@web, firefox,midori
MicroB:(points:9.0)
although a bit slow, it's still very nice. usually it has no error. It's very good to visit wap website when wmlbrowser addon. This is very important for n810/n800. Most of my time I would like to browse wap websites.
Tear:(8.5)
faster, but some chinese website code error. no addons.
Digia@web(9.0)
it's faster than Tear, and no code error.
firefox: (8.0)
still sometimes crashed even after use "about:config"to config the meomory etc.
midori:(7.5)
multitab browser. median perfomance.
Make Scrollbar wider and move to left side on Nokia N810/N800
Change:
1. file /usr/share/themes/echo/gtk-2.0/gtkrc, change setting of scroll bar size (2 or 3 lines, just related to scroll bar size).
2. some image files related to picture of scroll bar at /usr/share/themes/echo/images
3. you can change above files in your theme directory accordingly after you have installed you prefered theme .deb package to get a wide scroll bar theme.
4. if you want to make .deb package for the theme you have just revised, you can copy the theme directory to a linux machine with scratchbox developing environment installed, and run dpkg to generate your deb package in scratchbox. you may alse need to create a simple control file to control building process of your .deb package.
echo theme with wide scroll bar
Move scrollbar to the left:
Pick your favourite theme to edit and go to the appropriate directory in xterm (ex. "/usr/share/themes/glasser/gtk-2.0/")
As super-user ("sudo gainroot" after installing "becomeroot" package) edit the "gtkrc" file in that directory.
Add the line:
Code:
"gtk-scrolled-window-placement = top-right"
somewhere in there (I did it after the short HID section near the top). Restart your tablet
For MicroB
Bit more info for the browser's scrollbar:
- enter about:config in the address field
- in 'Name', type layout.scrollbar.side
- in 'Value', type 3
- hit the enter button of your nokia
- click on the 'Set preferences' button on the browser page
Monday, October 26, 2009
how to load map in Navit
cp /usr/share/navit/navit.xml ~/.navit/navit.xml
<mapset enabled="yes">
<map type="binfile" enabled="yes" data="/media/mmc2/map/planet.bin"/>
</mapset>
The best way to find what the current URL format Google uses
As of right now, here's an example of a Google Street Image URL in London, UK.
http://mt0.google.com/vt/lyrs=m@110&hl=en&x=4092&y=2724&z=13&s=
From the query string, we can see the x, y and z params that we need. The other stuff isn't needed. Plus as Google uses multiple servers, we don't need the "mt0" bit at the beginning, just "mt"
So that leaves us with.
http://mt.google.com/vt/x=4092&y=2723&z=13
But it's not quite right yet!
Maemo Mapper uses the "zoom" param instead of "z", as it uses 1 for the closest, up to 17. The "z" value is reversed by subtracting the "z" value from the maximum zoom.
Using the example above, this would mean that:
17 - 13 = 4
The "zoom" value would be 4, which would give us
http://mt.google.com/vt/x=4092&y=2723&zoom=4
Now to convert the URL into the format for Mapper
http://mt.google.com/vt/x=%d&y=$d&zoom=%d
The same approach can be used for the Satellite view.
An example using the same area
http://khm2.google.com/kh/v=46&x=4092&y=2723&z=13&s=Galileo
In this case, we would need the "v" param, the version, but the rest can go
http://khm.google.com/kh/v=46&x=4092&y=2723&z=13
Apply the same with the "zoom"
http://khm.google.com/kh/v=46&x=4092&y=2723&zoom=4
And convert to Mapper URL
http://khm.google.com/kh/v=46&x=%d&y=%d&zoom=%d
So after all that, as of now, here are the URLs
Google Street
http://mt.google.com/vt/x=%d&y=$d&zoom=%d
Google Satellite
http://khm.google.com/kh/v=46&x=%d&y=%d&zoom=%d
Hope that makes sense!
Sunday, October 25, 2009
Installed Maemo Mapper
first need find map sources, there are several of them such as openstreet map and google map, yahoo, VE etc. Google changes its link, so sometimes if failed to down load.
before down load, first star GPS, that will let Maemo Mapper know the location.
there are about 20 levels of Zoom, use 5 is perfect. otherwise 20 levels are too big and always confusion.
for navigation,
Download route from internet
if want to voice navigation, download "flite", and under maemo mapper settings, activate flite,!important.
Every time need download route if you want to use navigation.
OpenSSH file transfer from Puppy Linux
Under Puppy Linux, teminal, I use sakura,
"scp -r /mnu/sr1/test/* root@192.168.0.102:/home/user/MyDocs/test/"
if want to know IP of N810, under n810,
root
/sbin/ifconfig
Sunday, May 31, 2009
Tuesday, April 21, 2009
how to install tear web browser on Nokia N810/N800
Add the 'Extras Devel' repository. Go to "Applications -> Settings -> Application Manager -> *the drop down menu* -> Tools -> Application Catalog...", the create a new catalog with:Name: maemo Extras DevelWeb address: http://repository.maemo.org/extras-devel/Distribution:Components: free non-free
Go to "Applications -> Utilities -> X Terminal" and enter the following commands:
sudo gainroot
apt-get install libidn11 libxslt1.1
apt-get install libpcre3
Then install:
New libwebkit (41137-5) with last hns' fixes to hildon-input-mode is here.
At last:
Download in Garage /0.3-6/:https://garage.maemo.org/frs/?group_...elease_id=2521
Thursday, April 9, 2009
How to visit wap websites using MicroB
Wmlbrowser can be installed by using Nokia N810's application manager.
The following are the must have WAP bookmarks on your Mobile. These sites can be viewed only on mobile. However if you want to see them on you computer go to wapalizer.
Also Check our WAP Search Engines page.
1) Yahoo - http://wap.yahoo.com
2) Send Email Anonymously - http://webcab.de/sm.wml#WSM
3) Rediff - http://mobile.rediff.com
4) Google - http://wap.google.com
5) Live Cricket Scores - http://wap.ananova.com/sport
6) Dictionary - http://dictionary.reference.com/wml/#dict
7) Gmail.com - http://www.nodrm.com/gmail
8) Free Greeting cards - http://www.wapcardz.com
9) Hotmail - http://mobile.msn.com
10) MSN Messenger - http://mob.e-messenger.net
11) Symbian Softwares - http://wap.my-symbian.com/wap
12) Pocket Doctor - http://wap.pocketdoctor.co.uk
13) Check POP Mail - http://mail2wap.com & http://mail2pda.com
14) Yahoo Messenger - http://mm.yahoo.com
15) BBC UK - http://bbc.co.uk/mobile
16) Browser Spy - http://wap.gemal.dk
17) BSE India - http://wap.bseindia.com
18) Check Domain Name - http://wap.checkdomain.com
19) Free Wallpapers, Polyphonic Tones, Themes - http://wap.zedge.no
If you want more WAP sites just browse Yahoo or Google WAP Directory.
Some wap websites in UK
Wednesday, April 8, 2009
Running jar applications on Nokia N810
You can find these both by doing a search on gronmayer.com/it
This isn't guaranteed to work, but it does give you java with limited swing support. (I can use it to run various java apps I've written)
Once you've got these installs, you should be able to launch your application with the following command:
java -jar
Tuesday, March 31, 2009
Fix MicroB
- Run "browser" from the Xterm and watch for any error messages
- Check which applications are using up memory and cpu by typing "top" in Xterm.
- Delete or rename the user profile "/home/user/.mozilla/" and "/home/user/.browser". I've fixed other problems with Microb that way.
- Increase the swap
Still pages like the internettablettalk homepage take ages to load.
Monday, March 30, 2009
How to Intall Stardict to Nokia N810
1. Intstall the program.
http://maemo.org/downloads/product/OS2008/stardict/
2. Find the dictionary link
http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php
3. Download selected dictionary "tarball" files
*tarball file is suffixed .tar.bz2, to extract this file, need download another program 'bzip2'
4. Download 'bzip2' at http://www.gronmayer.com/it/
5. unzip use following steps.
a. bunzip2
b. tar xvf
c. mv /home/XXXXXXX/stardict-oald-2.4.2/ /usr/share/stardict/dic/
here is the location where we are supposed to put dictionaries.
* /media/mmc1/stardict/dic
* /media/mmc2/stardict/dic (N800 only)
* /usr/share/stardict/dic
* ~/.stardict/dic
TIP:don't need do as the last step c, put dictionaries to /usr/share/stardict/dic/, I just put at /media/mmc2/stardict/dic, it works too on N810. That saves spaces a lot.
Sunday, March 29, 2009
File corruption issue with N810 internal 2GB of memory
How to quickly check if this affects you:
- Open the X Terminal application in the Utilities menu.
- Type the following at the command prompt:
cat /proc/partitions (then enter)
The output should look something like this. Pay attention to the field I marked in red because this is the important part. The red number tells you how much space is really physically on the memory card)Code:major minor #blocks name
31 0 128 mtdblock0
31 1 384 mtdblock1
31 2 2048 mtdblock2
31 3 2048 mtdblock3
31 4 257536 mtdblock4
254 0 1966080 mmcblk0
254 1 2007032 mmcblk0p1 - Now type the following at the command prompt:
df (then enter)
The output should look something like this.The number I highlighted in red this time shows how much space is allocated to the internal memory card.Code:Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock4 2048 2048 0 100% /mnt/initfs
none 512 84 428 16% /mnt/initfs/tmp
/dev/mtdblock4 257536 222104 35432 86% /
none 512 84 428 16% /tmp
none 1024 12 1012 1% /dev
tmpfs 1024 0 1024 0% /dev/shm
/dev/mmcblk0p1 1999206 1517392 481814 76% /media/mmc2
The corruption problem happens when the allocated memory size is greater than the physical memory size. So look to see if the number from the "df" command output is greater than the number from the "cat /proc/partitions" command. So for the example above, 1999206 > 1966080 which means I have the defective internal memory card configuration and need to repair my tablet. If the number from "df" is less than the number from "cat /proc/partitions", skip the rest of this thread and get on with your life.
How to repair your internal memory card:
Don't panic, it's very easy. Please don't be intimidated by the length of this post as you really type in very little. Read through all of these instructions once and ask questions if I haven't been clear on any of the steps.
Must do this first:
- Do you have the swap file turned on? If so, make sure it is off! If you're not sure, open the Control Panel application and select "Memory". On the second tab "Virtual", make sure "Extend virtual memory:" is UNchecked or blank. If it is checked, remove the check mark, click OK, then reboot your IT.
- Have you backed up your internal memory card to your PC? If not, do it now before continuing. All data on your internal memory card will be deleted! Just connect the USB cable that came with your tablet into your PC. The tablet's internal memory will appear on your computer looking just like a USB thumb drive or other USB storage device.
The easy way to fix this issue is from krisse. Simply use the File manager application to format the internal memory card (in the File Manager, select the internal memory card, then open the menu and select "Tools -> Format memory card..."). Once the formatting is complete, run the test commands above to verify the memory allocation is fixed. That's it, you're done.
(thank you to the folks who verified this method as successful)
Friday, March 27, 2009
All the steps
2.Tuned the MicroB
Edited Prefs.js
installed flash block and ad block and grease monkey
Installed Tapscroll
3.Installed screen rotation according to maemo wiki
4.Installed software:
Skype
FBreader
Evince
Mytube
Statusbar clock
Mplayer
Conola
Feed circuit
Leafpad
TapScroll, Great script for MicroB, a must
First, need to install 'Greasemonkey'
http://browser-extras.garage.maemo.org/downloads_os2008.html
then, intall the Tapscroll script:
http://userscripts.org/scripts/show/23768
REF:
SourceCode:
// ==UserScript==
// @name TapScroll
// @namespace http://chum54.blog103.fc2.com/
// @include *
// @exclude http://mail.google.com/*
// @version 0.0.2
// ==/UserScript==
(function () {
var scroll = {
'h' : function() { scrollBy(-50, 0) }, // scroll left
'l' : function() { scrollBy( 50, 0) }, // scroll right
'j' : function() { scrollBy(0, 40) }, // scroll down
'k' : function() { scrollBy(0, -40) }, // scroll up
'n' : function() { scrollBy(0, 150) }, // scroll down more
'p' : function() { scrollBy(0, -150) }, // scroll up more
'g' : function() { scrollTo(0, 0) }, // move to page top
'f' : function() { history.forward() }, // move to page top
'b' : function() { history.back() }, // move to page top
't' : function() { toggle_bar() }, // toggle bar
'd' : function() { scrollBy(0, window.innerHeight / 2) }, // scroll half down
'u' : function() { scrollBy(0, -window.innerHeight / 2) }, // scroll half up
};
var formElement = { 'input':true, 'button':true, 'select':true, 'textarea':true };
window.addEventListener('keypress',
function(e) {
if (e.metaKey e.ctrlKey e.altKey
formElement[e.target.tagName.toLowerCase()]) {
return;
}
var key = (e.shiftKey? 'S-' : '') + String.fromCharCode(e.charCode);
if (scroll[key]) {
scroll[key]();
e.preventDefault();
e.stopPropagation();
}
}, false);
function toggle_bar() {
if(document.getElementById("tapscroll_bar_down").style.display == "table"){
//hide("tapscroll_bar_up");
hide("tapscroll_bar_down");
}else {
//show("tapscroll_bar_up");
show("tapscroll_bar_down");
}
}
function hide(id){
document.getElementById(id).style.display = "none";
}
function show(id){
document.getElementById(id).style.display = "table";
}
// ignore inner frame
if (String(window.frameElement).indexOf('HTMLIFrameElement') < 0){
focus();
// Page up
//pageup=document.createElement("div");
//pageup.innerHTML="
| UP |
//document.body.appendChild(pageup);
// Page down and top
pagedown=document.createElement("div");
pagedown.innerHTML="
| DOWN | TOP | DOWN |
document.body.appendChild(pagedown);
}
})();
Thursday, March 26, 2009
remove rhapsody
apt-get remove rhapsody-installer
Email:
apt-get remove libossoemailsmime
dpkg -l | grep mail will get you the list of package names containing "mail"
But take care:
apt-get remove libosso-email-interface
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
camera-test chavo eds-sync libcomapp0 libosso-email-interface microphone-test multimedia-applications
osso-addressbook osso-af osso-bookmark-ui osso-browser osso-calculator osso-calculator-ui osso-chess-ui
osso-contact-plugin osso-filemanager osso-filemanager-ui osso-global-search osso-imageviewer
osso-mission-control osso-notes osso-pdf-viewer osso-sketch tablet-browser-default-plugin tablet-browser-ui
Funny if you uninstall email, you have to uninstall the chess game!
Like wintendo when you want to remove internet explorer
How to Use the vi Editor
vi (pronounced "vee-eye") is short for "vi"sual editor. It displays a window into the file being edited that shows 24 lines of text. vi is a text editor, not a "what you see is what you get" word processor. vi lets you add, change, and delete text, but does not provide such formatting capabilities as centering lines or indenting paragraphs.
This help note explains the basics of vi:
- opening and closing a file
- moving around in a file
- elementary editing
vi has many other commands and options not described here. The following resources can help you get started using the vi editor, and are available at the UW University Book Store:
- "vi Tutorial." Specialized Systems Consultants (SSC).
- "vi Reference." Specialized Systems Consultants (SSC).
- "Learning the vi Editor." Linda Lamb, 1990.
You may use vi to open an already existing file by typing
vi filename
where "filename" is the name of the existing file. If the file is not in your current directory, you must use the full pathname.
Or you may create a new file by typing
vi newname
where "newname" is the name you wish to give the new file.
To open a new file called "testvi," enter
vi testvi
On-screen, you will see blank lines, each with a tilde (~) at the left, and a line at the bottom giving the name and status of the new file: ~
"testvi" [New file]
vi Modes
vi has two modes:
- command mode
- insert mode
In command mode, the letters of the keyboard perform editing functions (like moving the cursor, deleting text, etc.). To enter command mode, press the escape
In insert mode, the letters you type form words and sentences. Unlike many word processors, vi starts up in command mode. Entering Text
In order to begin entering text in this empty file, you must change from command mode to insert mode. To do this, type
i
Nothing appears to change, but you are now in insert mode and can begin typing text. In general, vi's commands do not display on the screen and do not require the Return key to be pressed.
Type a few short lines and press
If you make a mistake, pressing Moving the Cursor
To move the cursor to another position, you must be in command mode. If you have just finished typing text, you are still in insert mode. Go back to command mode by pressing
The cursor is controlled with four keys: h, j, k, l.
Key Cursor Movement
--- ---------------
h left one space
j down one line
k up one line
l right one space
When you have gone as far as possible in one direction, the cursor stops moving and you hear a beep. For example, you cannot use l to move right and wrap around to the next line, you must use j to move down a line. See the section entitled "Moving Around in a File" for ways to move more quickly through a file. Basic Editing
Editing commands require that you be command mode. Many of the editing commands have a different function depending on whether they are typed as upper- or lowercase. Often, editing commands can be preceded by a number to indicate a repetition of the command. Deleting Characters
To delete a character from a file, move the cursor until it is on the incorrect letter, then type
x
The character under the cursor disappears. To remove four characters (the one under the cursor and the next three) type
4x
To delete the character before the cursor, type
X (uppercase)
Deleting Words
To delete a word, move the cursor to the first letter of the word, and type
dw
This command deletes the word and the space following it.
To delete three words type
3dw
Deleting Lines
To delete a whole line, type
dd
The cursor does not have to be at the beginning of the line. Typing dd deletes the entire line containing the cursor and places the cursor at the start of the next line. To delete two lines, type
2dd
To delete from the cursor position to the end of the line, type
D (uppercase)
Replacing Characters
To replace one character with another:
- Move the cursor to the character to be replaced.
- Type r
- Type the replacement character.
The new character will appear, and you will still be in command mode. Replacing Words
To replace one word with another, move to the start of the incorrect word and type
cw
The last letter of the word to be replaced will turn into a $. You are now in insert mode and may type the replacement. The new text does not need to be the same length as the original. Press
3cw
Replacing Lines
To change text from the cursor position to the end of the line:
- Type C (uppercase).
- Type the replacement text.
- Press
.
To insert text in a line:
- Position the cursor where the new text should go.
- Type i
- Enter the new text.
The text is inserted BEFORE the cursor.
4. Press Appending Text
To add text to the end of a line:
- Position the cursor on the last letter of the line.
- Type a
- Enter the new text.
This adds text AFTER the cursor.
4. Press Opening a Blank Line
To insert a blank line below the current line, type
- (lowercase)
To insert a blank line above the current line, type
O (uppercase)
Joining Lines
To join two lines together:
- Put the cursor on the first line to be joined.
- Type J
To join three lines together:
- Put the cursor on the first line to be joined.
- Type 3J
To undo your most recent edit, type
u
To undo all the edits on a single line, type
U (uppercase)
Undoing all edits on a single line only works as long as the cursor stays on that line. Once you move the cursor off a line, you cannot use U to restore the line. Moving Around in a File
There are shortcuts to move more quickly though a file. All these work in command mode.
Key Movement
--- --------
w forward word by word
b backward word by word
$ to end of line
0 (zero) to beginning of line
H to top line of screen
M to middle line of screen
L to last line of screen
G to last line of file
1G to first line of file
f scroll forward one screen
b scroll backward one screen
d scroll down one-half screen
u scroll up one-half screen
Moving by Searching
To move quickly by searching for text, while in command mode:
- Type / (slash).
- Enter the text to search for.
- Press
.
The cursor moves to the first occurrence of that text.
To repeat the search in a forward direction, type
n
To repeat the search in a backward direction, type
N
Closing and Saving a File
With vi, you edit a copy of the file, rather than the original file. Changes are made to the original only when you save your edits.
To save the file and quit vi, type
ZZ
The vi editor editor is built on an earler Unix text editor called ex. ex commands can be used within vi. ex commands begin with a : (colon) and end with a
To save the edits you have made, but leave vi running and your file open:
- Press
. - Type :w
- Press
.
To quit vi, and discard any changes your have made since last saving:
- Press
. - Type :q!
- Press
.
STARTING vi
vi filename edit a file named "filename"
vi newfile create a new file named "newfile"
ENTERING TEXT
i insert text left of cursor
a append text right of cursor
MOVING THE CURSOR
h left one space
j down one line
k up one line
l right one space
BASIC EDITING
x delete character
nx delete n characters
X delete character before cursor
dw delete word
ndw delete n words
dd delete line
ndd delete n lines
D delete characters from cursor to end of line
r replace character under cursor
cw replace a word
ncw replace n words
C change text from cursor to end of line
o insert blank line below cursor
(ready for insertion)
O insert blank line above cursor
(ready for insertion)
J join succeeding line to current cursor line
nJ join n succeeding lines to current cursor line
u undo last change
U restore current line
MOVING AROUND IN A FILE
w forward word by word
b backward word by word
$ to end of line
0 (zero) to beginning of line
H to top line of screen
M to middle line of screen
L to last line of screen
G to last line of file
1G to first line of file
f scroll forward one screen
b scroll backward one screen
d scroll down one-half screen
u scroll up one-half screen
n repeat last search in same direction
N repeat last search in opposite direction
CLOSING AND SAVING A FILE
ZZ save file and then quit
:w save file
:q! discard changes and quit file
Want all the default settings back in MicroB
- close the browser
- open xterm and type:
rm .mozilla/microb/prefs.js
use the text editor application to edit your prefs.js file
cd .mozilla/microb/
cp prefs.js prefs.js.backup
ln -s ./prefs.js ~/MyDocs/.documents/prefs.js.txt