⇤ ← Revision 1 as of 2020-09-08 11:32:46
1116
Comment: create instructions for setting up diaspora inside lxc
|
1120
|
Deletions are marked like this. | Additions are marked like this. |
Line 17: | Line 17: |
1. Run the following command to verify the diaspora service is running `curl -v --unix-socket /run/diaspora/diaspora.sock http://gitlab.lxc/` | 1. Run the following command to verify the diaspora service is running `curl -v --unix-socket /run/diaspora/diaspora.sock http://diaspora.lxc/` |
Line 22: | Line 22: |
1. Add ip address of container (`ip a` will list the ip address) in host machine's `/etc/hosts` to resolve gitlab.lxc. `192.168.122.104 diaspora.lxc # Change ip address` | 1. Add ip address of container (`ip a` will list the ip address) in host machine's `/etc/hosts` to resolve diaspora.lxc. `192.168.122.104 diaspora.lxc # Change ip address` |
# lxc-create -n diaspora -t debian -- -r unstable # lxc-start -n diaspora # lxc-attach -n diaspora
See LXC for more details on managing a container.
Now inside the container,
You will need a utf-8 locale to install postgresql. Run dpkg-reconfigure locales and choose a locale with utf-8 support (for example en_IN.UTF-8). Reboot the container (reboot command) and run lxc-attach again.
Enable contrib section in /etc/apt/sources.list. apt update && apt install diaspora-installer.
During installation, choose diaspora.lxc as the hostname
- Disable https in debconf wizard
After installation is complete, change require_ssl to false in /etc/diaspora/diaspora.yml
Run the following command to verify the diaspora service is running curl -v --unix-socket /run/diaspora/diaspora.sock http://diaspora.lxc/
On your host machine,
Add ip address of container (ip a will list the ip address) in host machine's /etc/hosts to resolve diaspora.lxc. 192.168.122.104 diaspora.lxc # Change ip address
Visit http://diaspora.lxc on host browser