Moriator – I can do it!

Linux dễ dàng hơn bạn nghĩ!

Sử dụng Ctrl + Alt + Backspace trong Ubuntu 9.04

Đăng bởi moriator on Tháng Năm 25, 2009

Ai dùng Ubuntu cũng biết rằng phím tắt Ctrl + Alt + Backspace dùng để khởi động lại X Window rất tiện lợi. Không hiểu vì lý do gì Ubuntu Jaunty 9.04 lại tắt phím tắt này, lỡ đến khi X Window bị crash thì vò đầu bứt trán! Sau đây là 1 số cách khôi phục lại Ctrl + Alt + Backspace, từ… rắc rối nhất đến nhanh nhất!

Cách 1: Cài đặt gói “dontzap”

$ sudo apt-get install dontzap

và sử dụng

$ sudo dontzap --disable

để sử dụng Ctrl + Alt + Backspace như các phiên bản Ubuntu khác, hoặc

$sudo dontzap --enable

để tắt phím tắt Ctrl + Alt + Backspace

Cách 2: (chưa test) sửa file xorg.conf. Bạn mở xorg.conf rồi thêm những dòng phía dưới

$ sudo gedit /etc/X11/xorg.conf

Section “ServerFlags”
Option “DontZap” “false”
EndSection

Cách 3: dùng phím tắt Right Alt + PrintScreen + k

(Theo UbuntuGeek)

Đăng trong Linux, Linux Tutorial, Ubuntu | 4 phản hồi »

Nâng cấp OpenOffice 3.1 trong Ubuntu 9.04

Đăng bởi moriator on Tháng Năm 10, 2009

Hướng dẫn chi tiết tại đây:http://news.softpedia.com/news/How-to-Install-OpenOffice-org-3-1-on-Ubuntu-9-04-111105.shtml

Nhưng không biết vì lý do gì đến bước click chọn Partial Upgrade thì máy mình bị báo lỗi. Nếu bạn cũng rơi vào trường hợp vậy thì sau khi đã cập nhật repository với key rồi hãy theo cách sau.

Mở Terminal, gõ vào

$ sudo apt-get remove openoffice.org*

Câu lệnh này sẽ gõ toàn bộ những gói OpenOffce ra khỏi máy bạn. Sau khi gỡ xong, bạn vào Applications -> Add/Remove…, tìm với từ khóa OpenOffice và cài đặt bình thường.

Bản OpenOffice 3.1 có 1 chút “bóng bẩy” về giao diện, nhưng nhìn chung là vẫn không khác xưa. Điều tôi hài lòng nhất là Presentation đã sửa lỗi phím tắt cực kì đáng ghét. Mà lạ là sao Splash vẫn là 3.0, quên sửa chăng?

Một số thay đổi của OpenOffice 3.1:

http://www.openoffice.org/dev_docs/features/3.1/

http://www.oooninja.com/2009/01/openofficeorg-31-new-features.html

Đăng trong FLOSS, Ubuntu | 2 phản hồi »

Tìm kiếm trong Ubuntu

Đăng bởi moriator on Tháng Tư 26, 2009

Sự cố Deskbar trong Ubuntu Jaunty 9.04 đã khiến tôi mất chút thời gian để giải quyết. Đây là 1 bài hướng dẫn để bạn có thể thực hiện những tác vụ tìm kiếm trong Ubuntu.

Trước hết, chúng ta cần cài Tracker Search Tool. Đây là 1 ứng dụng rất mạnh dùng để đánh Index tất cả file trong máy, phục vụ cho việc tìm kiếm. Beagle cũng là 1 ứng dụng tương tự, nhưng không tốt bằng Tracker. Để cài đặt, bạn vào Synaptic và tìm gói tracker-search-tool.

Sau khi cài đặt, bạn vào System -> Preferences -> Search and Indexing, đánh dấu Enable indexing (tôi không hiểu tại sao cần phải có lựa chọn này, vì nếu không tạo Index thì làm sao mà search).

indexing1

Trong tab Files, bạn có thể thêm một số đường dẫn khác ngoài /home

indexing2

Trong tab Performance, bạn có thể cấu hình Tracker cho phù hợp với máy tính bạn.

Sau đó nhấp Apply. Tracker cần restart lại. Bạn sẽ thấy 1 biểu tượng trên thanh panel cho biết Tracker đang hoạt động, đến khi Tracker hiện “Tracker: Idle” thì quá trình đánh dấu đã xong (khoảng 5- 10 phút tùy vào cấu hình máy). Do tôi cho nó ẩn từ thời Ubuntu 8.10, cũng không biết làm sao cho nó hiện lại (ngoại trừ vô /home mà xóa thiết lập) nên không chụp screenshot, nhưng cũng không quan trọng, miễn nó hoạt động là được.

Bạn vô Applications -> Accessories -> Tracker Search Tools và vui vẻ với nó. Tracker sẽ lục tung máy bạn để tìm bất cứ thứ gì liên quan đến từ khóa (nhìn cột Categories mà phát sướng :P )

tracker

Nhưng như thế vẫn chưa phải “tuyệt đỉnh Kungfu”. Hãy sử dụng thêm Deskbar để việc tìm kiếm thực sự là 1 niềm vui :P Không hiểu sao Ubuntu 9.04 lại không đưa Deskbar vào mặc định. Nhưng không sao, ta có thể cài nó qua Synaptic với từ khóa deskbar-applet, và tổng hợp sức mạnh với Tracker với libdeskbar-tracker.

Sau khi cài đặt các gói trên, bạn nhấn chuột phải vào thanh Panel -> Add to Panel… và chọn Deskbar. Chuột phải vào Deskbar -> Preferences chọn Tracker Search hoặc Tracker Search Live (Tracker Search thì Tracker hoạt động sau khi bạn chọn – Tracker Search Live thì Tracker sẽ làm việc ngay trong lúc bạn gõ từ khóa, nhưng sẽ làm bạn khó thở bởi một núi kết quả! :P )

Hãy lướt qua 1 chút trong Deskbar Preferences, bạn sẽ thấy Deskbar mạnh như thế nào. Bạn có thể gõ vào 2 + 4 và nhìn thấy kết quả là 6, copy số 6 vào trong clipboard trong vòng nháy mắt nhờ Calculator! Nếu bạn đã biết Spotlight của MacOS, thì Deskbar thậm chí còn mạnh hơn nhiều (tôi không dùng Windows nên không biết Windows có cái nào “chiến” như vậy không). Phím tắt của Deskbar là Alt + F3.

deskbar

Thật là khó sống vui vẻ nếu thiếu Tracker và Deskbar. Enjoy them! :D

Chúc vui! :)

Đăng trong Linux, Linux Tutorial | Tagged: , , , , , | 10 phản hồi »

Offline Ubuntu-vn miền Nam :D

Đăng bởi moriator on Tháng Tư 26, 2009

Cộng đồng Ubuntu-vn miền Nam đã có 1 buổi offline hoành tráng và ấm cúng tại quán Bud’s :D

Chủ yếu là anh em gặp mặt nhau (trước giờ toàn biết nick), chia sẻ kinh nghiệm và bàn về 1 số dự án phát triển Ubuntu-vn và OpenOffice. :) Sau này hi vọng sẽ có những chủ đề chuyên sâu hơn.

Cuối giờ tậu được cái áo Ubuntu-vn. Tuy hơi xấu nhưng tình cảm là chính. Hi vọng lần sau sẽ làm đẹp hơn, đi khoe hàng với tụi Microsoft chớ :D

Cập nhật ảnh từ kho ảnh của đồng chí “siêu còi” (superthin) :D

Thầy ikukumalu

Siêu còi :D

Đăng trong Uncategorized | 1 Comment »

Ubuntu Jaunty Jackalope 9.04

Đăng bởi moriator on Tháng Tư 23, 2009

Đã có bản Release tại http://mirror-fpt-telecom.fpt.net/ubuntu-releases/jaunty/

Do 1 số sự cố nên đến bây giờ mới có thể thử được nàng Jaunty. Ấn tượng đầu tiên là tốc độ boot nhanh hơn (và hình như ngốn RAM nhiều hơn), đẹp hơn. Màn hình đăng nhập được bóng bẩy hơn, cả những Notification cũng được chỉnh lại dễ chịu hơn nhiều. Có thể thấy Jaunty được trau chuốt giao diện khá kĩ, chắc Canonical quyết tâm “đú” cùng Windows 7 :D .

Việc mà tôi luôn làm đầu tiên sau mỗi lần cài đặt Ubuntu là chọn server Việt Nam. Lúc trước tôi phải vào /etc/apt/sources.list để copy repository của FPT vào, nhưng bây giờ thì nó đã được Ubuntu cho vào list. Bạn chọn System -> Administration -> Software Sources. Download from bạn chọn Other… -> Viet Nam -> mirror-fpt-telecom.fpt.net.

repository

Pidgin 2.5.5 đã có Notification pop-up, nhưng vẫn còn thiếu chức năng send msg cho nhiều người cùng lúc. Bạn có thể cài thêm plugin để thực hiện chức năng đó ở đây http://www.box.net/shared/6xk9btyckw.

Firefox vẫn là phiên bản 3.0.9, nhưng chạy có vẻ là nhanh hơn (vô trang nhiều flash vẫn giật). Khi cài đặt xong tôi bị 1 vấn đề là Firefox cứ liên tục đòi restart dù tôi restart cả chục lần. Bạn vào Tools -> Add-ons và disable cái Ubuntu Firefox Modifications. Lần này tôi quyết tâm tiết kiệm diện tích nên đã dọn dẹp Firefox ra thế này :D

screenshot-1

Nếu ai không cài được flash thì tự cài ở đây http://get.adobe.com…for_Linux_(.deb)

SCIM-Unikey gõ tiếng việt rất tốt, download và cài đặt ở đây http://www.box.net/shared/iuhmpj6yj8

OpenOffice 3.0 khởi động nhanh hơn.

Add/Remove… search với từ khóa gstream, cài hết về nghe nhạc thả phanh :D

Cài gói nautilus-open-terminal để đưa Terminal vào menu của Nautilus, cách này cực kì tiện lợi, không có không thể thoải mái được :D

$ sudo apt-get install nautilus-open-terminal

nautilus-open-terminal

Avant Window Navigator có sẵn trong Add/Remove… Tôi đã thử qua Cairo-dock (cũng trong Add/Remove…), nhưng không thích vì nó màu mè quá. AWN gọn nhẹ và quen tay hơn.

Điều làm tôi thất vọng ở Jaunty là không đưa Applet Deskbar quen thuộc vào mặc định, nhưng mọi thứ đã được giải quyết trong hướng dẫn Tìm kiếm trong Ubuntu.

Vẫn chưa cảm nhận được sự khác biệt của GNOME 2.26 so với GNOME 2.24.

Đăng trong Linux, Ubuntu | Tagged: | 2 phản hồi »

Sửa lỗi GPG error

Đăng bởi moriator on Tháng Ba 25, 2009

Đôi khi, khi bạn add vào /etc/apt/souces.list vài repository thì có thể gặp lỗi như thế này:

W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 60D11217247D1CFF
W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 4874D3686E80C6B7

Lỗi trên xuất hiện khi tôi update OpenOffice từ 2.4 lên 3.0. Các khắc phục rất đơn giản. Bạn vào Terminal gõ 2 dòng lệnh sau:

$ gpg --keyserver keyserver.ubuntu.com --recv-keys $KEY
$ gpg --export --armor $KEY | sudo apt-key add -

Trong đó, $KEY là giá trị của khóa bị thiếu (ví dụ ở trên, tôi thiếu 2 khóa 60D11217247D1CFF và 4874D3686E80C6B7).

Sau đó chạy lệnh

$ sudo apt-get update

là xong!

Chúc vui! :)

Đăng trong Linux, Linux Tutorial | 5 phản hồi »

Nghe nhạc với Banshee

Đăng bởi moriator on Tháng Hai 25, 2009

Banshee là 1 phần mềm quản lý nhạc khá tốt, không thua kém gì so với Songbird hay Amarok. Các bạn download tại http://banshee-project.org/

Một điểm rất hay của Banshee là kết hợp với last.fm, một website âm nhạc lớn trên thế giới.

Banshee có Equalizer, nhưng không có sẵn mấy preset như Winamp. Để thêm preset của Winamp cho Banshee, ta làm như sau:

Download presets:

wget http://www.mikesplanet.net/files/equalizers.xml.gz

Cài đặt:

gunzip -c equalizers.xml.gz > ~/.config/banshee-1/equalizers.xml

Mở Banshee -> View -> Equalizer để thấy sự khác biệt. :D

Đăng trong Linux, Thủ thuật máy tính | Tagged: , | Leave a Comment »

Youtube và Totem

Đăng bởi moriator on Tháng Mười Hai 9, 2008

Xài Ubuntu 8.10 hơn cả tháng mới biết Totem 2.24.3 đã kết hợp được với Youtube. Trời ạ, một người ghiền Youtube như tôi thì điều này còn gì vui bằng :D

Totem tích hợp sẵn 2 chức năng cơ bản quan trọng là Search với Related Videos. Còn rate, comment thì phải vô trang chủ.

Cách thêm hiệu ứng tuyết rơi:

Giáng sinh sắp tới rồi! ^^ Hãy cho những bông tuyết rơi trong blog bằng Snow Effect ^^

- Bạn vô trang Dashboard -> Appearance (phía dưới một chút) -> Extras

- Đánh dấu chọn Show falling snow on my blog. (Only until January 4th 2009.)

- Tận hưởng không khí Giánh sinh ngay trong blog của mình ^^

Chúc vui! :)

Đăng trong FLOSS, Thủ thuật máy tính | Tagged: | 3 phản hồi »

Đặt label cho phân vùng trên Linux

Đăng bởi moriator on Tháng Mười Hai 5, 2008

Việc đặt label cho phân vùng có ưu điểm giúp ta phân loại và nhận biết dễ dàng hơn. Bản thân tôi trước khi đặt lại label cứ nhầm mãi giữa 2 phân vùng cùng label 60.0GiB Media. Trên Windows, bạn đơn giản là chỉ chọn phân vùng, nhấn F2 và đổi tên. Trên Linux thì phức tạp hơn chút. Ở đây tôi sử dụng Ubuntu 8.10 Intrepid.

Hướng dẫn thực hiện được viết đầy đủ tại đây: https://help.ubuntu.com/community/RenameUSBDrive

Chú ý: Hướng dẫn viết rằng bạn phải umount partiton thì mới có thể đặt label, nhưng nếu bạn không thể umount thì vẫn cứ làm bình thường. Việc đổi label sẽ có tác dụng sau khi khởi động lại máy.

Chúc vui! :)

Đăng trong Linux, Linux Tutorial | Tagged: , | Leave a Comment »

Why I prefer Linux

Đăng bởi moriator on Tháng Mười Một 13, 2008

Linux is one of three most popular Operating Systems (OS) and it is developing rapidly today. Not only in the world but also in Vietnam, more and more people use Linux as the main OS for their computers.

I have used Ubuntu (a well-known Linux distro) for more than 1 year, and I am completely satisfied with whatever it brings. Unlike what lots of people think, Linux is very friendly and easy to use. Here are some main reasons why I love Linux.

1/ Virus and other malicious things

If you own a computer with Windows Operating System (OS), then what you have to face every day, besides your work, are viruses, trojans, spywares, adwares and other malicious things. Therefore, what you want besides the OSare firewall, anti-virus software, anti-trojan software and some other things like that to prevent all that you don’t want to appear in your computer. In addition, you may need to pray every day that all of those work effectively!

But if your computer is installed with Linux, then your box will bealmost immune to the toxics above. I use the word “almost immune”, because in fact, there are some viruses for Linux. However, more than one year from the day I installed Linux on my laptop, I still haven’t found any virus (of course, I don’t use any anti-virus program). Moreover, from some Linux users’ forums, I still have not found any complaint about virus problem.

You may say that Linux’s market is too small and it could not attract hackers. But in reality it is not so. Best hackers around the world areprofessional specialists on Linux/Unix system and they usually use these OSs to carry out attacks. As you have seen, the majority of servers in the world, especially in huge organizations such as banks, stock markets, government, Google, etc are operating on Linux. Clearly, attacks on servers will be more interesting than on your small PCs, right?

Furthermore, Linux is also more secured by its “open” and “freedom” features. Security holes will be quickly detected by thousands of programmers and millions of Linux users worldwide, who are given permission to examine theOS and see what is happening inside. By knowing exactlythecode lines from which the holes derived, the patches will be distributed immediately, even just a few minutes after the holes are detected.

Another important point is that Linux users are recommended not to use root account if not necessary. Therefore, you will not be able to modifythe system if you do not have administrator or super-user account. This has prevented virus from penetrating and destroying your system.

2/ Freedom!

Linux and Open source softwares are free. Their license is a “free license”. Therefore, the software license fee on a computer using Linux OS is nearly equals to zero.

Within Linux, you have the ability to know what running inside your box and how it works. Moreover, you can also customize and adjust your system according to your interests. Naturally, you can not do this to Windows and other close-source softwares.

One more benefit of free software is that you do not have to depend on a certain company. For example, what are you going to do when Microsoft stops selling Windows XP? You really love Windows XP, but you can not buy it any more, and the only way you can do is complying with Microsoft: upgrade to Windows Vista. But with Free software, if a particular project or support company stops working, the community can access the source code of the program and continue developing it. If that software is very important to you, you can also self-support yourself. If errors appear, you can submit them to everyone, talk to developers, or fix it by yourself (of course, you can hire somebody to do so), and send the patch to everyone.

In conclusion, you are free to do (nearly) whatever you want with the software.

3/ Programming

Linux gives excellent support for programming. Most of languages can work on Linux, even C# or Visual Basic from Microsoft. You can use the best IDE support for programming, or more simply, only use an editor and compiler (I prefer to use the second way with short codes because it’s very fast and convenient).

Using Code::Block to code C/C++ program…

… or only use two command: one for compilation and another for execution.

Due to the openness of Linux OS, you can reach up to system programming, understand how to compile, link and execute a program. Furthermore, you have the ability to understand how the kernel works. Therefore, you can participate in the developments of free and open source softwares, or even join in a Linux development group.

4/ Appearance

The old angle thinks that Linux is associated with CLI (Command Line Interface) is no longer true. In a few years, Linux has changed extremely fast on appearance. Today, it is not a “product” for experts any more, but has become a lot closer to common users.

Some Ubuntu interfaces.

By separating interface from kernel, Linux has a flexibility in modifying and customizing appearance. There are many interface management programs on Linux such as Gnome, KDE, Xcfe,… which are suitable for you. Moreover, each Linux distro has its own interface, and users can customize theirself. Therefore, computers installed with Linux rarely have completely similar appearances.

Đăng trong Linux, Nhận định | 3 phản hồi »