Skip navigation.

Lu cát

Action, Correction, Perfection !

Posts tagged with "ubuntu"

Wubi fun ...

,

Well, my pc located in my company has no CD/DVD drive and it runs a pirate Windows XP. Last week, a virus called Fujackls has attacked our company network and we can not access Windows sharing folders on the network, it automatically deleted all .exe, .gho …files in some folders. Then the IT manager was showing his teeth by laughing and said “Everything was under-controlled”. So i decide to use Linux, but no CD. So i found wubi, an awesome program use Grub4Dos to automatically install Ubuntu on an Windows box. So I downloaded the Ubuntu-alternate ISO then made an installation. Everything’s fine except one box is down (’cause i forgot the iso is on the data partition and i formatted that partition).

Well, it’s time for fun …. :wink:


Free Ubuntu CD give-away at M$ L.O.V.E show fair

,

So what L.O.V.E is ?

L = Launch of
O = Office
V = Vista
E = Exchange

Ubuntu @ M$ showfair

More detail http://vnoss.net/00f8vQ

Thnks for graffiti - b1ngb00ng and all VNOSS squad :smile: !





funny pictures - another CPU benchmark way :D

,

fuck_passwkh

Happy Vista release ... Beryl enjoy !

, ,


Nhân dịp chào mừng Vista release, mình quyết định dứt bỏ cái card ATI radeon cùi(thật ra là SiS PCI 4MB ..lol vì caí kia đã quy tiên) thay bằng 1 em Nvidia GeForce2 MX/MX 400 cũng cùi ko kém :D, được cái 3D support đủ để vẽ rồng rắn P:.
Việc config tương đôí dễ dàng thông qua goí nvidia-glx(-legacy)card này bị cho vào nhóm legacy...lol.
Việc khắc phục lôĩ không có Window deco hay bar cần thêm vào một đoạn trong xorg.conf
    Option "TripleBuffer" "true"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Option "backingstore" "true"
    Option "AddARGBGLXVisuals" "True"
    Option "DRI" "true"

Done !
Việc nữa là emerald có theme Vista-Q trông y chang Vista thật P:


Gimmie gimmie gimmie ....

, ,

gimmie.jpg

Nghe như ABBA sống dậy :D

Blogged with Flock

Dapper --> Edgy --> Feisty

,



Vật vã vì cái mạng cùi nhưng cũng ráng lết dist-upgrade, theo thông tin nội bộ từ #ubuntu thì feisty "có vẻ" chạy khá ổn định nên làm liều thử một phen, và chắc chắn mình sẽ không hối hận về quyết định này. Từ Edgy > Feisty thay đổi khá nhiều, có vẻ như bạn sẽ phải configure mệt mỏi hơn khi upgrade. Xài kernel mới toanh 2.6.20-5 luôn, do đó udev có vấn đề gì đó ...nhưng nói chung là không ảnh hưởng lắm đến hoà bình thế giới. Tất cả các gói đều ở tình trạng tươi mới, kể sơ sơ như: gnome : 2.17.90, ngày compile là 23/1/2007, rhythmbox 0.9.7, gaim 2.0.0beta6, GTK+ 2.7.10. Nhiều tính năng mới được thêm vào, hỗ trợ ảo hoá KVM, xử lý RAID tốt hơn, debconf có dialog support ...
Đánh giá sơ bộ, hệ thống boot nhanh hơn Edgy, chạy mượt hơn Edgy và tính tới thời điểm này, chỉ có một vài lỗi về phần dist-upgrade được submit, trong quá trình sử dụng chưa gặp lỗi nào đáng kể- hy vọng thế :smile:

swap với swapfile

, ,

Slackware does not work with swap partition from Ubuntu, found a usefull tip for swap.

At a shell prompt as root, type the following command with count being equal to the desired block size:
$dd if=/dev/zero of=/swapfile bs=1024 count=65536


Setup the swap file with the command:
$mkswap /swapfile


To enable the swap file immediately but not automatically at boot time:

$swapon /swapfile


To enable it at boot time, edit /etc/fstab to include:
/swapfile               swap                    swap    defaults        0 0

The next time the system boots, it will enable the new swap file.

After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat /proc/swaps or free.

From src

Updated : You can use swap file and swap partition AT THE SAME TIME, swap total storage is swap file storage plus swap partition storage :smile:. That's a good solution :smile:)

Edgy fstab

, ,

Edgy đã đổi qua xài UUID thay vì từng partition như trước kia...lý do thì có vẻ nghiêng về phần hỗ trợ SCSI dễ hơn, mỗi khi tháo lắp không phải thay đổi nhãn của hệ thống file, hệ thống "cứng cáp" hơn. :rolleyes:
Để thay đổi fstab trong Edgy thì phải biết UUID của partition đó, ko còn cách nào khác :
sudo vol_id -u /dev/hdxx

....
Phiền phức quá
:cry:

System tweak

, ,

Comp chạy ì ạch như máy cày...phải bắt tay dọn dẹp lại hệ thống, tối ưu RAM (cố gắng <=200M), tắt hết các ứng dụng không cần thiết, chọn các ứng dụng tốn ít RAM nhất.

  • Cái đầu tiên
: Không chơi với Gnome nữa, KDE lại càng không, fvmw-crytal cũng nhẹ nhưng ...khó customize. Pekwm là ứng cử viên sáng giá.
  • Terminal
: Từ giã em gnome-terminal trong trẻo vì ngốn ...RAM quá, thay vào đó là xterm với screen, gọn nhẹ, rẻ tiền.

  • Trình duyệt :
epiphany và opera có thể thay thế firefox, nếu firefox thì tắt cache mem.
  • Chat chit :
centericq có thể thay thế gaim, cũng có thể irc, nhưng irssi hoặc bitchx ...quá hay, dù sao cũng ko đáng kể.
  • Office
: OOo tuy nặng nhưng ...ko còn cách nào khác, edit thì vẫn phải dùng, nếu chỉ đọc thì abiword là quá đủ.
  • PDF
: Evince hay xpdf tuy nhẹ nhưng acroread là sự lựa chọn ....duy nhất.
  • Nhạc nhẽo
: Tạm chấp nhận cmus, lâu lâu mở xmms để update last.fm
  • Monitor
: Chắc phải tắt gkrellm, mở htop lên coi đỡ
  • Editors
: Vim and vim ...only :D
  • Cái ...volume
: Xài alsamixer vẫn ngon chán.

Tắt hết ...giết hết và cuối cùng <=200 MB thiệt, vẫn chạy ngon chán.
Cuối cùng đi dùng preload và prelink.


Các công cụ:
sysv-rc-conf: tắt các service auto start.
(h)top : theo dõi các thông số hệ thống

There are differences between boot sector and its backup

,

Errors when checking system disk, it would slow down your boot process


dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup ...
.....
Not automatically fixing this.


Use it to fix :smile:
sudo dosfsck -ar /dev/hda1


Choose 1 !

Fortune pack :)

,

if (bạn đã biết fortune) thì vui lòng nhấn "Đọc tiếp" (Read more )
else
plz ask Mr Larry Page
:D

Read more...

Ubuntu Edy downloading ....

,

lukas@bullshit:/mnt/storage$ wget -c http://releases.ubuntu.com/edgy/ubuntu-6.10-alternate-i386.iso
--23:13:48--  http://releases.ubuntu.com/edgy/ubuntu-6.10-alternate-i386.iso
           => `ubuntu-6.10-alternate-i386.iso'
Đang tìm releases.ubuntu.com... 85.133.25.81, 85.133.25.82, 85.133.25.83, ...
Đang kết nối tới releases.ubuntu.com[85.133.25.81]:80... đã kết nối.
HTTP yêu cầu đã gửi, đang đợi câu trả lời... 206 Partial Content
Dài: 730.931.200 (697M), còn lại 99.508.793 (95M) [application/x-iso9660-image]

87% [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>           ] 636.158.464   --.--K/s ETA 11:34:52
lukas@bullshit:/mnt/storage$ wget -c http://releases.ubuntu.com/edgy/ubuntu-6.10-alternate-i386.iso
--23:48:41--  http://releases.ubuntu.com/edgy/ubuntu-6.10-alternate-i386.iso
           => `ubuntu-6.10-alternate-i386.iso'
Đang tìm releases.ubuntu.com... 85.133.25.80, 85.133.25.81, 85.133.25.82, ...
Đang kết nối tới releases.ubuntu.com[85.133.25.80]:80... đã kết nối.
HTTP yêu cầu đã gửi, đang đợi câu trả lời... 206 Partial Content
Dài: 730.931.200 (697M), còn lại 94.772.736 (90M) [application/x-iso9660-image]

88% [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>          ] 649.326.878    5.24K/s  ETA 3:06:57
lukas@bullshit:/mnt/storage$ wget -c http://releases.ubuntu.com/edgy/ubuntu-6.10-alternate-i386.iso
--00:18:59--  http://releases.ubuntu.com/edgy/ubuntu-6.10-alternate-i386.iso
           => `ubuntu-6.10-alternate-i386.iso'
Đang tìm releases.ubuntu.com... 85.133.25.82, 85.133.25.83, 85.133.25.25, ...
Đang kết nối tới releases.ubuntu.com[85.133.25.82]:80... đã kết nối.
HTTP yêu cầu đã gửi, đang đợi câu trả lời... 206 Partial Content
Dài: 730.931.200 (697M), còn lại 81.600.002 (78M) [application/x-iso9660-image]

89% [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>         ] 652.806.464   48.58K/s    ETA 27:55


Với những host có partial thì cái nào chậm cứ Ctlr + C rồi connect lại có khi nhanh hơn ... đúng là đồ hot có khác, bà con hiếp server ác. Releases.Ubuntu có 3 server + mirrors nữa mà vẫn lag kinh. Congrats Ubuntu.

Why is the default desktop in Ubuntu BROWN?

,


Mark Shuttleworth has told us the reason, here


The overarching theme of the first set of Ubuntu releases is "Humanity". This drives our choice of artwork as much as our selection of packages and decisions around the installer. Our default theme in the first four releases of Ubuntu is called "Human", and it emphasises warm, human colours - brown.

Yes, that's rather unusual in a world where most desktops are blue or green, and the MacOSX has gone kitchenware. Partly, we like the fact that Ubuntu is different, warmer. The computer is not a device any more, it's an extension of your mind, your gateway to other people (by email, voip, irc, and over the web). We wanted a feel that was unique, striking, comforting, and above all, human. We chose brown. that's quite a high risk choice, because to render brown your screen has to render subtle shades of blue, and green, and red. Even slight variations from the norm can shift the "brown" substantially. But monitors and LCD screens these days are increasingly of a standard that we felt the risk was acceptable. In Hoary and Breezy we have gone with a richer, redder brown, based on feedback from lower-end laptop and LCD screen users.



He has his own reason but it's resonable, isn't it ? :smile:

Ubuntu - how to generate a list of installed packages and use it to reinstall packages !

,

Mới đọc xong một tip rất hay trên Artgeeks


First, let’s make the list. You’ll be doing all of this in a Terminal Session:
dpkg --get-selections | grep -v deinstall > ubuntu-files


Now you’ve got a list of all of your installed debs in a fairly small file. In my case, I simply moved this file to a thumb-drive. You could also store it on a seperate partition or on a disk somewhere. Heck, it’s not that big, email it to your gmail account.

So now you’ve got this list and all is well, until you’re Ubuntu install either dies or has to be reinstalled for some reason. Go ahead and do the base install.

Once you’ve got Ubuntu back up and running, copy your ubuntu-files back into your home directory and do the following:
sudo apt-get update

sudo apt-get dist-upgrade

dpkg --set-selections < ubuntu-files


Now you’ve told your system what it needs to install, so let’s install it all.
sudo dselect

This will open up a dselect session. Type ‘I‘ and allow dselect to install of the the packages listed in your ubuntu-files document. When it’s finished, type ‘Q‘ and hit the ENTER key to exit dselect.

Now you’re a lot closer to where you were before.

geek out.

EDIT: As fak3r points out, you can modify the fist dpkg command line to have it mail yourself the list after creatoin. Like so:
dpkg --get-selections | grep -v deinstall > ubuntu-files; cat ubuntu-files | mailx -s “ubuntu-files” my.mail@my.address


Quá đã =p~

Tomcat5 on Ubuntu

, , ,


I've found a very usefull article
Note for back-up in case the host would be died .....


So, for the basic install use the following command.

sudo apt-get install apache2 tomcat5 sun-java5-jdk

If you want a shiny Tomcat welcome page when we finally get that far then install the example apps by adding tomcat5-webapps to the end of the last command. For the Tomcat admin web interface add tomcat5-admin, too.

My final command looks like this.

sudo apt-get install apache2 tomcat5 sun-java5-jdk tomcat5-webapps tomcat5-admin

By default Ubuntu uses a free Java implementation. We now need to tell Ubuntu that we want to use Sun Java as the default. Run the following command.

sudo update-alternatives --config java

Then enter the number of the version of Java you want from the list when prompted. The one I wanted was /usr/lib/jvm/java-1.5.0-sun/jre/bin/java.

Now we need to tell Tomcat where the jdk is. Open /etc/default/tomcat5 and change the variable JAVA_HOME to read…

JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/

Make sure it’s NOT got a “#” at the start of the line. You can should now be able to start Tomcat5 with…

sudo /etc/init.d/tomcat5 start

Tomcat is listening on port 8180. So open up firefox and enter http://localhost:8180 in the address bar. Once the page loads you should see either a tomcat welcome page or, if you chose not to install the examples and admin packages, a fairly empty page with “Apache Tomcat/5.0″ at the bottom left. Congrats, you just installed a working Tomcat service. If you don’t see one of these pages, either you or I screwed up. :wink:

If you installed them, the example apps can be found in “/usr/share/tomcat5/webapps/“. Also take a look at the configuration files in “/etc/tomcat5/“.

Hope that was helpful.

Update: Manolo Canga added a section in his Spanish translation of this tutorial that I’ve translated into English below.

Setting up an admin user

If you try to use the admin interface you’ll find you can’t because no admin user has been set up. To resolve that go into /var/lib/tomcat5/conf and edit tomcat-users.xml. You’ll see that 3 users have been created by default. We’re going to change the password of the user “tomcat” (<user username="tomcat" ) to something better than the default of “tomcat”. Duh!? Now we are going to give the user “tomcat” admin access. Add “admin” to the user tag’s roles attribute. It should look smilar to this.

<user username="tomcat" password="your_password" roles="tomcat,admin"/>

Now restart tomcat…

sudo /etc/init.d/tomcat5 restart

…and you’re done!

December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31