Install bash for HP UX

Source: Internet
Author: User
Tags hp ux

The default shell of hp ux is POSIX, which is not easy to use. Replace it with bash!

  1. Confirm hp ux version and architecture
    Run uname-a, the version number (such as B .11.31) and the architecture (such as ia64) are displayed, and then search for bash at the address below.
    Http://hpux.connect.org.uk/hppd/hpux/
    Download the bash version with the same version and architecture as your own. Note that you also need to download the dependent components gettext, libiconv, and termcap, which are available in bash Runtime dependencies;
  2. Decompress the four gz files, obtain the four depot files, upload them to the server (such as the/tmp/bash directory), and install these components. It is best to follow the order below:
    # Swinstall-s/tmp/bash/gettext-0.18.1.1-ia64-11.31.depot
    # Swinstall-s/tmp/bash/libiconv-1.13.1-ia64-11.31.depot
    # Swinstall-s/tmp/bash/termcap-1.3.1-ia64-11.31.depot
    # Swinstall-s/tmp/bash/bash-4.1.007-ia64.11.31.depot
    Note that the full path of the depot file must be entered after the swinstall-s command!
    Swinstall may not be used by some children's shoes. A guide will be displayed after the command is knocked in. Press enter to enter the main window, press a space at the position of the package to be loaded, press m after the reverse display, click the Tab key to move the cursor to the menu and choose Action> Install> OK> Done.
  3. Change the default shell to bash. Modify the/etc/shells file as follows:
    /Sbin/sh
    /Usr/bin/sh
    /Usr/bin/rsh
    /Usr/bin/ksh
    /Usr/bin/rksh
    /Usr/bin/csh
    /Usr/bin/keysh
    /Usr/local/bin/bash
    Then execute chsh root/usr/local/bin/bash, or replace root with the user you want to change bash. If the/etc/shells file is not modified, an invalid shell error is returned.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.