Update a VM’s alias: Set a VM to not autoboot:
-
« Home
-
RSS Feeds
Update a VM’s alias: Set a VM to not autoboot:
Assuming a fresh install: References: How to create a zone ( OS virtualized machine ) in SmartOS
Adapted from the lpadmin man page, for an HP JetDirect printer: > pfexec lpadmin -p lp01 -v /dev/null -m netstandard -o dest=lp01.example.com:9100 -o protocol=tcp -T PS -I postscript > pfexec lpset -a banner=never lp01 > pfexec lpadmin -d lp01 > pfexec enable lp01 > pfexec accept lp01
YMMV; adjust as you see fit: svcadm disable svc:/network/nfs/mapid:default svcadm disable svc:/network/nfs/cbd:default svcadm disable svc:/network/nfs/status:default svcadm disable svc:/network/nfs/nlockmgr:default svcadm disable svc:/network/rpc/rstat:default svcadm disable svc:/application/x11/xfs:default svcadm disable svc:/network/finger:default svcadm disable svc:/network/ftp:default svcadm disable svc:/network/login:rlogin svcadm disable svc:/network/nfs/rquota:default svcadm disable svc:/network/nfs/client:default svcadm disable svc:/network/rpc/rusers:default svcadm disable svc:/network/rpc/cde-ttdbserver:tcp svcadm disable svc:/network/shell:default svcadm disable svc:/network/telnet:default svcadm disable svc:/network/cde-spc:default svcadm [...]
To use pfexec similarly to sudo, use “usermod” to give the account the “Primary Administrator” profile: # usermod -P’Primary Administrator’ aleonard “aleonard” will now be able to preface commands with “pfexec” to run them as root, similar to sudo when configured not to prompt for a password. References: Less known Solaris features: pfexec
Configure ‘/usr/lib/mail/cf/sendmail.mc’ to meet your needs; for example, to use the access_db and mailertable features: divert(0)dnl VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04′) OSTYPE(`solaris8′)dnl DOMAIN(`generic’)dnl FEATURE(access_db, `hash -o -T /etc/mail/access’) FEATURE(mailertable, `hash -o /etc/mail/mailertable’) MAILER(`local’)dnl MAILER(`smtp’)dnl The new ‘sendmail.cf’ can be built in ‘/usr/lib/mail/cf/sendmail.mc’ by running ‘make’ as root. Copy the new ‘sendmail.cf’ file to ‘/etc/mail’ and restart [...]
Use “devfsadm”; from the man page: devfsadm(1M) maintains the /dev namespace. It replaces the previous suite of devfs administration tools including drvconfig(1M), disks(1M), tapes(1M), ports(1M), audlinks(1M), and devlinks(1M). References: Adding a Hard Drive to Solaris 10
Edit the following files as appropriate: /etc/hosts /etc/nodename /etc/hostname.<interface> /etc/defaultrouter Reboot to apply the changes, or run: # svcadm restart network/physical
Here for my reference; adapt for your convenience: or possibly:
The crle command on Solaris is used to configure the runtime linking environment (get it?). If you are seeing errors similar to the following, you may need to look at and adjust your linking environment with crle: ld.so.1: conftest: fatal: libreadline.so.5: open failed: No such file or directory Using crle is straightforward; to view the [...]