4 users=`awk -F ':' '$3>=1000 && $3<2000 {print $1}' /etc/passwd`
6 # Install gnunet.conf for existing users.
8 install -m644 -o $user -g $user -D /etc/skel/.config/gnunet.conf \
9 /home/$user/.config/gnunet.conf
12 # Enable GNS proxy for users, if desired.
13 echo "Use GNU Name System in Firefox/Chromium by default? [y,N]"
17 # Enable GNS proxy for existant users.
18 for user in $users; do
19 port=$((8000+$(id -u $user)))
20 gnunet-config -c /home/$user/.config/gnunet.conf \
23 --option=IMMEDIATE_START \
25 gnunet-config -c /home/$user/.config/gnunet.conf \
32 # Enable GNS proxy for future users.
33 echo "[gns-proxy]" >> /etc/skel/.config/gnunet.conf
34 echo "IMMEDIATE_START = YES" >> /etc/skel/.config/gnunet.conf