Help - Search - Members - Calendar
Full Version: Another Beginner Question ...
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Linux Applications
andresgriego
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
bluedevils
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
andresgriego
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
grog
Use the cancel key in place of escape. HTH
andresgriego
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
bluedevils
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).
grog
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.
bluedevils
this might help clarify things

http://www.oesf.org/forums/index.php?showtopic=11564

and this

http://s91215199.onlinehome.us/zaurus/zgcc2install.html
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.