gravecad1
Posts: 106
Joined: Sat Jul 21, 2012 8:31 am

how to run

Wed Oct 09, 2013 5:35 pm

Hi
Could someone give me some instructions on how to run programs on rpi 256mb b. How do i
run programs downloaded from the internet?

gravecad1

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: how to run

Wed Oct 09, 2013 6:11 pm

As with Windows, the general answer is that you give the name of the program on the command line, or click on its icon on the GUI.

But there are many variations in how to download and run programs from the internet: it would be better to give examples of what you want to achieve.

Incidentally, I had a feeling your query sounded familiar. It seems to be a duplicate of this question that you asked a month ago.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

User avatar
Davespice
Forum Moderator
Forum Moderator
Posts: 1662
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: how to run

Thu Oct 10, 2013 10:03 am

Hi there;
Maybe it would be a good time to try and tame the command line beast?
Don't be afraid to try, its real easy once you've learnt.

Take an hour or two to do this and check these out;
http://www.youtube.com/watch?v=RuusmAGbnOo
http://www.techradar.com/news/computing ... ce-1161712
http://linuxcommand.org/learning_the_shell.php

gravecad1
Posts: 106
Joined: Sat Jul 21, 2012 8:31 am

Re: how to run

Thu Oct 10, 2013 5:17 pm

Can anyone tell me, specifically, how to use the run command on rpi?

gravecad

confuseling
Posts: 144
Joined: Mon Aug 26, 2013 1:41 pm

Re: how to run

Thu Oct 10, 2013 5:23 pm

DeeJay wrote:...
Incidentally, I had a feeling your query sounded familiar. It seems to be a duplicate of this question that you asked a month ago.
http://www.raspberrypi.org/phpBB3/searc ... 5&sr=posts

gravecad1:

You're not going to get a better answer by asking the question repeatedly. It depends *massively* what kind of program you're trying to run.

Be as specific as possible, and somebody will probably be able to explain it.
http://forums.debian.net

User avatar
topguy
Posts: 5570
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: how to run

Thu Oct 10, 2013 5:24 pm

I would recommend "forgetting" a lot of things that is normal on Windows.

Most people would open the "terminal" which gives you a shell window where you can "run" any command you want.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: how to run

Thu Oct 10, 2013 6:43 pm

gravecad1 wrote:Can anyone tell me, specifically, how to use the run command on rpi?
Using Raspbian as the Operating System on my RPi, there is no command named run.

Would you like to say, specifically, where you have heard about this command and what you expect it to do?
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

drgeoff
Posts: 9385
Joined: Wed Jan 25, 2012 6:39 pm

Re: how to run

Thu Oct 10, 2013 7:14 pm

I sincerely hope I am not doing the OP a grave injustice by wondering if he thinks an RPi can run programs written for computers which have MS Windows as the OS. :)

User avatar
Davespice
Forum Moderator
Forum Moderator
Posts: 1662
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: how to run

Thu Oct 10, 2013 8:20 pm

Gravecad1, I strongly suggest you look at the links I posted above. Especially the video :)

W. H. Heydt
Posts: 10371
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: how to run

Thu Oct 10, 2013 8:22 pm

drgeoff wrote:I sincerely hope I am not doing the OP a grave injustice by wondering if he thinks an RPi can run programs written for computers which have MS Windows as the OS. :)
That crossed my mind as well....

For the OP...

What you do is to open the "Terminal" window. That works very much like the "Command Prompt" or "DOS Box" (depending on which version of Windows you are used to). Within the terminal, you will have a prompt at which you type toe command you want to run. If the executable for the command is not in any of the known path directories, you will have provide a path to it--either relative to where you are, or absolute within the file system, or change to the directory where the executable resides. Note that your home directory (typically /home/pi) is *not* in the path, but you can use "./<commandname>".

The second thing to be aware of is that you need *permission* to run the program. Do the command "ls -l" against the directory that contains the executable file. Look for "x" in relevant places in the permissions set. If there are no x's, then no one can run the command.

Third...as is being noted, you can only execute commands that are (a) complied to run in a Linux environment,and (b) compiled to run on an ARMv6 processor. Programs compiled for Windows and/or x86 processors simply won't run (unless you're using some form of simulator that provides the system interface environment and/or instruction translation it needs).

If any of the above concepts are unfamiliar, I suggest asking about them in the Beginners forum, where they will be explained at length.

User avatar
LemmeFatale
Posts: 253
Joined: Fri Feb 01, 2013 8:47 pm
Location: UK

Re: how to run

Fri Oct 11, 2013 11:30 am

As with drgeoff, I also hope that I'm not doing gravecad1 a disservice here, but it is worth noting that it's not typically the "Linux way" to go out downloading programs from the internet, in the way that is the norm for Microsoft Windows.

You generally would use a "package manager"; Imagine it as being like a warehouse full of boxed-up, ready-to-use software, that you then type a command to get hold of - if you've seen people referring to "apt-get" around here, that's an example of using a package manager to get software. For example. if you were to type sudo apt-get install ninvaders and hit the enter key on your keyboard, it would install a terminal-based Space Invaders clone. To run this, you would simply type ninvaders at the command-line, and hit enter.

Compiling software from source code is a different matter, but I hope that this will do as a starting point. ;)
Classic - Raspberry Pi Model B (512MB) with Motorola Atrix Lapdock
Lemcon-One - Raspberry Pi Model B (256MB) PiMAME TV-Box

Return to “Troubleshooting”