Feb 192014
 

Original article by http://blog.shineservers.com/

Sometime a process “hang” both if you are using Gnu/Linux on your desktop (maybe a game ?) or as server, in these cases the best thing to do it’s to terminate that process, that probably is using precious resources, the basic commands to do this from a terminal are kill and killall.

killall is a tool for ending running processes on your system based on name. In contrast, kill terminates processes based on process ID number or “PID.” kill and killallcan also send specific system signals to processes. Use killall and kill in conjunction with tools including ps to manage processes and end processes that have become stuck or unresponsive when necessary.

Continue reading »

flattr this!

Feb 102014
 

An old article by Todd Partridge (Gently) but still really useful if you are writing some bash scripts and want them more readable with some colors:

Users who have been using Linux for awhile often learn that creating a basic script is a good way to run multiple, often-repeated commands. Adding a little color to scripts can additionally provide nice feedback. This can be done in a fairly straight-forward way by using the tput command.

Continue reading »

flattr this!

Aug 212013
 

Recently I’ve published an article about “DynDNS and ddclient: access your Linux from anywhere“, and some people commented that the services on DynDNS are not free anymore, so this is an alternative by Adam Buchanan first published on his interesting blog

This has nothing to do with search engine marketing, but everything to do with automation. If you’ve ever wanted to host a server at a location that doesn’t have a static IP address then you know just how much of a pain it can be.

Hopefully by the time you read this you’re familiar with what DNS is and what dynamic DNS is. If not, those links should catch you up to speed quick enough. I’ve tried a few different dynamic DNS providers but for the past few years I’ve been using freedns.afraid.org. I don’t host this site (of course), but I do host FTP and a few other services that allow me to get to my machines at home where ever I am.

I’m writing this post today because I just happened to have to update my scripts that keep my DNS up to date when my IP changes today.

Continue reading »

flattr this!

Linux shell: Introduction to Flock

Recently a colleague of mine should run multiple parallel jobs on a server (around 20 in our specific case), every job does “an elaboration” and this can take a time longer or shorter in respect of the others, once a job finishes its task it must read from a text file the first line that [...]

alias.sh puts your Linux shell alias on the clouds

If you are a Linux system administrator or you just wish to save a copy of your alias on the net, this is the service for you ! alias.sh is a new project that offer a simple service: allows you to manage all of your aliases online and browse the list of cool aliases submitted [...]