Category Archives: Linux

Alles wat mat Linux ze dinn huet

Third step – Finally

So finally i realized the final configuration on my network. I integrated my Security Gateway into my network and i am enjoying the statistics the thing is showing me. I am fully satisfied for the moment. For sure i am hoping for more options especially some kind of protection for children or other non wanted pages. I’ve been used to Ipfire for some time, but for my private needs the USG should be doing it.

But what should i tell you? I’ll show you some screen shots which is better than any long report! Ah yeah… I just ran into one issue during installing my device. It’s default IP is in the 192.168.1.X Range which may become a problem if your router / Internet Connection is in the same range! So before i realized that i really had a hard time. But finally changing the Modem’s IP solved everything and from that on the system keeps running.

           

Second step – Make my W-LAN big

So after my start with one hotspot I ordered last month one UAP-AC-LR and this month another UAP-AC-LITE from Ubiquity. So my network now counts 3 hotspots, on 3 different floors and it covers most of my home. Maybe next summer I will reorganize everything but I am confident that the system should be able to handle my wishes ;-)

So where to start? First I needed a controller for the hotspots. My Virtual Computer could program everything but I wanted statistics to see the problems and the usage of my home. To be honest I didnt want to buy the controller. It is nice, it does its job, but I think that doing it yourself is always the best way to go. So I took a Raspberry Pi Model 3, packed everything together with a PiDrive from Western Digital I had lying around and with a little help from over here, I created the controller myself. It now runs for already some time, without any issues and the power consumption is okay. So the controller issue was solved easy and fast.

Buying more hotspots was the second step and it only was a question of time. I will have to see where I will place the different devices, but that’s for the summer and I need to get a network cable into the garden to maybe place one over there. Time will tell.

Next step in my project will be the Security Gateway (the USG) which I want to include. This should give me more detailed statistics and it should increase my security level for the connection. We’ll see that next time =)

Managing multiple WordPress Sites

So do you need to update more than one WordPress Site? If this is the case you might look around for managing multiple Sites over a singe interface. A few weeks ago I did have a look into that topic due to the fact that I didn’t want to spend an hour every month logging into various sites I keep an eye on, simply to click and update everything. So I had a look over the horizon of these programs.

I found a few but most f them were managed somehow by companies where you needed to somehow provide them your log in’s, which seems logical if you want them to update your sites. But as I am a somebody suspicious, I wanted to stay the boss of my data and so I decided myself for a tool called “MainWP”. So if you should ever consider getting something similar, you might have a look at the program.

You simply have to install the plugin on your main Site, and install on the sites you want to manage a child plugin. That’s it! No fancy registration etc. Very easy! And you stay Master of your passwords and log in’s!

The tool itself comes as a simple plugin for WordPress. They recommend setting up an own WordPress Site for the tool, which I definitely can confirm! It simplifies things and keeps it more clear and clean. Another thing I recommend is enabling the unique security ID on the “child” sites, those are the sites you want to manage over your central site. This gives your managed sites more security. I am not sure that without enabling this feature, it would not be possible for anybody to modify your site. But anyway… Enabling security features isn’t a mistake! Never!

For the rest you should simply try it out yourself. It’s worth a try! Yes there are other sites with more features and you might need to put up an own cron-job, but you stay your very own Key-Master.

P.S. Sites / URL’s have been blanked out!

Virtual Server made easy

I was shown by a colleague of mine a nice tool I wanted to share. Ever wanted to have your own cheap Linux server on the net? So did I and the prices were not so, let’s simply say, attractive! Either you get a real Virtual Server and these come starting for at least 10€ / month, but you can find prices for about 5€ / month where you get a scalable server.

The service I tried out is called DigitalOcean and it appears to be one of the most simple services in this sector. You can, in less than a Minute, create a new server, scale them up and much much more. And the best of it, you pay as you use it. Not using any space or CPU etc, means you’re not paying anything.

It’s easier than running your own Raspberry at home and not having a fix IP etc. For the fix IP you’re already paying much more, and many tools need an own IP so if you’re interested in this, you might have a look at it.

That’s the way the cookie crumbles…

Time-Lapse Project – Part 1 – The Parts

So i had the idea to create a timelapse movie and had been looking for some time to get a “Very long term” timelapse device. You can find quiet a few cameras on the market which do give you the possibility to create such series of pictures, but they all come down to the same issue: the problem of power! Most of these devices have internal batteries which need to be charged over (Micro) USB cables which in outdoor situations becomes difficult to keep it dry. Special casings might help but it always becomes a risk factor, because those devices are not ment to function like that.

The only option i found were cameras from a brand called Brinno. I had seen one before at a friend´s but what irritated me most was the fact, that these devices could not do Full HD. Their maximum Resolution was 1280×720, which is nice but the cheaper ones even only do 720p. And honestly they do not come in cheap… But i have to say, they are solid, the picture quality is okay and they do run over weeks and even month without changing batteries. So for a project without energy they are in my eyes definitely the best option!

And so i ended up in a plan constructing a Raspi-Camera with an Outdoor Water Proof Case. Finding such a thing is almost impossible! You could take an old CCTV Outdoor Case, but honestly they are simply huge! Something small and discrete looks different… So i ended up with a Kickstarter Project called PiCE which was realized in 2013. Luckily i was able to buy a “used” case on ebay. But i have to admit that i had the chance to get a case which was never really used. Only a few scratches but that´s it, it had never even been assembled.

So after having my case, i had to start planning the rest. An old Raspi B was luckily on hand, because that was the device at that time the case was designed for. I bought a new Camera and started my assembly. For the software part i chose motionEye OS, which is a nice environment if it works, easy to use with a very user friendly interface. It can even stitch your time-lapse video together! So maybe no need for post production.

That´s the plan, follow up will come next month with some problems i ran into and where i am seeking for solutions =) But that´s how it is with the Pi. It´s always work in progress.

How To Remote Desktop to your Raspberry Pi

So at some point i wanted to access my Raspberry Pi without the need to have it always hooked up to my (or any) screen. So I looked it up and collected all the needs and the problems with its solutions.

First of all, you need a running Wheezy installation. It needs to be hooked up to your network and to the internet. After that you need to connect yourself with your regular operating System onto the console of the Pi. I use therefore PuTTY which is a common program for these things under windows. Download it and make an SSH connection into your Pi.

After that to start we simply update the Raspberry to the latest Version. To do that use the following command:

sudo apt-get update && sudo apt-get upgrade

You will need to confirm that you want to update and that these updates will take some more space on your partition. Depending on the state of your device, this might take some time. Have a break…

This is not really needed to install the remote desktop server, but it is always good to have the latest version of the programs so that errors which might occur are reduced to the maximum! Now we can come to the main part.

To be able to connect to the Desktop we will use a tool called XRDP. To install it you need to insert the following command

sudo apt-get install xrdp

Again you will need to confirm that you want to install it and after that all the needed stuff is installed. After that a reboot of the device should be done.

sudo shutdown -r now

When the device comes back up the complete process should be finished. All you will need is to connect yourself with your RDP Program to your Raspberry. In Windows you can use the Standard tool “Remote Desktop” for that. You will need to enter the IP of your Raspberry. See my screen-shot as an example (it is in German but it should be similar in English) and simply click connect.

remote1

When everything went right you should be seeing a login screen similar to this:

remote2

So if you reached as far, you did everything right! But there might be some problems logging in…

The language Problem

Some more informations for people with having issues logging in. If you came to that screen everything is working fine. If you cant log in, there might be an other problem with your keyboard! In the field of the username you can test your keyboard to see if all your keystrokes are transmitted the correct way. This is a language issue. Here comes the solution i had to look for on a few places on the net.

SSH again into your Pi. Then you need to go tho the following location /etc/xrdp so you have to use the following command for this:

cd /etc/xrdp/

After that you can use the command ls to see which files this directory contains. It s all about km-????.ini files (???? stands for numbers corresponding to the country code). Initially xrdp uses km-0409.ini (English) but I want to use a German Keyboard so i should be using the km-0407.ini. The country codes can be found here. Not all the ini Files are on your device but Google should be able to help you to find them. You simply need to copy them into the same folder and do the same trick.

To start, we will create a copy of the original km-0409.ini which we will name km-0409-copy.ini with the command:

sudo cp km-0409.ini km-0409-copy.ini

After that we copy the German layout (km-0407.ini) over the Original Version (km-0409.ini)

sudo cp km-0407.ini km-0409.ini

Finally the xrdp program needs to be restarted which we do with the command

sudo /etc/init.d/xrdp restart

After that use your Remote Desktop Program to login and your keyboard strokes should arrive the correct way on your Pi.

Mission Accomplished! Now you can enjoy your Pi on your regular system without hooking it extra to a screen. Okay there might be some limitations but regular stuff works anyway!