条目数量 : 404


Linux/Upgrade

来自笔记本
跳转至: 导航搜索

openssl

  1. https://www.openssl.org/source/ 下载
  2. ./config shared zlib
  3. make && make install
  4. mv /usr/bin/openssl /usr/bin/openssl.bak
  5. mv /usr/include/openssl /usr/include/openssl.bak
  6. ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
  7. ln -s /usr/local/ssl/include/openssl /usr/include/openssl
  8. echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
  9. ldconfig -v
  10. openssl version -a

Bash

  1. bash --version
  2. wget http://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz
  3. tar zxf bash-4.4.tar.gz ; cd bash-4.4
  4. wget -r -nd -np http://ftp.gnu.org/gnu/bash/bash-4.4-patches/
  5. for BP in `ls bash44-*|grep -v sig`; do patch -p0 < $BP; done
  6. ./configure
  7. make && make install
  8. bash --version

内核

Linode 请修改为 GRUB 2

  1. sudo dpkg --get-selections |grep linux
    1. dpkg -l|grep linux-image
  2. sudo apt-get update
  3. sudo apt-get dist-upgrade
    1. http://kernel.ubuntu.com/~kernel-ppa/mainline/
    2. dpkg -i *.deb
    3. apt-get purge 旧内核 // 用这个,第二个暂时没用
    4. 或sudo apt-get remove linux-image-[Tab补全]
  4. sudo apt-get upgrade // 好像没用到
  5. sudo apt-get autoremove
  6. update-grub
  7. sudo reboot
  8. uname -r