Gordon52

Differences between revisions 12 and 13
Revision 12 as of 2007-01-03 21:32:18
Size: 2245
Editor: c-67-166-92-174
Comment: hello world!
Revision 13 as of 2008-07-09 12:33:11
Size: 2269
Editor: client-86-24-144-11
Comment: Wiki clean. Added to CategoryHomepage.
Deletions are marked like this. Additions are marked like this.
Line 71: Line 71:
----
CategoryHomepage

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.



CategoryHomepage

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