Skip to content

Commit 400814b

Browse files
committedDec 18, 2016
add manual installation instructions (in Italian)
1 parent 226b0ac commit 400814b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
 

‎README.md

+44
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,47 @@ lookup di un indirizzo Internet
4747
dig @127.0.0.1 wiki.ninux.org
4848
```
4949

50+
51+
Installazione manuale (no docker)
52+
---------------------------------
53+
54+
Installare tramite il gestore di pacchetti della propria distribuzione Linux (per esempio apt-get) i pacchetti python2.7, dnsmasq e git.
55+
56+
Scaricare o clonare con git questo repository nella directory `/root/chininux-docker`.
57+
58+
Clonare con git il repository di chininux in `/root/chininux` e scaricare le dipendenze con pip:
59+
```
60+
git clone https://github.com/ninuxorg/chininux /root/chininux
61+
cd /root/chininux
62+
git submodule init
63+
git submodule update
64+
pip install -r /root/chininux/requirements.txt
65+
```
66+
67+
Copiare da questo repository la configurazione di chininux:
68+
```
69+
cp /root/chininux-docker/settings.py /root/chininux/
70+
```
71+
72+
Creare la directory da cui dnsmasq leggera' il file hosts prodotto da chininux:
73+
```
74+
mkdir -p /etc/chosts
75+
```
76+
77+
Aggiungere al cron lo script che chiama periodicamente chininux per produrre il file hosts. Per esempio:
78+
```
79+
cp /root/chininux-dcoker/chininuxhostscript /etc/cron.hourly/chininuxhostscript
80+
chmod +x /etc/cron.hourly/chininuxhostscript
81+
```
82+
83+
E lanciarlo una volta per inizializzare il file hosts in /etc/chosts/:
84+
```
85+
/etc/cron.hourly/chininuxhostscript
86+
```
87+
88+
Infine, dopo aver configurato opportunamente i propri firewall, lanciare dnsmasq:
89+
```
90+
dnsmasq -d --hostsdir=/etc/hosts -C /root/chininux-docker/dnsmasq.conf
91+
```
92+
93+

0 commit comments

Comments
 (0)
Please sign in to comment.