Saturday Nov 26, 2011

Install tmux on Mac OS X

This is a short run down on how to get tmux running on your Mac OS X system. The same methodology applies when compiling this on Solaris.

What is tmux?

According to the developer's page, "tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached".

Why not just use screen?

For me, the primary reason I switched to tmux from screen is the much easier configuration syntax that tmux offers. If you've ever struggled with formatting screen's caption or hardstatus line, then you will appreciate the ease with which you can achieve the same results in tmux.

Preparing your environment

You will need a C compiler installed. I believe that OS X ships by default with GNU make, but if not, then you will need to obtain it or use Xcode.

Download the sources

While I'm putting all this together, I like to keep everything neatly tucked away in a build directory.
mkdir ~/build
cd ~/build
curl -OL http://downloads.sourceforge.net/tmux/tmux-1.5.tar.gz
curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz

Unpack the sources

tar xzf tmux-1.5.tar.gz
tar xzf libevent-2.0.16-stable.tar.gz

Compiling libevent

cd libevent-2.0.16-stable
./configure --prefix=/opt
make
sudo make install

Compiling tmux

cd ../tmux-1.5
LDFLAGS="-L/opt/lib" CPPFLAGS="-I/opt/include" LIBS="-lresolv" ./configure --prefix=/opt
make
sudo make install
That's all there is to it!

Sunday Sep 04, 2011

Creating an IPMP Group on Solaris 11

Solaris 11 brings some fantastic new networking features in the form of Project Crossbow. These features include virtual network interface cards (vnics) and virtual switching (etherstubs), flows for controlling bandwidth and network utilisation and more detailed analytics and observability functions just to name a few. Along with these advanced new features, many of our old favourites are enhanced to make life easier for the already busy systems administrator.

Gone are the days of messing with /etc/hostname.* files to create your IP multipath groups. Solaris 11 gives you a new command – ipadm – to help you cut through all the tedium of setting up IPMP:

ipadm create-ipmp ipmp0
ipadm add-ipmp -i e1000g1 -i e1000g2 ipmp0

It really is as simple as that.

Here's my catchphrase, and you heard it first: The Power of Crossbow Compels You (to upgrade to Solaris 11)!

Thursday Aug 25, 2011

Jumpstart an x86 Server Without DHCP

If you're stuck on a network that has no DHCP but you do have a Jumpstart server, you can still successfully install your OS.

The easiest way is to boot your server off a Solaris CD or DVD and make the necessary changes to GRUB on the fly. Choose any of the GRUB boot options and edit it to look like the following:

min_mem64 1024
ifconfig --address=client_address --gateway=client_gateway --mask=client_netmask --server=boot_server_address
root (nd)
kernel$ /I86PC.Solaris_10-1/multiboot kernel/unix -B install_media=boot_server_address:/export/install/media/sol10u9_x86,install_boot=boot_server_address:/export/install/media/sol10u9_x86/boot - nowin install
module$ /I86PC.Solaris_10-1/x86.miniroot

Make sure you change client_address, client_gateway, client_netmask and boot_server_address to suit your setup.

About

Ben is an Enterprise Architect in the Oracle Systems sales consulting business in Melbourne, Australia. This blog focuses on Solaris and Oracle Sun servers, storage and networking.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today