![]() ![]() |
Feb 15 2006, 10:35 AM
Post
#1
|
|
|
Group: Members Posts: 48 Joined: 22-January 06 Member No.: 8,972 |
2 questions if I may.
1. I just installed zgcc and would like to do a simple 'helloworld' test. Unfortunately, I cannot find how to produce a brace {} with the Zaurus keyboard. Help? 2. In Vi, I hit 'i' to insert a line. But once I have inserted my line, I cannot hit ESC ( no key ) to ':w!' and save my file. Once I have editted a line in Vi, how do I get back to the commands menu to issue a save command? Thanks guys, Andres |
|
|
|
Feb 15 2006, 11:16 AM
Post
#2
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
I'm not sure if this applies to all models, but on the 3100 fn+o and fn+p for cury braces. cancel is the same as escape on all models
|
|
|
|
Feb 15 2006, 11:26 AM
Post
#3
|
|
|
Group: Members Posts: 48 Joined: 22-January 06 Member No.: 8,972 |
The braces work, those weren't silkscreened onto the keyboard though.
As for Vi, I'll try that later. Thank you very much for your help. Andres |
|
|
|
Feb 15 2006, 01:09 PM
Post
#4
|
|
![]() Group: Members Posts: 692 Joined: 27-January 04 From: Canada Member No.: 1,564 |
Use the cancel key in place of escape. HTH
|
|
|
|
Feb 15 2006, 02:24 PM
Post
#5
|
|
|
Group: Members Posts: 48 Joined: 22-January 06 Member No.: 8,972 |
ok, this is fun. I have 2 more Windowz questions :
1. I would like to concatenate, onto the end of the PATH variable, the path to my gcc executable, which is /mnt/cf/.zgcc/bin/. This way I can call GCC from any location. 2. The tutorial author says I should add to my .bashrc the line : "/home/zaurus/./zgcc.sh" to have it setup environment variables whenever I startup bash. Where is this .bashrc file? Any takers? Thanks, I really appreciate this and will help other users when I can. Andres |
|
|
|
Feb 15 2006, 04:33 PM
Post
#6
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
PATH=$PATH:/mnt/cf/.zgcc/bin/
export PATH .bashrc is not made by default. You can create it if it is not there. It is usually located in the home directory of the user (ie /home/zaurus/.bashrc or /home/root/.bashrc). |
|
|
|
Feb 15 2006, 07:00 PM
Post
#7
|
|
![]() Group: Members Posts: 692 Joined: 27-January 04 From: Canada Member No.: 1,564 |
QUOTE(andresgriego @ Feb 15 2006, 04:24 PM) 1. I would like to concatenate, onto the end of the PATH variable, the path to my gcc executable, which is /mnt/cf/.zgcc/bin/. This way I can call GCC from any location. 2. The tutorial author says I should add to my .bashrc the line : "/home/zaurus/./zgcc.sh" to have it setup environment variables whenever I startup bash. Where is this .bashrc file? Firstly, are you sure you have bash? What rom are you using? If it _is_ bash, then yes, putting those lines in the .bashrc will work. But variables are more appropriately set in the .profile, which is sourced by (almost) any shell. Secondly, is your zgcc.sh a shell script? If so, is the line to invoke it precisely CODE /home/zaurus/./zgcc.sh or? CODE . /home/zaurus/./zgcc.sh There's a big difference. Only the second form would properly set variables in your current environment. |
|
|
|
Feb 15 2006, 08:09 PM
Post
#8
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
this might help clarify things
http://www.oesf.org/forums/index.php?showtopic=11564 and this http://s91215199.onlinehome.us/zaurus/zgcc2install.html |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 03:01 AM |