mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	scripts/lxc into docs/examples/lxc/ and assumption noted
This commit is contained in:
		
							parent
							
								
									4ed5c55782
								
							
						
					
					
						commit
						f135ed12b0
					
				@ -40,8 +40,8 @@ EOF
 | 
			
		||||
systemctl restart proftpd
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#Get Paperless from git (NB: currently fork)
 | 
			
		||||
su -c "cd /home/paperless ; git clone https://github.com/bmsleight/paperless" paperless
 | 
			
		||||
#Get Paperless from git 
 | 
			
		||||
su -c "cd /home/paperless ; git clone https://github.com/danielquinn/paperless" paperless
 | 
			
		||||
 | 
			
		||||
# Install Pip Requirements
 | 
			
		||||
apt-get -y install python3-pip python3-venv
 | 
			
		||||
@ -64,7 +64,7 @@ su -c "cd /home/paperless/paperless/src/ ; ./manage.py createsuperuser" paperles
 | 
			
		||||
su -c "cd /home/paperless/paperless/src/ ; ./manage.py collectstatic" paperless
 | 
			
		||||
 | 
			
		||||
# Set-up apache
 | 
			
		||||
cp /home/paperless/paperless/scripts/lxc/paperless.conf /etc/apache2/sites-available/
 | 
			
		||||
cp /home/paperless/paperless/docs/examples/lxc/paperless.conf /etc/apache2/sites-available/
 | 
			
		||||
a2dissite 000-default.conf
 | 
			
		||||
a2ensite paperless.conf
 | 
			
		||||
systemctl reload apache2
 | 
			
		||||
@ -43,7 +43,7 @@ You can go multiple routes with setting up and running Paperless:
 | 
			
		||||
 | 
			
		||||
 * The `bare metal route`_
 | 
			
		||||
 * The `docker route`_
 | 
			
		||||
 * The `linux containers route`_
 | 
			
		||||
 * A suggested `linux containers route`_
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
The `docker route`_ is quick & easy.
 | 
			
		||||
@ -51,6 +51,10 @@ The `docker route`_ is quick & easy.
 | 
			
		||||
The `bare metal route`_ is a bit more complicated to setup but makes it easier
 | 
			
		||||
should you want to contribute some code back.
 | 
			
		||||
 | 
			
		||||
The `linux containers route`_ is quick, but makes alot of assumptions on the 
 | 
			
		||||
set-up, on the other hand the script could be used to install on a base
 | 
			
		||||
debian or ubuntu server.
 | 
			
		||||
 | 
			
		||||
.. _docker route: setup-installation-docker_
 | 
			
		||||
.. _bare metal route: setup-installation-bare-metal_
 | 
			
		||||
.. _Docker Machine: https://docs.docker.com/machine/
 | 
			
		||||
@ -489,16 +493,24 @@ Docker daemon.
 | 
			
		||||
 | 
			
		||||
.. _setup-installation-linux-containers:
 | 
			
		||||
 | 
			
		||||
Linux Container Method
 | 
			
		||||
++++++++++++++++++++++
 | 
			
		||||
Suggested way for Linux Container Method
 | 
			
		||||
++++++++++++++++++++++++++++++++++++++++
 | 
			
		||||
 | 
			
		||||
This method uses some rigid assumptions, for the best set-up:-
 | 
			
		||||
 | 
			
		||||
 * Ubuntu lts as the container
 | 
			
		||||
 * Apache as the webserver
 | 
			
		||||
 * proftpd as ftp server
 | 
			
		||||
 * ftpupload as the ftp user
 | 
			
		||||
 * paperless as the main user for website 
 | 
			
		||||
 * http://paperless.lan is the desired lan url
 | 
			
		||||
 * LXC set to give ip addresses on your lan
 | 
			
		||||
 | 
			
		||||
This could also be used as an install on a base debain/ubuntu server, 
 | 
			
		||||
if the above assumptions are acceptable.
 | 
			
		||||
 | 
			
		||||
1. Install lxc
 | 
			
		||||
 | 
			
		||||
   .. caution::
 | 
			
		||||
 | 
			
		||||
      This guide assumes that you use lxc on a ubuntu host, with  
 | 
			
		||||
      networking set-up to get ip addresses on your lan. 
 | 
			
		||||
      However, if this is set-up only two commands are needed.
 | 
			
		||||
 | 
			
		||||
2. Lanch paperless container
 | 
			
		||||
 | 
			
		||||
@ -510,7 +522,7 @@ Linux Container Method
 | 
			
		||||
 | 
			
		||||
.. code:: bash
 | 
			
		||||
 | 
			
		||||
    $ lxc exec paperless -- sh -c "wget https://raw.githubusercontent.com/danielquinn/paperless/master/scripts/lxc/lxc-install.sh && /bin/bash lxc-install.sh"
 | 
			
		||||
    $ lxc exec paperless -- sh -c "wget https://raw.githubusercontent.com/danielquinn/paperless/master/docs/examples/lxc/lxc-install.sh && /bin/bash lxc-install.sh"
 | 
			
		||||
 | 
			
		||||
The script will ask you for an ftpupload password.  
 | 
			
		||||
As well as the super-user for paperless web front-end. 
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user