Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Saturday, 20 April 2013

Switching Apache MPM Prefork to Apache MPM Worker simply

The drawback to doing everything with processes is that Apache prefork can be a bit of a memory hog, especially under load. Another precompiled flavor of Apache can be installed as an alternative:Apache MPM worker. "Worker" differs from "prefork" in that worker's processes are multithreaded, giving them the ability to service more requests with fewer system resources. This can translate into faster pages served with less RAM and CPU. However, because some Apache modules don't necessarily work well when run under multithreaded Apache, you have to specifically select this version to install on Ubuntu and on other GNU/Linux distros with package management.
Apache comes by default as mpm-prefork.
But you will want to instead use mpm-worker, as it will use less memory and be more efficient.
To use the “worker” MPM with PHP, do the following:
Step 1. Stop the apache2 daemon
sudo /etc/init.d/apache2 stop
Step 2.  Uninstall apache2-mpm-prefork
sudo aptitude remove apache2-mpm-prefork
Step 3.  Install apache2-mpm-worker and apache2-threaded-dev
sudo aptitude install apache2-mpm-worker apache2-threaded-dev
Step 4. Enable CGI and mod_actions (may already be enabled)
sudo a2enmod cgid2sudo a2enmod actions
Step 5.  Create a file in /etc/apache2/conf.d with the following content (I called mine php5-cgi.conf):
<IfModule mod_actions.c>2 Action application/x-httpd-php /cgi-bin/php53</IfModule>
Step 6.  Start the apache2 daemon
sudo /etc/init.d/apache2 start

Another way is this way by PCJonathan











Wednesday, 10 April 2013

Installing Flash and Java in Raspbian On Raspberry Pi

Using midori it doesn’t show flash or java and deems the plugin missing.
To install flash first load your terminal
and insert the following code:
sudo apt-get install browser-plugin-gnash
image
Give it time it may take a while to install so have plenty of paitience.
Next you need to install Java
So enter the following code:
sudo apt-get install icedtea-plugin
image
The two plugins are compatible with all browsers that supports loading NPAPI browser plugins.
Famous browsers like Firefox, Chromium and Moidori do support NPAPI.
and in result the flash starts to load the chat box on Doctor Who Media
image
Please share and comment I'm open to helping the best i can.









Wednesday, 27 March 2013

How To Install Raspbian On SD Card In Windows

image
Install Raspbian onto an SD card using a Windows computer RASPBIAN IMAGE DATED 09/02/2013
RASPBIAN WEBSITE
After downloading Raspbian on a normal Windows PC, the operating system must be put on an SD card (you will need one of at least 2GB in size) using a special tool called Image Writer. Return to a web browser and find Image Writer. In the centre of the screen is the download button click it and save the file to a memorable location..
This is a compressed Zip file. Once the download has finished, click Open Folder and find the win32diskimager-binary.zip file. Right-click it and choose Extract All followed by Extract. This will create a folder called ‘win32diskimager-binary’, with some files inside.
image
It is now time to copy the operating system to an SD card. If using an external SD card reader, slot the SD card into it now and connect it to the PC. Otherwise, just slot the SD card into the computer’s built-in memory card slot (some desktops and many laptops have these).
Use Windows Explorer to navigate to the win32diskimager-binary folder and double-click the Win32DiskImager.exe file. In the window that appears, click the blue folder icon next to Image File and browse to the ‘2013-02-09-wheezy-raspbian’ (or similar) folder. In this folder will be a single file called ‘2013-02-09-wheezy-raspbian’. Click this, then click the Save button at the bottom.
image
If more than one removable drive is connected to your PC, check that the drive letter – found to the right of the Image Writer window – corresponds to the SD card reader. If unsure, simply unplug all other external drives from the PC until this process is complete. Click the Write button at the bottom of the Image Writer window, then click Yes in the dialogue box. This will write the Raspbian image file to the SD card.
image
When the writing process has finished, wait for the light on the SD card reader to stop flashing and then remove the SD card; this card is now ready to be used in a Raspberry Pi.

 

Windows Linux Commands Dropbox Folder

Tuesday, 26 March 2013

Connecting to Raspberry Pi Via Windows Remote Desktop Protocol

 So We all should know about the raspberry pi nowadays its pretty much taken the world by storm at being the £25 credit card size computer.
Below is the basic gist for those who don’t know what it involves
Screen-Shot-2012-12-24-at-10.59.55-1024x722
For this i used Raspbian Image its pretty good for first time users with this guide im presuming you already have your R-PI setup and connected to the internet.
 
Making it useable via RDP couldn’t be more simpler than the following code in the SSH Terminal or Raspbian OS Started by: startx
image
 
#Sudo apt-get install xrdp
leading to this
image
So when you start RDP aka mstsc.exe you should get a screen like this
image
and after you login with your account details
you will then have access to your Raspbian Desktop OS
image
Thanks for reading and comment below if you find this confusing.