Project

General

Profile

Support #597

Install an Offline Arch Wiki

Added by Daniel Curtis almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Server
Target version:
Start date:
04/14/2015
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

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.
  • 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.
#1

Updated by Daniel Curtis almost 9 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50
#2

Updated by Daniel Curtis almost 9 years ago

  • Description updated (diff)
  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100
#3

Updated by Daniel Curtis almost 9 years ago

  • Description updated (diff)
#4

Updated by Daniel Curtis almost 9 years ago

  • Description updated (diff)
#5

Updated by Daniel Curtis almost 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF