Some SmartOS Tips

In getting up to speed with SmartOS, it's useful to remember that there are a number of built-in scripts to make life easier.

Useful man pages
 
 

See /opt/local/bin for a series of script tools. For me, setting hostname, timezone, vhost, drupal are pretty helpful.

[root@drupal-dev-smartos /opt/local/bin]# ls -l *sm-*
-rwxr-xr-x 1 root root  1286 Jul 10 21:23 sm-cpuinfo
-rwxr-xr-x 1 root root  2734 Jul 10 21:23 sm-create-db
-rwxr-xr-x 1 root root  3813 Jul 10 21:23 sm-create-dbuser
-rwxr-xr-x 1 root root 12876 Jul 10 21:23 sm-create-vhost
-rwxr-xr-x 1 root root  2892 Jul 10 21:23 sm-install-drupal
-rwxr-xr-x 1 root root  2999 Jul 10 21:23 sm-install-wordpress
-rwxr-xr-x 1 root root  2352 Jul 10 21:23 sm-list-dbs
-rwxr-xr-x 1 root root  2421 Jul 10 21:23 sm-list-dbusers
-rwxr-xr-x 1 root root   377 Jul 10 21:23 sm-list-timezones
-rwxr-xr-x 1 root root  5643 Jul 10 21:23 sm-lsof
-rwxr-xr-x 1 root root  2367 Jul 10 21:23 sm-meminfo
-rwxr-xr-x 1 root root  8879 Jul 10 21:23 sm-prepare-image
-rwxr-xr-x 1 root root   351 Jul 10 21:23 sm-reboot
-rwxr-xr-x 1 root root  2737 Jul 10 21:23 sm-remove-db
-rwxr-xr-x 1 root root  3212 Jul 10 21:23 sm-remove-dbuser
-rwxr-xr-x 1 root root   764 Jul 10 21:23 sm-set-hostname
-rwxr-xr-x 1 root root  1065 Jul 10 21:23 sm-set-timezone
-rwxr-xr-x 1 root root   362 Jul 10 21:23 sm-shutdown
-rwxr-xr-x 1 root root  2992 Jul 10 21:23 sm-summary
-rwxr-xr-x 1 root root  7720 Jul 10 21:23 sm-sync-to-master
-rwxr-xr-x 1 root root 20963 Jul 10 21:23 sm-tune-mysql
 

Add new comment

By submitting this form, you accept the Mollom privacy policy.