Mr.Đức Weblog

Archive for July 2008

Tăng thêm dung lượng đĩa ảo của Wubi

Posted by: mrduc on: July 14, 2008

Để tăng thêm dung lương đĩa ảo khi dụng Wubi bạn sử dụng lệnh sau:

sudo sh wubi-add-virtual-disk /home 15000

Lệnh trên cho phép bạn mở rộng dung lương /home lên 15gb, đơn vị trong lệnh này tính theo MB
Tham khảo thêm:
https://wiki.ubuntu.com/WubiGuide

Fix lỗi khi chạy photoshop cs2 trên ubuntu

Posted by: mrduc on: July 12, 2008

The following error message after starting PhotoShop CS2:
An error has been detected with required application library and the product cannot continue. Please reinstall the application.
Can be resolved with:
The workaround is to give the command:
$ sudo sysctl -w vm.mmap_min_addr=0
This fixes the problem until the next time you reboot. (It also reduces security slightly.)
To avoid having to [...]

Thay đổi độ sáng màn hình

Posted by: mrduc on: July 11, 2008

Tớ đang dùng dell vostro 1500 , vga 8600GT
Ubuntu 8.0.4.1 hoạt động khá tốt, nhưng phím Fn + lên , xuống để chỉnh độ sáng màn hình hoạt động ko được hiệu quá lắm.
Độ sáng giảm quá nhiều hoặc tăng quá nhanh ko thể điều chỉnh phù hợp
Sau 1 hồi tìm kiếm tớ đã tìm [...]

install GD2 trong Ubuntu

Posted by: mrduc on: July 11, 2008

Mặc định thì GD2 chưa được cài đặt theo gói php của bạn
Để thêm thư viện php bạn gõ lệnh sau
sudo apt-get install php5-gd

18 thủ thuật cho mod rewrite

Posted by: mrduc on: July 8, 2008

Rewrite Engine
Basic Redirect
HTML to PHP
Remove File Extensions
Add WWW To Domain
Remove WWW From Domain
Add Trailing Slash
Remove Trailing Slash
Remove Query String
Remove Trailing Question Mark
Remove Trailing Index File
Remove Index File From URL
HTTP to HTTPS
HTTPS to HTTP
Deny Access To Htaccess
Enable Caching
Disable Caching On Dynamic Pages
Example Htaccess File

http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/

Kích hoạt Mod rewrite trong Ubuntu

Posted by: mrduc on: July 8, 2008

Để sử dụng mod rewrite của apache trong ubuntu trước tiên bạn cần
kích hoạt module rewrite bằng cách vào Applications — > Accessorices –> Terminal gõ lệnh:

$ sudo a2enmod rewrite

Tiếp đó mở file : /etc/apache2/sites-enabled/000-default
và sửa lại dòng
AllowOverride None thành AllowOverride All
chú ý : có thể sửa tất cả các dòng None thành All hoặc [...]



  • None

Categories