Linux boot speed-up removing slow/useless services

Today, after upgrade to Debian Stretch i was looking startup loaded services and system boot-up performances through systemd-analyze* command.

Looking results , excluding kernel time(4,5 sec), system took 1 minute and 42 seconds for start;¬†OK , i don’t have an SSD, there are a lot of services like tor, virtualbox , Plasma,etc but boot time seems really too long.
This situation deserves a more detailed check, so i executed systemd-analyze blame* for understand if there is a particular slow service or if there are just so many

As you can see , outcome show that racoon.service takes 1minute and 32 secs to start.. this service (ipsec) for my needs it is useless. Therefore i typed (with sudo, or being root) Systemctl disable racoon.service

Afterthat, i restarted system and i typed again command System-analyze to see results:

Nice, we cut 1 minute and 17 seconds ; from 1 minute and 47 sec to .. 30 seconds ūüôā
Probably this is a not-standard case, but with this example you can easily understand how even a single service can affect startup time.
In general,  making a check  to verify and identify which services taking time (and especially if are necessary for our needs)  it is something that ,as in this case, is really useful

*Despite my screenshots, you can execute systemd-analyze and systemd-analyze blame whitout root privileges.

Posted in Gnu-Linux | Leave a comment

Mamp: a local web server (and not only) with few clicks

I needed a local web server for make some .php experiments whitout transfer data to my website and make them in remote.

I did not have time for install and configure Apache and Php so i was looking for something already configured ready to go application working with few clicks: MAMP
Mac OS X :operating syste, Apache as web server , MySQL Рdatabase management system; while P is for  PHP, Python or Perl, (applications web developement languages)

MAMP is basically the equivalent of LAMP platform on Linux servers
Installation is very trivial, at the end will have:
, choose MAMP and click mamp
Once opened, it is enough to click on start icon  startmamp and everything will start.

From here prefmamps  it is possible to change Mamp settings :

Start/stop section:
You can choose if automatically start¬† server when you’ll start Mamp, if open web start page, if stop service when you’ll quit Mamp

Sezione Ports:

You can modify port number: default port are:Apache : 8888 – Nginx : 7888- MySQL : 8889, but nothing prevents for example to use classic port 80 for Apache (unless it is already used from other service in your machine.
Therefore your website will have this address: https://localhost:8888, clearly if you want use port 80, address will be https://localhost

Php Section
You can choose which Php version to be used
: http://localhost:8888/MAMP/index.php?language=English&page=phpinfo
phpMyAdmin : https://localhost:8888/phpMyAdmin/?lang=en

Web Server section:
You can choose between Apace and Nginx and you can modify root folder (where you have to put your website)

Sezione MySql:
Show Mysql current version

Posted in Tech news - tutorials | Leave a comment

FM16 coaching star calculator

Game time ūüôā

I often play  at FM16 and i lost so much time looking for the best technical staff (4/5 stars)
Recently I found somewhere nice formulas to calculate, using the parameters, the number of “stars” and therefore, quality of coaching.
Since I did not want to calculate by hand and even with the calculator i created an excel file to calculate all conveniently.
Then, in the game you can choose coach to check, and insert its parameters in the file; in this way you will know the number of stars for each category of training, of course you can enter all the parameters or only those that interest you.
You can download it – there are 2 version, italian and english
FM16 Coach calculator


Posted in Games | Leave a comment

How to change DNS on Mac OS X with a click

I needed to use particular dns and would change them quickly (with a click)
here is how i did it:
First, here command for make modification by terminal:
sudo networksetup -setdnsservers <networkservice> DNS1, DNS2, DNS3

How to obtain a list of your network services:
networksetup -listallnetworkservices
you will obtain outcome like below:
In¬†my case i have to change Wi-fi dns, so (as example i’ve used Google dns and ),¬†opening ¬†terminal and running the following command , DNS will be changed:
“sudo networksetup -setdnsservers Wi-Fi”

But how to run it with a click ? using Apple script : open it and insert the following commands :
scriptdnsFirst row executes the command described above , while second line brings up a message that tells us that the command was executed (clearly is optional) .
After that save as application and work is ended; a click will be enough to change your dns
applicationHere is the result after clicking (you will be prompted for the root password )
Looking Dns section we can see that they have been modified

Posted in Mac Os | Leave a comment