Differences between revisions 1 and 2
Revision 1 as of 2020-09-08 11:32:46
Size: 1116
Editor: Praveen A
Comment: create instructions for setting up diaspora inside lxc
Revision 2 as of 2020-09-08 11:33:38
Size: 1120
Editor: Praveen A
Comment:
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.

  1. Enable contrib section in /etc/apt/sources.list. apt update && apt install diaspora-installer.

  2. During installation, choose diaspora.lxc as the hostname

  3. Disable https in debconf wizard
  4. After installation is complete, change require_ssl to false in /etc/diaspora/diaspora.yml

  5. 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,

  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

  2. Visit http://diaspora.lxc on host browser