Install gnome-shell on Ubuntu 11.10 (Oneiric Ocelot)

Try and install gnome if you don’t want to switch from it because of Unity.

Here are the steps:

1. Open shell and run

sudo apt-get install gnome-shell

2. Once the installation is complete, reboot.
3. Switch to the desired shell from the login window.
Note: If you encounter errors or failures during previous step for any dependent packages then you may want to update the packages by running

sudo apt-get -f install

 

Copy Printer configuration from on server to another

On server “A”

1.Open “sam ->Printers and Plotters->LP Spooler-> Save/Restore Spooler Configuration”
2.Go to “Actions”
3.Click on ‘Save Spooler Configuration’
4.Exit out of SAM
5.tar cvf /tmp/sam.tar /var/sam/lp
6.Transfer the sam.tar file to system B:/tmp.

On server “B”

1.tar xvf /tmp/sam.tar
2.You may need to change the permissions and ownership of these files. To do that run:
chmod -R 755 /var/sam/lp/* ; chown -R lp:bin /var/sam/lp/*
3.Open “sam ->Printers and Plotters->LP Spooler-> Save/Restore Spooler Configuration”
4.Go to “Actions”
5.Click on ‘Restore Spooler Configuration’
6.Don’t forget to restart the scheduler
7.Exit out of SAM

Recover HP-UX root password

If you lost the root password on system running HP-UX, perform the following steps:

Ask all other users to log off the workstation.
Type the command sync four times to clear the buffer cache.
If you have installed sudo, or if you have enabled a user other than root to reboot the machine, reboot your workstation.
If you can not reboot the machine, press the reset button to force a reboot. Don’t press the reset button unless you can’t get the machine to reboot any other way.
During the reboot, press the ESC key to interrupt the reboot.
This will bring you to the BOOT_ADMIN prompt. From here, boot to the ISL with the command boot scsi.X.0 isl where scsi.X.0 is the SCSI address of your internal disk drive. (To find that address, use the path command at the BOOT_ADMIN prompt.)
Now you are at the ISL prompt. Boot up into single user mode with the command hpux -is (or if you are still running 9.X use the command hpux -is boot disk(scsi.X;0)/hp-ux, where again scsi.X.0 is the SCSI address of your internal disk drive.)
After the machine has come up in single user mode, you can try to set the root password by running the passwd command. If the program will run, you can enter the new password now. Reboot again (command reboot) and you are done.
If the passwd program will not run in the single user mode, manually edit the /etc/passwd file (be careful!) and take out the root password (second field), leaving the 2 colons side by side.
Now, quickly reboot the machine (reboot) and log in as root. No password is required. Immediately run the passwd command and set a password for root.
It’s important to minimize the time between removing the root password from the /etc/passwd file and resetting the password with the passwd command.
During this time, your system is wide open.

Increase swap space in HP-UX

  1. By using SAM
    SAM > Disk and File Systems > Swap > Actions
    You can add the Device Swap or File System Swap.
  2. By Command Line
    Create the logical volume for your secondary swap:
    # lvcreate -L 128 /dev/vg14

    NOTE: “-L 128” is the size of desired swap

    Verify the logical volume:
    # lvdisplay /dev/vg14/lvol15

    Use SAM to declare your new secondary swap or use the command line:
    # swapon /dev/vg14/lvol15

    Verify it has been added in “/etc/fstab” when using SAM, or add it manuallywhen using the command line.

    Example:
    /dev/vg14/lvol15 . swap defaults 0 0

ioscan – HP-UX Command

To view a list of peripherals on the server, issue the command…

  1. For HDD
    ioscan -nfC disk
  2. For tape drive
    ioscan -nfC tape
  3. For LAN – Ethernet Card
    ioscan -nfC LAN
  4. For FC – Fiber Channel
    ioscan -nfC FC

The next time you want to view it again, you can use the -k option for cache so that you don’t have to wait for it to scan the entire system again.

For example…
ioscan -knfC disk

How to increase the logical volume size?

Before increasin the size of the logical volume, always ensure that you do a make_tape_recovery and fbackup on the data stored on that particular logical volume that you wish to increase.

Always check your current and free lvol size before increasing so you can keep track and notice the differents.

We take a scenario where I would want to increase my /dev/vg00/lvol10 to 1GB

  1. umount /dev/vg00/lvol10
  2. lvextend -L 1024 /dev/vg00/lvol10
  3. extendfs -F vxfs /dev/vg00/lvol10
  4. mount /dev/vg00/lvol10 /myfolder
  5. bdf

bdf command to check your increased lvol size.