10 Feb 2016

feedPlanet Arch Linux

GZ-Sort

A utility for sorting really big files.

10 Feb 2016 9:48am GMT

01 Feb 2016

feedPlanet Arch Linux

LibreOffice Ransom Demand

I feel like my document is being held hostage and I just received note made form a bunch of letters cut from newspapers and magazines. * I have no idea what caused this and can not replicate…

01 Feb 2016 6:43am GMT

30 Jan 2016

feedPlanet Arch Linux

Pacman-5.0 Released

As is becoming tradition, I need to make a blog post to accompany a pacman release! This is a big release with a long awaited feature so it needed a major version bump (and, most importantly, we now are back Continue reading

30 Jan 2016 12:40am GMT

12 Jan 2016

feedPlanet Arch Linux

Where Else?

Australia's "Shadow Minister for Justice" is the representative for the seat of Batman.

12 Jan 2016 3:44pm GMT

02 Jan 2016

feedPlanet Arch Linux

PHP 7.0 packages released

Packages of the new major version of PHP have been released into the stable repositories. Besides the new PHP 7 features there are the following packaging changes. In general the package configuration is now closer to what was intended by the PHP project. Also refer to the PHP 7 migration guide for upstream improvements.

Removed packages

New packages

Configuration changes

02 Jan 2016 3:13pm GMT

30 Dec 2015

feedPlanet Arch Linux

BananaPi with Arch Linux ARM and a mainline kernel

I posted a guide on getting Arch Linux ARM on the BananaPi last week. Now I was eager to get a mainline kernel working on the BananaPi for some ARM hacking and testing of new patches. In this post I'll describe the steps required to get a mainline kernel booted next to the "normal" kernel.

Compiling mainline kernel

I am using Hans de Goede's branch here, since he has some patches for USB OTG support for the BananP in there. But the normal mainline kernel should work with similiar steps

git clone https://github.com/jwrdegoede/linux-sunxi.git
cd linux-sunxi
git checkout -B sunxi-wip origin/sunxi-wip

wget https://fedorapeople.org/~jwrdegoede/kernel-driver-programming/kernel-config
mv kernel-config .config
# CROSS_COMPILE may differ per distro. arm-linux-gnu- probably works for the other distro's.
make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi- oldconfig 
make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi- dtbs
make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi- zImage

Now that we have a kernel compiled, mount the sdcard.

mount /dev/sdX1 mnt

cp /path/to/linux-sunxi/arch/arm/boot/zImage mnt/boot/zImagemainline

mkdir mnt/boot/dtbsmainline
cp /path/to/linux-sunxi/arch/arm/boot/dts/*.dtb mnt/boot/dtbsmainline/
umount /dev/sdX1
sync

Now that we have copied the mainline kernel and dts files to the sdcard, it still won't boot it. Since the boot.scr is specified to look dts/* and zImage. So we will need to copy a new scr file. (note that you cannot edit the scr file on the sdcard) You can either generate a new scr file or create on yourself!

mount /dev/sdX1 mnt
wget http://pkgbuild.com/~jelle/bananapi/boot-mainline.scr -O mnt/boot/boot.scr
umount /dev/sdX1
sync

Or generate a new scr file, which sounds more fun.

pacman -S uboot-tools

wget http://pkgbuild.com/~jelle/bananapi/boot.cmd
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "BananPI boot script" -d boot.cmd boot.scr

mount /dev/sdX1 mnt
cp boot.scr mnt/boot/boot.scr
umount /dev/sdX1
sync

I haven't figured out what the boot.scr exactly does or if there is a way to specify which kernel to boot with one boot.scr file. So expect some more posts while I explore more about U-boot and ARM :-)

BananaPi with Arch Linux ARM and a mainline kernel was originally published by Jelle van der Waa at Jelly's Blog on December 30, 2015.

30 Dec 2015 8:37pm GMT

27 Dec 2015

feedPlanet Arch Linux

Logrotate Weechat logs

Today I noticed my Weechat logs have grown a lot! ~/.weechat/logs has grown to 360M. Obviously I need some sort of automation to take care of these logs, enter logrotate. Luckily Earnestly showed me how to use logrotate on it's own some time ago. So all I what was needed was a logrotate config file (similiar to /etc/logrotate.d/*) and a systemd user service file. First off the ~/.local/share/logrotate.d/irc.

# weechat logrorate file
compress
missingok
notifempty
copytruncate

# Log files.
"~/.weechat/logs/**log" {}

The systemd service file located in ~/.config/systemd/user/weechat-rotate.service.

[Unit]
Description=Logrotate weechat's logs

[Service]
Type=simple
ExecStart=/usr/bin/logrotate -s %t/logrotate.state  %h/.local/share/logrotate.d/irc -v

[Install]
WantedBy=default.target

Logrotate will run when Systemd reaches default.target, more info about default.target can be found here. You could also use a Systemd timer to schedule the logrotate weekly or monthly. To view log output use journalctl.

journalctl --user -f -u weechat-rotate

Logrotate Weechat logs was originally published by Jelle van der Waa at Jelly's Blog on December 27, 2015.

27 Dec 2015 8:45pm GMT

22 Dec 2015

feedPlanet Arch Linux

Arch Linux ARM on the BananaPi

Since some time the Banana Pi is supported in the Linux kernel and U-Boot. Arch Linux ARM does not support the board yet, but it is possible to get it working with an upstream U-Boot.

SD card Image

First we to create an SD card image, since the BananaPi is also ARMv7 we can use the Cubieboard 2 installation instructions Follow the steps until step 6, "Install the U-Boot bootloader". We will have to compile our own u-boot for the board.

U-Boot

The next step is creating a u-boot image. Make sure you have the following packages installed on Arch Linux.

Now follow the following steps.

git clone git://git.denx.de/u-boot.git
cd u-boot
make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi- Bananapi_defconfig 
make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi-

If everything went fine you should have an U-Boot image: u-boot-sunxi-with-spl.bin. Now dd the image to your sdcard, where /dev/sdX is your sdcard.

sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8

Flush buffers

sync

Now mount the sdcard again.

mount /dev/sdX1 mnt
wget http://pkgbuild.com/~jelle/bananapi/boot.scr -O mnt/boot/boot.scr
umount /dev/sdX1
sync

Booting & Serial

Instructions on getting serial working are on the sunxi wiki.

Arch Linux ARM on the BananaPi was originally published by Jelle van der Waa at Jelly's Blog on December 22, 2015.

22 Dec 2015 6:37pm GMT

20 Dec 2015

feedPlanet Arch Linux

Using OPcache to speed up your CLI scripts

With PHP 7 it is now possible to use OPcache efficiently. It can be configured to store the compiled byte code on disk and use it on the next run of a script. Complex command line scripts like Composer and … Continue reading

20 Dec 2015 6:00am GMT

18 Dec 2015

feedPlanet Arch Linux

PHP 7 on Arch Linux

I have been working on PHP 7 packages for a while. They are available in my repository: [php] Server = https://repo.pierre-schmitz.com/$repo/os/$arch Insert these lines on top of the other repository definitions in your /etc/pacman.conf A copy of the PKGBUILDs I … Continue reading

18 Dec 2015 10:06pm GMT

12 Dec 2015

feedPlanet Arch Linux

Dropping Plasma 4

Since the KDE 4 desktop has been unmaintained for several months and it's becoming increasingly difficult to support two versions of Plasma, we are removing it from our repositories. Plasma 5.5 has just been released and should be stable enough to replace it.

KDE 4 installations will not be automatically upgraded to Plasma 5. However, we recommend all users to upgrade or switch to a maintained alternative as soon as possible, since any future update may break the KDE 4 desktop without prior notice. See the wiki for instructions on how to upgrade to Plasma 5.

12 Dec 2015 10:04am GMT

10 Dec 2015

feedPlanet Arch Linux

C++ ABI change

GCC 5.x contains libstdc++ with dual ABI support and we have now switched to the new ABI.

While the old C++ ABI is still available, it is recommended that you build all non-repo packages to have the new ABI. This is particularly important if they link to another library built against the new ABI. You can get a list of packages to rebuild using the following shell script:

#!/bin/bash

while read pkg; do
    mapfile -t files < <(pacman -Qlq $pkg | grep -v /$)
    grep -Fq libstdc++.so.6 "${files[@]}" <&- 2>/dev/null && echo $pkg
done < <(pacman -Qmq)

(Original announcement text by Allan McRae [link])

10 Dec 2015 6:48am GMT

01 Dec 2015

feedPlanet Arch Linux

Migrated Blog

Due to database issues, I've migrated my blog from http://archlinux.me/dusty to my personal domain which has been sitting empty for many years: http://buchuki.com/ My posts are going to continue to be infrequent for a while, but I do intend to pick up on blogging in the latter half of next year. In the meantime, you […]

01 Dec 2015 3:51am GMT

18 Nov 2015

feedPlanet Arch Linux

C100P Tweaks

Now with charging limits!

18 Nov 2015 5:37am GMT

13 Nov 2015

feedPlanet Arch Linux

Xorg 1.18.0 enters [testing]

Xorg 1.18.0 is entering [testing] with the following changes:

Update: Nvidia drivers are now compatible with xorg-1.18.0 (ABI 20)

13 Nov 2015 12:42pm GMT

06 Nov 2015

feedPlanet Arch Linux

C100P Tweaks

All the little things I do for the Asus Flip

06 Nov 2015 8:06am GMT