daily pastebin goal
60%
SHARE
TWEET

Reddit Open Source - Critical Ubuntu 14 upgrades

a guest Mar 24th, 2018 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Upgrading Python and Curl
  2.  
  3. Goal: Update server components so "Suggest Title" works on all sites and can handle modern ssl
  4.  
  5. ### 0. Update OS
  6.  
  7.     $ sudo apt-get update
  8.     $ sudo apt-get upgrade
  9.  
  10. ### 1. Upgrade curl
  11.  
  12.     replace version with latest stable from https://curl.haxx.se/download.html:
  13.     $ sudo apt-get build-dep curl
  14.     $ wget http://curl.haxx.se/download/curl-7.58.0.tar.bz2
  15.     $ tar -xvjf curl-7.58.0.tar.bz2
  16.     $ cd curl-7.58.0
  17.     $ ./configure --prefix=/usr
  18.     $ make
  19.     $ sudo make install
  20.     $ sudo ldconfig
  21.     $ curl --version
  22.  
  23.  
  24. ### 2. Upgrade Python from 2.7.6 to 2.7.14
  25.  
  26. Follow intructions here:
  27.  
  28.   * https://askubuntu.com/a/725173
  29.  
  30.  
  31. ### 3. Rebuild reddit from source
  32.  
  33.     $ sudo reddit-stop
  34.     $ sudo-reddit-flush
  35.     $ sudo apt-get install libxml2-dev libxslt1-dev python-dev
  36.     $ cd reddit/r2
  37.     $ python setup.py build
  38.     $ sudo python setup.py develop
  39.     $ make clean
  40.     $ make
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top