kingspp / RPi-AUI

It is a basic introduction for Configuring Raspberry Pi
GNU General Public License v3.0
4 stars 2 forks source link

wget doesn't work #10

Closed pickfire closed 10 years ago

pickfire commented 10 years ago
wget https://github.com/kingspp/Raspberry-Pi-AUI/blob/master/aui-setup.sh

doesn't work and just copy the whole html

kingspp commented 10 years ago

You cant use sh. just use wget https://github.com/kingspp/Raspberry-Pi-AUI/blob/master/aui-setup.sh chmod +x aui-setup.sh ./aui-setup.sh

kingspp commented 10 years ago

wget works flawlessly in my pi

pickfire commented 10 years ago

No, I doesn't work in my pi when I wget https://github.com/kingspp/Raspberry-Pi-AUI/blob/master/aui-setup.sh and head aui-setup.sh:


<!DOCTYPE html>
<html lang="en" class="">
  <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Language" content="en">
kingspp commented 10 years ago

try pacman -Syu wget and then use the command

pickfire commented 10 years ago

After pacman -Syu it is still the same the the log is:

--2014-10-20 09:35:46--  https://github.com/kingspp/Raspberry-Pi-AUI/blob/master/aui-setup.sh
Resolving github.com (github.com)... 192.30.252.129
Connecting to github.com (github.com)|192.30.252.129|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'aui-setup.sh'

    [   <=>                                 ] 46,847      81.6KB/s   in 0.6s   

2014-10-20 09:35:48 (81.6 KB/s) - 'aui-setup.sh' saved [46847]
kingspp commented 10 years ago

aui-setup is saved from the log. Use 'ls' to view the list of files present.

pickfire commented 10 years ago

This is what ls get:

ivan@alarm ~ $ ls
Desktop  Raspberry-Pi-AUI-master  aui-setup.sh

And file aui-setup.sh shows:

aui-setup.sh: HTML document, UTF-8 Unicode text, with very long lines
kingspp commented 10 years ago

file aui-setup.sh ::output:: aui-setup.sh: HTML document, UTF-8 Unicode text, with very long lines

Now execute chmod +x aui-setup.sh ./aui-setup.sh

pickfire commented 10 years ago

After file aui-setup.sh, chmod +x aui-setup.sh: I do file aui-setup.sh:

aui-setup.sh: HTML document, UTF-8 Unicode text, with very long lines

And when I ./aui-setup.sh:

./aui-setup.sh: line 5: syntax error near unexpected token `newline'
./aui-setup.sh: line 5: `<!DOCTYPE html>'
pickfire commented 10 years ago

I think it would be better to:

sudo pacman -Syu git
git clone https://github.com/kingspp/Raspberry-Pi-AUI/
sudo Raspberry-Pi-AUI/AUI/archi.sh

To get a newer version:

cd Raspberry-Pi-AUI
git pull https://github.com/kingspp/Raspberry-Pi-AUI/