Solving Heating Issues in Ubuntu 12.04 LTS

Hello Everyone !!

Thanks for Ubuntu Team because 12.04 LTS is a full featured OS and a major

competitor to all other OS . But its been a problem as i have experienced Heating

Problems while running ubuntu 11.10 so i changed to Linux Mint 12 which is

better in heating discharges.After the release of Ubuntu 12.04 it also has the

same Heating Discharges in Laptops about 80-90 C .

Then found the problem is due to Graphics card and also with Sandy Bridge

Processors so follow the below steps for solve that problem.

For Nvidia drivers (Bumblebee):

To install Bumblebee

Open the terminal and start type the command

   sudo add-apt-repository ppa:bumblebee/stable

If you run Ubuntu 11.04 or older then type this command

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

Then run the following

   sudo apt-get update

  sudo apt-get install bumblebee bumblebee-nvidia

Its done now check with Psensor before and after installation of bumblebee

For AMD drivers

open terminal and type

    sudo apt-get install fglrx-updates fglrx-amdcccle-updates

then, after finishing the job type

   sudo aticonfig –initial –input=/etc/X11/xorg.conf
Its done

   I personally thank the bumblee and amd teams for solving the bugs and

also Ubuntugroups and users for sharing the knowledge.

Installing Lamp Server in Ubuntu 11.04

How to install Lamp server in ubuntu 11.10??

First of all LAMP refers to (Linux,Apache,Mysql and Php)

To install Lamp server in Ubuntu,do the following steps

**Open the terminal

**Type the following command in the terminal

                sudo apt-get install lamp-server^

**Press ‘y’ and enter to install the Lamp server

**Then it will ask for MySQL database password

**Enter it automatically install all the necessary packages

To Check Php is installed in your system do the following steps>>

**Open your web browser normally firefox

**type the following URL in your browser

http://localhost

“It works” message will appear in your browser.

Will see on phpmyadmin in my next post.

Alsamixer-Sound Organiser of ubuntu

Alsamixer is a mixer program for Advanced Linux Sound Architecture(ALSA).

It controls the volume and enabling and disabiling of sound devices.It can be accessed

by both using terminal and gui.

To access using terminal

type the following command "alsamixer"

and we perform functions like change the hardware,Making both speaker and headphone to play simultaneously.

To access using command prompt:

Press Alt+f2,and type "gnome-alsamixer"

If didnt display any GUI means,install it using

"sudo apt-get install gnome-alsamixer"


Here we can customize the sound properties.

By thoufitux Posted in Ubuntu

Ubuntu Versions

How to get Ubuntu versions ?

There are different ways to get the Ubuntu-linux versions.Here we are going to discuss the ways

This option is common to all linux flavors . it will display the kernal and other information too.

uname -a

cat /etc/issue

lsb_release -a

Goto System → About Ubuntu


By thoufitux Posted in Ubuntu

Python+MySQL connectivity

Hi friends

If you are new to ubuntu-linux or u are working with python,this is one  of the way for installing and

accesing MySQL database using Python language.

Step 1: Install python 2.6 normally it will be installed in ubuntu

sudo apt-get install python2.6

Step 2: Install the Lamp-server

sudo tasksel install lamp-server

and watch this video for how to configure Lamp-server

Note: Install and configure using “root”

Step 3:Install MySQL DB

sudo apt-get install  python-mysqldb

Step 4:   Test this through python by typing

root@thoufiek-linux:~# python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import MySQLdb
>>> exit()


If u find error like this.

>>> import MySQLdb
Traceback (most recent call last):
File “<stdin>”, line 1, in ?
ImportError: No module named MySQLdb

Step 5:Create a Simple table

If you have installed mysql then you should be able to do the following steps and create a dummy table and insert data into it:

root@thoufiek-linux:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 47
Server version: 5.1.41-3ubuntu12.8 (Ubuntu)

mysql>

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

Create a Databse:

mysql> create database hello;
Query OK, 1 row affected (0.00 sec)

mysql> use hello
Database changed

mysql> create table employee(id int,name varchar(20),email varchar(20));
Query OK, 0 rows affected (0.05 sec)

mysql> show tables;
+—————-+
| Tables_in_data |
+—————-+
| employee       |
+—————-+
1 row in set (0.00 sec)

mysql> insert into employee(id,name,email) values (1,”Afridi”,”afridi.pak@yhaoo.com”);
Query OK, 1 row affected (0.00 sec)

mysql> select *from hello.employee;
+——+——–+———————-+
| id   | name   | email                |
+——+——–+———————-+
|    1 | Afridi | afridi.pak@yhaoo.com |
+——+——–+———————-+
1 row in set (0.00 sec)

mysql> exit
Bye

 



By thoufitux Posted in Python

Welcome

Hi

I am thoufiek , pursing my B.E degree in the discipline of Computer Science and Engineering  in I.F.E.T college of engineering.I liked to work with linux and completely migrated to it..

I’m here to share some information and contributions to linux.

Now i’m trying myself with the Ubuntu-linux,which got a very nice user interface.Currently using Ubuntu 10.04(Lucid lynx) which is derived as a Debian based OS..

Being my first post..I’m sharing some information about Ubuntu-linux1

The following are the Ubuntu versions with their representing names..!

  1. Ubuntu 4.10 (Warty Warthog)
  2. Ubuntu 5.04 (Hoary Hedgehog)
  3. Ubuntu 5.10 (Breezy Badger)
  4. Ubuntu 6.06 LTS (Dapper Drake)
  5. Ubuntu 6.10 (Edgy Eft)
  6. Ubuntu 7.04 (Feisty Fawn)
  7. Ubuntu 7.10 (Gutsy Gibbon)
  8. Ubuntu 8.04 LTS (Hardy Heron)
  9. Ubuntu 8.10 (Intrepid Ibex)
  10. Ubuntu 9.04 (Jaunty Jackalope)
  11. Ubuntu 9.10 (Karmic Koala)
  12. Ubuntu 10.04 LTS (Lucid Lynx)
  13. Ubuntu 10.10 (Maverick Meerkat)
  14.  Ubuntu 11.04 (Natty Narwhal)
  15. Ubuntu 11.10 (Oneiric Ocelot)
  16. *Ubuntu 12.10(Precise Pangolin)

* – goin to be released

Another interesting fact about Ubuntu ,they will be updating their OS for every six months.

and also they will follow alphabetical order in their very versions for that you can refer the table.

I’ll start contributing my efforts to the developing of linux…