Posts with the category Arch Linux
dmidecode -t memory | grep 'Physical Memory Array' -A7
wget -O ecc_check.c http://pastebin.com/raw.php?i=URExZi29 gcc ecc_check.c -o ecc_check ./ecc_check
The program will output a few lines of text; of which only the values in the far-right column are relevant. The values in this column represent whether ECC...
Speeding up the write access of a RAID array
echo 32768 > /sys/block/md0/md/stripe_cache_size
Speeding up RAID1 array rebuild
echo 50000 > /proc/sys/dev/raid/speed_limit_min echo 200000 > /proc/sys/dev/raid/speed_limit_max
the resync speed went from 1M/sec to about 25M/sec:
cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sdb3 sda3 ...
Since Python 3.3 venv is a module found in the standard library of Python. It can replace virtualenv / virtualenvwrapper. Creating a virtual environment is as simple as this:
python3 -m venv ~/.pyvenv/iplogger-3.4 source ~/.pyvenv/iplogger-3.4/bin/activate # I didn't need the step below, don't know when it is required: #curl...
This is a follow up post for that one: Hosted Raspberry Pi at PCExtreme – Reinstalled with Raspbian.
I crashed my original OS and asked the kind people at PCExtreme to reinstall my RPi. They did and here is what I did when I received the credentials for the newly...
This blog post is still in the makes, you can, however, already take advantage of the pretty content available so far.
- Install Arch Linux ARM on SD Card (get the image from here)
- Plug SD card into RPi, connect the Camera Module (see this) and power up the RPi
- SSH into...
ip addr su ethtool enp1s0f0 ethtool enp1s0f1 ethtool -s enp1s0f0 wol g ethtool enp1s0f0
g or the other options mean is stated here (source):
p Wake on phy activity
u Wake on unicast messages
m Wake on multicast messages
b Wake on broadcast messages
a Wake on ARP
If you encounter problems like these:
dhcpcd: eth0: broadcasting for a lease dhcpcd: eth0: offered 192.168.1.64 from 192.168.1.1 dhcpcd: eth0: reject NAK via 192.168.1.1
Online you will find a lot of old threads suggesting things like commenting out the line
require dhcp_server_identifier in the file
dhcpcd.conf. Didn't help in my case.
Deploying a web app written in Python is not always easy. Here are a couple of easy steps to get it done on Arch Linux. These steps are not a perfect tutorial if you want to go for high traffic sites. It is more about automating the start-up of the...
Update 2014-01-14: There is now a completely Python-based camera-interface for you to work with: picamera
/opt/vc/bin to your
# To add /opt/vc/bin temporarily to your $PATH: PATH=$PATH:/opt/vc/bin
and set up your
/boot/config.txt to contain the following:
gpu_mem=128 start_file=start_x.elf fixup_file<span...
I have the Siemens Gigaset USB Adapter 54 v2 with a Prism54 chipset. It has the USB vendor/product ID
Bus 001 Device 008: ID 083a:4521 Accton Technology Corp. Siemens S30863-<span...
Setting up my Raspberry Pi for Raspberry Pi colocation by PCextreme.
# Change the root password: passwd # Full system upgrade: pacman -Syyu ## Extend the root partition as explained on http://goo.gl/kFOnW fdisk -c /dev/mmcblk0 # p d-2 n-p-2 w # on a newer Arch...
My Raspberry Pi running Arch Linux didn't get the proper time on system startup and here is the solution I came up with to solve this problem:
Create the file
[Unit] Description=Set the time using NTP time servers [Service] Type=simple ExecStart=/usr/sbin/ntpd -s
I.e. deploying a tool or Python app using systemd.
I would recommend setting up the environment variables as well as activating the virtualenv in a Bash script and call that from systemd.
Here is the bash script starting the bottle.py web app after setting up the virtualenv. It's stored in
OK, here is how to start ssh on system startup (this is the content of the systemd .service configuration file
[Unit] Description=AutoSSH service for a reverse tunnel from some.example.com to localhost After=network.target [Service] ExecStart=/usr/bin/autossh -M 0 -q -N -o "ServerAliveInterval 60"...
sudo apt-get install vlan sudo su -c 'echo "8021q" >> /etc/modules' sudo modprobe 8021q
Usage and Configuration
# adding a vlan to a network interface: ip link add link eth0 name eth0.10 type vlan id 10 # configuring the vlan: ip addr add 10.0.0.1/24 brd 10.0.0.255 dev...
This is how it shows up in the kernel log /
dmesg on Ubuntu:
[712886.216957] usb 1-1.2: new high-speed USB device number 5 using dwc_otg [712886.318980] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811 [712886.319014] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [712886.319034] usb 1-1.2: Product: 802.11n WLAN Adapter [712886.319051] usb...
Two or three weeks ago my Arch Linux ARM based Raspberry Pi died. At least it wasn't accessible via Ethernet anymore. Here are the syslog details:
Nov 4 01:45:01 alarmpi -- MARK -- Nov 4...
Today my Raspberry Pi finally arrived! One of the projects I'm planning to use it for is out-of-band management for PCs.
This blog post will evolve as I'll discover interesting things to do with my RPi.
About the hardware:
Arch Linux Essentials
Here are some of the steps that are most essential...
I used the built-in SD card reader to install Arch Linux from an SD card. The Arch Linux Wiki holds quite a few comments on what to take care of on the EEE PC 900.
The next steps were:
- I upgraded to Grub2 (Yes, Arch Linux still uses Grub...
Let's suppose you have a device that has remote logging capabilities like the Switch TL-SG3210. In this case you may want to set up a machine on your local network to receive these log messages and store them permanently.
On Linux you have the choice between rsyslog and <a...
Installing synergy on Arch Linux (Arch Wiki entry):
sudo pacman -S synergy
Installing synergy on Mac OS X 10.10
brew install cmake qt cd ~/Downloads git clone https://github.com/synergy/synergy.git cd synergy git checkout focus-fix-patch ./hm.sh conf -g2 --mac-sdk 10.10 --mac-identity Yosemite ./hm.sh build
Or use the nightly build: https://synergy-project.org/nightly
Create a config file...