Tuesday, October 8, 2013

My network structure

This short post will show my internal network structure. It is important to have an idea of how the components are connected.

Monday, September 30, 2013

Raspberry Pi section

About a month ago, I've bought myself a Raspberry Pi. In general I wanted to provide some services (mainly for private use) and after some time I've finished the configuration.
So in this new section called Raspberry Pi there will be short howto's of how I've got services set up. This section should serve mainly as documentation for me, but I hope it would help also other people.

In general, I use ArchlinuxARM as my distribution and hopefully I will soon post articles on how to setup
  • wireless and ethernet network with netctl
  • dhcpd and internet connection sharing between interfaces
  • owncloud with nginx, mysql and php-fpm
  • transmission daemon with proxy forward on nginx
  • sharing owncloud's calendar and contacts with Android device and control CalDAV with python script via shell
I'll also cover how to setup NFSd to share folders over network, how to setup IPTABLES with port forwarding (sharing FTP service on remote computer through Raspberry) and how to create PHP-FPM cluster to give Raspberry some extra resources for owncloud instance.

Tuesday, April 30, 2013

Boot iso image from GRUB2

This post shows how to boot clonezilla image from local disk with Grub2.

Saturday, April 6, 2013

Function for removing keys from known_hosts

When connecting via ssh to a remote host you are asked to confirm the key fingerprint. This is added to ~/.ssh/known_hosts file so no further confirmation is required.
What about when the remote key has changed? You need to delete the key from this file.
I've written a small function to make this deleting easier, just by typing one command:

sshrm-key <nr>

My .screenrc

Hi, in this post I'll show you my configuration file for GNU screen.
For those who doesn't know what screen is, it's a full-screen window manager that multiplexes a physical terminal between several processes.
You can open terminal tabs in it, detach it and later reattach and continue you work and many many more like for example session sharing.

Monday, November 19, 2012

Remotely lock KDE session

To remotely lock your KDE session, login via ssh and execute following command:

for KDE 4.9:
DISPLAY=:0 /usr/lib/kde4/libexec/kscreenlocker --forcelock >/dev/null 2>&1 &

for KDE 4.10:
DISPLAY=:0 /usr/lib/kde4/libexec/kscreenlocker_greet >/dev/null 2>&1 &

My .bashrc

It's good to setup your system exactly as you want. bashrc file is great option if you like to apply your settings after logging in.
So this post shows my bashrc file...