Gordon52

Differences between revisions 11 and 12
Revision 11 as of 2007-01-03 21:27:32
Size: 2243
Editor: c-67-166-92-174
Comment: hello world!
Revision 12 as of 2007-01-03 21:32:18
Size: 2245
Editor: c-67-166-92-174
Comment: hello world!
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
....
Line 22: Line 22:
 
Line 24: Line 25:
 
Line 26: Line 28:
....
Line 29: Line 30:
 
Line 30: Line 32:
 

Problems I encountered as a Linux newbe:



  • Q: How do I compile HelloWorld.cpp (file is on my desktop)? A:

#include <iostream>

int main()

{

  • std::cout << "Hello, world!" << std::endl; return 0;

}

/Desktop$ g++ hello.cpp -o hello

/Desktop$ ./hello

Hello, world!


  • Q: How do I make a link on my desktop to open a shell?

    A: Applications>Accessories> click and drag "Terminal" onto desktop

.

  • Q: How do I change the shell's working directory on opening (so I don't have to type cd ....)

    A: Right mouse click on terminal icon > Properties > Launcher > edit Command to read "gnome-terminal --working-directory=Desktop"


  • Q: How come when I open FileBrowser and search for g++ it doesn't find it? (I've tinkered with every search option I could find.) P.S. g++ is at user/bin. A: ?



  • Q: What is the keyboard shortcut for copy and Paste? ctrl+v doesn't work. A: ?


  • Q: Why don't my python programs run, they worked fine in Windows.

    A: Add "#! /usr/bin/python" to the beginning of the file and make sure it's executable - Right click > Proprties > Permissions. Also, IDLE is available from the Add/Remove menu.


Gordon52 (last edited 2008-08-06 16:38:25 by localhost)