xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
arch:arch_on_the_pi [2016/10/07 17:49] – [Arch on a Pi] Julien Deswaefarch:arch_on_the_pi [2016/11/15 21:44] – [Installing ikiwiki] Julien Deswaef
Line 62: Line 62:
 ===== Installing ikiwiki ===== ===== Installing ikiwiki =====
-  * Install Git +Install git and dev tools. 
-  * Install Make +<code> 
-  * <del><code=bash>$: cpan</code></del+$: sudo pacman -Syu git base-devel 
-  * Use Pacman with this[[https://aur.archlinux.org/packages/ikiwiki/| Aur package]]+</code> 
 +Install [[https://aur.archlinux.org/packages/ikiwiki/ikiwiki from Aur package]].  
 +You'll need 2 extra dependencies from Aur:  
 +  * [[https://aur.archlinux.org/packages/perl-cgi-formbuilder/ | perl-cgi-formbuilder]] 
 +  * [[https://aur.archlinux.org/packages/perl-rpc-xml/ | perl-rpc-xml]].  
 +Install those first. Compiling ikiwiki takes a while on a Raspberry Pi. Be patient. 
 +Although ikiwiki could be running from any server, I found it easier to run it behind Apache. So be sure to have that installed. 
 +Create an unprivileged user (here called wiki) who will be editing the wiki: 
 +sudo useradd -m wiki 
 +sudo passwd wiki 
 +If you want to have images handle by the wiki, you will need also Imagemagick 
 +Following https://www.linode.com/docs/websites/wikis/ikiwiki-on-arch-linux/
 ===== Resizing a partition ===== ===== Resizing a partition =====
Line 97: Line 115:
 By resizing (which is safe to run on a mounted disk), we tell the file system to use all the space in the new partition. By resizing (which is safe to run on a mounted disk), we tell the file system to use all the space in the new partition.
 +===== Python UnicodeEncodeError horror =====
 +So your Python script works on your machine. But when you port it to a freshly installed Arch Linux Arm on a Pi, all hell breaks loose as soon as a weird character pops up. Something like this shows up: 
 +<code>UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 227: ordinal not in range(128)</code>
 +Well, don't start modifying your Python code (as you said, it does not have that problem on your machine).  It's because the default locale of Arch Linux is ''LANG-C'' and what you want is UTF-8 support. There is many ways to solve this, including forcing Python to use a locale different from the system. But I like to have my systems with similar settings. So just follow tutorials [[https://wiki.archlinux.org/index.php/Locale|here]].
arch/arch_on_the_pi.txt · Last modified: 2020/08/06 21:11 by Julien Deswaef