Pages

Ads 468x60px

Labels

Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Tuesday, August 14, 2012

Dualboot Ubuntu Linux va Windows


Dualboot – Đó là khi bạn muốn sử dụng song song 2 (hoặc nhiều hơn 2)  Hệ Điều Hành.
Các Hệ Điều Hành (OS) sẽ được cài đặt trên những phân vùng khác nhau, lúc khởi động máy tính, bạn sẽ có quyền lựa chọn khởi động vào Hệ Điều Hành mà bạn muốn.
Việc cài đặt như vậy sẽ tận dụng được hết phần cứng chứ không như việc sử dụng máy ảo để cài thêm Hệ Điều Hành khác.
Trong việc boot song song các HĐH thì boot Windows// Linux là phổ biến nhất, mà cụ thể là giữa Windows 7 với Ubuntu. Bài viết này không bàn về chi tiết việc thực hiện như thế nào, mà cung cấp cho bạn cái nhìn tổng quát về Dualboot, nếu hiểu được vấn đề, các bạn sẽ có thể thực hiện dễ dàng & tương tự với việc Dualboot Backtrack/ Windows 7, hay CentOS/Windows 7…
Việc Dualboot có thể thực hiện bằng cách cài Windows trước, Linux sau hoặc ngược lại.
Windows 7 có  chương trình quản lý việc khởi động tên là Bootloader.
Ubuntu có chương trình quản lý việc khởi động tên là GRUB ( hoặc GRUB2, LILO…)
2 chương trình này không chung sống hòa thuận với nhau được, tức là nếu bạn cài Linux trước, sau đó cài tiếp Windows, thì Bootloader sẽ đè lên GRUB, khi đó lúc khởi động máy tính chỉ nhận ra Windows mà không nhận ra Linux.
Ngược lại, nếu cài Windows trước và Linux sau, thì GRUB cũng có thể đè lên Bootloader, lúc đó lúc khởi động, máy tính sẽ mặc định vào Linux mà quên mất Windows.
Windows rất tham lam, bởi Bootloader Windows sẽ chiếm lĩnh toàn bộ ổ cứng (nên xảy ra việc ghi đè lên GRUB). GRUB thì đỡ hơn, lúc cài Linux, bạn có thể cài GRUB lên phân vùng /boot thôi (sẽ không ghi đè Bootloader Windows) hoặc cài lên toàn bộ ổ cứng (sẽ ghi đè).
Khi cài GRUB lên phân vùng /boot , máy tính sẽ mặc định vào Windows và không nhận ra Linux. Chúng ta đang nói về việc cài Linux sau khi cài Windows. Chính vì vậy sau khi cài xong Linux, bạn phải vào Windows và chỉnh lại file boot bằng công cụ EasyBCD http://neosmart.net/EasyBCD/
Khi cài GRUB lên toàn bộ ổ cứng, GRUB sẽ đè lên Bootloader Windows, tuy nhiên khi bạn khởi động máy, thì sẽ vẫn nhận ra Windows và cả Linux .
Còn nếu bạn cài Windows sau, cài Linux trước, thì Bootloader sẽ đè lên GRUB và máy chỉ nhận ra mỗi Windows mà thôi. Lúc này, việc phục hồi sẽ rất khó khăn. Chính vì vậy trước khi cài Windows- bạn phải backup lại GRUB cái đã.
Chú ý rằng MBR (Master Boot Record) là  nơi lưu trữ cấu hình cho việc khởi động một máy tính, chỉ dẫn phân vùng nào được khởi động… việc thao tác với Bootloader của Windows hay GRUB (GRand Unified Booloader) chính là quá trình thay đổi cấu hình của MBR mà thôi. Chính vì lẽ đó khi Windows bị lỗi lúc boot, ta có thể sửa MBR bằng cách cho đĩa cài Windows => Repair và trong
Command Prompt bạn gõ bootrec /fixmbr , sau đó khởi động lại là được.
Chúc các bạn có một cái nhìn cụ thể hơn về Booting và Dualbooting.
Bài viết còn sơ khai, sẽ bổ sung sau các liên kết cụ thể :
https://help.ubuntu.com/community/WindowsDualBoot

Sunday, July 29, 2012

set password mysql phpmyadmin config.inc.php

=> browse to phpmyadmin folder and find config.inc.php
edit with any editor you like

change this  :

 /* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

xampp ubuntu mysql phpmyadmin

#2002 - "The server is not responding (or the local MySQL server's socket is not correctly configured)"

" Connection for controluser as defined in your configuration failed"

=> Permission problem :

Set : chmod 775 -R /opt/*
should work .

Friday, July 27, 2012

Install Java Firefox Chrome Ubuntu jre openjdk icedtea

Install openjdk using the following command from your terminal
sudo apt-get install openjdk-7-jre
Install Java for browser – firefox/chrome..
For running applets in your web browsers such as Mozilla Firefox or Google Chrome, you need to install icedtea plugin. Execute the following command from your terminal
sudo apt-get install icedtea6-plugin

from http://www.ubuntugeek.com/install-jre-on-ubuntu-11-10-oneiric.html

Thursday, July 26, 2012

Run Xampp 32bit 64bit Ubuntu

sudo apt-get install ia32-libs

=> help run XAMPP (LAMPP) on Ubuntu 64 bit AMD.


Cheers !

Saturday, June 2, 2012

Install PHP MySQL Linux Ubuntu

https://help.ubuntu.com/community/ApacheMySQLPHP

Just forget LAMP

AddType application/x-httpd-php .php => httpd.conf
You probably tried to upload too large file. => /etc/php5/apache2/php.ini

Tuesday, May 22, 2012

Install OpenGL include Ubuntu

Command line : sudo apt-get install freeglut3 freeglut3-dev

IDE : #include <GL/glut.h>

"Open containing Folder" Firefox Ubuntu

http://ubuntuforums.org/showthread.php?p=8870320

Sunday, May 20, 2012

Active Ubuntu Hibernation

Source : http://manpages.ubuntu.com/manpages/hardy/man8/pm-action.8.html
Ubuntu 12.04 LTS disabled (sort of)  Hibernation button by default .
Command line, go~ le^.nh :


Sunday, May 13, 2012

Ubuntu - Windows : Fan + CPU noisier, harder

Some of you might have a problem like me : When dual-booting, using Ubuntu is  always noisier - which means your fan, cpu ... working harder than Windows and you don't know why.

The answer should be VGA in my case, that's a problem of incompatibilities between driver and hardware .

Here is the resolution : https://help.ubuntu.com/community/BinaryDriverHowto

Monday, May 7, 2012

The requested URL /phpmyadmin/ was not found on this server

/etc/apache2/apache.conf

  1. Add the following line to the end of of file /etc/apache2/apache2.conf:
    Include /etc/phpmyadmin/apache.conf
  2. Restart Apache by giving this command on the command line:
    sudo /etc/init.d/apache2 restart

http://stackoverflow.com/questions/6893799/phpmyadmin-is-not-working-after-i-installed-it

https://help.ubuntu.com/community/phpMyAdmin

Ubuntu Python MySQL Setuptools

sudo apt-get install python-dev
sudo apt-get install libmysqlclient-dev

sudo python setup.pybuild
sudo python setup.py install
 

Sample text

Sample Text

Sample Text

Everyday, I wake up asking my-self : what is the purpose of Life ?

 
Blogger Templates