Wednesday, January 16, 2013

Asus X201E Ubuntu 12.04 ( Function Keys )

I recently bought asus notebook X201e some time ago. Since I am a fan of Ubuntu, I just installed Ubuntu LTS 12.04, I chose it because the support of the old and very easy to use. Once installed, there are several issues that arise are the function keys are not used. By doing the test a few pointers on google, finally I got the solution and it can work well.
The first step is to upgrade the kernel ubuntu 12.04 by defaul is 3.2 to 3.5 following is how: Add repositories of Ubuntu 12.10 by editing “/etc/apt/sources.list
sudo vim /etc/apt/sources.list
and add following lines:
deb http://security.ubuntu.com/ubuntu quantal-security main universe restricted multiverse deb-src http://security.ubuntu.com/ubuntu quantal-security main universe restricted multiverse deb http://archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse deb-src http://archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse deb http://archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse deb-src http://archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
Then update and install the kernel:

sudo apt-get update sudo apt-get install linux
For PAE kernel (for intel i386 with more than 4GB RAM) :
sudo apt-get install linux-generic-pae
After that reboot: sudo reboot. Yessss !!!! ..., successfully. The volume setting can walk normally again, as well as wireless and others. But the Fn key for brightness is still not running. After dabbling again, This could be fixed by editing the /etc/default/grub file and changing the line "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=". After running "sudo update-grub" in the terminal and rebooting, the keys were working again Good Luck
Read More

Tuesday, October 16, 2012

FreeTDS MYSQL MSSQL PHP

You certainly know a wide range of database engine in the world. one of which is MYSQL.
My post this time about the experience of using the connector from MYSQL ubuntu server to MSSQL the course of microsoft. The goal is to read data from MSSQL database using PHP commands in a project I was working on. The first one is the installation of freetds package ubuntu package, by typing the command:
sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase 
Once the process is complete, do the changes in the file freetds.conf use the command:
sudo vim /etc/freetds/freetds.conf then add some few lines at the bottom of the file: 
[yourserver] host = your.server.name 
port = 1433 
tds version = 8.0 
Furthermore restart the apache server on the machine by typing the command:
sudo /etc/init.d/apache2 restart 
The final step, create additional php file that is created as follows:
<? php
$ link = mssql_connect ('yourserver', 'yourusername', 'yourpassword');
if (!$link) { die ('Unable to connect!'); }  
if (!mssql_select_db ('yourdatabasename', $ link))
{ die ('Unable to select database'); }
$result = mssql_query ('SELECT * FROM yourtable');  
while ($row=mssql_fetch_array ($ result)) { var_dump ($ row); }  
mssql_free_result ($ result);
?>
Mysql database result has been able to read the data on MSSQL database. Furthermore, good luck, good luck
Read More

Wednesday, June 27, 2012

UBUNTU LTS 12.04 (Precise Pangolin)

Based on the Ubuntu Developer Summit in early September 2011 Canonical has announced the release of some new things related to Ubuntu LTS 12.04 

1. 64 Bit version for the default download. At 12. 04 Ubuntu main packages that can be downloaded is a 64 bit version. Nevertheless, the 32 bit version is still available as well. As the heart, it will use the Ubuntu 12.04 kernel version 3.2. (tested with my asus x201e)

2. Require DVD or USB drive to install. 12.04 Ubuntu seem to download this file image / ISO it will size around 750 MB. This means that with that much size will not fit if it is bundled on CD. Users will need a DVD or USB Drive to install it. Of course this is a shock to the user, especially with the addition of only 50 MB file only. 

3. Drop Banshee, Back to Rhythmbox Some reports suggested that the Banshee music player - which has just added to Ubuntu as the default music player - will be replaced again with Rhythmbox. The main problem in Banshee is the lack of software maintenance process / update the application and potentially not be compatible with ARM processors. It is still discussed in the mailing list Ubuntu-Desktop. 

4. No More Mono Framework Closely related to point (3) on the abolition of Banshee, Mono Framework is also possible to be eliminated from Ubuntu. Banshee is one of the few applications that still depend on Mono (another example is the Tomboy Notes and gBrainy), Mono is an implementation of Microsoft's. NET framework that is open source. According to the Ubuntu Community Manager Jono Bacon (written in his blog) that the Banshee and Mono problems have been fixed / finished. 

5. A much faster start up time for the Ubuntu Software Center The developers are hoping to improve the startup speed of the Ubuntu Software Center from 11 seconds to less than 2 seconds, and also continue to always make improvements Unity desktop. Ubuntu Software Center will be updated with support for multiple screenshots. 

6. Head-Up Display (HUD) Feature On January 2012, Mark Shuttleworth announced that Ubuntu will incorporate new features 12.04 of Head-Up Display (HUD), which will allow the search for an application menu item only via keyboard hotkey without the need for a mouse. Shuttlework added that HUD later on in the future will replace the Unity Applications menu. 

7. A Wayland Preview. 12.04 Ubuntu while still dependent on the primary server X.Org as a graphical display system, an experiment using Wayland Graphics System to run the X11 server and it allows the (successful). In the future maybe Ubuntu will adopt Waylang Graphics System as well. 8. Gnome 3.2 Gnome 3.4 plus some packages Most of the Gnome packages on Ubuntu LTS 12:04 it will use Gnome version 3.2 of the package, but some packages of Gnome version 3.4 will reportedly be included as well, for example GTK + 3.4, Gnome Games, gedit, gcalctool, Evince and Yelp.
Read More

Thursday, October 20, 2011

Ubuntu 11.10 (Oneiric Ocelot)

Has been released yesterday, this edition includes the Ubuntu desktop, server, cloud, Kubuntu, Xubuntu, Lubuntu, Edubuntu, Mythbuntu, and Ubuntu Studio. Not too much difference with the previous edition 11.04 / Natty, just adding a few additional applications one of them: Deja DUP for backing up data.

Merger unity and compiz is a different side view of its predecessor, the login screen is also another. But as a whole can be spelled similar to the previous edition.

Because similar to the reply already installed, I just try and then delete it because of who got the laptop says "what is windows 8?"
Even more fun is waiting for 12.04 Ubuntu LTS (Precise pangolin) which is planned to release on April 26 next year (I think it's what Precise, was an anteater). 10.04 Maybe it could replace the LTS as well, because according to its developers this is a tough, durable and a little bug.

Good luck to those interested:

http://releases.ubuntu.com/11.10/ (Ubuntu, Ubuntu Server)

http://cloud-images.ubuntu.com/releases/11.10/ (Ubuntu Cloud Images)

http://cdimage.ubuntu.com/releases/11.10/ (Ubuntu DVD, preinstalled ARM images, source)

http://cdimage.ubuntu.com/netboot/11.10/ (Ubuntu Netboot)

http://releases.ubuntu.com/kubuntu/11.10/ (Kubuntu)

http://cdimage.ubuntu.com/kubuntu/releases/11.10/ (Kubuntu DVD)

http://cdimage.ubuntu.com/xubuntu/releases/11.10/ (Xubuntu)

http://cdimage.ubuntu.com/edubuntu/releases/11.10/ (Edubuntu)

http://cdimage.ubuntu.com/ubuntustudio/releases/11.10/ (Ubuntu Studio)

http://cdimage.ubuntu.com/mythbuntu/releases/11.10/ (Mythbuntu)

http://cdimage.ubuntu.com/lubuntu/releases/11.10/ (Lubuntu)
Read More

Sunday, May 8, 2011

Ubuntu 11.04 Natty Narwhal Review


After waiting many months, the latest ubuntu release has been published a few weeks ago. What and how the performance of the Natty this.

Here's the latest test release ubuntu 11:04 uses several different hardware. Incidentally kompeter could borrow from friends and laptop to have someone (only intel, amd who do not have the love and loans)

1. Booting requires only 50-10 seconds (I3 processors or more)
booting requires 10-30 (under the dual cores, or netbook)

2. Desktop look a little different than previous releases, since it uses unity ubuntu 11:04.


glance for Apple users if somewhat similar, because the application is on the left desktop.

3. In the latest Ubuntu, there are some applications that change, which is very striking is that Open Office is no longer a default install of ubuntu. His replacement is the Libre Office, but its user exactly like other office applications like openoffice and microsoft office. Separate also is gimp, applications for the designer is also already there when the installation is not automatic, but we can still download through the application sypnatic or via terminal (apt-get install)



4. Browser Mozilla Firefox on ubuntu still, what a coincidence when released yesterday, also firefox has just launched its latest version. To support the performance of Ubuntu users. The latest version of Firefox has become the default browser on this Natty.



5. Natty is the latest breakthrough in cloud computing. If you want to store data in the cloud of ubuntu, ubuntu just use one application. This application is suitable for users who are super mobile.



So Ubuntu Natty review, we wait for the latest terobasan in the next Ubuntu release Oneiric Ocelot 11:10

Read More

Thursday, May 5, 2011

Downgrade PHP 5.3 to PHP 5.2 Ubuntu Lucid Server

This process is required at the server system does not match the needs of bcompiler to perform the randomization code in PHP. Discussion will I show is using Ubuntu Lucid Server.
The following process steps downgrade:
1. Check what PHP packages are installed on the server, then dilist to be removed from the system. To do this use the command: dpkg-l | grep php

yoyok@yoyok-desktop:~$ dpkg -l | grep php


will appear like this:
ii libapache2-mod-php5 5.3.2-0ubuntu1 server-side, HTML-embedded scripting languag
ii php-pear 5.3.2-0ubuntu1 PEAR - PHP Extension and Application Reposit
ii php5-cgi 5.3.2-0ubuntu1 server-side, HTML-embedded scripting languag
ii php5-cli 5.3.2-0ubuntu1 command-line interpreter for the php5 script
ii php5-common 5.3.2-0ubuntu1 Common files for packages built from the php
ii php5-dev 5.3.2-0ubuntu1 Files for PHP5 module development
ii php5-gd 5.3.2-0ubuntu1 GD module for php5
rc php5-mcrypt 5.3.2-0ubuntu1 MCrypt module for php5
ii php5-mysql 5.3.2-0ubuntu1 MySQL module for php5
ii php5-sqlite 5.3.2-0ubuntu1 SQLite module for php5


2. Prepare a PHP packages that will diremove

yoyok@yoyok-desktop:~$ dpkg -l | grep php | awk '{print $2}'

results:
libapache2-mod-php5
php-pear
php5-cgi
php5-cli
php5-common
php5-dev
php5-gd
php5-mcrypt
php5-mysql
php5-sqlite


3. Remove the php package with the command:
yoyok@yoyok-desktop:~$ sudo apt-get remove libapache2-mod-php5
php-pear php5-cgi php5-cli php5-common php5-dev php5-gd php5-mcrypt php5-mysql php5-sqlite


4. After the successful, add the karmic repo in /etc/apt/sources.list, for ease of use this command:
yoyok@yoyok-desktop:~$ sed s/lucid/karmic/g /etc/apt/sources.list | tee /etc/apt/sources.list.d/karmic.list


5. Then, create a pin whose function is to hold for pakett PHP will not be upgraded to Lucid again, Create a file called php which is stored in the folder /etc/apt/preferences.d/, whose contents are as follows:
Package: libapache2-mod-php5
Pin: release a=karmic
Pin-Priority: 991

Package: php-pear
Pin: release a=karmic
Pin-Priority: 991

Package: php5-cgi
Pin: release a=karmic
Pin-Priority: 991

Package: php5-cli
Pin: release a=karmic
Pin-Priority: 991

Package: php5-common
Pin: release a=karmic
Pin-Priority: 991

Package: php5-dev
Pin: release a=karmic
Pin-Priority: 991

Package: php5-gd
Pin: release a=karmic
Pin-Priority: 991

Package: php5-mcrypt
Pin: release a=karmic
Pin-Priority: 991

Package: php5-mysql
Pin: release a=karmic
Pin-Priority: 991

Package: php5-sqlite
Pin: release a=karmic
Pin-Priority: 991


6. Do the updates and install the package php
yoyok@yoyok-desktop:~$ sudo apt-get update
yoyok@yoyok-desktop:~$ sudo apt-get install libapache2-mod-php5
php-pear php5-cgi php5-cli php5-common php5-dev php5-gd php5-mcrypt php5-mysql php5-sqlite


7. When finished do check the package php (php 5.2) with the command dpkg-l | grep php. result like this:
ii libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.4 server-side, HTML-embedded scripting languag
ii php-pear 5.2.10.dfsg.1-2ubuntu6.4 PEAR - PHP Extension and Application Reposit
ii php5-cgi 5.2.10.dfsg.1-2ubuntu6.4 server-side, HTML-embedded scripting languag
ii php5-cli 5.2.10.dfsg.1-2ubuntu6.4 command-line interpreter for the php5 script
ii php5-common 5.2.10.dfsg.1-2ubuntu6.4 Common files for packages built from the php
ii php5-dev 5.2.10.dfsg.1-2ubuntu6.4 Files for PHP5 module development
ii php5-gd 5.2.10.dfsg.1-2ubuntu6.4 GD module for php5
rc php5-mcrypt 5.2.6-0ubuntu2 MCrypt module for php5
ii php5-mysql 5.2.10.dfsg.1-2ubuntu6.4 MySQL module for php5
ii php5-sqlite 5.2.10.dfsg.1-2ubuntu6.4 SQLite module for php5


So now the downgrade of package php php php 5.3 to 5.2 successfully
Read More