x64Architecture

How to Remove Malicous Software From Ubuntu 12.10

This is pretty late but for reference I am posting how to remove Amazon ads from Ubuntu 12.10(Quantal Quetzal).

Run the following command in the terminal:

$ sudo apt-get remove unity-lens-shopping
$ sudo apt-get remove unity-scope-video-remote
$ sudo apt-get remove unity-scope-musicstores

How to Make Nvidia Drivers Work in Ubuntu 12.10

The problem is the Nvidia drivers are missing a dependency(linux-headers) Run the following commands in the terminal (in case you get a windowless screen press Ctrl+Alt+T to open the terminal.):

$ sudo apt-get install linux-headers-3.5.0-17-generic
$ sudo apt-get remove nvidia-current
$ sudo apt-get install nvidia-current

Wnmp 2.0 Released

Windows, Nginx, MySQL & PHP(Wnmp)

Changelog:

Wnmp 2.0

Enhancements:

- Added control panel, wnmp.exe 1.0.0
- Cleaned up nginx.conf
- You can now place the Wnmp folder anywhere
- Changed from MySQL Server to MariaDB

Bug Fixes:
- phpMyAdmin was not working due to apc 3.1.14

Updates:
- Nginx now in version 1.2.7

Speeding Up Your Site With SPDY and Nginx

By reading this you acknowledge that you: * are currently using Nginx as your web sever * have SSL enabled on your site

The first step is to compile Nginx with SPDY support, at the time of writing this can be done with the –with-http_spdy_module argument. But if your using Ubuntu (which I recommend) and are on the release 10.04 or higher, you can install it easily with my installable packages for Nginx.

After adding my PPA, you can run the following to install Nginx:

$ sudo apt-get update
$ sudo apt-get -y install nginx nginx-common nginx-full

Those commands will install Nginx with the SPDY patch applied, and with many other modules.

To enable SPDY in a nginx configuration, just add the “spdy” and the “ssl” parameters to the listen directive:

server {
    listen 443 ssl spdy;
    server_name example.com;
...
}

Compile Nginx With SPDY

Prerequisites:

  • Nginx >= 1.3.15

Compiling Nginx:

$ wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz
$ tar xzvf openssl-1.0.1e.tar.gz && rm -rf openssl-1.0.1e.tar.gz
$ wget get ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre//pcre-8.32.tar.gz
$ tar xzvf pcre-8.32.tar.gz && rm -rf pcre-8.32.tar.gz
$ wget http://nginx.org/download/nginx-1.3.15.tar.gz
$ tar xzvf nginx-1.3.15.tar.gz && rm -rf nginx-1.3.15.tar.gz && cd nginx-1.3.15
$ ./configure --with-openssl=../openssl-1.0.1e --with-http_ssl_module --with-http_spdy_module
--with-pcre=../pcre-8.32
$ make && make install

To enable SPDY in a nginx configuration, just add the “spdy” and the “ssl” parameters to the listen directive:

server {
    listen 443 ssl spdy;
    server_name example.com;
...
}

WNMP 1.3 Released

Changelog: Versions of the software(Updated: January 20th 2013):

  • Nginx 1.2.6
  • MySQL Server 5.5.29
  • PHP 5.4.11 (Non Thread Safe + FastCGI)
  • phpMyAdmin 3.5.5

Optimized WordPress Setup Guide (LEMP)

Updated: August 24th 2014

First off I am going tell you the specs of the VPS I am going to be doing this on: RAM: 1024MB OS: Debian Wheezy

MariaDB Install and Configuration:

First we are going to grab the signing key Then we are going to add the repo by issuing the following commands:

$ sudo apt-get install python-software-properties
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
$ sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/debian wheezy main'

Then to update the apt-get cache run the following command:

$ sudo apt-get update

And then run this command to install MariaDB:

$ sudo apt-get install mariadb-server

Now enter MariaDB by typing:

$ mysql -u root -p

When prompted enter your password for MariaDB and then issue the following commands(in order):

$ CREATE DATABASE wordpress;
$ GRANT ALL PRIVILEGES ON wordpress.* TO "wp_user"@"localhost" IDENTIFIED BY "INSERT_A_PASSWORD";
$ FLUSH PRIVILEGES;
$ EXIT

Now we are finished with the MySQL configuration and are going on to the PHP Install and Configuration.

PHP Install and Configuration

To install PHP and the PHP-FPM you have to issue the following command in order:

$ sudo apt-get install php5-fpm php-pear php5-common php5-mysql php-apcu php5-gd

Edit /etc/php5/fpm/pool.d/www.conf

Replace:

listen =

with:

listen = /dev/shm/php-fpm-www.sock

below that insert the following three lines:

listen.owner = nginx
listen.group = nginx
listen.mode = 0660

then replace:

user = www-data
group = www-data

with:

user = nginx
group = nginx

And then save the file, don’t worry about restarting PHP-FPM until we install nginx.

Nginx Install And Configuration

First we have to fetch the nginx signature.

$ wget -qO - http://nginx.org/keys/nginx_signing.key | sudo apt-key add -

Now we are going to add the APT source:

$ sudo add-apt-repository 'deb http://nginx.org/packages/debian/ wheezy nginx'

Now to Download and install nginx issue the following commands:

$ apt-get update
$ apt-get install nginx

Once the install completes we have to configure nginx for wordpress:

Next, create a new file, /etc/nginx/conf.d/etc with the contents of the etc file from Github

Then, replace /etc/nginx/conf.d/default.conf with the contents of the default.conf file from Github changing all entries for localhost to your own domain name.

to make a directory, /var/www/ and set the ownership run the following commands:

$ sudo mkdir -p /var/www/
$ sudo /usr/sbin/groupadd nginx
$ sudo /usr/sbin/useradd -g nginx -s /bin/false nginx
$ sudo chown nginx:nginx /var/www
$ sudo /usr/sbin/usermod -G nginx www-data
$ sudo chown nginx:nginx /var/www/
$ sudo chmod 775 /var/www

Now, were ready to install WordPress!

This is simple, run:

$ cd /tmp
$ wget http://wordpress.org/latest.tar.gz
$ tar zxvf latest.tar.gz
$ cd wordpress
$ sudo mv * /var/www/
$ sudo chown -R nginx:nginx /var/www

Now go in your web browser enter your host-name and set-up WordPress

Now once you’ve setup WordPress edit the permalink settings and press custom structure and put this or what ever structure you like:

/%postname%/ And now change all of your W3 Total Cache settings to your liking

And now save all the settings and you have successively set up an optimized WordPress LEMP server.

WNMP 1.1 Released

Changelog:

  • PHP: “no file specified” now shows a 404 error instead of “no file specified”.
  • added timezone to php.ini(change to yours unless you live in NY).
  • force SSL for phpmyadmin login(for added security).
  • Read more about it here.

Read more about it here.