发布新日志

  • SSH Installation in ESX Server

    2007-08-31 15:08:18

    1. First, install the following three packages first and the packages can be found under \\192.168.4.183\Platforms\ESX\ESX 2.5.0\32bit\Packages
        openssl-0.9.7l.tar.gz
        zlib-1.2.3.tar.gz
        openssh-3.9p1.tar.gz
    pam-0.75-66.i386.rpm
    pam-devel-0.75-66.i386.rpm

    Details of the installation....
    ==========================
    gunzip openssl-0.9.7l.tar.gz
    tar xf openssl*
    cd openssl*
    ./config
    make
    make install

    gunzip zlib*
    tar xf zlib*
    cd zlib*
    ./configure
    make
    make install

    gunzip openssh*
    tar xf openssh*
    cd openssh*
    ./configure --with-pam
    make
    make install

    Q: The error message "configure: error: PAM headers not found" when running the command "./configure --with-pam"
    A: You need to install the pam-devel packages [pam-0.75-66.i386.rpm and pam-devel-0.75-66.i386.rpm]
    ==========================

    2. Create the sshd and ssh link for the scrīpts
    # rm -rf /usr/sbin/sshd
    # rm -rf /usr/bin/ssh
    # ln -s /usr/local/sbin/sshd /usr/sbin/sshd
    # ln -s /usr/local/bin/ssh /usr/bin/ssh

    3. Create an sshd startup/shutdown scrīpt.

    Run the following command and input the contents as below. [Please make sure that the location of the command "kill" is correct. In some platforms, the command "kill" is under "/usr/bin".]
    # vi /etc/init.d/sshd

    ===================================
    #!/bin/sh

    case "$1" in
    'start')
       /usr/local/sbin/sshd
       ;;
    'stop')
       /bin/kill `/usr/bin/head -1 /var/run/sshd.pid`
       ;;
    'restart')
       /bin/kill -HUP `/usr/bin/head -1 /var/run/sshd.pid`
       /usr/local/sbin/sshd
       ;;
    *)
       echo "Usage: $0 { start | stop | restart }"
       exit 1
       ;;
    esac
    exit 0
    ========================================

    # chown root:root /etc/init.d/sshd
    # chmod 744 /etc/init.d/sshd
    # ln -s /etc/init.d/sshd /etc/rc2.d/S98sshd

    4. Start sshd.
    # /etc/init.d/sshd start

    5. Restart sshd
    # /etc/init.d/sshd restart
  • HPUX 11.11 RISC

    2007-07-27 14:38:09

    1. 进入single user mode
     a. reboot machine
     b. type anykey to terminate the booting program
     c. main shown, and type 'Y'
     d. Type 'hpux -is'
     e. Type 'fsck' to fix filesystem
     f. Type 'mount /usr, /var, /tmp, /etc....', mount 到有需要的文件系统
     h. 修改一些已损坏的文件, 包括更新root的password(要在normal mode)
  • 6.0.6 - Install and configure ubuntu desktop and server

    2007-07-18 15:30:37

    How to change root's password on Ubuntu.

    1. Login as the user created during the installation
    2. Run the command "sudo passwd root" to change the password of "root"
    3. Login as root with the changed password --- Work fine...:-)

    Xwindow installtion
    Ubuntu Server 6.0.6
    Ubuntu Server which does not have X Windows installed because it is the server version and not the desktop version. You may want to try installing XWindows.

    Xfce UI

    # sudo apt-get install xubuntu-desktop

    GNOME

    # sudo apt-get install ubuntu-desktop

    Reboot machine after finish the installation and X window will start successfully.

    Installing VMware Tools

    Go to the text mode by running the command "/etc/init.d/gdm stop"

    # apt-get install build-essential linux-headers-`uname -r`
    # mount /dev/cdrom /mnt
    # cd /tmp
    # tar xzf /mnt/VM*.tar.gz
    # cd /tmp/vmware-distrib
    # ./vmware-install.pl

    OpenSSH, Telnet, FTP, RSH, Rlogin Configuration

    OpenSSH
    Put the installation cd to the cd-rom and run the following commands
    apt-cdrom add
    apt-get install openssh-server

    Telnet and FTP
    # sudo apt-get install telnetd
    # sudo apt-get install ftpd

    If you failed to install Telnet and FTP using the way above.
    Get the packages below \\192.168.4.183\Platforms\LINUX\Ubuntu\6.0.6
    netkit-inetd_0.10-10.2ubuntu1_i386.deb
    telnetd_0.17-32_i386.deb
    ftpd_0.17-21_i386.deb

    and then run the following commands
    # sudo dpkg -i netkit-inetd_0.10-10.2ubuntu1_i386.deb
    # sudo dpkg -i telnetd_0.17-32_i386.deb
    # sudo dpkg -i ftpd_0.17-21_i386.deb
    # sudo /etc/init.d/inetd restart

数据统计

  • 访问量: 5383
  • 日志数: 12
  • 建立时间: 2007-07-12
  • 更新时间: 2007-08-31

RSS订阅

Open Toolbar