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, system took 1 minute and 42 second for the boot.
OK , i don’t have an SSD and there are a lot of services like tor, virtualbox , Plasma etc.
Anyway it deserve 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 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 17 seconds ūüôā
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 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
where:
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.
mampconsole_mini

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
startstopmamp

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.
portsettingsmamp
Therefore your website will have this address: http://localhost:8888, clearly if you want use port 80, address will be http://localhost

Php Section
You can choose which Php version to be used
phpmamp
Urls
phpInfo
: http://localhost:8888/MAMP/index.php?language=English&page=phpinfo
phpMyAdmin : http://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)
webservermamp

Sezione MySql:
Show Mysql current version
mysqlmamps

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.
fm16eng
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:
networklist
In¬†my case i have to change Wi-fi dns, so (as example i’ve used Google dns 8.8.8.8 and 8.8.8.4 ),¬†opening ¬†terminal and running the following command , DNS will be changed:
“sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.8.4”

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 )
dnsupdate
Looking Dns section we can see that they have been modified
dnsresults

Posted in Mac Os | Leave a comment