Support #597
Install an Offline Arch Wiki
Description
The Arch wiki is a huge resource for many of my projects, so having an offline copy for those occasions I am not on the Internet is useful. This is a guide for installing the Arch wiki package and hosting it with nginx inside of a VM. This guide assumes the virtual Arch environment is already setup and at a root shell.
Prepare the environment¶
- Ensure everything is up to date:
pacman -Syu
Install Arch Wiki¶
- Install that arch-wiki-docs package:
pacman -S arch-wiki-docs
- Install nginx:
pacman -S nginx
- Edit the nginx config:
nano /etc/nginx/nginx.conf
- And change the default location in the http server block:
location / { root /usr/share/doc/arch-wiki/html/en/; index index.html index.htm; autoindex on; }
NOTE: Make to include the autoindex line, since the arch-wiki-docs package does not have a proper index file.
- And change the default location in the http server block:
- Start and enable nginx at boot:
systemctl start nginx.service systemctl enable nginx.service
Install RFC¶
- Install RFC:
pacman -S rfc
- Edit the nginx config:
nano /etc/nginx/nginx.conf
- And add a location in the http server block for rfc:
location /rfc { root /usr/share/doc/rfc; index index.html index.htm; autoindex on; }
NOTE: Make to include the autoindex on; line, since the arch-wiki-docs package does not have a proper index file.
- And add a location in the http server block for rfc:
Updated by Daniel Curtis over 9 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
Updated by Daniel Curtis over 9 years ago
- Description updated (diff)
- Status changed from In Progress to Resolved
- % Done changed from 50 to 100