mancity
Posts: 58
Joined: Tue Dec 23, 2014 8:18 pm

How to input code when you see this...

Sat Jan 03, 2015 7:46 pm

When you see code on I this site which has several lines and says "Code Select"...how do you use it in a Pi Terminal because it only lets you input a line at a time?

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: How to input code when you see this...

Sat Jan 03, 2015 8:58 pm

Use a file editor.

mancity
Posts: 58
Joined: Tue Dec 23, 2014 8:18 pm

Re: How to input code when you see this...

Tue Jan 06, 2015 9:53 am

Here's the example.

Im trying to get this kweb browser, but how do I put this into the terminal to download and install?

Hopefully somebody can help.
Attachments
Code.PNG
Code.PNG (7.03 KiB) Viewed 1986 times

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: How to input code when you see this...

Tue Jan 06, 2015 9:59 am

You are expected

1) to either type off line for line , presssing enter after each
2) copy-paste line for line , pressing enter after each

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: How to input code when you see this...

Tue Jan 06, 2015 10:00 am

If you are running the desktop, you should be able to simply cut and paste. Each line shoudl be inserted to the terminal in order.

If not, then just C&P each line at a time.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

mancity
Posts: 58
Joined: Tue Dec 23, 2014 8:18 pm

Re: How to input code when you see this...

Tue Jan 06, 2015 10:03 am

Aaarrrhhh...

So its enter line 1, press enter, enter line 2, press enter etc?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: How to input code when you see this...

Tue Jan 06, 2015 10:03 am

Yes.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

mancity
Posts: 58
Joined: Tue Dec 23, 2014 8:18 pm

Re: How to input code when you see this...

Tue Jan 06, 2015 10:04 am

Thank you I will try tonight :D .

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to input code when you see this...

Tue Jan 06, 2015 10:47 am

mancity wrote:Aaarrrhhh...

So its enter line 1, press enter, enter line 2, press enter etc?
You could write the whole lot as a script file.

Code: Select all

#!/bin/bash
wget http://steinerdatenbank.de/software/kweb-1.6.2.tar.gz
tar -xzf kweb-1.6.2.tar.gz
cd kweb-1.6.2
./debinstall
save that as getkweb.sh
chmod 755 getkweb.sh
./getkweb.sh

Get a beer and celebrate a job well done.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”