background preloader

Raspberry Pi

Facebook Twitter

Learn the Linux command line. Write shell scripts. Lazy command list to install openvpn server on raspberry pi. Unix / Linux Fork Bomb Explained. (Discalimer: if you run this command and something goes wrong with your computer's hardware, software or if you lose your work or data, please do not hold me responsible.

Unix / Linux Fork Bomb Explained

You have been warned) In case you are a Windows user, we have an article about: Windows Fork Bombs! What is a Fork Bomb Unlike what its pronunciation might suggest, a fork bomb does not throw dining forks at you when it explodes. The word fork in the worlds of Unix and Linux means to create a new process. A fork bomb is something which calls the fork function indefinitely and rapidly, thus exhausting all system resources.

How does a fork bomb work? In this case ‘:’ is the name of the bash function (and is interpreted by the shell itself). When a user runs the fork bomb, it defines a function named ‘:’. The definition of the function contains the root of bomb. To launch the bomb, all you need to do is to type (or copy-paste) those seemingly harmless letters in your Linux terminal and hit enter. Building an economical OpenVPN server using the Raspberry Pi « Remi Bergsma's blog. The Raspberry Pi is a $35 credit-card sized computer, with an ARM-based CPU.

Building an economical OpenVPN server using the Raspberry Pi « Remi Bergsma's blog

It uses very little power (only 3 Watt), so it’s ideal for a server that’s always-on. I was thinking what’d be a nice task for my Raspberry Pi and came up with an OpenVPN server. This enables me to connect to my home from anywhere, for example to access some files or to access the internet from there. Before we start, Let’s have a look what’s on board the Raspberry Pi so you’ve an idea what we talk about: Here’s mine in action: Now, let’s see how we can turn it into a OpenVPN server. After the install finishes, you need to generate keys for the server and the client(s). The ‘easy-rsa’-tool has a file called ‘vars’ that you can edit to set some defaults. Load the vars like this (note the two dots): Then we need to generate keys: The first line makes sure we start from scratch. Raspberry Pi VPN Server - Brad Wells.

You have a raspberry pi— a low-power always-on computer.

Raspberry Pi VPN Server - Brad Wells

Why not use it as a VPN server for tunneling your internet through when travelling? This could, for example, help you ensure a secure browsing experience when you’re on a sketchy public wifi network. Realvnc server name ubuntu. 92.168.1.1/clients.html. Installation Guide for motion detection with webcam.

For the file storage, you could use NFS (assuming you have a linux box elsewhere on the same network).

Installation Guide for motion detection with webcam

On the other linux box:1. sudo apt-get install nfs-kernel-server2. sudo {your editor of choice} /etc/exports - this file tells your nfs server which computers are allowed to connect to which folder on your nfs server3. Logging into a Rasberry Pi using Public/Private Keys « Steve @ DynamicEdge. In a previous post we covered enabling sshd on the Raspberry Pi.

Logging into a Rasberry Pi using Public/Private Keys « Steve @ DynamicEdge

Now that we’ve got SSH setup I’ll cover how to log in using a public/private key-pair rather than using password authentication. This is particularly useful if you’re going to put the Pi on the public internet. It’s also pretty handy if you can’t be bothered to type your password each time you ssh into the device. The first step is to ensure that you have a public private key-pair installed on your local machine. Most developers will already have this but in linux or mac you can normally generate a new pair using: I won’t cover creating these in any detail as there are plenty of guides available. Next up we need to copy our keys over to the Rasberry Pi. This assumes that your private key is stored in ~/.ssh/id_rsa.pub and that the ip address of the server is 192.168.1.190. Now we should be able to log in using: This time we shouldn’t be asked for a password it should use the key instead! Disallowing password login. Like this: RPi Remote Access. Back to Beginners Page A default install of a Rpi will probably have an ssh daemon running.

RPi Remote Access

This means that the board is listening on port 22 for a remote host asking for a connection. You can run a command line, file transfer or GUI over a port 22 connection to the Rpi. Initial Setup Prior to your initial remote access it is recommended that you generate unique host public/private keys with the following command[1] sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server You can execute these commands after having logged in remotely, and if executed while logged in from a remote client you will not be disconnected mid-session.