Tuesday, 9 September 2014
IAS IPS Topper Stories
How To Run PHP on Ubuntu
How to run PHP on Ubuntu.
First of all you will need a web-server to host your PHP pages. In this tutorial I use Apache2. You can install Apache2 from the Terminal by using: $>sudo apt-get update $> sudo apt-get install apache2 when the installation is finished, Apache is up and running and you can test that by pointing your web browser at http://localhost/ The default page will come up with a message “it works”.This html file is located under your local file system in folder /var/www/ Now you have to install PHP. To install PHP and PHP support for Apache, just write the following in console: $>sudo apt-get install php5 libapache2-mod-php5 When this is done you are ready. Let’s go and delete the default page of Apache so we can create our own. Open a terminal and type: $>sudo rm /var/www/index.html If you want to test that PHP is installed successfully into your system you can write and run a simple PHP script that will return to you the PHP information. So open the terminal and type: $>sudo gedit /var/www/index.php An empty document will open in gedit now just type the following and save the document. Restart the web-server by typing: $>sudo /etc/init.d/apache2 restart And point your web browser at: http://localhost/ You should now be able to see your first PHP page running. You can edit this page at any time by typing: $>sudo gedit /var/www/index.php Have fun creating your web pages!10 Tips to speed-up your computer
10 tips to speed up your computer
1. When your system starts, a lot of programs auto load which slow down your machine. Therefore, it is suggested to remove unneeded programs at startup with the help of Microsoft's MSConfig tool. Go to Start > Run > type "msconfig". Go to the startup tab and uncheck the programs you don't want to load whenever the system boots up. Click OK and restart. 2. Your PC comes pre-installed with a lot of programs which you don't even use. They unnecessarily eat up a significant amount of space on your machine and slow your system down. Go to Control Program > Programs and Features > Unintall the programs you don't use. 3. Whenever a program runs on your computer, it leaves certain files on your machine which consume a certain portion of disc space. Over a period of time, hundreds of programs run and thousands of files pile up on your device - which eventually decelerate your machine and sometimes lead to system crash. Therefore, you are suggested to periodically delete temporary files. Go to Start > Run> type "%temp%" > click OK. A folder full of files comes. Select those temporary files and delete. 4. You are advised to timely update software running on your machine. Most of us tend to click on the "Remind Me Later" button whenever a window pops out suggesting us of any update, and we never bother to go back to update. 5. A computer is vulnerable to viruses and other types of malicious programs like Spyware and Adware. These malware load into computer memory and slow down its speed. Thus, it is recommended that you install an antivirus on your machine to check for such programs. While there are many antivirus software available for free, we would recommend you Microsoft Security Essential. Also, ensure that the antivirus installed on your machine is not scheduled to run scan during the time of the day when it is heavily used. Schedule it to run scan when you are not using the system. 6. As your PC runs, files get spread across the device in pieces - framgents. It is recommended that you defragment your disk to bring back separated parts in one place. Defragmenting disk has a noticeable effect on a slow computer. Windows 7 comes with a built-in defragger which automatically defrags at intervals. 7. By turning off Windows graphics, you can set your computer to deliver a slightly better performance. Go to computer icon on your desktop > Properties > Advanced System settings > Advanced > Click Settings under performance > Enable Adust for best performance. It will have an impact on the speed of your PC. 8. Users should optimise the browser they use as per their needs. Ensue that your brower does not have unnecessary plugins and add-ons installed which may affect the performance of your device. 9. Hard drive on your machine must be partitioned. Partioning your hard disk helps in improving the speed of your slow PC. 10. ReadyBoost in Windows 7 can use your flash memory device to add instant RAM to your PC. Plug in a USB flash drive or card and ReadyBoost is active to use. ReadyBoost is designed to help when your PC's memory is running low. ReadyBoost works with most flash storage devices.How to Enable/Disable USB Storage Devices
How to disable/enable the usage of USB storage devices?
USB drives (also known as flash drive, mobile disk or pen drive) are becoming the most popular standard in these days to store and move data. USB support is available in PCs of both IBM-compatible and Apple computers. USB port support hot plugging and plug & play. The USB allows up to 127 devices to be connected to the bus via a single port. The driver name "usbstor.sys" is used to communicate any USB drives to the operating system.
USB drives are indeed very useful in these days but a user can easily use to transfer any confidential information from your computer to others and can also upload viruses affected files to your computer by accidentally or deliberately. But you can prevent the users to connect any USB drives in the computer by disabling the ability of "usbstor.sys" (USB driver) to load in system. It will block the USB storage devices only and your system USB keyboard, mouse and others USB devices will work properly.
Perform the following steps to block the USB storage devices:
-First click on Start button to open "Run" and type "regedit" then press Ok button to open the Registry Editor. -In registry editor locate the given path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR Here select the "USBSTOR" folder and in right side of the registry editor panel find the value with name "Start" . Double click on "Start" and then set its value 4 under "Value data" section. Close the Registry editor and restart your computer for changes to apply. -Now when you want to restore the default setting, open the Registry Editor and set its value back to 3. -Now again close the Registry editor and restart your computer for changes to apply.