Search blog

Wednesday, January 14, 2015

Install and Configure Upload Progress (PECL uploadprogress) on Ubuntu 14.04 / Drupal

1. INSTALL DEPENDENCIES

 sudo apt-get -y install php5-dev make  

2. INSTALL via PECL

 sudo pecl install uploadprogress  

3. CONFIGURE UPLOAD PROGRESS
Create a PHP uploadprogress configuration file.

 sudo gedit /etc/php5/mods-available/uploadprogress.ini  
 and add the line below and save your file 
 extension=uploadprogress.so  

4 ENABLE THE PHP UPLOADPROGRESS MODULE

 sudo php5enmod uploadprogress  

5. RESTART APACHE SERVICE

 sudo service apache2 restart  

Unsintall PECL:

If you would like to uninstal PECL execute the following command in your terminal:

 sudo pecl uninstall uploadprogress  

Friday, January 9, 2015

Sharing Drive/File/Folder in VirtualBox with Ubuntu as Host and Kali Linux or Windows as Guest OS

1. To Share Drive/Folder in Kali Linux as Guest OS:

First make sure your Guest OS is turned off else you won't be able to make the changes.


 Then on your VirtulaBox Management Page make the following changes as shown in the above image or continue to read below:
  1. Click on Settings
  2. Click on Shared Folders
  3. In 'Folder Path' select the desired Drive/Folder/File
  4. If you just want to read the files from your Guest OS the select Read-only else if you want to read/write leave it as it is.
  5. Give a name to your folder in 'Folder Name'.
  6. Select Auto-mount if you would like to mount your drive/folder/file on startup.
  7. Finally Click OK and that's all there is to 'Sharing Folders' in Virtual Box.
If you are using Kali Linux you can locate your drive/folder/file under '/media/your_shared_drive_folder_file'

Thursday, January 8, 2015

Using Winamp Skins in Audacious

I just tried using Audacious 3.4.3. It seems to be a nice audio player but the inability of the latest release to magnify the Winamp Skins made me loose interest in it. Anyway anybody interested in using it and looking for how to use Winamp Skins in it may read on:



To INSTALL Audacious in Ubuntu 14.04/14.10:

 sudo add-apt-repository -y ppa:nilarimogard/webupd8  
 sudo apt-get update  
 sudo apt-get install audacious audacious-plugins  

To Use Winamp Skins in Audacious:

In the Audacious Menu:
  • Click on View
  • Click on Interface
  • Select Winamp Classic Interface
Now your Audacious player should be displayed in a Winamp Skin as in the image below:


 To INSTALL New Winamp Skins:
 You can download Winamp skins from here: http://customize.org/winamp2

Then copy it to the following location: '/usr/share/audacious/Skins'.

Support the following file formats (.zip, .wsz, .tgz, .tar.gz, or .tar.bz2 file.

Then  on your Audacious Menu once again:
  • Go to View
  • Interface Preferences
  • Select your Skin from the list
Instead of Audacious I found out Clementine Music Player to be AWESOME!!!

How to Conceal that you are using PHP on your server to prying eyes?

I just found this simple technique to conceal that you are using PHP for your sites from tools like wappalyzer and statcounter. Just make the following change in your php.ini file located (Ubuntu 14.04) at /etc/php5/apache2/php.ini. Here's how to do it.

 1. Prest CTRL+ALT+T to open Terminal  
 2. sudo gedit  
 3. expose php = Off  
Reload Apache:
 service apache2 reload  

Monday, January 5, 2015

Change Wallpapers Automatically in Ubuntu 14.04


You can right click your desktop, select "Change Desktop Background" and choose any one of the wallpapers pre-installed, but you need to do it each time you want to change a wallpaper. What about changing a wallpaper automatically within a certain time interval? Try to install the wallpaper changer Variety.

 Press Ctrl-Alt-T to run Terminal.  
 Enter sudo add-apt-repository ppa:peterlevi/ppa  
 Enter sudo apt-get update  
 Enter sudo apt-get install variety  

With this wallpaper changer, you can change wallpapers in a fixed time interval from the sources you set and run it with several other settings such as randomly applying filter effects, color and size, customizing the indicator icon and so on.

Install LAMP Stack in Ubuntu 14.04 with a Single Command & PHP Modules

You can install LAMP stack in Ubuntu 14.04 with a single command. Here's the command:

 $ sudo apt-get install apache2 php5 php5-mysql mysql-client mysql-server  

During the installation process you will be asked to enter PASSWORD for your MySQL 'root' user account. This is optional.

Once the installation is successful you can crosscheck by creating a info.php file under 'var/www/htm/info.php' containing the code below:

 <?php phpinfo(); ?>  

Now open a browser and view the result of the above PHP file. If you are using a localhost you can enter the forllowing URL in your browser:

 http://localhost/info.php  

Install PHP Modules

If you would like to add some additional modules to enhance your PHP read below:

To see the available options for PHP modules and libraries, you can type this into your system:

 apt-cache search php5-  

The results are all optional components that you can install. It will give you a short description for each:

 php5-cgi - server-side, HTML-embedded scripting language (CGI binary)  
 php5-cli - command-line interpreter for the php5 scripting language  
 php5-common - Common files for packages built from the php5 source  
 php5-curl - CURL module for php5  
 php5-dbg - Debug symbols for PHP5  
 php5-dev - Files for PHP5 module development  
 php5-gd - GD module for php5  
 . . .  

To get more information about what each module does, you can either search the internet, or you can look at the long description in the package by typing:

 apt-cache show package_name  

If, after researching, you decide you would like to install a package, you can do so by using the apt-get install command like we have been doing for our other software.

If we decided that php5-cli is something that we need, we could type:

 sudo apt-get install php5-cli  

If you want to install more than one module, you can do that by listing each one, separated by a space, following the apt-get install command, like this:

 sudo apt-get install php5-cgi php5-cli php5-curl php5-mysql php5-odbc php5-memcache php5-memcached php5-oauth  

Top 5 Posts (Weekly)