Showing posts with label opensolaris. Show all posts
Showing posts with label opensolaris. Show all posts

Saturday, 12 January 2008

md5 checksums in solaris

md5sum = digest -v -a md5

example:
# digest -v -a md5 /export/home/philip/Desktop/sol-nv-b70b-x86-dvd-iso-b
md5 (/export/home/philip/Desktop/sol-nv-b70b-x86-dvd-iso-b) = 5218cdcd46c023a0f074c6696403a722
#


alias alleviates the aggravation of transcendence:

# alias md5sum='digest -v -a md5'
# md5sum /export/home/philip/Desktop/sol-nv-b70b-x86-dvd-iso-b
md5 (/export/home/philip/Desktop/sol-nv-b70b-x86-dvd-iso-b) = 5218cdcd46c023a0f074c6696403a722
#

Tuesday, 1 January 2008

grep trick

Small hint shown to me many years ago when enabling things in rc.conf.
If I want to startup ipfilter for example (trimmed to avoid wrapping).

bash-2.05b# cat /etc/defaults/rc.conf | grep ^ipfilter

Returns the following,
ipfilter_enable="NO" # Set to YES to enable ipfilter
ipfilter_program="/sbin/ipf" # where the ipfilter program lives
ipfilter_rules="/etc/ipf.rules" # rules definition file for ipfilter,
ipfilter_flags="" # additional flags for ipfilter

If it looks like what you want then write it into your running rc.conf,

cat /etc/defaults/rc.conf | grep ^ipfilter >> /etc/rc.conf

Then you can edit to enable, add flags, etc. Cures the typos.

DAve
http://lists.freebsd.org/pipermail/freebsd-questions/2007-December/165704.html

Thursday, 6 December 2007

opensolaris tftp server

According to the in.tftpd manpage, in.tftpd is being managed by smf(5), which is well, true. The problem is that it’s not there if you issue svcs|grep tftpd.
I don’t know the reason why it’s not configured (but disabled) but, because of compatibility with older versions of “add_install_client” and “setup_install_server”, tftp needs to be listed in /etc/inet/inetd.conf; so that’s where a fresh install should put the command.

Add this to /etc/inetd.conf to configure tftpd:
TFTPD - tftp server
tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot

Make your changes active:
root@opensolaris:/# inetconv
root@opensolaris:/# svcs | grep tftp
online 16:15:58 svc:/network/tftp/udp6:default
The tftp service is now enabled and available.
You can enable using inetadm -e svc:/network/tftp/udp6 and disable with inetadm -d svc:/network/tftp/udp6