Lighttpd is an open-source web server more optimized for speed-critical environments than common products while remaining standards-compliant, secure and flexible.

In this tutorial I will show you how yo install Lighttpd on Debian with PHP-FPM and MySQL support.

Step1. Install MySQL

apt-get install mysql-server mysql-client libmysqlclient16

Make sure that you provide a strong password for the MySQL root user.

Step2. Install Lighttpd on Debian

apt-get install lighttpd

You can access now this page http://localhost/index.lighttpd.html from your browser and you should see the Lighttpd default page

light

Continue Reading…

KDE 4.10 was Released

Valic —  February 7, 2013 — Leave a comment

The KDE Community announced the latest releases of KDE 4.10. KDE 4.10 is  the premier collection of Free Software for home and professional use makes incremental improvements to a large number of applications, and offers the latest technologies.

Few improvements:

  • Plasma Workspaces 4.10 Improve Mobile Device Support and Receive Visual Refinement
  • KDE Applications Improve Usability, Performance and Take You to Mars
  • KDE Platform 4.10 Opens Up More APIs to Qt Quick

More details on the many changes to the KDE 4.10 desktop can be found over at KDE.org.

5 Steps to Secure your SSH Server

Valic —  February 5, 2013 — 3 Comments

SSH is the standard method for Admin’s to connect to Linux servers securely. But the default install of SSH server way far from perfect and may allow attackers to hack your server. This guide shows you how to secure your SSH server in few steps

1. Use Strong SSH Passwords

Try to make all your passwords more secure by following next rules:

  • Try to use minimum of 8 characters
  • Use upper and lower case letters
  • Also use  numbers in your password
  • special characters like #$&*

You have also a password generator in Linux called pwgen. Install and use it with the following commands:

apt-get install pwgen

pwgen command will generate a list of passwords of 8 characters. You can use the man documents to find more options.

2. Disable SSH root logins Continue Reading…

SED useful commands

Valic —  February 5, 2013 — Leave a comment

1. How to remove lines ending with ‘baddump’ from a text file:

You’ve got a file with a bunch of lines end with “baddump”  and you need those lines to be removed completely without leaving any blank lines behind? This is the command to do it:

sed -i '/baddump$/d' file

2. You have text files with tons of empty lines and you want to get rid of those in one second?

sed '/^$/d' file > new_file

You may have multiple html files to correct at the same time.You can do that with foreach command:

foreach file (*html)
sed '/^$/d' $file > new_files Continue Reading...

These are some other commands that you will find very useful:

 

Command 

Description

clear

Clear the screen. This command clears  your  screen if this is possible.

echo

Display text on the screen. Mostly useful when writing shell scripts.

more

More is a filter for paging through text one screenful at a time.

less

An improved replacement for the more command. Allows you to scroll backwards as well as forwards.

grep

Search for a pattern in a file or program output.B y default, grep prints the matching lines.

lpr

Print a file or program output. lpr uses a spooling daemon to print the named files when facilities become available.

sort

Sort a file or program output.  Writes sorted files concatenated.

su

su – Switch User is the command that allows you to switch to another user account.