There are many cases where two networks have to be connected on Layer 2 in a
virtual fashion, which is referred to as a Virtual Private Network (VPN).
Typically you would use OpenVPN or similar software
for that. All of these tools have in common that they require some non trivial
setup steps like setting up a PKI or exchanging keys or certificates in a
safe way.
As a programmer, setting up a full fledged VPN software for a development
environment which is destroyed regularly seems not be the best option. A
question that normally comes to my mind in these moments is:
Can I use SSH for that?
The answer is usually YES, like in this case. For the first part of an ongoing
series about little known SSH features, we’ll take a look at the -w command
line flag which allows bridging of two ethernet networks using tap-devices.
I’m currently working in an environment where the development setup consists of 6 individual VirtualBox VMs handled by vagrant. This could be a problem on devices with low amount of memory, such as Macbook Air …
This post describes a setup with a single VM which hosts all other VMs as LXC containers with minimal overhead. The tricky part here is the network setup, so that your developer machine is in the same network as the containers, which then allows direct access to and from the containers.
I’m using websocketd for a little side project, called webshell, which is a little shell in your browser that runs predefined commands. It is obvious that this shouldn’t be accessible by everyone! So there is a need for authentication. For most of my projects I use HTTP Basic Auth, which is not supported by Chrome when using WebSockets. The solution is a cookie based authentication built using Lua directly in nginx (used as a reverse proxy).
When you own a custom domain like me (pboehm.org), there are unlimited
possibilities what you can do with it. One thing is to write a redirector to
use subdomains pointing to your profile-pages on several services like Flickr
or Github. Another purpose could be the redirection of www.DOMAIN and
DOMAIN to blog.DOMAIN, which could be hosted on Github Pages that is
limited to one CNAME per page.
git the distributed version control system built for the Linux kernel is widely used
nowadays and has been adapted by more and more dev-teams. Developing with git
in a small team requires a different workflow to push/pull/merge/rebase
without any problems. This post describes a minimal workflow, which builds up on
feature branches on which the developer implements their changes. The
master-branch tracks the remote changes and the feature branch will be merged
into master if the work is done.
In Django you will normally work with forms and models. A form instance holds
a reference (form_instance.fields) to his corresponding fields as a dict.
On model instances this dict does not exist. This post describes a solution.
Als ersten Beitrag im Blog, gleich mal ein recht interessantes Thema, nämlich
das dynamische Hinzufügen von Methoden zu bestehenden Klassen. Warum man das
machen möchte und verschiedene Möglichkeiten dies umzusetzen, beschreibt dieser
Beitrag.
My plan with this blog is, to write about several things I’m interested in. Some of my ideas are:
describe language concepts and their implementation in different languages solutions for different problems I had in my work on different projects present some of my own projects ….
Dieser Artikel wurde von tuxorials.de (Dokuwiki) hierher migriert! Mögliche Darstellungsfehler bitte ich zu entschuldigen.
Die Shell-Variable $PATH ist dafür zuständig, Pfade zu Verzeichnissen festzulegen, in denen die Shell nach ausführbaren Dateien sucht und sie so in der Lage ist, diese Dateien ohne explizite Pfadangabe auszuführen. Standardmäßig sind dort alle wichtigen Verzeichnisse wie /bin, /usr/bin, /usr/local/bin, /sbin oder /usr/sbin enthalten, sodass es möglich ist, die Programme cat oder grep ohne Pfadanagbe auszuführen.
Beiträge zu Tools: pDownloader, getserieslinks … > > Dieser Artikel wurde von tuxorials.de (Dokuwiki) hierher migriert! > Mögliche Darstellungsfehler bitte ich zu entschuldigen. >
Beiträge zu Tools: pDownloader, getserieslinks …
Bauen von RPM-Paketen und Erstellen von Yum-Repos
Caching von RPM-Paketen (intelligentmirror)
Konfiguration von Squid (transparentes Proxying, Authentifizierung, intelligentmirror)