Create a swap file on Linux March 26, 2025
Antre du Tryphon
Search

Create a swap file on Linux

March 26, 2025 · admin Unix Ubuntu Linux Raspberry PI MAC OS X Raspbian
The simple following steps will create a swap file. Swap files are used when the operating system need more memory. It uses the swap space as memory. Its usage shall be limited, since a swap space is less efficient than memory. It will save you a memory upgrade if it is need seldomly.

What performance to expect using a Raspberry Pi as a firewall?

October 2, 2021 · admin Raspberry PI Raspbian RaspberryPI Router Firewall
I've tested 3 different Raspberry Pi used as firewalls at measured the performance I was getting. The Raspberry Pis are:

hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Invalid argument

May 1, 2016 · admin Raspberry PI ARPI600 Raspbian
This error occurred on Raspbian Jessie using an ARPI600. I was trying to set up the real-time clock. I could resolve the issue by running the following command: hwclock --systohc -D --noadjfile --utc after enabling it with the command echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-1/new_device 0x51 may differs on you installation. Run i2cdetect -y 1 to find the right value.

How about a Raspberry PI 2 as a firewall?

August 26, 2015 · admin Unix Raspberry PI Wheezy Networking
A Raspberry PI 2 performs as expected exceptionally well as a firewall. The download throughput achieved was 33 Mbits/sec under the same test conditions as the previous test (see Can A Raspberry PI Be Used As A Firewall? for more details). The CPU usage was about 5% during the download test. The CPU usage was around 2% while performing the upload test.

Can a Raspberry PI be used as a firewall?

August 25, 2015 · admin Raspberry PI Wheezy Networking
Can a Raspberry PI be used as a firewall? This question comes back often. Well, I have tested it. The test conditions are:

Octoprint and Cura Disk Image for the Raspberry Pi (Version 2015-03-15)

March 16, 2015 · admin Raspberry PI Wheezy 3D Printing Cura Octoprint
Cura integrated with Octoprint brings your 3D printer to the next level. You can download from HERE a fully functional image of Cura integrated with Octoprint. Simply copy this image to an SD-card of 4GB or more. Instruction to copy an image on an SD-card is given on this PAGE. You will need to unzip this file prior copying the image to the SD-card. A 4 GB SD-card will give you about 1.2 GB of free space to upload your models after expanding the filesystem. Be aware that some folders are hidden. Make sure you display them. This image is based on the following:

Octoprint and Cura Disk Image for the Raspberry Pi

January 5, 2015 · admin Raspberry PI Wheezy 3D Printing Cura
A newer version is available HERE Cura integrated with Octoprint brings your 3D printer to the next level. You can download from HERE a fully functional image of Cura integrated with Octoprint. Simply copy this image to an SD-card of 4GB or more. Instruction to copy an image on an SD-card is given on this PAGE. You will need to unzip this file prior copying the image to the SD-card. A 4 GB SD-card will give you about 1.2 GB of free space to upload your models after expanding the filesystem. Be aware that some folders are hidden. Make sure you display them. This image is based on the following:

Accessing a serial port from a web server

On most Linux distribution, it is impossible to access a serial port (ex. /dev/ttyS0) from a web server such as Apache or lighttpd using a cgi. Simply add the user under which the web server runs (www-data for example) to the group dialout. To do so, use vigr from the command line and add the user on the dialout group line. Such a line will typically look like:

Recording a terminal session under Linux

It is possible to record a terminal session under Linux with ttyrec. It also records vi, emacs, etc. sessions. Fisrt, install ttyrec

A step by step guide to setup a Bluetooth keyboard and mouse on the Raspberry PI

August 9, 2012 · admin Linux Debian Raspberry PI Wheezy
A lot of people is having problem setting up a Bluetooth keyboard and mouse on the Raspberry PI. Things get more complicated when your wired keyboard or mouse does not work or prevent your Bluetooth dongle from working. There is hope. This step by step procedure will let you install them or at a minimum let you know what does not work. It uses only the command line interface. It is targeted for the Wheezy Debian distribution.