HOW INSTALL OPENWISP_SERVER ON RASPBERRY PI 2

626 views
Skip to first unread message

Nhựt Tân Trần

unread,
Feb 23, 2017, 3:02:33 AM2/23/17
to OpenWISP
- Hi!
- I have a raspberry pi 2 and i want install Openwisp on this to control my Wireless but i don't know how to install. Can you help me!
- Thank you very much!

Federico Capoano

unread,
Feb 23, 2017, 3:41:07 AM2/23/17
to Nhựt Tân Trần, OpenWISP
Hi and welcome,

I did buy a raspberry pi 3 to test this a while ago but I never proceeded unfortunately.

If you are using the raspbian OS you could try using the same procedure described in ansible-openwisp2, it may work or it may not, I'm not 100% sure. Have you tried this yet?

Federico

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nhựt Tân Trần

unread,
Feb 23, 2017, 4:20:38 AM2/23/17
to OpenWISP

_No I haven't tried install ansible-openwsip 2 on my raspberry. I just install ansible-openwsip2 on my laptop(ubuntu 14.04) but it didn't success. I don't know the Value of "openwisp2_shared_secret: <PLEASE_CHANGE_ME>". Si i change it like the video and run but it's error(the error is in my picture ). You can help me fix it(i want to test on my lap before install in my raspberry )
_Thank you very much!



Vào 15:41:07 UTC+7 Thứ Năm, ngày 23 tháng 2 năm 2017, Federico Capoano đã viết:

Federico Capoano

unread,
Feb 23, 2017, 5:56:46 AM2/23/17
to Nhựt Tân Trần, OpenWISP
Please read Install OpenWISP2 locally (laptop, desktop pc). I hope it's clear, if you don't understand something, please let me know.

PS: I just added that bit of documentation now.

Federico
Message has been deleted

Nhựt Tân Trần

unread,
Feb 27, 2017, 5:26:56 AM2/27/17
to OpenWISP
- I'm very sorry because send the question to your private email
- Please help me. Today when i install it can't update packet
- This is my error :fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to update apt cache."}

   Thank you very much!!

Vào 17:56:46 UTC+7 Thứ Năm, ngày 23 tháng 2 năm 2017, Federico Capoano đã viết:

Federico Capoano

unread,
Feb 27, 2017, 6:09:59 AM2/27/17
to Nhựt Tân Trần, OpenWISP
Hi,

I'm assuming you are installing on your laptop now.

The following command is failing on your laptop:

sudo apt-get update

This happens because you have some misconfiguration in the package source list on your side.
Try to run it manually on the command line, see what error you get, look it on google or ask in the ubuntu forums how to solve it.
Once that command runs without errors, run the playbook again.

Federico

Nhựt Tân Trần

unread,
Feb 27, 2017, 7:19:30 AM2/27/17
to OpenWISP
- I do it, and i can update but it's still errror
- This is my Error:
TASK [openwisp.openwisp2 : Install system packages] ****************************
failed: [localhost] (item=[u'sudo', u'python-software-properties', u'build-essential', u'sqlite3', u'supervisor', u'nginx', u'openssl', u'libssl-dev', u'libffi-dev', u'python-dev']) => {"cache_update_time": 1487311337, "cache_updated": false, "failed": true, "item": ["sudo", "python-software-properties", "build-essential", "sqlite3", "supervisor", "nginx", "openssl", "libssl-dev", "libffi-dev", "python-dev"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'sudo' 'python-software-properties' 'supervisor' 'libffi-dev'' failed: E: There are problems and -y was used without --force-yes\n", "stderr": "E: There are problems and -y was used without --force-yes\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n  libffi6 python-meld3\nThe following NEW packages will be installed:\n  libffi-dev python-meld3 python-software-properties supervisor\nThe following packages will be upgraded:\n  libffi6 sudo\n2 upgraded, 4 newly installed, 0 to remove and 622 not upgraded.\nNeed to get 815 kB of archives.\nAfter this operation, 2118 kB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n  libffi6 sudo python-software-properties libffi-dev\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", "  libffi6 python-meld3", "The following NEW packages will be installed:", "  libffi-dev python-meld3 python-software-properties supervisor", "The following packages will be upgraded:", "  libffi6 sudo", "2 upgraded, 4 newly installed, 0 to remove and 622 not upgraded.", "Need to get 815 kB of archives.", "After this operation, 2118 kB of additional disk space will be used.", "WARNING: The following packages cannot be authenticated!", "  libffi6 sudo python-software-properties libffi-dev"]}

- Please help me fix it
- Thank you very much !!!
Vào 18:09:59 UTC+7 Thứ Hai, ngày 27 tháng 2 năm 2017, Federico Capoano đã viết:

Federico Capoano

unread,
Feb 27, 2017, 7:30:07 AM2/27/17
to OpenWISP
You have not solved your issue. apt-get update cannot update the package list because your system is misconfigured. I cannot do much with this issue.

What I can help you with is to test on a clean raspberry pi, which I just did, and the OpenWISP 2 was installed successfully without any issues.


Federico

Nhựt Tân Trần

unread,
Feb 27, 2017, 7:40:28 AM2/27/17
to OpenWISP
- Thank you very much i will try this.

Vào 19:30:07 UTC+7 Thứ Hai, ngày 27 tháng 2 năm 2017, Federico Capoano đã viết:
Reply all
Reply to author
Forward
0 new messages