Secure Webmail on VestaCP


Change lines:

Alias /webmail /usr/share/roundcubemail

Tested on centos-6-x86-minimal


Secure PhpMyAdmin on VestaCP


Change lines:

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

Tested on centos-6-x86-minimal

Windows & Linux & Mac Uptime

Learn run time before last boot.


systeminfo | find "System Boot Time:"


Task Manager -> Performance

Linux & Mac:


Note: System boot time is wrong on Windows 10.


  1. Press Windows key + r
  2. Type services.msc
  3. Click Windows Time
  4. Alternate click and then click Properties
  5. Change Startup type to Automatic
  6. Click Start if the service isn’t started

Raspberry Pi Auto Start Boot Time

sudo nano /etc/rc.local

Add commands below the comment, but leave the line exit 0

If your command runs continuously (perhaps runs an infinite loop) or is likely not to exit, you must be sure to fork the process by adding an ampersand to the end of the command, like so:

python /home/pi/ &


sh /home/pi/ &

NOTE: Doesn’t work on cold restart (power down and up)!

Alternative Method:

sudo nano /etc/init.d/myscript
sudo chmod 755 /etc/init.d/myscript

Note: init.d Scripting is complex!

sudo update-rc.d myscript defaults

Cronjob for Linux and Mac

# Works for mac, linux (or any OS with a cron scheduler)
# To install into cron, on the console enter: crontab -e
# Then paste in the 2 lines at the bottom of this page, then save
# You can check the "/tmp/mycron.log" file on your system to verify its happening each 5 minutes

2,7,12,17,22,27,32,37,42,47,52,57 * * * * sleep 12 ; curl -s >> /tmp/mycron.log 2>/dev/null

Daily reboot at 04:00

0 4 * * * /sbin/shutdown -r now

Tested on Raspberry Pi