Thursday, February 24, 2011

Configuring ALOM from commandline

Last time i was in the challenge to configure the ALOM of a Sunfire V240 from commandline. First get some information:

# /usr/platform/`uname -i`/sbin/scadm show
if_network="true"
...
netsc_dhcp="false"
netsc_ipaddr="10.10.10.11"
netsc_ipnetmask="255.255.0.0"
netsc_ipgateway="10.10.10.1"
...

To change the network settings do:

# /usr/platform/`uname -i`/sbin/scadm set netsc_ipaddr 192.168.1.90
# /usr/platform/`uname -i`/sbin/scadm set netsc_ipnetmask 255.255.255.0
# /usr/platform/`uname -i`/sbin/scadm set netsc_ipgateway 192.168.1.73
# /usr/platform/`uname -i`/sbin/scadm set if_network true

To change a password for a user settings apply the following:

# /usr/platform/`uname -i`/sbin/scadm usershow

 username            permissions        password
 --------            -----------        --------
 admin               cuar               Assigned

# /usr/platform/`uname -i`/sbin/scadm userpassword admin
Password:
Re-enter Password:

Finally reset the ALOM:

# /usr/platform/`uname -i`/sbin/scadm resetrsc

After that you should be able to login with the user admin via telnet to your ALOM. For more settings see:

# /usr/platform/`uname -i`/sbin/scadm help

When you login to your ALOM you can connect to the console:

Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.

Sun(tm) Advanced Lights Out Manager 1.6.8 (sunfire03)

Please login: admin
Please Enter password: ********

sc> console -f
Warning: User <auto> currently has write permission to this console and forcibly removing them will terminate any current write actions and all work will be lost.  Would you like to continue? [y/n]y
Enter #. to return to ALOM.

There are a lot of other functions, the best place is to look at the documentation:

http://download.oracle.com/docs/cd/E19076-01/t1k.srvr/819-7991-10/command_shell.html Print Friendly and PDF

Thursday, February 17, 2011

xscreensaver, pam & fluxbox

This is an update to the article xdm, pam & fluxbox. In this article I explained how to set xdm for use with pam and howto start fluxbox on Slackware. Now I want you to show how to add pam support for xscreensaver on Slackware. First grab a copy of the source for xscreensaver from the DVD (or CD):

# mount /dev/sr0 /mnt/dvd
# cp -r /mnt/dvd/source/xap/xscreensaver/ /usr/src/

Then change into the directory you have copied and edit the build file. Add the --with-pam line to the configure command (insert after line 90):


# vi xscreensaver.SlackBuild
...
  --with-gl \
  --with-pam \
  --build=$ARCH-slackware-linux
...

Start the build script:

# sh xscreensaver.SlackBuild
...

If everything goes right you have a new xscreensaver package under /tmp. Uninstall first the old xscreensaver package and install the new one:

# removepkg xscreensaver && installpkg  /tmp/xscreensaver-5.11-i486-1.txz

To  activate xscreensaver during the startup of fluxbox add the xscreensaver command to your personal .xsession file:

$ vi ~/.xsession
setxkbmap -model pc104 -layout de
exec /usr/bin/xscreensaver -no-splash &
exec startfluxbox Print Friendly and PDF

Thursday, February 10, 2011

HP9000: Booting from CDROM

I have here a small HP 9000 machine which I need to reinstall. The installed Operating System is a HP-UX 11.31 which is messed up. I have no access to the MP via LAN, so I used the serial console. I connected the MP to my Solaris machine and started tip:

# tip hardwire

After that I powered on the machine. Then I could connect with the default username and password Admin/Admin (lucky that no other password was set). When this message appear I pressed any key to interrupt booting from harddisk:

Processor is booting from the first available device.

To discontinue, press any key within 10 seconds.

Boot terminated.

Then the Main Menu appears. To search for all available boot devices type:

Main Menu: Enter command or menu > search

Searching for potential boot device(s)
This may take several minutes.

To discontinue search, press any key (termination may not be immediate).


                                                                           IODC
   Path#  Device Path (dec)  Device Path (mnem)  Device Type               Rev
   -----  -----------------  ------------------  -----------               ----
   P0     0/0/2/0.0          ide.0               Random access media       1
   P1     0/1/1/0.0          intscsia.0          Random access media       1

Then boot from CDROM (press 'n' when prompting for IPL):

Main Menu: Enter command or menu > boot ide.0
Interact with IPL (Y, N, or Cancel)?> n

Booting...
Boot IO Dependent Code (IODC) revision 1
...

Here you go. Some more information about booting a HP9000 machine can be found here:
http://docs.hp.com/en/B2355-90173/ch02s01.html
http://www.unixhub.com/docs/hpux/hpux_boot.html Print Friendly and PDF

Wednesday, February 9, 2011

X on a Toshiba Satellite Pro 4600

I have a old Toshiba Satellite Pro with the following graphics adapter:

# lspci
...
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade/XP (rev 63)
...

As Operating System I use Slackware 13.1. The display I use for this notebook is a LG Flatron L1919S. The Problem was when I start X I only got an resolution of 800x600. After searching I found this simple xorg.conf, added the values for HorizSync and VertRefresh for my display and now everything is fine:

# vi /etc/X11/xorg.conf
Section "Device"
        Identifier      "Trident Microsystems CyberBlade/XP"
        Driver          "trident"
        Busid           "PCI:1:0:0"
EndSection

Section "Monitor"
        Identifier      "Monitor0"
        Option          "DPMS"
        HorizSync       30-83
        VertRefresh     56-75
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Trident Microsystems CyberBlade/XP"
        Monitor         "Monitor0"
        DefaultDepth    24
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        screen          "Default Screen"
EndSection
Print Friendly and PDF

Sunday, February 6, 2011

xdm, pam & fluxbox

I have configured xdm on my Slackware machine to use pam and authentication against LDAP. I won't show you here howto setup LDAP or pam on Slackware, this is more a quickie for xdm - assuming everything else is already setup!

The first thing that need to be done is to grab a copy from the source Patrick uses for xdm. You can find it on the CD/DVD under the source directory. Then extract the software and recompile xdm with the following commands:

# cp /mnt/dvd/source/x/x11/src/app/xdm-1.1.10.tar.xz /root
# cd /root
# tar xf xdm-1.1.10.tar.xz
# cd xdm-1.1.10
                                                        
Before you continue make sure which architecture you're using. For 32Bit use the following command:

# ./configure --with-pam --prefix=/usr

For 64Bit use this configure command:

# ./configure --with-pam --prefix=/usr --libdir=/usr/lib64

Finally compile and install:                                                                             

# make && make install  

After that your xdm should be linked against libpam:

# ldd /usr/bin/xdm
...
libpam.so.0 => /lib/libpam.so.0 (0xb7525000)
...

Then copy the pam rules for xdm (or create a new set):

# cd /etc/pam.d
# cp login xdm

If you now change the Runlevel from e.g. 3 to 4, then the xdm should appear. When you login as a user then the default window-manager twm will appear. To change the window-manager from twm to fluxbox create a file called .xsession (for the specific user):

$ vi ~/.xsession
setxkbmap -model pc104 -layout de
exec startfluxbox

The first line will change the keyboard layout for the specific user and the second line starts the desired window-manager. Print Friendly and PDF