Archive for the ‘Tutorials’ Category

Static IP on OpenWrt

January 23, 2012 Leave a comment

If you want your router to assign a static IP on a specific OpenWrt Machice you just have to run something like the following:

uci set network.lan.proto=static
uci set network.lan.ipaddr=
uci set network.lan.netmask=
uci set network.lan.gateway=
uci set network.lan.dns=

/etc/init.d/network restart

Also you can edit accordingly the /etc/config/network file.

Categories: OpenWrt, Tutorials

Static IP on Linux

August 7, 2011 Leave a comment

If you want your router to assign a static IP on a specific Linux Machice you just have to edit /etc/network/interfaces to look like below.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address   # The static IP
Categories: Linux, Tutorials

Introduction to Mercurial (in Greek)

October 24, 2009 Leave a comment

I have written a tutorial (in Greek) for the about the Mercurial, which is a version control system, that can help you to work in your code and documents. Actually it helps you to get releases of your work easily and merge it with other patches! It is also a very good way to be more productive and to work faster with your colleagues. There is no developer, who doesn’t use a version control system in his work. In my opinion, Mercurial is one of the best options and that’s because it offers you, a de-centralized solution!

In this tutorial you will find:

  1. Repository Creation
  2. Add/Delete/Rename files at the Repository
  3. Commit to Repository
  4. Cloning
  5. Desultoriness between the releases
  6. Multiple repositories in order to administrate projects in which many developers may work. Issues like pull, push and merge
  7. A little about Diffs – Patches
  8. And many other introductory subjects

For more, and if you know Greek, look at the tutorial and the presentations.

Install LAMP (Linux Apache Mysql PHP) – phpmyadmin

May 30, 2009 1 comment

This mini-tutorial was written mainly for personal use. The following steps are an example of the installation with the use of apt-get package manager of Ubuntu and Debian. I think that the packages are the same with any other package manager.

  1. Update your repositories:
    • #apt-get update
  2. Install Apache and PHP:
    • #apt-get install apache2 php5 libapache2-mod-php5
  3. Install Mysql:
    • #apt-get install mysql-server mysql-client php5-mysql
  4. If you need to re-set the root password of the mysql server:
    • #mysql -u root
    • mysql> USE mysql;
    • mysql> UPDATE user SET Password=PASSWORD(‘new-password’) WHERE user=’root’;
    • mysql> FLUSH PRIVILEGES;
  5. Install phpmyadmin:
    • #apt-get install phpmyadmin
    • echo “Include /etc/phpmyadmin/apache.conf” >> /etc/apache2/apache2.conf

Now you are ready to start your webserver and build your sites etc etc

ps: Don’t forget the port forwarding: set all the ports to 80 and under TCP/UDP protocol.

Categories: Linux, Tutorials Tags: , , , , ,

Configure your Dynamic DNS (DDNS) [for linux]

May 29, 2009 1 comment

In this tutorial I will show you the steps to make your own free dynamic dns for your web server…

  1. Take a domain for your site. Free domains you can find at dyndns. You have just to create an account and then to make your own domain!
  2. Install ddclient that updates the dns with the current IP (for the linux distribution with the apt-get package manager like ubuntu and debian run the command: #apt-get install ddclient) and then make the configuration of this.
  3. For a future reconfiguration of ddclient run the command: #dpkg-reconfigure ddclient
  4. If you have a router and you don’t know how to take the current IP make a script with the name that will contain the text of the bullet and  put it under $HOME directory (don’t forget to change the mod to executable: #chmod +x
  5. Now change the line use=… of the /etc/ddclient.conf file with that of the bullet in order to be found the current IP by the daemon (ddclient)
    • use=cmd, cmd=$HOME/

After those steps you will have your own dynamic DNS that will be updated with your current IP every time the daemon runs (this time was set during the configuration of the ddclient).

Categories: Linux, Tutorials Tags: ,