Browsing Posts in Solaris

I installed a Solaris 11 system yesterday but needed to give it a static IP rather than the dhcp that it picked up by default. Since netoworking has changed in S11 here’s a guide of what to do. Firstly you need to disable nwam. Check that there are no nwamd process left running. To set [...]

When creating python unit tests you need to create a method in a unittest class. The problem however is when you don’t know until the code is running what these tests will be. In my particular case I need to run a series of tests against a number of Solaris packages. But I won’t know [...]

The simple way to search for a string in a list is just to use ‘if string in list’. eg: But what if you need to search for just ‘cat’ or some other regular expression and return a list of the list items that match, or a list of selected parts of list items that [...]

‘boot -L’ will give you the list of boot environments to boot from. So then you can just use the -Z option to boot the corresponding root fs. Handy when you screw up boot environment activation On x86 you can just select the be you want in grub.

I’ve been using my tonidoplug as a home NAS server for almost a couple of years now. It’s performed as well as can be expected for 2 mirrored 1.5TB disks attached on a USB hub. One evening recently though I noticed that it was unreachable. A quick look at the box showed that all was [...]

This post originally appeared at http://blogs.sun.com/ford/entry/using_nat_in_the_global Since sun.com is going away soon (thank a bunch Oracle…) I’m going to mirror it here because I found it useful. Tuesday September 27, 2005 Using NAT in the Global Zone There have been requests to use IPFilter on Solaris 10 as a tool to allow use of networking [...]

I came across a strange little networking problem earlier today. The client in question had needed to be rebooted earlier in the day. The server had had no changes made to it. The problem only started occurring after the reboot of the client. We had an NFS directory on the server that the client’s subnet [...]

Another ‘damn! I keep forgetting how to do that!’ post… When you want to display something from one unix box to another there are two ways of doing it. 1. Use ssh. You need to use ‘ssh -X’ specifically which will allow X11 forwarding. ssh takes care of setting the DISPLAY variable for you. You [...]

Every now and again an install on a new machine fails for me and I have to google to remember how to change the label. So this time I’m writing it down! Docs.sun.com has some information on the differences between the two formats http://docs.sun.com/app/docs/doc/817-5093/disksconcepts-47761?l=en&a=view But suffice to say that you cant install Solaris on an [...]

At Home I run windows 7 on my laptop. And in order to run Opensolaris I use virtualbox. Virtualbox in case you dont know about it basically allows you to run an operating system within your main OS. You can also run windows on an opensolaris machine for example. I had fallen behind a bit [...]