Install X-Windows without the pane
However hardline you are about the command line, there may just be a time when you need to use X-Windows. Alright, you might not actually need to, but it might just be good to know how to set it up anyway. The Windows menu utility WebSM comes in handy sometimes. I used it recently for the aixpert tool. It allowed me to have a granular view of security settings in a clickable menu. You might also need X-Windows to install other products, such as Apache or WebSphere.
The more you think about it, X-Windows can be helpful. Here's how I set it up so I could run WebSM:
- install an X server on your PC
- enable X11 forwarding in Putty
- enable X11 forwarding for the SSH daemon
- restart SSH daemon
- text X session using xclock
- run WebSM
1. Install an X server on your PC.
There are lots of X Servers you can use. I downloaded Xming because it was free and easy to configure.
2. Change Putty config
If you are using Putty, there is an option under Connection > SSH > X11 called Enable X11 forwarding. Of course this has to be checked before you start your Putty session.
3. Change ssh daemon configuration file
Once you've change Putty, you need to do a similar thing for the SSH daemon. On the AIX LPAR itself, I had openssh installed, but this still required a change to a parameter in a config file.
(Not to be confused with ssh_config in the same directory)
Uncomment the entry:
The “no” indicates the default setting. Change it to “yes”
Of course this assumes that you have the Common Desktop Environment (CDE) filesets installed on your AIX system. IBM has a technote on installing X-Windows if you need to.
Stop and start the ssh daemon (sshd), which can be done even while you're connected via ssh:
4. Stop and start ssh daemon
(wait a second)
stopsrc -s sshd # No space after the stop
startsrc -s sshd
6. Test your X session using xclock
If this works (and you don't get an error such as "Can't open DISPLAY"), you should see a tab flashing on your PC. When you open it, you will see a clock. If you're too young to know what a clock is, ask your grandparents.
7. Run WebSM from within your Putty session
The wsm command runs the admin menu WebSM:
You may need to enable and/or start wsmserver first.
Have a look around at WebSM. It gives you access to a few important admin menus and can be less daunting than SMIT or the command line, especially for newcomers to AIX.