Latest LQ Deal: Linux Power User Bundle
Go Back > Blogs
User Name



Server latency

Posted 10-27-2011 at 08:26 AM by sag47

I wanted a quick and dirty way to determine server latency on my Kubuntu machine. This just parses simple output from ping and provides only the time values.

for x in;do echo -n "[$x]: "; ping -c 1 $x | head -n 2 | tail -n 1 | awk '{split($8,arr,"=")} END{print arr[2],$9}';done
[]: 0.576 ms
[]: 6.23 ms
You can put as many servers or IPs as you want in the for loop to get a comparison....
Senior Member
Posted in Uncategorized
Views 645 Comments 0 sag47 is offline

Recursively generate MD5 checksums

Posted 10-26-2011 at 09:53 AM by Garda
Tags find, md5, md5sum, xargs

I wanted to generate MD5 checksums of a whole bunch of files in a directory. It turns out that this is not as straightforward as it should be. IMO it should be completed with: md5sum -br *

Unfortunately it was not as straightforward. I found this blog entry after searching for a while and adapted this to what I needed. To generate checksums, I used the following:

find . -type f -print0 | xargs -0 md5sum -b
(Note: for the above to work, "cd"...
Posted in Uncategorized
Views 4459 Comments 0 Garda is offline

Day 2 (installing mysql, a web server named nginx, and PHP in debian, and terrible vi notes)

Posted 10-25-2011 at 08:37 PM by omgiamlinux
Updated 10-27-2011 at 06:34 PM by omgiamlinux

Updated: 6-5-2011

Hey, in this tutorial, we will be installing nginx, PHP, and mysql.

1) Install nginx
2) Install PHP
2.1) Configure nginx to work with virtual hosts and PHP
3) Install mysql

:: 1 - nginx

$  wget
$  tar xvfz nginx-1.0.4.tar.gz
LQ Newbie
Views 845 Comments 0 omgiamlinux is offline

day one (a buggy debian installation)

Posted 10-25-2011 at 08:36 PM by omgiamlinux
Updated 10-27-2011 at 06:30 PM by omgiamlinux

After crying a little bit more, I decided to return to the Debian web site and try to find another iso that actually installed something I could use. (needless to say, their website is very difficult to navigate, and their distribution layout, confusing).

Finally, I made it, I downloaded the first CD from that directory (apparently all you need is the first disc, and the other discs are there to confound dozers...
LQ Newbie
Views 375 Comments 0 omgiamlinux is offline

Day point five

Posted 10-25-2011 at 08:35 PM by omgiamlinux
Updated 10-27-2011 at 06:30 PM by omgiamlinux

So, I guess day one started a long time ago. I happened to check the classified paper (because my dad still reads newz paperz, what a lamer) and saw two local businesses advertizing a need for Ruby on Rails programmers. I happened to like one of them a lot(they sell food, but no further details shall be provided to protect their delicious identities). So I said to myself, "I'm going to figure out what Ruby on Rails is and then do that for money."

Upon further investigation,...
LQ Newbie
Views 310 Comments 0 omgiamlinux is offline


All times are GMT -5. The time now is 03:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration