Hiển thị các bài đăng có nhãn thu-thuat-linux. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn thu-thuat-linux. Hiển thị tất cả bài đăng

Thứ Năm, 28 tháng 4, 2016

Hướng dẫn cài đặt phần mềm Windows trên Linux

Chào !

- Để giải quyết công việc một cách triệt để nhất dĩ nhiên những phần mềm thông dụng và hoàn toàn không thể thay thế như :
  • Microsoft Office
  • Photoshop 
  • Dreamweaver
  • Visual Studio
Và còn nhiều công cụ khác nữa .

Vậy vấn đề đặt ra là làm thế nào để cài đặt và sử dụng chúng trên Linux ?


- Để sử dụng chúng trên một nền tảng hoàn toàn khác chúng ta cần 1 phần mềm thứ 3 để tạo làm 

chúng tương thích với nhau và có thể chạy hoàn hảo. Và đó chính là Wine.

Vậy Wine là gì ? 

" Wine là viết tắt của cụm từ "Wine is not emulator" - Wine không phải là giả lập - là ứng dụng tạo ra lớp tương thích để sử dụng các ứng dụng Windows trên nền các hệ điều hành như Linux, Mac OSX và BSD. Wine khác hẳn với các chương trình giả lập,ứng dụng này dịch các Windows API thành thông điệp POSIX calls on-the-fly mà các hệ điều hành trên có thể hiểu được, vì vậy mà loại bỏ độ chậm trễ và tăng tốc độ các ứng dụng Windows khi chúng phải chạy trên một nền hệ điều hành khác" [nguồn: winehq.org] 

Quá trình hình thành của Wine


Wine là một dự án được phát triển vào năm 1993 do ông Bob Amstadt ( Leader ) và ông Eric Young dale. Để chạy các ứng dụng Windows trên Linux. Dĩ nhiên thành công vang dội của Wine là đã được hàng triệu người biết đến. Ứng dụng Windows chạy thông qua Wine không cần phải chú ý đến phiên bản Windows, điều mà chính Windows củng không làm được.

Wine sẽ luôn là miễn phí, một nữa số cade của Wine do các nhà tình nguyên viên viết và nũa còn lại được tài trợ do các công ty thương mại, đặc biết CodeWeavers - được tài trợ bởi Google
Vì vậy xin cảm ơn Google và các tình nguyện viên.

Cài đặt Wine

- Mình đang tiến hành cài đặt wine trên Cub OS. Là sự kết hợp của Chrome OS + Ubuntu 14.04. Các phiên bản Ubuntu đều hỗ trợ Wine. Để sử dụng tốt nhất lời khuyên của mình là nên cài đặt thêm winetricks và playonlinux 
sudo apt-get install wine
sudo apt-get install winetricks
sudo apt-get install playonlinux
- Sau khi cài đặt thành công thì có thể cài đặt ngay các ứng dụng của Windows. Một vài ứng dụng cơ bản như : Winrar, Unikey, Notepad++ ... Tuy nhiên các ứng dụng đặc biệt giải quyết nhu cầu công việc hằng ngày như mình nêu ở trên yêu cầu bạn cần phải có các gói hỗ trợ.

Tìm kiếm gói hỗ trợ thông qua Winetricks

- Mình sữ dụng default menu của Cub Os, gọi ứng dụng Winetricks


Winetrick cho phép ta tìm kiếm gói hỗ trợ được chia thành nhiều nhóm khác nhau: cài đặt phần mềm, cài đặt tiêu chuẩn, cài đặt game,... Chúng ta dễ dàng tìm thấy những phần mềm cơ bản ở " install an app " ( 7-Zip,Firefox 24, Paint, Opera 11, Safari, Office 2007 Pro, Torrent 3.1, Sketchup 8, MS visual C++ 2010 Express,...)



- Chỉ việc chọn ứng cần thiết


- Để sau khi chọn 1 ứng dụng yêu thích bạn sẽ được auto tải gói hỗ trợ về và cài đặt

- Mình xin chia sẽ 3 gói hỗ trợ đặc biệt dành cho : 
  • Photoshop cs 6 : link tại đây
  • Dreamweaver cs 5 : link tại đây

- Mình sẽ thu thập thêm và share cho các bạn ở cmt :)!

                                                                                                                        - Hiếu Nguyễn -

Thứ Hai, 25 tháng 4, 2016

Hướng dẫn sửa lỗi không sáng đèn bàn phím trên Linux - Fix keyboard backlighting not working on Linux

Try:
xset led 1
xset led 2
xset led 3
.
.
.
xset led 32
See if one makes it turn on.


Hướng dẫn sửa lỗi Unable to access "Drive" - How to fix error Unable to access "Drive"



Solution:

Use ntfsfix in the terminal , even if you can't access Windows  
sudo ntfsfix /dev/XY
//Previous wasn't working for me.
Where XY is the partition

e.g sda2 or sdb1

ntfsfix repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.

HƯỚNG DẪN CÀI ĐẶT VÀ SỬ DỤNG CONKY TRÊN LINUX - TURTORIAL INSTALL AND USE CONKY ON LINUX

Conky là gì ?



Conky là ứng dụng hiển thị những thông số cần thiết để tiện việc theo dõi hoạt động của máy tính,

Ngoài ra bạn có thể tùy biến để conky hiển thị thêm những thông số liên quan như :


  • Thời Tiết
  • Pin
  • HDD
  • SSD
  • Ram
  • Nhiệt độ 
Và vô vàn thứ khác nữa... và dĩ nhiên quan trọng nhất là làm đẹp cho desktop của bạn. 

- Để sử dụng conky củng như quản lý tập trung những widget và tinh chỉnh chúng, dĩ nhiên cần sử

thêm 1 ứng dung, đó là Conky-manager .

- Đầu tiên để cài đặt Conky-manager các bạn copy dòng lệnh dưới đây và paste vào Terminal nhé
sudo add-apt-repository ppa:teejee2008/ppa 
sudo apt-get update sudo apt-get
install conky-manager

- Sau đó bạn có thể google search để tìm những theme yêu thích và tải về 

một số link theme conky mà mình yêu thích :

http://custom-linux.deviantart.com/gallery/39357745/Conky-Themes

https://www.maketecheasier.com/awesome-conky-themes-linux/

- Giao diện của Conky-manager . bạn có thể click vào button bên phải ở trên kí hiệu bên dưới để tiến hành add theme



Ở tab Gerneral ta có thể tùy chỉnh thời gian cụ thể để conky có thể tự động khởi động theo hệ thống

Ở tab Locations ta có thể thấy thư mục mặc định của conky, ta có thể copy theme và thư mục mặc
 định hoặc chọn add để trỏ về thư mục chứa theme


cuối cùng ta chọn refesh và đón chờ kết quả nhé hihi








- Cùng chia sẽ hình nền của mình ở cmt dưới nhé :) ! chúc các bạn thành công

                                                                                                        - Hiếu Nguyễn -

Thứ Tư, 20 tháng 4, 2016

Hướng dẫn Cài đặt Font Tiếng Việt trên Ubuntu

Font là một phần không thể thiếu trên máy tính. Nếu bạn đang đọc trang này, tức là bạn đang sử dụng 1 phông chữ (hoặc nhiều). Khi cài đặt xong hệ điều hành Ubuntu, bạn sẽ thấy một số trang web có chữ to, chữ nhỏ, in đậm hoặc không và có một số trang bị lỗi chữ khiến bạn không thể đọc được, điều này thật khó chịu. Nguyên nhân là mặc định khi bạn cài Ubuntu nó chưa bao gồm những Fonts này.

Sau đây mình xin chia sẻ một số cách cài Font trên Ubuntu:
Cách 1: 
- Chạy trực tiếp trên Terminal.
sudo apt-get install msttcorefonts  
Trong quá trình cài đặt này, các bạn phải làm từ từ và cẩn thận từng bước cho dù nó khá đơn giản vì một số lựa chọn mặc định là “Không”. Nếu lỡ tay thì quá trình cài đặt xem như không thành công.
Sau khi cài đặt xong, các bạn có thể log out và log in lại. Tuy nhiên, quá trình này có thể rút ngắn bằng cách sử dụng lệnh:
sudo fc-cache -fv
Cách 2: 
- Tải bộ font về có thể có nhiều nguồn từ Internet. (bộ font gồm các file .ttf).
     Link font Tiếng Việt
- Sau khi tải về ta giải nén file. Bạn muốn dùng các font VNI, .vnTime,...
Bạn chỉ việc copy các font này vào thư mục:
/usr/share/fonts/truetype/msttcorefonts/
Nếu ko muốn dùng lệnh, bạn có thể dùng nautilus với quyền root để copy.
sudo nautilus
Cách 3: 

Cách này khá là đơn giản, bạn chỉ việc vào Ubuntu Software Center và gõ vào ttf-mscorefonts, sau đó click Install để cài đặt

hoặc

- Bạn có thể vào Link sau để tải về file .deb và chạy file để cài đặt.

Link: font tieng viet.deb

Tự động thay đổi ảnh nền với Variety - Wallpaper Changer with Variety

Variety là một phần mềm với nhiều tính năng tuyệt vời, đặc biệt gọn nhẹ dễ sữ dụng. Phần mềm có thể sữ dụng ảnh từ máy tính (local) hoặc tải từ nhiều nguồn trên Internet. Cho phép chúng ta thay đổi ảnh theo thời gian đã đặt, có thể thay đổi ảnh liên tục. Variety cũng có thể hiễn thị những câu doanh ngôn triết lý hay những dòng hài hước hoặc hiễn thị một đồng hồ kỹ thuật số ở góc màn hình ( có thể tùy chĩnh font chữ).

Variety is packed with great features, yet slim and easy to use. It can use local images or automatically download wallpapers from lots of online sources, allows you to rotate them on a regular interval, and provides easy ways to separate the great images from the junk. Variety can also display wise and funny quotations or a nice digital clock on the desktop.

Demo
Main preferences and menu.
Quotes.

Flickr Support.
Live Earth Wallpaper

Hướng dẫn cài đặt trên Ubuntu:
- Chạy Terminal và gõ lần lượt các dòng lệnh sau:
sudo add-apt-repository ppa:peterlevi/ppa 
sudo apt-get update 
sudo apt-get install variety
- Sau khi cài xong , chúng ta có thể chạy Variety trong Menu Applications hoặc chạy trực tiếp bằng cách gõ Variety trong Terminal.

Installation on Ubuntu
- Open a terminal and run the following commands
sudo add-apt-repository ppa:peterlevi/ppa 
sudo apt-get update 
sudo apt-get install variety
- Then you launch Variety from the dash or applications menu, or by running variety in a Terminal.

*** Chú ý *** 
- Để có thể sữ dụng Clock với ngôn ngữ Tiếng Việt thì bắt buộc hệ thống phải có font tiếng việt.
Nếu bạn nào chưa biết cài Font có thể vào đây tham khảo: Hướng dẫn cài Font Tiếng Việt.

Bộ Font Tiếng Việt: File .deb    File .zip



Thứ Sáu, 25 tháng 3, 2016

Hướng dẫn tạo Burg Bootloader - Burg bootloader installation guide

Burg is a boot loader based on GRUB. It uses a new object format which allows it to be built in a wider range of OS, including Linux/Windows/OSX/Solaris/FreeBSD etc. It also has a highly configurable menu system which works in both text and graphic mode. In this post we will show you how to install Burg boot loader in Ubuntu 13.04 ‘Raring Ringtail’ and LinuxMint, this also works with previous releases of Ubuntu and LinuxMint.

To install Burg on Ubuntu 13.04 and LinuxMint, open a terminal and run the following commands (This will install Burg and Burg themes):
sudo add-apt-repository ppa:n-muench/burg 
sudo apt-get update 
sudo apt-get install burg burg-themes
During the installation of Burg, you will get many screens as described below:
Click OK to continue
Click OK to continue.
Click OK to continue.


Now press SPACE on your keyboard to select and press OK.
Now the installation is complete.
To make Burg integrate with the hard-disk, enter the following command in a terminal (Remember to substitute ‘hd0′  with the drive on which your MBR is installed):
sudo burg-install "(hd0)"
If no errors reported when using the above command, then this means Burg installed successfully. We just need to update Burg:
sudo update-burg
Finally, run the following to test and set your theme:
sudo burg-emu

Press F2 to change theme.
Here are the hot-keys defined in the boot menu:
T – Open theme selection menu
F – Toggle between folding mode
N – Jump to the next item with the same class
W – Jump to the next Windows item
U – Jump to the next Ubuntu item
E – Edit the command of current boot item
C – Open a terminal window
2 – Open two terminal windows
H – Display help dialog (only available in sora theme)
I – Display about dialog (only available in sora theme)
Q – Return to old grub menu
F5/CTRL-X – Finish edit
F6 – Switch window in dual terminal mode
F7 – List the folded boot items
F8 – Toggle between graphic and text mode
F9 – shutdown
F10 – reboot
ESC – quit from the current popup menu or dialog.
Install Grub Customizer to edit bootloader. Run the following to install
sudo add-apt-repository ppa:danielrichter2007/grub-customizer 
sudo apt-get update 
sudo apt-get install grub-customizer
Run Grub Customizer, and then click Yes
We can change List boot or resolution, etc,..


At Refer: Here
More themes. You can download: Here

STEP 1
    Choose the style you want to apply
STEP 2
    Go to the appropriate folder and change the rights to make the install.sh executable
STEP 3
    Run the install.sh
STEP 4
    Choose the "minimum" theme in BURG (F2 to show the select menu)

(OPTIONAL)
    You can visualize BURG by typing    
        sudo burg-emu -D
    in your command line input

Different ways
Copy folder in file downloaded and then past to /boot/burg/themes/ 
by open a terminal and run the following commands 
sudo nautilus

Chủ Nhật, 20 tháng 3, 2016

Tổng hợp các LỆNH cài đặt phần mềm phổ biến trên Linux / Ubuntu


Chào các bạn, hôm nay mình sẽ hướng dẫn 1 số lệnh cơ bản để cài 1 số phần mềm trên Linux:

1. Cách cài đặt bộ gõ tiếng Việt:

IBus – Unikey:
- dùng lệnh: sudo apt-get install ibus-unikey
- kích hoạt bộ gõ: im-switch -s ibus
- hoặc: Vào trình đơn System → Administration → Language Support , Ở phần Keyboard input method system (Hệ thống phương thức nhập) chọn ibus.2. Cài đặt graphic driver: sudo apt-get install mesa-utils:
- Hoặc (sửa lỗi chụp màn hình bị đen):
- sudo add-apt-repository ppa:xorg-edgers/ppa
- sudo apt-get update && sudo apt-get upgrade
- Vào System setting và Install update

3. Sửa lỗi không hiển thị hộp thoại khi ấn printscreen trên LinuxMint:
- Vào SystemSeting → Keyboard → Keyboard shortcuts → Custom shortcuts → Thêm Keyboard shortcuts với thông số sau:
- Name: Screenshot
- Command: gnome-screenshot –interactive
- Lưu lại và chụp thử 

4. Cài Flash cho trình duyệt:
- sudo apt-get install flashplugin-installer

5. Cài đặt ubuntu-tweak:
- sudo add-apt-repository ppa:tualatrix/ppa
- sudo apt-get update && sudo apt-get install ubuntu-tweak

6. Mở thư mục có thể copy và xóa như windows: gksudo nautilus

7. Sửa lỗi không giảm độ sáng màn hình được:
- Run this command: gksu gedit /etc/default/grub
- Change the line GRUB_CMDLINE_LINUX="" into GRUB_CMDLINE_LINUX="acpi_osi=Linux".
- Save the file and quit the text editor.
- Then run: sudo update-grub
- Restart.

8. Sửa lỗi touchpad không hoạt động:
- gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled 'true'
- hoặc:
+ sudo gedit /etc/init.d/touchpad
+ paste code:
- #!/bin/bash
- gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled 'true'
+ Lưu lại
+ sudo chmod +x /etc/init.d/touchpad
+ sudo update-rc.d touchpad defaults

9. Cài đặt FileZilla: 
- sudo add-apt-repository ppa:n-muench/programs-ppa
- sudo apt-get update && sudo apt-get install filezilla

10. Quay phim màn hình:
- sudo apt-get install ffmpeg
- ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq output.mpg

- Hoặc vào Ubuntu Software Center tìm cài đặt Kazam

11. Thêm biểu tượng trên desktop:
- sudo apt-get install --no-install-recommends gnome-panel
- gnome-desktop-item-edit --create-new ~/Desktop
- Chọn từ /usr/bin...

12. Cài đặt Java:
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update && sudo apt-get install oracle-java7-installer

13. Dùng smile của yahoo trong Pidgin:
- Tải gói smile về máy
- Giải nén file attach và chép vào thư mục “/usr/share/pixmaps/pidgin/emotes/” rồi mở Pidgin lên
- Vào Tools> Preference > Smiley Themes > Chọn theme có tên là tên thư mục vừa tạo.



14. Cài đặt VirtualBox:
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian saucy contrib" >> /etc/apt/sources.list'
wget -q http://download.virtualbox.org/virtu...racle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update %% sudo apt-get install virtualbox-4.3

* Dùng USB trong virtualbox
sudo adduser username vboxusers

15. VirtualBox lỗi Kernel driver not installed (rc=-1908):
sudo apt-get update && sudo apt-get install dkms
sudo /etc/init.d/vboxdrv setup

16. Cài đặt phần mềm chỉnh sửa thời gian khởi động Ubuntu:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update && sudo apt-get install grub-customizer

17. Clean system:
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install gtkorphan

18. Chạy Applet trên firefox:
- Gỡ bỏ java plugin trên firefox
- thoát trình duyệt
- chạy lệnh: ln -s /usr/lib/java/jdk1.7.0_15/jre/lib/i386/libnpjp2.so

19. Nâng cấp LibreOffice:
- Thêm vào SoftwareSource: deb http://ppa.launchpad.net/libreoffice...ice-4-1/ubuntu raring main
- sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
- Trên bản LTS: sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update && sudo apt-get -y dist-upgrade
- Xem thêm:
https://launchpad.net/~libreoffice/ archive/ppa
http://askubuntu.com/questions/252612/how-do-i-install-libreoffice-4
- sudo apt-get update && sudo apt-get dist-upgrade

20. Cài đặt FF Multiple File Converter:
sudo add-apt-repository ppa:ffmulticonverter/stable
sudo apt-get update && sudo apt-get install ffmulticonverter

21. Cài đặt Gimp:
sudo add-apt-repository ppa:eek:tto-kesselgulasch/gimp
sudo apt-get update && sudo apt-get install gimp

22. Download Manager:
http://flareget.com/download/
hoặc cài đặt phần mềm XDMAN giống như IDM

23. Upgrade Firefox:
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt-get update && sudo apt-get dist-upgrade

24. Cài đặt phần mềm DVD/CD ảo:
sudo add-apt-repository ppa:cdemu/ppa
sudo apt-get update && sudo apt-get install gcdemu cdemu-client

25. Phần mềm cắt, ghép file PDF: PDFSAM
sudo apt-get install pdfsam

26. Phần mềm tải và chuyển đổi định dạng YouTube
sudo add-apt-repository ppa:clipgrab-team/ppa
sudo apt-get update && sudo apt-get install clipgrab

27. Thêm menu vào chuột phải:
sudo add-apt-repository ppa:nae-team/ppa
sudo apt-get update
sudo apt-get install nautilus-refresh (Thêm menu refresh)
sudo apt-get install nautilus-open-terminal (Thêm menu Open in Terminal)
nautilus -q

28. Cài font microsoft
vào Ubuntu Software Center gõ ttf-mscorefonts và install

29. Hiện menu boot sau khi cài Windows sau Ubuntu
- Chạy LiveCD Ubuntu
- gõ lệnh để xem tên ổ đĩa: sudo fdisk -l (phân vùng linux có tên là /dev/sda1)
- sudo mount /dev/sda1 /mnt
- sudo mount /dev/sda1 /mnt/boot
- sudo grub-install --boot-directory=/mnt/boot /dev/sda
- Khởi động lại từ ổ cứng, lúc này sẽ boot từ ubuntu
- Vào Ubuntu gõ tiếp lệnh: sudo update-grub để update boot menu.
- Khởi động lại từ ổ đĩa và chọn OS

30. Tạo USB ghost với CloneZilla:
Tải về tại: http://clonezilla.org/downloads.php
Format USB về FAT32 (dung lượng yêu cầu: 200MB)
Gõ lệnh sudo mkdir -p /media/usb; sudo mount /dev/sdb1 /media/usb/
Giải nén và copy toàn bộ gói đã tải về vào thư mục /media/usb (hoặc dùng lệnh: unzip clonezilla.zip -d /media/usb/).
Chạy tiếp lệnh: cd /media/usb/utils/linux
Và cuối cùng: sudo bash makeboot.sh /dev/sdb1

31. Tối ưu pin laptop:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update && sudo apt-get install tlp tlp-rdw
sudo tlp start

32. Phần mềm chụp ảnh màn hình chuyên nghiệp: Shutter
sudo add-apt-repository ppa:shutter/ppa
sudo apt-get update && sudo apt-get install shutter

33. Link phần mềm tiện ích cho Linux: http://www.makeuseof.com/pages/best-linux-software

36. Cài đặt Lampp trên Linux: (máy chủ php)
+ Cài đặt Apache
sudo apt-get install apache2
Vào http://localhost để kiểm tra kết quả, nếu không được thì chạy lệnh sudo service apache2 restart
+ Cài đặt PHP:
sudo apt-get install php5 libapache2-mod-php5
Khởi động lại apache: sudo service apache2 restart
Để kiểm tra PHP bạn tạo một file info.php trong thư mục /var/www (đây là webroot mặc định của Apache): <?php phpinfo();?>
+ Cài đặt MySQL:
sudo apt-get install mysql-server mysql-client
Trong quá trình cài đặt hỏi mật khẩu thì phải nhập mật khẩu vào.
+ Cài đặt PHPMyAdmin:
sudo add-apt-repository ppa:nijel/phpmyadmin
sudo apt-get update && sudo apt-get install phpmyadmin
Trong quá trình cài đặt, phần mềm hỏi chọn webserver thì chọn Apache2.
Hỏi muốn cấu hình PHPMyAdmin thì chọn Yes, nhập mật khẩu MySQL vào.
Khởi động lại Apache.
+ Kích hoạt module rewrite module:
sudo a2enmod rewrite
Khởi động lại Apache.
+ Cài đặt cURL:
sudo apt-get install php5-curl
Khởi động lại Apache.
+ Nếu không rewrite được sau khi cài đặt thì thực hiện:
- sudo gedit /etc/apache2/sites-available/default
- Sửa AllowOverride None thành AllowOverride All
+ Đổi thư mục WebRoot mặc định của Apache:
- sudo gedit /etc/apache2/sites-available/default
- sửa lại các chỗ /var/www/ thành thư mục mới, lưu lại rồi khởi động lại Apache
+ Sửa lỗi: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
- sudo gedit /etc/apache2/apache2.conf
- Thêm ServerName localhost vào cuối tệp và lưu lại
- Khởi động lại apache
+ Không cho apache chạy khi khởi động:
sudo update-rc.d -f apache2 remove
+ Chạy apache khi khởi động:
sudo update-rc.d apache2 defaults
+ PhpMyAdmin logout sau 24 phút:
- Đổi tệp /usr/share/phpmyadmin/config.sample.inc.php thành /usr/share/phpmyadmin/config.inc.php
- Thêm $cfg['LoginCookieValidity'] = 60 * 60 * 12; vào cuối tệp
- Mở tệp: /etc/php5/apache2/php.ini và sửa giá trị của: session.gc_maxlifetime = 43200
+ Login PHPMyAdmin with NO PASSWORD:
- Đổi mật khẩu MySQL thành null (No Password)
service mysql stop
mysqld_safe --skip-grant-tables &
mysql -u root

mysql> use mysql;
mysql> update user set password=PASSWORD("YOUR-NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit

service mysql stop
service mysql start
mysql -u root -p
- Mở tệp: /etc/phpmyadmin/config.inc.php tìm dòng // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE; bỏ 2 dấu // đi

+ Bỏ hiển thị trang đăng nhập khi vào PHPMyAdmin:
- Mở tệp: /etc/phpmyadmin/config.inc.php
- Tìm dòng: $cfg['Servers'][$i]['auth_type'] = 'cookie';
- Thay bằng:
$cfg['Servers'][$i]['auth_type'] = 'config'; //Default is cookie
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['nopassword'] = true; //Default is false
$cfg['Servers'][$i]['AllowNoPassword'] = true; //Default is false
+ Lỗi Mcrypt không chạy:
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart

37. Global menu cho Netbeans:
+ Trong netbeans: Vào menu Tools -> Plugins
+ Nhấp vào tab Setting, thêm 1 Update.
+ Gõ Name: Java Ayatana
+ Thêm URL: http://java-swing-ayatana.googlecode...ns-catalog.xml
+ Vào tab Available Plugins tab chọn Update Newest.
+ Tìm và cài đặt Java Ayatana
+ Khởi động lại Netbeans là xong.
38. Chuyển thành giao diện Java Meta cho netbean:
+ Mở tệp: /home/linux/netbeans-7.3.1/etc/netbeans.conf
+ Thay phần netbeans_default_options thành dòng dưới:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:permSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal"
39. Chình định dạng ngày trên Panel Ubuntu: 
gsettings set com.canonical.indicator.datetime time-format custom && gsettings set com.canonical.indicator.datetime custom-time-format '%a %d/%m/%y, %H:%M'

40. Remove 1 repository:
sudo add-apt-repository --remove ppa:eek:ndrej/php5

41. Cài đặt Xtreme Download Manager:
sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install xdman
---------------------------------
Addon bắt link cho Firefox:
Cài đặt file này từ trình duyệt: http://localhost:9614/xdmff.xpi
Addon bắt link cho Chrome:
Go to System Settings > Network > Network Proxy > Select Automatic in Method and paste http://localhost:9614/proxy.pac

42. Cài đặt Eclipse mới nhất.
+ Tải về từ trang chủ eclipse.
+ Giải nén và move vào /opt/: sudo mv eclipse /opt/
+ Tạo file .desktop: sudo gedit /usr/share/applications/eclipse.desktop sau đó dán đoạn sau vào:
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse.desktop

+ Create a symlink in /usr/local/bin using:
cd /usr/local/bin
sudo ln -s /opt/eclipse/eclipse
+ Chạy eclipse: /opt/eclipse/eclipse -clean &
* Nếu lỗi Permision thì:
Exec=/opt/eclipse/eclipse
sudo ln -s /opt/eclipse/eclipse
sudo chmod +x /opt/eclipse/eclipse
+ Copy file thực thi ra desktop:
cp /usr/share/applications/eclipse.desktop /home/linux/Desktop
Sau đó kích chuột phải chọn Properties và nhấp vào Allow executing...
+ Lỗi: Faild libGL.so: sudo apt-get install libgl1-mesa-dev
+ Sửa thanh toolbar nhỏ lại:
- Mở tệp: gedit ~/.gtkrc-2.0
- Dán đoạn sau vào:
style "compact-toolbar"{
GtkToolbar::internal-padding = 0
xthickness = 1
ythickness = 1
}

style "compact-button"{
xthickness = 0
ythickness = 0
}

class "GtkToolbar" 
style "compact-toolbar"
widget_class "*<GtkToolbar>*<GtkButton>" 
style "compact-button"

43. Cài đặt geany:
sudo add-apt-repository ppa:geany-dev/ppa
sudo apt-get update && sudo apt-get install geany

Cài đặt plugin: 
sudo apt-get install geany-plugin-{pluginname}
Xem danh sách plugin: apt-cache search geany

44. Cài đặt gtk+ library dev c++:
sudo apt-get install libgtk-3-dev

45. Cài đặt Teamviewer trên ubuntu 13.10 64bit:
sudo dpkg --add-architecture i386
sudo apt-get update

Hoặc:
sudo apt-get install libc6:i386 libgcc1:i386 libasound2:i386 libfreetype6:i386 zlib1g:i386 libsm6:i386 libxdamage1:i386 libxext6:i386 libxfixes3:i386 libxrender1:i386 libxtst6:i386

46. Lệnh quickly design lỗi không mở được designer:
sudo add-apt-repository ppa:jfi/test
sudo apt-get update && sudo apt-get dist-upgrade 

47. Lỗi luôn hiển thị file & folder ẩn:
dconf-editor
Enter and then:
org->gtk->settings->file-chooser
uncheck show-hidden

48. Cài đặt Wine 1.7
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get install wine1.7

49. Cài đặt QTCreator để lập trình gui với C++:
- Cài đặt trình biên dịch tệp thực thi cho Windows trên Linux:
+ git clone https://github.com/mxe/mxe.git
+ cd mxe && make qt
+ Nếu báo lỗi bison thì:
sudo apt-get install autoconf automake bash bison bzip2 cmake flex gettext \
git g++ intltool libffi-dev libtool libltdl-dev \
libssl-dev libxml-parser-perl make openssl patch perl \
pkg-config scons sed unzip wget xz-utils

(On 64-bit Debian, install also: sudo apt-get install g++-multilib libc6-dev-i386)

+ Trong thư mục ứng dụng C++:
* export PATH=/home/linux/mxe/usr/bin:$PATH
* /home/linux/mxe/usr/i686-pc-mingw32/qt/bin/qmake && make
* sẽ được file thực thi *.exe trong thư mục release.

50. Remove all file installed:
sudo find / -iregex ".*jdownloader.*" -exec rm -R '{}' \;

51. Cài đặt phần mềm xem thông tin hệ thống (giống CPU-Z):
sudo add-apt-repository ppa:nemh/gambas3
sudo add-apt-repository ppa:i-nex-development-team/stable
sudo apt-get update
sudo apt-get install i-nex

Chạy lệnh i-nex và xem

Giải pháp truy cập Facebook khi bị nhà mạng chặn (updated 14/5/2016)

Theo như 500 anh em trên Twitter report thì VN đã chặn Facebook toàn diện trên tất cả các mạng Viettel, VNPT, FPT... Bà con nên xài VP...