Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Last active December 17, 2015 18:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinsmidsrod/5652708 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/5652708 to your computer and use it in GitHub Desktop.
Migrating from Nexenta NCP to OmniOS - post install / zpool import modifications
SMB passwords working
- add in /etc/pam.conf: other password required pam_smb_passwd.so.1 nowarn
- http://web.archive.org/web/20110907145354/http://wiki.genunix.org/wiki/index.php/Getting_Started_With_the_Solaris_CIFS_Service
- passwd username (for all SMB users)
- smbadm join -w MYWORKGROUP
- smbadm enable-user myadmin
- smbadm add-member -m myadmin administrator
syslog to central server
- add this line to /etc/syslog.conf (use TAB as delimiter) and svcadm restart system-log:
- *.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info;*.debug @10.1.1.2
- *.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info;*.debug /var/log/messages
setup ntp
- use server + restrict lines in /etc/inet/ntp.conf from ubuntu ntp.conf and then svcadm enable ntp
enable basic email smarthost
- pkg install sendmail
- setup root alias in /etc/mail/aliases
- run newaliases
- add define(`SMART_HOST', `[mail.smidsrod.no]')dnl at end of /etc/mail/cf/cf/submit.mc
- run make,
- copy /etc/mail/cf/cf/submit.cf to /etc/mail/submit.cf
- svcadm restart sendmail-client
fix editor
- install joe from source (involves installing build environment etc., explained on wiki)
- add export EDITOR=joe in /root/.profile
- logout/login again
- crontab -e no longer uses vi
weekly scrub in cron
- crontab -e
- add zpool scrub rpool entry
- add zpool scrub raid entry
install json-logger
- pkg install perl/getopt-long-descriptive perl/json perl/json-xs perl/datetime perl/file-slurp from perl.omniti.com repo
- setup /etc/json-logger/json-logger.json and copy json-logger to /usr/bin
- add SUPATH=/opt/OMNIperl/bin:/usr/sbin:/usr/bin to /etc/default/cron and in ~/.profile
ensure json-logger can be used in crontab
- PATH + SUPATH in /etc/default/cron must include /opt/OMNIperl/bin
- svcadm restart cron
- SHELL=/bin/bash in root crontab
- Add to end of each line: 2> >(json-logger -ep mycronjob) | json-logger -p mycronjob
linux host backups
- pkg install network/rsync
- add backup_linux_servers.sh to root crontab
purge old macrium backups
- rewritten remove_old_macrium_backups.sh
- added to root crontab
fix home/end readline issue
- copy /etc/inputrc from an ubuntu 12.04 system
- logout/login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment