Saturday 22 June 2013

Backup Mirrors for /etc/pacman-mirrors-conf (Manjaro)

##
## /etc/pacman-mirrors.conf
##

## Branch Pacman should use (stable, testing, unstable)
Branch=stable

## Generation method
## 1) rank   - rank mirrors depending on their access time
## 2) random - randomly generate the output mirrorlist
Method=rank

## Specify to use only mirrors from a specific country
## Disabled by default
OnlyCountry=United_Kingdom

## Input mirrorlist directory
MirrorlistsDir="/etc/pacman.d/mirrors"

## Output mirrorlist
OutputMirrorlist="/etc/pacman.d/mirrorlist"

Thursday 20 June 2013

Setting Up NTP Server on Manjaro

Create a text file containing the following....
#!/bin/bash
systemctl stop ntpd.service
ntpd -qg
ntpd -qg
ntpd -qg
ntpd -qg
systemctl start ntpd.service
hwclock -w
... and name file ntp.sh and make executable.

Edit /etc/ntp.conf and under '# Associate to public NTP pool servers; see http://www.pool.ntp.org/', replace the three lines of 'server 0.pool.ntp.org' with...
server 0.uk.pool.ntp.org
server 1.uk.pool.ntp.org
server 2.uk pool.ntp.org
server 3.uk pool.ntp.org
N.B. The 'uk' is for United Kingdom. Insert your own region.

Save, and as sudo, run ntp.sh script.
sudo ./ntp.sh
To sync the clock every time your computer boots run...
sudo systemctl enable ntpd 
N.B. Alternately, replace 'systemctl start ntpd.service' in the top script with the above command.

Tuesday 18 June 2013

Fixing the "RTMP ReadPacket failed" error in iPlayer

To fix "RTMP_ReadPacket, failed to read RTMP packet header" error, try typing the following into a terminal:
get_iplayer --prefs-add --rtmp-tv-opts="--swfVfy http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf"
... and then use as normal.

More info on the cause here.