How to Upgrade OpenSSL on UBUNTU

How to Upgrade OpenSSL on Ubuntu

This quick tutorial outlines how to upgrade openssl to the latest version on Ubuntu Server 13.04.
A massive security hole has left over a third of the Internet's web servers vulnerable to the "Heartbleed Bug" which was announced to the public today. Use the following tool to check if your server is vulnerable:


You can run the following Bash script to upgrade your instance of OpenSSL to the latest version


--------------------------------------------------------------------------------------------------------------------------------
#!/bin/bash

###
# Need to upgrade an Ubuntu 13.04 server to use OpenSSL 1.0.1g?
# Read and execute this script :D
###
# License: WTFPL, GPLv3, MIT, whatever; just patch your shit
# http://askubuntu.com/questions/444702/how-to-patch-cve-2014-0160-in-openssl
###

if [[ $EUID -ne 0 ]]; then
 echo "This script must be run as root" 1>&2
 exit 1
fi
wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz
wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz.asc

gpg --recv-key 0xD3577507FA40E9E2
# Dr Stephen Henson
# IMPORTANT! Manually verify that this is the correct key ID:
# http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xD3577507FA40E9E2
# https://www.openssl.org/about/

gpg --verify openssl-1.0.1g.tar.gz.asc openssl-1.0.1g.tar.gz

if [[ $? -eq 0 ]]; then
 tar xzvf openssl-1.0.1g.tar.gz
 cd openssl-1.0.1g && sudo ./config && sudo make && sudo make install
 # To link the old openssl library to a new version
 sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
 echo
 echo "DONE!"
fi

# eof
 
------------------------------------------------------------------------------------------------
  

 

Wifi driver instalation ( Ubuntu )

Please try:

sudo apt-get install  linux-backports-modules-cw-3.8-precise-generic

I believe cw-3.8 includes the modalias for your device.
If your device is still not shown, please post:
 
modinfo ath9k | grep 0036
dmesg | grep ath

Please get a working ethernet connection, open a terminal and do:
 
sudo apt-get install linux-headers-generic build-essential

Download this file to your desktop: https://www.kernel.org/pub/linux/kernel/projects/backports/2013/11/13/backports-20131113.tar.bz2 Right-click it and

select 'Extract Here.' Back to the terminal:
 
cd Desktop/backports-20131113/
make defconfig-ath9k
make
sudo make install

Reboot and let us know if it is working. You will have compiled the driver for your currently running kernel only. When Update Manager installs a newer kernel version, also known as linux-image, after you reboot, re-compile:
 
cd Desktop/backports-20131113/
make clean
make defconfig-ath9k
make
sudo make install
sudo modprobe ath9k

The requested URL /phpmyadmin/ was not found on this server. (phpmyadmin )

Not Found

The requested URL /phpmyadmin/ was not found on this server.


Apache/2.2.17 (Ubuntu) Server at localhost Port 80

 Solution :


You will need to configure your apache2.conf to make phpMyAdmin works.
-----------------------------------------------------------------------------------------------------------------------------------------
sudo nano /etc/apache2/apache2.conf
-----------------------------------------------------------------------------------------------------------------------------------------
 
Then add the following line to the end of the file.----------------------------------------------------------------------------------------------------------------------------------------- 

Include /etc/phpmyadmin/apache.conf
-----------------------------------------------------------------------------------------------------------------------------------------
  
Restart the apache server : 
-----------------------------------------------------------------------------------------------------------------------------------------
sudo service apache2 restart 
-----------------------------------------------------------------------------------------------------------------------------------------
  

Start and Stop ssh-agent

Below is the bash script used to start and stop ss-agent #!/bin/bash ## in .bash_profile SSHAGENT=`which ssh-agent` SSHAGENTARGS="...