https://wiki.archlinux.org/api.php?action=feedcontributions&user=Adrianbs&feedformat=atomArchWiki - User contributions [en]2024-03-28T14:13:20ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Arch_is_the_best&diff=274839Arch is the best2013-09-08T23:54:52Z<p>Adrianbs: /* Translations */ - Added Spanish(Uruguay)</p>
<hr />
<div>[[Category:About Arch]]<br />
== Purpose ==<br />
<br />
The '''Arch is the best''' project is a very sophisticated and exquisite, ego-boosting and mind-blowing (albeit perhaps a bit over-engineered) project which aims to prove Arch's superiority.<br />
<br />
== History ==<br />
<br />
The project was initiated in April 2008 by long time Arch community member [https://bbs.archlinux.org/profile.php?id=2529 lucke] as a simple shell script which provided irrefutable proof that "Arch is the best". Over the following weeks, this project gathered momentum and was ported to multiple different languages, both programming and verbal.<br />
<br />
== Install ==<br />
<br />
A sample PKGBUILD has been uploaded to AUR called {{aur|archbest-mod1}}.<br />
<br />
== The Code ==<br />
<br />
The "Arch is the best" project is ported to many programming languages.<br />
<br />
<br />
'''Ada''' - A systems critical programming language.<br />
with Ada.Text_IO;<br />
use Ada.Text_IO;<br />
procedure ArchIsTheBest is<br />
begin<br />
Put_Line("Arch is the best!");<br />
end HelloWorld;<br />
<br />
'''ATS''' - A functional programming language that uses dependent types to improve programs' reliability.<br />
implement main () = println! "Arch is the best!"<br />
<br />
'''Awk''' - A data-driven programming language designed for processing text-based data.<br />
BEGIN {<br />
print "Arch is the best!"<br />
}<br />
<br />
<br />
'''Befunge''' - Believed to be the first two-dimensional, ASCII-based, general-purpose (in the sense of "you could plausibly write Hunt the Wumpus in it") programming language.<br />
<v"Arch is the best!"0<br />
<,_@#:<br />
<br />
<br />
'''Bourne shell''' - The original program, should be compatible with any shell.<br />
#!/bin/sh<br />
echo "Arch is the best!"<br />
<br />
<br />
'''Bourne shell (Alternate)''' - Handy for piping the output to your favourite IRC/email/IM client. Should work with any shell.<br />
#!/bin/sh<br />
yes Arch is the best!<br />
<br />
<br />
'''Bourne shell (Dynamically updated)'''<br />
<pre style='overflow:auto'><br />
#!/bin/bash<br />
wget http://wiki.archlinux.org/index.php/Arch_is_the_best -qO-| sed -n ':b;n;s/id="Translations"//;Tb;:d;n;s/id="See_also"//;t;p;bd'|sed '/<i>.*<\/i>/d;s/<[^>]*>//g'|sed 'N;s/\n/: /;N;N;s/\n//g'<br />
</pre><br />
<br />
<br />
'''brainfuck''' - Doesn't the language name explain it?<br />
++>++++++>+++++<+[>[->+<]<->++++++++++<]>>.<[-]>[-<++>]<br />
<----------------.---------------.+++++.<+++[-<++++++++++>]<.<br />
>>+.++++++++++.<<.>>+.------------.---.<<.>>---.<br />
+++.++++++++++++++.+.<<+.[-]++++++++++.<br />
<br />
<br />
'''C''' - Note the three space indenting used in this project, much like that used by other superior beings.<br />
#include <stdio.h><br />
#include <stdlib.h><br />
int main(void) <br />
{<br />
puts("Arch is the best!");<br />
return EXIT_SUCCESS;<br />
}<br />
<br />
<br />
'''C#''' - Intended to be a simple, modern, general-purpose, object-oriented programming language.<br />
using System;<br />
public class ArchIsTheBest<br />
{<br />
static public void Main ()<br />
{<br />
Console.WriteLine ("Arch is the best!");<br />
}<br />
}<br />
<br />
<br />
'''C++''' - Arch == Linux++<br />
#include <iostream><br />
#include <cstdlib><br />
int main ()<br />
{<br />
std::cout << "Arch is the best!" << std::endl;<br />
return EXIT_SUCCESS;<br />
}<br />
<br />
<br />
'''CoffeeScript''' - A programming language that transcompiles to JavaScript.<br />
alert 'Arch is the best!'<br />
<br />
<br />
'''Clojure''' - A Lisp dialect that runs on the JVM.<br />
(def translations {"english" "Arch is the best!",<br />
"german" "Arch ist das Beste!",<br />
"australian" "Arch is fair dinkum, mate!",<br />
"h4x0r" "arhc 51 7he be57!",<br />
"spanish" "¡Arch es el mejor!"})<br />
<br />
(defn read-choice []<br />
(println "\nAvailable languages: ")<br />
(doall (map #(println (key %)) translations))<br />
(print "Enter language or Ctrl-c: ") (flush)<br />
(translations (read-line) :badinput))<br />
<br />
(defn arch-is-the-best []<br />
(loop [choice (read-choice)]<br />
(case choice<br />
:badinput (do (print "\nBad input!\n")<br />
(recur (read-choice)))<br />
(do (print "\n" choice "\n")<br />
(recur (read-choice))))))<br />
or<br />
(def translations {"english" "Arch is the best!",<br />
"german" "Arch ist das Beste!",<br />
"australian" "Arch is fair dinkum, mate!",<br />
"h4x0r" "arhc 51 7he be57!",<br />
"spanish" "¡Arch es el mejor!"<br />
"street" "Arch iz da shizzle ma nizzle"})<br />
(while 1<br />
(println "\nPick a language:\n" (map #(key %) translations) "\n language: ")<br />
(println (translations (read-line) "Not a valid language")))<br />
<br />
<br />
or<br />
(prn "Arch is the best!")<br />
<br />
'''Common Lisp''' - Tested on SBCL, feel free to add more of the translations.<br />
#!/usr/bin/sbcl --script<br />
(defparameter *best-list* '((English "Arch is the best!")<br />
(Chinese "Arch, 她出类拔萃!")<br />
(German "Arch ist das Beste!")<br />
(Greek "Το Arch είναι το καλύτερο!")))<br />
(defun aitb ()<br />
(format t "Available languages: ~{~{~@(~a~)~*~}~^, ~}.~%" *best-list*)<br />
(loop for input = (progn (format t "~&Input the desired language, (or 'quit'): ~%")<br />
(force-output)<br />
(read-line))<br />
if (string-equal input "quit")<br />
do (loop-finish)<br />
else<br />
do (let ((language-def<br />
(assoc input *best-list*<br />
:key (lambda (lang) (symbol-name lang))<br />
:test #'string-equal)))<br />
(if language-def<br />
(format t "~&~A~%" (second language-def))<br />
(format t "~&Invalid language.~%"))))<br />
(format t "~&May the Arch be with you!~%"))<br />
(aitb)<br />
<br />
<br />
'''Common Lisp (Alternate)''' - Should run on any implementation (Clisp, Allegro, SBCL...)<br />
(princ "Arch is the best!")<br />
<br />
<br />
'''Dart''' - Google's javascript killer<br />
main(){<br />
print('Arch is the best');<br />
}<br />
<br />
<br />
'''Erlang''' - A concurrent, garbage-collected programming language and runtime system.<br />
-module(arch).<br />
-export([is_the_best/0]).<br />
is_the_best() -> io:fwrite("Arch is the best!\n").<br />
<br />
Or using message passing between processes<br />
<br />
-module(arch).<br />
-export([ultimate_question/0,the_answer/0]).<br />
the_answer() -><br />
receive<br />
{Client,who_is_the_best} -><br />
Client ! {self(),"Arch is the best!"};<br />
{Client,_} -><br />
Client ! {self(),"Taco Taco Taco!"}<br />
end,<br />
the_answer().<br />
ultimate_question() -><br />
Pid = spawn(arch,the_answer,[]),<br />
Pid ! {self(),who_is_the_best},<br />
receive<br />
{Pid,Response} -> io:format("~s~n",[Response])<br />
end.<br />
<br />
<br />
'''Factor''' - High-level stack-based language.<br />
"Arch is the best" print<br />
<br />
<br />
'''Forth''' - Stack-based language.<br />
." Arch is the best" cr -- kiss way<br />
<br />
'''Fortran95'''<br />
program arch<br />
print *,"Arch is the best!"<br />
end program arch<br />
<br />
'''Genie''' - A new programming language, that allows for a more modern programming style while being able to effortlessly create and use GObjects natively. <br />
init<br />
print "Arch is the best"<br />
<br />
<br />
'''Gjs''' - A Javascript binding for GNOME. It's mainly based on Spidermonkey javascript engine and the GObject introspection framework.<br />
#!/usr/bin/env gjs<br />
print ('Arch is the best');<br />
<br />
<br />
'''Go''' - A language created by Google that's a love child between C, C++ and Python.<br />
package main<br />
<br />
import "fmt"<br />
<br />
func main() {<br />
fmt.Println("Arch is the best!")<br />
}<br />
<br />
<br />
'''Haskell''' - The language where IO is easy and unproblematic.<br />
main = putStrLn "Arch is the best!"<br />
<br />
<br />
'''HTML''' - A markup language used to create and define web pages and their content.<br />
<pre><br />
<!DOCTYPE html><br />
<html lang='en'><br />
<head><br />
<title>Arch is the best!</title><br />
</head><br />
<body><br />
<p>Arch is the best!</p><br />
</body><br />
</html><br />
</pre><br />
<br />
'''Io'''<br />
"Arch is the best!" println<br />
<br />
<br />
'''Java''' - An extremely portable language, this will run on pretty much anything, it might even run on your toaster!<br />
public class ArchIsTheBest {<br />
public static void main(String[] args) {<br />
System.out.println("Arch is the best!");<br />
}<br />
}<br />
<br />
<br />
'''JavaScript''' - Also known as ECMAScript, a prototype-based object-oriented scripting language. <br />
console.log('Arch is the best!');<br />
<br />
<br />
'''JavaScript (in a web browser)'''<br />
alert('Arch is the best!');<br />
<br />
<br />
'''LilyPond''' - A powerful music engraving program with an intuitive LaTeX-like input language.<br />
\version "2.12.3"<br />
\include "english.ly"<br />
\header { title = "Arch is the best!" }<br />
\score<br />
{<br />
<<<br />
\relative c' { c4 e g c \bar "||" }<br />
\addlyrics { Arch is the best! }<br />
>><br />
}<br />
<br />
<br />
'''LOLCODE''' - Why not?<br />
HAI<br />
CAN HAS STDIO?<br />
VISIBLE "ARCH IS TEH PWNZ LOL!"<br />
KTHXBYE<br />
<br />
<br />
'''Lua''' - A lightweight, extensible programming language.<br />
print "Arch is the best!"<br />
<br />
'''Morpho''' - Morpho is a multi-paradigm programming language that supports procedural, object-oriented and functional programming. <br />
<br />
writeln("Arch is the best!");<br />
<br />
<br />
'''Nasm(x86_64) (or yasm)''' - Notice that the string is in the .text section, which feels superior<br />
<br />
;nasm -f elf64 arch.asm<br />
;ld -o arch arch.o<br />
;./arch<br />
<br />
section .text<br />
global _start<br />
_start:<br />
mov edx,len<br />
mov ecx,msg<br />
mov ebx,1<br />
mov eax,4<br />
int 0x80<br />
xor ebx,ebx<br />
mov eax,1<br />
int 0x80<br />
msg: db "Arch is the best!",10<br />
len equ $-msg<br />
<br />
<br />
'''Nimrod''' - Portable lightweight programming language.<br />
echo "Arch is the best!"<br />
<br />
<br />
'''Objective-C''' - A reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.<br />
NSLog(@"Arch is the best!");<br />
<br />
<br />
'''OCaml''' - The main implementation of the Caml programming language.<br />
print_endline "Arch is the best!"<br />
<br />
'''Octave''' - High-level interpreted language, primarily intended for numerical computations.<br />
printf("Arch is the best!\n")<br />
<br />
'''Ook!''' - brainfuck, translated to Orangutan<br />
Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook. Ook. Ook! Ook? Ook. Ook? Ook! Ook? Ook! Ook! Ook. Ook? Ook. Ook. Ook? Ook. Ook? Ook! Ook? Ook. Ook! Ook! Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook? Ook! Ook. Ook? Ook. Ook? Ook! Ook. Ook? Ook. Ook! Ook? Ook! Ook! Ook? Ook! Ook. Ook? Ook! Ook? Ook! Ook! Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook! Ook! Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook! Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook! Ook. Ook! Ook? Ook! Ook! Ook? Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook.<br />
<br />
'''Perl''' - A high-level, general-purpose, interpreted, dynamic programming language.<br />
#!/usr/bin/perl<br />
print "Arch is the best!\n";<br />
<br />
<br />
'''PHP''' - A general-purpose scripting language.<br />
<?php<br />
echo "Arch is the best!\n";<br />
?> <br />
<br />
<br />
'''Pixilang''' - Make me pixels.<br />
print("Arch is the best!",0,0,#1897D1)<br />
frame<br />
<br />
<br />
'''Portable GNU assembler''' - as -o arch.o arch.s && ld -o arch -O0 arch.o<br />
<br />
.section .data<br />
archIsBest: <br />
.ascii "Arch is the best!\n"<br />
archIsBest_len:<br />
.long . - archIsBest<br />
.section .text<br />
.globl _start<br />
_start:<br />
xorl %ebx, %ebx<br />
movl $4, %eax <br />
xorl %ebx, %ebx<br />
incl %ebx <br />
leal archIsBest, %ecx<br />
movl archIsBest_len, %edx <br />
int $0x80 <br />
xorl %eax, %eax<br />
incl %eax<br />
xorl %ebx, %ebx <br />
int $0x80<br />
<br />
<br />
'''Processing''' - An open source programming language and IDE built for the electronic arts and visual design.<br />
println("Arch is the best!");<br />
<br />
<br />
'''Prolog''' - A general purpose logic programming language associated with artificial intelligence and computational linguistics.<br />
format('Arch is the best~n',[]).<br />
<br />
<br />
'''Python''' - A general-purpose high-level programming language.<br />
#!/usr/bin/env python3<br />
print('Arch is the best!')<br />
<br />
<br />
'''QBASIC''' - An interpreter for a variant of the BASIC programming language which is based on QuickBASIC.<br />
PRINT "Arch is the best!"<br />
<br />
<br />
'''R''' - A language for statistical computing (and much more!).<br />
archIsBest <- function() { cat("Arch is the best!\n") }<br />
archIsBest()<br />
<br />
<br />
'''Ruby''' - A dynamic, reflective, general purpose object-oriented programming language.<br />
#!/usr/bin/ruby -w<br />
puts 'Arch is the best!'<br />
<br />
<br />
'''Scala''' - A multi paradigm language that runs on the JVM<br />
object ArchIsBest extends App {<br />
println("Arch is the best!")<br />
} <br />
<br />
<br />
<br />
'''Scheme''' - A dialect of Lisp.<br />
(display "Arch is the best!\n")<br />
or in XunDu style<br />
#!/usr/bin/guile1.8 -s<br />
!#<br />
(define 节 or)<br />
(define 哀 #t)<br />
(define (xi) (display "Arch is the best!\n"))<br />
(节 (xi) 哀 (wen) 顺 (le) 变 (jian) )<br />
<br />
<br />
'''Seed''' - A library and interpreter, dynamically bridging the WebKit JavaScriptCore engine, with the GNOME platform.<br />
#!/usr/bin/env seed<br />
print ('Arch is the best');<br />
<br />
<br />
'''Shoes''' - A Ruby version using Shoes for a GUI<br />
Shoes.app :width => 135, :height => 30 do <br />
para "Arch is the Best!"<br />
end<br />
<br />
<br />
'''SQL''' - Structured Query Language, the query language for relational databases<br />
SELECT 'Arch is the best!';<br />
SELECT 'Arch is the best!' from dual; -- for Oracle DB<br />
<br />
<br />
'''Standard ML''' - A general-purpose, modular, functional programming language with compile-time type checking and type inference.<br />
print "Arch is the best!\n"<br />
<br />
<br />
'''Tcl/Tk''' - A scripting language that is commonly used for rapid prototyping, scripted applications, GUIs and testing.<br />
#!/usr/bin/env tclsh<br />
puts "Arch is the best!"<br />
<br />
<br />
'''Vala''' - "Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C"<br />
void main(string[] args) {<br />
stdout.printf("\nArch is the best!\n\n");<br />
}<br />
<br />
<br />
''' Wiring (Arduino)''' - Built on Processing, the open source programming language developed at the Massachusetts Institute of Technology.<br />
void setup() <br />
{<br />
Serial.begin(9600); <br />
}<br />
void loop() <br />
{ <br />
Serial.print("Arch is the best!");<br />
}<br />
<br />
<br />
''' X11 ''' - X11 is an architecture independent system for display of graphical user interfaces.<br />
#include <stdio.h><br />
#include <stdlib.h><br />
#include <string.h><br />
<br />
#include <X11/Xlib.h><br />
<br />
int main()<br />
{<br />
Display *d;<br />
Window w;<br />
XEvent e;<br />
int s;<br />
<br />
if (!(d = XOpenDisplay(NULL))) {<br />
fprintf(stderr, "Couldn't open display, but Arch is the best!\n");<br />
exit(1);<br />
}<br />
<br />
s = DefaultScreen(d);<br />
w = XCreateSimpleWindow(d, RootWindow(d,s), 0, 0, 110, 20, 0, <br />
0, WhitePixel(d,s));<br />
XSelectInput(d, w, ExposureMask | KeyPressMask);<br />
XMapWindow(d,w);<br />
<br />
while (1) {<br />
XNextEvent(d, &e);<br />
if (e.type == Expose) {<br />
XDrawString(d, w, DefaultGC(d, s), 5, 15, "Arch is the best!", 17);<br />
}<br />
}<br />
<br />
XCloseDisplay(d);<br />
return 0;<br />
}<br />
<br />
==Translations==<br />
'''Arabic'''<br />
ارتش هو الأفضل<br />
<br />
'''Australian'''<br />
Arch is fair dinkum, mate!<br />
<br />
'''Bahasa Indonesia'''<br />
Arch terbaik!<br />
<br />
'''Basque'''<br />
Arch onena da!<br />
<br />
'''Belarusian'''<br />
Арч - самы лепшы!<br />
<br />
'''Bengali'''<br />
আর্চ সবচেয়ে ভালো!<br />
<br />
'''Binary ASCII'''<br />
0100000101110010011000110110100000100000011010010111001100100000011101000110100001100101001000000110001001100101011100110111010000100001<br />
<br />
'''British'''<br />
Arch is simply spiffing.<br />
<br />
'''Bulgarian'''<br />
Арч е най-добрият!<br />
<br />
'''Catalan'''<br />
Arch és el millor!<br />
<br />
'''Chinese (Simplified)'''<br />
Arch 最棒了!<br />
<br />
'''Ancient Chinese'''<br />
阿祺,盡善矣。<br />
<br />
'''Chinese (Taobao Style - 淘宝体)'''<br />
Arch,好评哦,亲!<br />
<br />
'''Czech'''<br />
Arch je nejlepší!<br />
<br />
'''Danish'''<br />
Arch er bedst!<br />
<br />
'''Desrever (Reversed)'''<br />
!tseb eht si hcrA<br />
<br />
'''Dutch'''<br />
Arch is de beste!<br />
<br />
'''Old English'''<br />
Arch biþ betst!<br />
<br />
'''Esperanto'''<br />
Arch plejbonas!<br />
<br />
'''Estonian'''<br />
Arch on parim!<br />
<br />
'''Finnish'''<br />
Arch on paras!<br />
<br />
'''Filipino'''<br />
Mabuhay ang Arch!<br />
<br />
'''French'''<br />
Arch est le meilleur!<br />
<br />
'''Galician'''<br />
Arch é o mellor!<br />
<br />
'''German'''<br />
Arch ist das Beste!<br />
<br />
'''Ancient Greek'''<br />
Ἆρχ ἄριστον!<br />
<br />
'''Greek'''<br />
Το Arch είναι το καλύτερο!<br />
<br />
'''h4x0r'''<br />
Arch 15 7h3 b357!<br />
<br />
'''Hantec'''<br />
Arch je nejbetélnější!<br />
<br />
'''Hebrew'''<br />
ארצ' זה הכי אחי!<br />
<br />
'''Hexadecimal ASCII'''<br />
4172636820697320746865206265737421<br />
<br />
'''Hindi'''<br />
आर्ख सब से अच्छा है ।<br />
<br />
'''Hungarian'''<br />
Az Arch a legjobb!<br />
<br />
'''Irish'''<br />
Arch é is fearr!<br />
<br />
'''Italian'''<br />
Arch è il migliore!<br />
<br />
'''Japanese'''<br />
Archが一番ですよ!<br />
<br />
'''Kazakh'''<br />
Арч - ең жақсы!<br />
<br />
'''Latin'''<br />
Arch optimus est!<br />
<br />
'''Latvian'''<br />
Arch ir labākais!<br />
<br />
'''Lithuanian'''<br />
Arch yra geriausias!<br />
<br />
'''Marathi'''<br />
आर्च सगळ्यात भारी आहे!<br />
<br />
'''Norwegian'''<br />
Arch er best!<br />
<br />
'''Persian'''<br />
طاق بزرگ است<br />
<br />
'''Pig Latin'''<br />
Archway isway ethay estbay!<br />
<br />
'''Polish'''<br />
Arch jest najlepszy!<br />
<br />
'''Portuguese'''<br />
Arch é o melhor!<br />
<br />
'''Québécois'''<br />
Arch est le plus meilleure du monde!<br />
<br />
'''Romanian'''<br />
Аrch e cel mai bun!<br />
<br />
'''Russian'''<br />
Арч — лучший!<br />
<br />
'''Serbian'''<br />
Arch je najbolji!<br />
<br />
'''Singaporean'''<br />
Arch the best lah!<br />
<br />
'''Slovenian'''<br />
Arch je najboljši!<br />
<br />
'''Spanish (Standard)'''<br />
¡Arch es el mejor!<br />
<br />
'''Spanish (Argentina)'''<br />
Arch es una mazza!!<br />
<br />
'''Spanish (Chile)'''<br />
Arch es bacán<br />
<br />
'''Spanish (Chile, low class)'''<br />
Arch es la raja<br />
<br />
'''Spanish (Chile, marginal)'''<br />
This are writted in IPA because standard spanish not have those sounds<br />
ˈæɹʃ ɛːʰ tɜ.rˈiː.u.lɛ la rˈa.χa ʃʊ.ɹʊ<br />
<br />
'''Spanish (Uruguay)'''<br />
Arch la rompe!<br />
<br />
'''Swedish'''<br />
Arch är bäst!<br />
<br />
'''Fikonspråket'''<br />
Firch Arkon fir äkon fist bäkon<br />
<br />
'''Turkish'''<br />
Arch en iyisidir!<br />
<br />
'''Tamil'''<br />
ஆர்ச்சே சிறந்தது!<br />
<br />
'''Telugu'''<br />
ఆర్చ్ ఉత్తమమైనది!<br />
<br />
'''Ukrainian'''<br />
Arch є найкращий!<br />
<br />
'''Vietnamese'''<br />
Arch là tốt nhất!<br />
<br />
'''Morse Code'''<br />
..- -... ..- -. - ..- .. ... - .... . -... . ... -<br />
<br />
'''Braille'''<br />
⠁⠗⠉⠓⠀⠊⠎⠀⠮⠀⠃⠑⠎⠞⠲<br />
<br />
'''Base64'''<br />
QXJjaCBpcyB0aGUgYmVzdCEK<br />
<br />
'''URL Encoded'''<br />
Arch%20is%20the%20best!<br />
<br />
'''ROT13'''<br />
Nepu vf gur orfg!<br />
<br />
'''Upside Down'''<br />
¡ʇsǝq ǝɥʇ s! ɥɔɹ∀<br />
<br />
'''Welsh (Cymraeg)'''<br />
<br />
Emphasis on being the best (one):<br />
Yr orau un yw Arch!<br />
Y gorau un yw Arch!<br />
Emphasis on Arch:<br />
Arch sydd yr orau un!<br />
Arch sydd y gorau un!<br />
<br />
'''Klingon'''<br />
Arch'pu'ta' 'a'<br />
<br />
== See also ==<br />
<br />
* [https://bbs.archlinux.org/viewtopic.php?id=47306 forum Thread]</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216871Moodle2012-08-07T16:05:37Z<p>Adrianbs: /* Enabling bits of PHP */</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Add {{ic|/srv}} to {{ic|/etc/php/php.ini}}:<br />
<br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/''':/srv/'''<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-intl}} package:<br />
# pacman -S php-intl<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
extension=curl.so<br />
extension=gd.so<br />
extension=gettext.so<br />
extension=iconv.so<br />
extension=intl.so<br />
extension=mysqli.so<br />
extension=openssl.so<br />
extension=soap.so<br />
extension=xmlrpc.so<br />
extension=zip.so<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# rc.d restart httpd<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216784Moodle2012-08-07T04:49:01Z<p>Adrianbs: msql extension</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Add {{ic|/srv}} to {{ic|/etc/php/php.ini}}:<br />
<br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/''':/srv/'''<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-intl}} package:<br />
# pacman -S php-intl<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
extension=curl.so<br />
extension=gd.so<br />
extension=gettext.so<br />
extension=iconv.so<br />
extension=intl.so<br />
extension=msqli.so<br />
extension=openssl.so<br />
extension=soap.so<br />
extension=xmlrpc.so<br />
extension=zip.so<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# rc.d restart httpd<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216782Moodle2012-08-07T03:57:14Z<p>Adrianbs: /* Restart Apache */</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Add {{ic|/srv}} to {{ic|/etc/php/php.ini}}:<br />
<br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/''':/srv/'''<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-intl}} package:<br />
# pacman -S php-intl<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
extension=curl.so<br />
extension=gd.so<br />
extension=gettext.so<br />
extension=iconv.so<br />
extension=intl.so<br />
extension=openssl.so<br />
extension=soap.so<br />
extension=xmlrpc.so<br />
extension=zip.so<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# rc.d restart httpd<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216730Moodle2012-08-06T21:33:00Z<p>Adrianbs: intl extension</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Add {{ic|/srv}} to {{ic|/etc/php/php.ini}}:<br />
<br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/''':/srv/'''<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-intl}} package:<br />
# pacman -S php-intl<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
extension=curl.so<br />
extension=gd.so<br />
extension=gettext.so<br />
extension=iconv.so<br />
extension=intl.so<br />
extension=openssl.so<br />
extension=soap.so<br />
extension=xmlrpc.so<br />
extension=zip.so<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216727Moodle2012-08-06T21:13:49Z<p>Adrianbs: /* Enabling bits of PHP */</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Add {{ic|/srv}} to {{ic|/etc/php/php.ini}}:<br />
<br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/''':/srv/'''<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
extension=curl.so<br />
extension=gd.so<br />
extension=gettext.so<br />
extension=iconv.so<br />
extension=openssl.so<br />
extension=soap.so<br />
extension=xmlrpc.so<br />
extension=zip.so<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216689Moodle2012-08-06T18:35:15Z<p>Adrianbs: /* File access */</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Add {{ic|/srv}} to {{ic|/etc/php/php.ini}}:<br />
<br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/''':/srv/'''<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216688Moodle2012-08-06T18:32:52Z<p>Adrianbs: /* File access */</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Add {{ic|/srv}} to {{ic|/etc/php/php.ini}}:<br />
<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/''':/srv/'''<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216585Moodle2012-08-05T21:48:00Z<p>Adrianbs: 2.3.1 upgrade</p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 2.3.1+, and there may be minor changes to the install routine in later versions.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf moodle-latest-23.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Edit {{ic|/etc/php/php.ini}}:<br />
<br />
Before:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/<br />
After:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/:/srv/<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216583Moodle2012-08-05T21:44:17Z<p>Adrianbs: </p>
<hr />
<div>[[Category:Web Server]]<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 1.9.7, and there may be minor changes to the install routine in later versions.<br />
<br />
I used the current weekly package moodle-weekly-19.tgz as recommended.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf /home/paulr/downloads/moodle-weekly-19.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Edit {{ic|/etc/php/php.ini}}:<br />
<br />
Before:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/<br />
After:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/:/srv/<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216582Moodle2012-08-05T21:41:02Z<p>Adrianbs: /* Install the LAMP Stack */</p>
<hr />
<div>[[Category:Web Server]]<br />
<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
Follow the instructions to install LAMP [[LAMP|here]].<br />
<br />
From the "Advanced Options" section of the LAMP article, install the {{ic|gd module}}. This involves installing {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 1.9.7, and there may be minor changes to the install routine in later versions.<br />
<br />
I used the current weekly package moodle-weekly-19.tgz as recommended.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf /home/paulr/downloads/moodle-weekly-19.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Edit {{ic|/etc/php/php.ini}}:<br />
<br />
Before:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/<br />
After:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/:/srv/<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216496Moodle2012-08-05T02:38:11Z<p>Adrianbs: /* What is Moodle? */</p>
<hr />
<div>[[Category:Web Server]]<br />
<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
:"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For more help visit http://www.moodle.org.<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
The instructions to install LAMP are [[LAMP|here]]<br />
<br />
From the "Advanced Options" section of the LAMP Documentation, install the {{ic|libGD module}}. This involves install {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 1.9.7, and there may be minor changes to the install routine in later versions.<br />
<br />
I used the current weekly package moodle-weekly-19.tgz as recommended.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf /home/paulr/downloads/moodle-weekly-19.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Edit {{ic|/etc/php/php.ini}}:<br />
<br />
Before:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/<br />
After:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/:/srv/<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216495Moodle2012-08-05T02:35:06Z<p>Adrianbs: Wikipedia quote</p>
<hr />
<div>[[Category:Web Server]]<br />
<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
From [http://en.wikipedia.org Wikipedia]:<br />
"''[[Wikipedia:Moodle|Moodle]] (abbreviation for Modular Object-Oriented Dynamic Learning Environment) is a free source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment (VLE). As of December 2011 it had a user base of 72,177 registered and verified sites, serving 57,112,669 users in 5.8 million courses.''"<br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For help generally, visit http://www.moodle.org<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
The instructions to install LAMP are [[LAMP|here]]<br />
<br />
From the "Advanced Options" section of the LAMP Documentation, install the {{ic|libGD module}}. This involves install {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 1.9.7, and there may be minor changes to the install routine in later versions.<br />
<br />
I used the current weekly package moodle-weekly-19.tgz as recommended.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf /home/paulr/downloads/moodle-weekly-19.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Edit {{ic|/etc/php/php.ini}}:<br />
<br />
Before:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/<br />
After:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/:/srv/<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Moodle&diff=216494Moodle2012-08-05T02:20:47Z<p>Adrianbs: Added prompt indicators and small style fixing</p>
<hr />
<div>[[Category:Web Server]]<br />
<br />
This article describes how to set up the Moodle server on an Arch Linux system. <br />
<br />
== What is Moodle? ==<br />
<br />
Wikipedia describes it well - Moodle : a Modular Object-Oriented Dynamic Learning Environment is a free and open-source e-learning software platform, also known as a Course Management System, Learning Management System, or Virtual Learning Environment. It has a significant user base with 45,721 registered and verified sites, containing 32 million users in 3 million courses (as of January 2010) <br />
<br />
This entry describes the installation, not the usage - a whole wiki in itself. For help generally, visit http://www.moodle.org<br />
<br />
{{Note|Almost all the commands here are done in admin mode, reached by the su command.}}<br />
<br />
==Install the LAMP Stack==<br />
<br />
The instructions to install LAMP are [[LAMP|here]]<br />
<br />
From the "Advanced Options" section of the LAMP Documentation, install the {{ic|libGD module}}. This involves install {{ic|php-gd}} and modifying {{ic|/etc/php/php.ini}}.<br />
<br />
For some reason when I install PHP into Apache it requires two restarts before test.php is interpreted as PHP code not text. I have noticed this before.<br />
<br />
==Download and install Moodle==<br />
<br />
Download the most current version of Moodle from http://download.moodle.org/ - this installation was done with 1.9.7, and there may be minor changes to the install routine in later versions.<br />
<br />
I used the current weekly package moodle-weekly-19.tgz as recommended.<br />
<br />
Unzip it into {{ic|/srv/http}}:<br />
<br />
# tar xzvf /home/paulr/downloads/moodle-weekly-19.tgz -C /srv/http<br />
<br />
Make it read/writeable by Apache:<br />
<br />
# chown -R http:http /srv/http/moodle<br />
<br />
==Preconfiguration==<br />
<br />
Some changes need to be made to the default setup so Moodle will work.<br />
<br />
===File access===<br />
<br />
Edit {{ic|/etc/php/php.ini}}:<br />
<br />
Before:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/<br />
After:<br />
open_basedir == /srv/http/:/home/:/tmp/:/usr/share/pear/:/srv/<br />
<br />
This allows PHP to access the {{ic|/srv/moodledata directory}} (thanks to forum user "Ravenman") for this fix.<br />
<br />
===Create the MoodleData Directory===<br />
<br />
This needs to be readable and writeable by Apache:<br />
<br />
# mkdir /srv/moodledata<br />
# chown http:http /srv/moodledata<br />
<br />
===Enabling bits of PHP===<br />
<br />
Install {{ic|php-curl}} and {{ic|openssl}} if they aren't already installed:<br />
<br />
# pacman -S php-curl openssl xmlrpc-c<br />
<br />
Uncomment the following lines in {{ic|/etc/php/php.ini}} (remove the semicolon from the start of the line):<br />
<br />
;extension==curl.so<br />
;extension==iconv.so<br />
;extension==openssl.so<br />
;extension==xmlrpc.so<br />
<br />
For Moodle 2.0 additionally uncomment the following lines in {{ic|/etc/php/php.ini}}:<br />
<br />
;extension==json.so<br />
;extension==zip.so<br />
;extension==soap.so<br />
;extension==intl.so<br />
<br />
# pacman -S php-intl<br />
<br />
===Restart Apache===<br />
<br />
You now need to restart Apache to make these changes current. Note that if you get any errors while installing Moodle, and make subsequent changes, you will need to restart Apache after each set of changes. <br />
<br />
# /etc/rc.d/httpd restart<br />
<br />
==Installation==<br />
<br />
Go to {{ic|http://localhost/moodle/install.php}} - this starts the Moodle installer. There then follows a sequence of configuration screens, most of which should be left at the defaults.<br />
<br />
*Select the language<br />
<br />
*You should pass the first page of tests (PHP Settings). If not check you installed libGD, the most likely problem.<br />
<br />
*Leave the default locations as they are. An error here is likely to be a data directory problem - check the directory exists, that it has the right ownership and that open_basedir in /etc/php/php.ini is set correctly.<br />
<br />
*On the MySQL Screen, enter the user (root) and that user's password in the screen. If you get an error here, go to the test.php created when you set up the LAMP stack and check mysql is working, and also check the passwords.<br />
<br />
*On the Environment screen, you should pass all the tests - if not the errors give you a clue what is missing - an uninstalled program or a failure to uncomment one of the lines in /etc/php/php.ini<br />
<br />
*If you are English, you do not need to download language packs.<br />
<br />
*If the config.php has failed - probably because of lack of write access to the moodle subdirectory - the most likely reason is the ownership of the /srv/http/moodle structure which should be http:http - this was set earlier but you might have skipped that bit.<br />
<br />
*The remainder of the install should be automatic. It takes 2 or 3 minutes on my computer to set up all the SQL Databases and so on.<br />
<br />
*The final page allows you to set up the administrator user for Moodle. You need to enter a password, name and set the country as a bare minimum. ''Don't'' forget the password !<br />
<br />
Happy Moodling !<br />
==See also==<br />
* [[MySQL]] - Article for MySQL<br />
* [[LAMP]] - Self contained web-server that supports PHP, Perl, and MySQL<br />
<br />
==External links==<br />
* http://www.moodle.org/<br />
* http://www.apache.org/<br />
* http://www.php.net/<br />
* http://www.mysql.com/</div>Adrianbshttps://wiki.archlinux.org/index.php?title=Network_configuration&diff=216058Network configuration2012-08-02T01:40:26Z<p>Adrianbs: /* Set the host name */</p>
<hr />
<div>[[Category:Networking]]<br />
[[Category:Getting and installing Arch]]<br />
[[cs:Configuring Network]]<br />
[[es:Configuring Network]]<br />
[[it:Configuring Network]]<br />
[[nl:Configuring Network]]<br />
[[pt:Configuring Network]]<br />
[[ro:Configurare retea]]<br />
[[ru:Configuring Network]]<br />
[[sk:Configuring Network]]<br />
[[tr:Ağ_Yapılandırması]]<br />
[[zh-CN:Configuring Network]]<br />
{{Article summary start}}<br />
{{Article summary text|A simple guide for setting up and troubleshooting network.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Networking overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Jumbo Frames}}<br />
{{Article summary wiki|Firewalls}}<br />
{{Article summary wiki|Samba}}<br />
{{Article summary wiki|Wireless Setup}}<br />
{{Article summary end}}<br />
<br />
==Check first==<br />
Many times, the basic installation procedure has created a working network configuration. To check if this is so, use the following command:<br />
{{hc|ping -c 3 www.google.com|<nowiki><br />
PING www.l.google.com (74.125.224.146) 56(84) bytes of data.<br />
64 bytes from 74.125.224.146: icmp_req=1 ttl=50 time=437 ms<br />
64 bytes from 74.125.224.146: icmp_req=2 ttl=50 time=385 ms<br />
64 bytes from 74.125.224.146: icmp_req=3 ttl=50 time=298 ms<br />
<br />
--- www.l.google.com ping statistics ---<br />
3 packets transmitted, 3 received, 0% packet loss, time 1999ms<br />
rtt min/avg/max/mdev = 298.107/373.642/437.202/57.415 ms<br />
</nowiki>}}<br />
{{Tip| The {{ic|-c 3}} options instruct {{ic|ping}} to do so three times. See {{ic|man ping}} for more information.}}<br />
<br />
If it works, then you may only wish to personalize your settings from the options below.<br />
<br />
If the previous command complains about unknown hosts, it means that your machine was unable to resolve this domain name. It might be related to your service provider or your router/gateway. You can try pinging a static IP address to prove that your machine has access to the Internet.<br />
{{hc |<br />
ping -c 3 8.8.8.8 |<br />
<nowiki>PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.<br />
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=52.9 ms<br />
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=72.5 ms<br />
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=70.6 ms<br />
<br />
--- 8.8.8.8 ping statistics ---<br />
3 packets transmitted, 3 received, 0% packet loss, time 2002ms<br />
rtt min/avg/max/mdev = 52.975/65.375/72.543/8.803 ms</nowiki>}}<br />
<br />
{{Tip|8.8.8.8 is a static address that is easy to remember. It is the address of Google's primary DNS server, therefore it can be considered reliable, and is generally not blocked by content filtering systems and proxies.}}<br />
<br />
If you are able to ping this address, you may try [[Configuring_Network#For_Static_IP_Addresses|adding this nameserver to your resolv.conf file]].<br />
<br />
==Set the host name==<br />
A host name is a unique name created to identify a machine on a network. With Arch Linux, a machine's host name is set in {{ic|/etc/hostname}} or until a restart using the {{ic|hostname}} command.<br />
Host names are restricted to alphanumeric characters. The hyphen ({{ic|-}}) can be used, but a host name cannot start or end with it. Length is restricted to 63 characters. <br />
<br />
Simply put your host name in to {{ic|/etc/hostname}} ({{ic|archlinux}} is the host name in this example):<br />
archlinux<br />
<br />
After setting a host name, it is also important to include the same host name in {{ic|/etc/hosts}}. This will help processes that refer to the computer by its host name to find its IP address, as well as programs that rely on the {{ic|gethostname()}} system call to determine the system's host name.<br />
<br />
Edit {{ic|/etc/hosts}} and add the same HOSTNAME you entered in {{ic|/etc/hostname}}:<br />
127.0.0.1 archlinux.domain.org localhost.localdomain localhost archlinux<br />
<br />
{{Note|The fully qualified domain name (FQDN) should be '''the first item following the IP address'''. All of the names on the right side are just aliases for the left-most host/domain name. You can check if this has been properly configured by running {{ic|hostname --fqdn}}.}}<br />
<br />
To set the host name temporarily (until the next reboot) use the {{ic|hostname}} command from package {{Pkg|inetutils}} as root:<br />
{{bc|hostname archlinux}}<br />
<br />
== Device Driver ==<br />
<br />
=== Check Driver Status ===<br />
Udev should detect your network interface card (NIC) module and load it automatically at start up. Check the "Ethernet controller" entry in the output of {{ic|lspci -v}}. It should tell you which kernel module contains the driver of your network device. For example:<br />
{{hc|lspci -v|<nowiki><br />
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)<br />
...<br />
Kernel driver in use: atl1<br />
Kernel modules: atl1<br />
</nowiki>}}<br />
<br />
Next, check that the driver was loaded via ''dmesg | grep <module name>''. For example:<br />
dmesg |grep atl1<br />
...<br />
atl1 0000:02:00.0: eth0 link is up 100 Mbps full duplex<br />
<br />
If driver loads success, skip this section. Otherwise, you will need to know which module is needed for your particular model.<br />
<br />
=== Load the device module ===<br />
Google for the right module/driver for the chip. Once you know which module to use, you can load it with:<br />
# modprobe <modulename><br />
<br />
If [[udev]] is not detecting and loading the proper module automatically during bootup, you can add it into the {{ic|MODULES}} array in {{ic|/etc/rc.conf}} so you do not need to {{ic|modprobe}} it everytime you boot. For example, if {{ic|tg3}} is the network module:<br />
MODULES=(... tg3 snd-cmipci ...)<br />
<br />
Other common modules are 8139too for cards with the Realtek chipset or {{ic|sis900}} for SiS cards.<br />
<br />
== Network Interfaces ==<br />
<br />
=== Persistent Device Names ===<br />
For motherboards that have integrated NICs, it is important to know which one is considered the primary NIC (e.g., ''eth0'') and which is considered the secondary NIC (e.g., eth1). Many configuration issues are caused by users incorrectly configuring ''eth0'' in their {{ic|/etc/rc.conf}}, when in fact, they have their Ethernet cable plugged into ''eth1''. <br />
<br />
[[Udev]] is responsible for which device gets which name. With Udev and modular network drivers, the network interface numbering is not persistent across reboots by default, because the drivers are loaded in parallel and, thus, in random order. Configuring your network connection is hard if you do not know if your card will be called {{ic|eth0}} or {{ic|eth1}}. You can fix this using {{ic|ifrename}}, see [[Rename network interfaces]]. It is also possible to manually create udev rules that assign interface names based on the interface's MAC address. See [[Udev#Network device|Persistent Device Names]].<br />
<br />
=== Get Current Device Names ===<br />
Current NIC Names can be found with the ''ip'' tool.<br />
{{hc|<nowiki>$ ip addr | sed '/^[0-9]/!d;s/: <.*$//'</nowiki>|<br />
1: lo<br />
2: eth1<br />
3: eth0<br />
4: firewire0}}<br />
<br />
=== Enable/disable interface ===<br />
You can activate or deactivate net interface:<br />
ip link set <interface> up/down<br />
<br />
Check the result with {{ic|ip addr show dev eth0}}. For example:<br />
{{hc|ip addr show dev eth0|<nowiki><br />
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc vboxnetflt state UP qlen 1000<br />
[...]<br />
</nowiki>}}<br />
<br />
== Configure the IP address ==<br />
You have two options: a dynamically assigned address using DHCP or an unchanging "static" address. See [[Wikipedia:Dynamic Host Configuration Protocol|Wikipedia:DHCP]] for more information.<br />
<br />
=== Dynamic IP address===<br />
<br />
==== Manually run DHCP ====<br />
<br />
{{hc|dhcpcd eth0|<nowiki><br />
dhcpcd: version 5.1.1 starting<br />
dhcpcd: eth0: broadcasting for a lease<br />
...<br />
dhcpcd: eth0: leased 192.168.1.70 for 86400 seconds<br />
</nowiki>}}<br />
<br />
And now {{ic|ip addr show dev <interface>}} should show your inet address.<br />
<br />
For some people, the {{ic|dhclient}} package (available in [extra]) works where {{ic|dhcpcd}} fails.<br />
<br />
==== Run DHCP at booting ====<br />
<br />
For this option, you need the {{Pkg|dhcpcd}} package (already available on most installations). To make use of it, edit {{ic|[[Rc.conf#Networking|/etc/rc.conf]]}} like this:<br />
interface="eth0"<br />
address=<br />
netmask=<br />
gateway=<br />
<br />
Only the interface has to be defined, as leaving the other options blank will set network to DHCP.<br />
<br />
If you use DHCP and you do '''not''' want your DNS servers automatically assigned every time you start your network, be sure to add the following to the last section of {{ic|/etc/dhcpcd.conf}}:<br />
nohook resolv.conf<br />
<br />
Then add your own DNS nameserver to {{ic|/etc/resolv.conf}}.<br />
<br />
You may use the {{Pkg|openresolv}} package if several different processes want to control {{ic|/etc/resolv.conf}} (e.g., {{Pkg|dhcpcd}} and a VPN client). No additional configuration for {{Pkg|dhcpcd}} is needed to use {{Pkg|openresolv}}.<br />
<br />
{{Note|1=It is possible to have a static IP address using {{Pkg|dhcpcd}}. Simply edit your {{ic|/etc/conf.d/dhcpcd}} file to look something like this (where x.x.x.x is your desired IP address):<br />
DHCPCD_ARGS="-q -s x.x.x.x"}}<br />
<br />
=== Static IP address ===<br />
There are various reasons why you may wish to assign static IP addresses on your network. For instance, one may gain a certain degree of predictability. Or you may not want the dhcp daemon running all the time. <br />
<br />
{{Note|If you share your Internet connection from a Windows box without a router, be sure to use static IP addresses on both computers to avoid LAN issues.}}<br />
<br />
You need:<br />
* Static IP address,<br />
* Subnet mask,<br />
* Broadcast address,<br />
* Gateway's IP address,<br />
* Name servers' IP addresses,<br />
* Domain name (unless a local LAN, in which case you can make it up).<br />
<br />
If you are running a private network, it is safe to use IP addresses in 192.168.*.* for your IP addresses, with a netmask of 255.255.255.0 and a broadcast address of 192.168.*.255. Unless your network has a router, the gateway IP address does not matter. Edit {{ic|/etc/rc.conf}} like this, substituting your own values for the IP address, netmask, broadcast, and gateway:<br />
interface=eth0<br />
address=192.168.0.2<br />
netmask=255.255.255.0<br />
broadcast=192.168.1.255<br />
gateway=192.168.22.1<br />
<br />
Edit your {{ic|/etc/resolv.conf}} like this, substituting your name servers' IP addresses and your local domain name:<br />
nameserver 61.23.173.5<br />
nameserver 61.95.849.8<br />
search example.com<br />
<br />
{{Note|Currently, you may include a maximum of 3 {{ic|nameserver}} lines.}}<br />
<br />
====Manual assignment====<br />
You can assign a static IP address in the console:<br />
# ip addr add <ip address>/<netmask> dev <interface><br />
For example:<br />
# ip addr add 192.168.1.2/24 dev eth0<br />
<br />
For more options, see: {{ic|man ip}}<br />
<br />
Add your gateway like so:<br />
# ip route add default via <ip address><br />
(Substitute your own gateway's IP address)<br />
<br />
For example:<br />
# ip route add default via 192.168.1.1<br />
<br />
If you the get the error "No such process",it means you need to do # ifconfig eth0 up<br />
<br />
==== Calculating Addresses ====<br />
You can use ''ipcalc'' provided by the ipcalc package to calculate IP broadcast, network, netmask, and host ranges for more advanced configurations. For example, I use ethernet over firewire to connect a windows machine to arch. For security and network organization, I placed them on their own network and configured the netmask and broadcast so that they are the only 2 machines on it. To figure out the netmask and broadcast addresses for this, I used ipcalc, providing it with the IP of the arch firewire nic 10.66.66.1, and specifying ipcalc should create a network of only 2 hosts.<br />
<br />
{{hc|$ ipcalc -nb 10.66.66.1 -s 1|2=<br />
Address: 10.66.66.1<br />
<br />
Netmask: 255.255.255.252 = 30<br />
Network: 10.66.66.0/30<br />
HostMin: 10.66.66.1<br />
HostMax: 10.66.66.2<br />
Broadcast: 10.66.66.3<br />
Hosts/Net: 2 Class A, Private Internet}}<br />
<br />
==Load configuration==<br />
To test your settings either reboot the computer, or as root:<br />
{{bc|rc.d restart network}}<br />
<br />
Try pinging your gateway, DNS server, ISP provider and other Internet sites, in that order, to detect any connection problems along the way, as in this example:<br />
{{bc|ping -c 3 www.google.com}}<br />
<br />
==Additional settings==<br />
<br />
=== ifplugd for laptops ===<br />
{{Pkg|ifplugd}} in [[Official Repositories]] is a daemon which will automatically configure your Ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected. Another use is when you just need to restart the network but do not want to restart the computer or do it from the shell.<br />
<br />
By default it is configured to work for the {{ic|eth0}} device. This and other settings like delays can be configured in {{ic|/etc/ifplugd/ifplugd.conf}}.<br />
<br />
[[Daemon#Performing daemon actions manually|Start the ifplugd daemon]] and add {{ic|ifplugd}} to your [[Daemons#Starting on Boot|DAEMONS array]] so it starts automatically on boot.<br />
<br />
===Bonding or LAG===<br />
You will need {{Pkg|netcfg}} from the [[Official Repositories]], as well as the {{AUR|netcfg-bonding}} package from the [[AUR]].<br />
<br />
Edit/create the following files:<br />
{{hc<br />
|/etc/network.d/bonded<br />
|<nowiki><br />
CONNECTION="bonding"<br />
INTERFACE="bond0"<br />
SLAVES="eth0 eth1"<br />
IP="dhcp"<br />
DHCP_TIMEOUT=10<br />
</nowiki>}}<br />
<br />
{{hc<br />
|/etc/rc.conf<br />
|<nowiki><br />
MODULES=(... bonding ...)<br />
...<br />
interface=bond0 #comment other lines (address,netmask,gateway,...)<br />
...<br />
NETWORKS=(... bonded ...)<br />
...<br />
DAEMONS=(... net-profiles ...) #replace network <br />
</nowiki>}}<br />
<br />
{{Note|To change the bonding mode (default is round robin) to, e.g, dynamic link aggregation:<br />
<br />
Create {{ic|/etc/modprobe.d/bonding.conf}}:<br />
{{hc<br />
|/etc/modprobe.d/bonding.conf<br />
|<nowiki><br />
options bonding mode=4<br />
options bonding miimon=100<br />
</nowiki>}}<br />
<br />
For more information about the different bonding policies (and other driver settings) see the [http://sourceforge.net/projects/bonding/files/Documentation/ Linux Ethernet Bonding Driver HOWTO].}}<br />
<br />
To activate the new bonded ports modprobe {{ic|bonding}}, stop {{ic|network}} and start the {{ic|net-profiles}} service:<br />
<br />
# modprobe bonding<br />
# rc.d stop network<br />
# rc.d start net-profiles<br />
<br />
To check the status and bonding mode:<br />
<br />
cat /proc/net/bonding/bond0<br />
<br />
===IP address aliasing===<br />
{{Expansion}}<br />
If you want to use multiple IP addresses on an interface, you will have to use [[netcfg]] and its {{ic|POST_UP}} and {{ic|PRE_DOWN}} commands in your network profile to set up the additional IP addresses manually. See [https://bbs.archlinux.org/viewtopic.php?pid=1036395#p1036395 here] for details.<br />
<br />
====Example====<br />
You will need {{Pkg|netcfg}} from the [[Official Repositories]].<br />
<br />
Prepare configuration<br />
<br />
{{hc<br />
|/etc/network.d/mynetwork<br />
|<nowiki><br />
<br />
CONNECTION='ethernet'<br />
DESCRIPTION='Five different addresses on the same NIC.'<br />
INTERFACE='eth0'<br />
IP='static'<br />
ADDR='192.168.1.10'<br />
GATEWAY='192.168.1.1'<br />
DNS=('192.168.1.1')<br />
DOMAIN=''<br />
POST_UP='x=0; for i in 11 12 13 14; do ip addr add 192.168.1.$i/24 brd 192.168.1.255 dev eth0 label eth0:$((x++)); done'<br />
PRE_DOWN='for i in 11 12 13 14; do ip addr del 192.168.1.$i/24 dev eth0; done'<br />
<br />
</nowiki>}}<br />
<br />
{{hc<br />
|/etc/rc.conf<br />
|<nowiki><br />
NETWORKS=(mynetwork)<br />
<br />
...<br />
<br />
DAEMONS=(... net-profiles ...)<br />
</nowiki>}}<br />
<br />
===Change MAC/hardware address===<br />
Changing your MAC address is not possible anymore via {{ic|/etc/rc.conf}}. See [[MAC Address Spoofing]] for details.<br />
<br />
==Troubleshooting==<br />
<br />
===Swapping computers on the cable modem===<br />
Most domestic cable ISPs (videotron for example) have the cable modem configured to recognize only one client PC, by the MAC address of its network interface. Once the cable modem has learned the MAC address of the first PC or equipment that talks to it, it will not respond to another MAC address in any way. Thus if you swap one PC for another (or for a router), the new PC (or router) will not work with the cable modem, because the new PC (or router) has a MAC address different from the old one. To reset the cable modem so that it will recognise the new PC, you must power the cable modem off and on again. Once the cable modem has rebooted and gone fully online again (indicator lights settled down), reboot the newly connected PC so that it makes a DHCP request, or manually make it request a new DHCP lease.<br />
<br />
If this method does not work, you will need to clone the MAC address of the original machine. See also [[Configuring Network#Change MAC/hardware address|Change MAC/hardware address]].<br />
<br />
===The TCP window scaling issue===<br />
TCP packets contain a "window" value in their headers indicating how much data the other host may send in return. This value is represented with only 16 bits, hence the window size is at most 64Kb. TCP packets are cached for a while (they have to be reordered), and as memory is (or used to be) limited, one host could easily run out of it.<br />
<br />
Back in 1992, as more and more memory became available, [http://www.faqs.org/rfcs/rfc1323.html RFC 1323] was written to improve the situation: Window Scaling. The "window" value, provided in all packets, will be modified by a Scale Factor defined once, at the very beginning of the connection.<br />
<br />
That 8-bit Scale Factor allows the Window to be up to 32 times higher than the initial 64Kb.<br />
<br />
It appears that some broken routers and firewalls on the Internet are rewriting the Scale Factor to 0 which causes misunderstandings between hosts.<br />
<br />
The Linux kernel 2.6.17 introduced a new calculation scheme generating higher Scale Factors, virtually making the aftermaths of the broken routers and firewalls more visible. <br />
<br />
The resulting connection is at best very slow or broken.<br />
<br />
====How to diagnose the problem====<br />
First of all, let's make it clear: this problem is odd. In some cases, you will not be able to use TCP connections (HTTP, FTP, ...) at all and in others, you will be able to communicate with some hosts (very few).<br />
<br />
When you have this problem, the {{ic|dmesg}}'s output is OK, logs are clean and {{ic|ip addr}} will report normal status... and actually everything appears normal.<br />
<br />
If you cannot browse any website, but you can ping some random hosts, chances are great that you're experiencing this issue: ping uses ICMP and is not affected by TCP issues.<br />
<br />
You can try to use Wireshark. You might see successful UDP and ICMP communications but unsuccessful TCP communications (only to foreign hosts).<br />
<br />
====How to fix it (The bad way)====<br />
To fix it the bad way, you can change the tcp_rmem value, on which Scale Factor calculation is based. Although it should work for most hosts, it is not guaranteed, especially for very distant ones.<br />
<br />
echo "4096 87380 174760" > /proc/sys/net/ipv4/tcp_rmem<br />
<br />
====How to fix it (The good way)====<br />
Simply disable Window Scaling. Since Window Scaling is a nice TCP feature, it may be uncomfortable to disable it, especially if you cannot fix the broken router. There are several ways to disable Window Scaling, and it seems that the most bulletproof way (which will work with most kernels) is to add the following line to {{ic|/etc/sysctl.conf}} (see also [[sysctl]])<br />
<br />
net.ipv4.tcp_window_scaling = 0<br />
<br />
====How to fix it (The best way)====<br />
This issue is caused by broken routers/firewalls, so let's change them. Some users have reported that the broken router was their very own DSL router.<br />
<br />
====More about it====<br />
This section is based on the LWN article [http://lwn.net/Articles/92727/ TCP window scaling and broken routers] and a Kernel Trap article: [http://kerneltrap.org/node/6723 Window Scaling on the Internet].<br />
<br />
There are also several relevant threads on the LKML.<br />
<br />
===Realtek no link / WOL issue===<br />
Users with Realtek 8168 8169 8101 8111(C) based NICs (cards / and on-board) may notice an issue where the NIC seems to be disabled on boot and has no Link light. This can usually be found on a dual boot system where Windows is also installed. It seems that using the offical Realtek drivers (dated anything after May 2007) under Windows is the cause. These newer drivers disable the Wake-On-LAN feature by disabling the NIC at Windows shutdown time, where it will remain disabled until the next time Windows boots. You will be able to notice if this issue is affecting you if the Link light remains off until Windows boots up; during Windows shutdown the Link light will switch off. Normal operation should be that the link light is always on as long as the system is on, even during POST. This issue will also affect other operative systems without newer drivers (eg. Live CDs). Here are a few fixes for this issue:<br />
<br />
====Method 1 - Rollback/change Windows driver====<br />
You can roll back your Windows NIC driver to the Microsoft provided one (if available), or roll back/install an official Realtek driver pre-dating May 2007 (may be on the CD that came with your hardware).<br />
<br />
====Method 2 - Enable WOL in Windows driver====<br />
Probably the best and the fastest fix is to change this setting in the Windows driver. This way it should be fixed system-wide and not only under Arch (eg. live CDs, other operative systems). In Windows, under Device Manager, find your Realtek network adapter and double-click it. Under the Advanced tab, change "Wake-on-LAN after shutdown" to Enable.<br />
In Windows XP (example)<br />
Right click my computer<br />
--> Hardware tab<br />
--> Device Manager<br />
--> Network Adapters<br />
--> "double click" Realtek ...<br />
--> Advanced tab<br />
--> Wake-On-Lan After Shutdown<br />
--> Enable<br />
<br />
{{Note|Newer Realtek Windows drivers (tested with ''Realtek 8111/8169 LAN Driver v5.708.1030.2008'', dated 2009/01/22, available from GIGABYTE) may refer to this option slightly differently, like ''Shutdown Wake-On-LAN --> Enable''. It seems that switching it to {{ic|Disable}} has no effect (you will notice the Link light still turns off upon Windows shutdown). One rather dirty workaround is to boot to Windows and just reset the system (perform an ungraceful restart/shutdown) thus not giving the Windows driver a chance to disable LAN. The Link light will remain on and the LAN adapter will remain accessible after POST - that is until you boot back to Windows and shut it down properly again.}}<br />
<br />
====Method 3 - Newer Realtek Linux driver====<br />
Any newer driver for these Realtek cards can be found for Linux on the realtek site. (untested but believed to also solve the problem).<br />
<br />
====Method 4 - Enable ''LAN Boot ROM'' in BIOS/CMOS====<br />
It appears that setting ''Integrated Peripherals --> Onboard LAN Boot ROM --> Enabled'' in BIOS/CMOS reactivates the Realtek LAN chip on system boot-up, despite the Windows driver disabling it on OS shutdown.<br />
<br><small>This was tested successfully multiple times with GIGABYTE system board GA-G31M-ES2L with BIOS version F8 released on 2009/02/05. YMMV.</small><br />
<br />
===DLink G604T/DLink G502T DNS issue===<br />
Users with a DLink G604T/DLink G502T router, using DHCP and have firmware v2.00+ (typically users with AUS firmware) may have issues with certain programs not resolving the DNS. One of these programs are unfortunatley pacman. The problem is basically the router in certain situations is not sending the DNS properly to DHCP, which causes programs to try and connect to servers with an IP address of 1.0.0.0 and fail with a connection timed out error<br />
<br />
====How to diagnose the problem====<br />
The best way to diagnose the problem is to use Firefox/Konqueror/links/seamonkey and to enable wget for pacman. If this is a fresh install of Arch Linux, then you may want to consider installing {{ic|links}} through the live CD.<br />
<br />
Firstly, enable wget for pacman (since it gives us info about pacman when it is downloading packages)<br />
Open {{ic|/etc/pacman.conf}} with your favourite editor and uncomment the following line (remove the # if it is there)<br />
<br />
XferCommand=/usr/bin/wget --passive-ftp -c -O %o %u<br />
<br />
While you are editing {{ic|/etc/pacman.conf}}, check the default mirror that pacman uses to download packages.<br />
<br />
Now open up the default mirror in an Internet browser to see if the mirror actually works. If it does work, then do {{ic|pacman -Syy}} (otherwise pick another working mirror and set it to the pacman default). If you get something similar to the following (notice the 1.0.0.0),<br />
<nowiki>ftp://mirror.pacific.net.au/linux/archlinux/extra/os/i686/extra.db.tar.gz</nowiki> <br />
<nowiki>=> `/var/lib/pacman/community.db.tar.gz.part'</nowiki><br />
Resolving mirror.pacific.net.au... 1.0.0.0<br />
then you most likely have this problem. The 1.0.0.0 means it is unable to resolve DNS, so we must add it to {{ic|/etc/resolv.conf}}.<br />
<br />
====How to fix it====<br />
Basically what we need to do is to manually add the DNS servers to our {{ic|/etc/resolv.conf}} file. The problem is that DHCP automatically deletes and replaces this file on boot, so we need to edit {{ic|/etc/conf.d/dhcpcd}} and change the flags to stop DHCP from doing this.<br />
<br />
When you open {{ic|/etc/conf.d/dhcpcd}}, you should see something close to the following:<br />
DHCPCD_ARGS="-t 30 -h $HOSTNAME"<br />
Add the -R flag to the arguments, e.g.,<br />
DHCPCD_ARGS="-R -t 30 -h $HOSTNAME"<br />
<br />
{{Note|1=If you are using {{Pkg|dhcpcd}} >= 4.0.2, the {{ic|-R}} flag has been deprecated. Please see the [[#For DHCP assigned IP address]] section for information on how to use a custom {{ic|/etc/resolv.conf}} file.}}<br />
<br />
Save and close the file; now open {{ic|/etc/resolv.conf}}. You should see a single nameserver (most likely 10.1.1.1). This is the gateway to your router, which we need to connect to in order to get the DNS servers of your ISP. Paste the IP address into your browser and log in to your router. Go to the DNS section, and you should see an IP address in the Primary DNS Server field; copy it and paste it as a nameserver '''ABOVE''' the current gateway one.<br />
<br />
E.g., {{ic|/etc/resolv.conf}} should look something along the lines of<br />
nameserver 10.1.1.1<br />
<br />
If my primary DNS server is 211.29.132.12, then change {{ic|/etc/resolv.conf}} to<br />
nameserver 211.29.132.12<br />
nameserver 10.1.1.1<br />
<br />
Now restart the network daemon by doing {{ic|rc.d restart network}} and do {{ic|pacman -Syy}}. If it syncs correctly with the server, then the problem is solved.<br />
<br />
====More about it====<br />
This is the whirlpool forum (Australian ISP community) which talks about and gives the same solution to the problem<br />
http://forums.whirlpool.net.au/forum-replies-archive.cfm/461625.html<br />
<br />
=== Check DHCP problem by releasing IP first ===<br />
<br />
Problem may occur when DHCP get wrong IP assignment. For example when two routers are tied together through VPN. The router that is connected to me by VPN may assigning IP address. To fix it. On a console, as root, release IP address:<br />
# dhcpcd -k<br />
<br />
Then request a new one:<br />
# dhcpcd<br />
<br />
Maybe you had to run those two commands many times.<br />
<br />
===Realtek 8111E loses lots of packets/dmesg is flooded with link messages===<br />
This issue currently plagues rev6 of the 8111. To check if you have this chip, check the output of the following:<br />
lspci | grep 8111<br />
<br />
If you see a line like the following:<br />
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)<br />
and dmesg has a bunch of this:<br />
r8169 0000:03:00.0: eth0: link up<br />
you are using a bad r8169 driver. To fix this, install the {{AUR|r8168}} package from the [[AUR]], [[Kernel_modules#Blacklisting|blacklist]] the r8169 kernel module, and reboot in order to fix the issue.<br />
<br />
Supposedly there is a fix for this in Linux 3.0.<br />
<br />
Source: http://forums.gentoo.org/viewtopic-t-881217-start-0.html</div>Adrianbs