Sunday, July 29, 2012

How to End / Kill Applications / Processes in Ubuntu 12.04 (Precise Pangolin)

Source


How to End / Kill Applications / Processes in Ubuntu 12.04 (Precise Pangolin)
In Ubuntu 12.04, there’s a program called Gnome System Monitor that can be accessed from ‘Dash’which is used to kill or end processes.
However, I prefer to use keys combination to quickly launch gnome-system-monitor.  To create keyboard shortcuts for this program, go to the ‘Control Gear –> System Settings’
end_process_precise_3
Then select ‘Keyboard’
 end_process_precise_4
Next, select ‘Shortcuts’ tab and click ‘Add’  (plus)
end_process_precise_5
 Then type the name and command for Gnome System Monitor. The command for that program is:
gnome-system-monitor

end_process_precise_6
 Click ‘Apply’  , then select the line to add a shortcut. At first, it will say ‘Disabled’. Click on the word ‘Disabled’, it will read’ New accelerator..’  begin typing the keys combination you want. eg. (  Ctrl  Alt  K )
(I used Ctrl-Alt-Del which required a reassign - more on that below) 
end_process_precise_7
 After typing the key combination, it should appear as shown below. 
end_process_precise_8
 If you selected Ctrl-Alt-Del, this warning will pop up:
Click Reassign.
When you need to quickly access the program, type the keys combination to launch it, then use it to kill programs or processes.

end_process_precise_9

Installing Pear Console_Table library

After installing drush on a brand new computer, I received the following error when trying to use it:
Drush needs a copy of the PEAR Console_Table library saved as drush includes/table.inc
Here are the steps I took to resolve this issue, taken from this post


$ sudo wget http://download.pear.php.net/package/Console_Table-1.1.3.tgz
$ sudo tar -xzf Console_Table-1.1.3.tgz 
$ sudo mv Console_Table-1.1.3/Table.php /usr/local/lib/drush/includes/table.inc

Monday, July 02, 2012

Installing Drush on Ubuntu

Source


Installing Drush on Ubuntu

Manuel Garcia's picture
So, you probably have heard of drush, and maybe you have not tried it yet. I tried it quite a while ago, and found it to be somewhat of a hassle. But I yesterday I decided to give it another go, and see all the buzz everyone's talking about.
I use ubuntu at home, and using the console to manage drupal sites seems like ideal, yet I didn't think drush was ready yet... seems like I wasn't paying enough attention!
So now to the meat of it. You will have to change username for the name of your user of course.
  1. Download drush, and uncompress it to your home directory. In my case, this leaves the files inside /home/manuel/drush
  2. Make sure the permisions to the drush file are set so that you can execute the file. See the screenshot below:
  3. If only you will be using the script, make a symbolic link to this file in your /home/username/bin (create the folder if you haven't already):
    ln -s /home/username/drush/drush /home/username/bin/drush
    After which, you should have a drush file in your bin directory like on the screenshot:
  4. UPDATE: To install Drush system wide, simply move the entire Drush directory to /usr/local/lib, and place your symbolic link in /usr/local/bin (thanks cjdavis)
And that is it my friends. You can now go to the root of your drupal installation, and let your jaw drop by executing drush sql dump, and then drush update, and look at it update all the modules on your site in 1 minute, while you go grab a beer.
A command you will want to use is drush help to find out what commands you have available. Enjoy, and long live drush!
[EDIT]
From Ubuntu Lucid on, you can install drush from Synaptic, or the command shell like sudo apt-get install drush However, in Lucid you'll only get the 2.x branch. In Maverick you get the 3.x branch. Not sure how maintained these packages are, if you care to help or wonder how this is going, head over to https://launchpad.net/ubuntu/+source/drush
AttachmentSize
folder-permissions.png76.52 KB
symbolic-link.png83.25 KB

Install Lamp With 1 Command In Ubuntu 12.04 LTS Precise Pangolin & LinuxMint13


Install Lamp With 1 Command In Ubuntu 12.04 LTS Precise Pangolin & LinuxMint13

WRITTEN BY pirat9 ON . POSTED IN linux mintlinux tutorialsubuntu



Updated: 23/05/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQLas the relational database management system and PHP as the object-oriented scripting language.
We did show you in our previous post how to install LAMP in Ubuntu 10.04 with one command using tasksel command. It is a software installation application that is an integral part of the Debian installer and works under Ubuntu Linux too. It groups some packages by tasks and offers the user an easy way to install the packages for that task. It provides the same functionality as using conventional meta-packages. in Maverick this command dosn`t come by default, so we need to install it first before to perform the LAMP installation.
This tutorial was has been tested on Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04 LTS Precise Pangolin. Also tested in LinuxMint13 and works fine.
Open terminal and Type the command :install it   first  with
sudo apt-get install tasksel
Now to install LAMP, type the taskel command in terminal :
sudo  tasksel
And select LAMP Server:
During the installation  you  will be  asked  to insert the  mysql root  password
Two options at this point. 

1. Manually create an info.php file in /var/www containing
<?php
phpinfo();
?>
OR  

2. Use the terminal to check if php is working :
$sudo vi /var/www/info.php

and add
<?php
phpinfo();
?>
save and exit
restart apache2 ,
#sudo /etc/init.d/apache2 restart
Now open browser and type :
http://ip/info.php or http://localhost/info.php
Php is installed.
To full manage  your  lamp Server database, install  phpmyadmin
sudo  apt-get  install  phpmyadmin
To login  to phpmyadmin, open browser and type :
http://ip/phpmyadmin   or http://localhost/phpmyadmin