Topic List
ติดตั้ง Ubuntu Desktop ให้เป็น Server (LAMP)
Install Apache
#sudo apt-get install apache2
Enable mod_rewrite
#sudo a2enmod rewrite
เปลี่ยน DocumentRoot ของ apache เป็น folder อื่น และเปิดใช้งาน clean url
#gksudo gedit /etc/apache2/sites-available/default
- เปลี่ยนบรรทัด /var/www/ เป็น /my web folder/ จำนวน 2 ตำแหน่ง
- แก้ค่า AllowOverride ของ /my web folder/ จาก None เป็น AllowOverride All
Install PHP
<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install php5 libapache2-mod-php5 php5-gd <a class="hashtag" href="/tags/sudo">#sudo</a> /etc/init.d/apache2 restart
Install MySQL
<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin <a class="hashtag" href="/tags/gksudo">#gksudo</a> gedit /etc/php5/apache2/php.ini
add this line extension=mysql.so
#sudo /etc/init.d/apache2 restart
หากมีข้อมูลเก่าของ mysql ก็สามารถ copy มาไว้ที่ /var/lib/mysql แล้ว โดยใช้คำสั่ง
<a class="hashtag" href="/tags/sudo">#sudo</a> cp /media/disk/var/lib/mysql/* /var/lib/mysql/ <a class="hashtag" href="/tags/sudo">#sudo</a> chown -hR mysql /var/lib/mysql/* <a class="hashtag" href="/tags/sudo">#sudo</a> chgrp -hR mysql /var/lib/mysql/*
ทางทีดีคือไปอ่านรายละเอียดจากเว็บต้นฉบับดีกว่าครับ ที่ Installing LAMP On Ubuntu For Newbies
Or from howtoforge.com
#sudo apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
ติดตั้ง Tahoma font
ถึงยังไงผมก็ยังชอบฟอนท์ Tahoma ของ Windows อยู่ดี ก็เลยต้องหาวิธีติดตั้งฟอนท์ Tahoma บน Ubuntu
เจอบทความ Adding Windows fonts in Linux ทดลองดูแล้ว It's work เลยเอาลิงก์มาเก็บไว้ก่อน
วิธีที่ผมใช้ง่ายนิดเดียว คือ copy fonts Tahoma จาก Windows/Fonts มาใว้ใน folder ./fonts ของ home folder
แล้วก็ทำการติดตั้งฟอนต์ทดแทน เพื่อแก้ปัญหาสระเยื้องใน OOo
ติดตั้ง Extensions ของ Firefox ที่ใช้ประจำ คือ CollorZilla , Download Statusbar , DownThemAll , Firebug , FireGestures , NoScript , ShowIP , Xmarks
Install FileZilla
#sudo apt-get install filezilla
Install thunderbird
#sudo apt-get install thunderbird
Install Geany editor
#sudo apt-get install geany
Upgrade OOo.org 2.3.0
#sudo gedit /etc/apt/sources.list
add 2 lines
deb http://download.thaigrid.or.th/pub/ubuntu/contrib gutsy openoffice.org deb-src http://download.thaigrid.or.th/pub/ubuntu/contrib gutsy openoffice.org
<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get update <a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install openoffice.org
NAS200
Mounting SMB Shares Network share permanently mount samba share
Add this line to file /etc/init.d/module-init-tools
#for Aircard 580 modprobe usbserial vendor=0x1199 product=0x0122 mknod /dev/ttyUSB5 c 188 0 # mount NAS200 modprobe smbfs mkdir /media/nas200
Manual mount nas200 to /media/nas200 is
#sudo mount -t smbfs //192.168.1.2/ /media/nas200 -o username=myusername,password=mypassword,uid=1000,mask=000,iocharset=utf8
Make AirCard button on panel
- Right click on panel -> Add to panel
- Select Custom Application Launcher
- Command : xterm -T "Connect to CDMA" -e pppd call cdma
มีรายชื่อโปรแกรม OpenSource ที่สามารถใช้งานทดแทนในงานที่เป็นอยู่ ผมไปได้รายชื่อนี้มาจาก linux.sothorn.org จึงขออนุญาตเก็บเอามาเผยแพร่ต่อนะครับ
- Windows Vista OS to Ubuntu
- Internet Explorer Browser to Firefox Browser
- Microsoft Office to OpenOffice
- Mactopia to NeoOffice
- MathWorks MATLAB to Scilab
- Microsoft Access to Kexi
- Microsoft Word to OpenOffice Writer
- Microsoft Excel to OpenOffice Calc
- Microsoft Visio to Dia
- Blackboard to Moodle
- Box to Cabos
- Microsoft Project to Open Workbench
- Mindjet to FreeMind
- Adobe Illustrator to Inkscape
- Adobe PhotoShop to GIMP
- Adobe Premiere to Avidemux
- AutoCAD to Archimedes
- Microsoft PowerPoint to OpenOffice Impress
- Microsoft Paint to Tux Paint
- TruSpace to Blender
- Adobe GoLive CS2 to Mozilla SeaMonkey
- Adobe Dreamweaver to NVU
- Macromedia Flash Professional to OpenLaszlo
- Microsoft Frontpage to Bluefish
- Windows Notepad to ConTEXT
- Altova XMLSpy to XML Copy Editor
- Adobe Acrobat to PDFCreator
- Adobe Framemaker to DocBook
- Microsoft Publisher to Scribus
- AIM to Pidgin
- FeedDemon to RSS Bandit
- Microsoft MSN Messenger to aMSN
- Microsoft Outlook to Thunderbird
- Skype to Wengophone
- iTunes to Songbird
- Nero Burning Rom to K3b
- Quicktime to Darwin Streaming Server
- TiVo Desktop to Galleon.tv
- Windows Media Player to Miro
- CuteFTP to Filezilla
- iBackup to ZManda
- Norton Ghost to Partition Image
- Rational Purify to Valgrind
- WinZip to 7-Zip
- Kaspersky Anti-Virus Personal to Winpooch
- McAfee VirusScan to ClamWin
- Norton Personal Firewall to WIPFW
- Authorize.net to OpenSSL
- Microsoft Money (Plus) to TurboCash
- Quickbooks to Compiere
ที่มา : linux.sothorn.org | whdb.com
วันนี้พยายามติดตั้ง Ubuntu บนโน๊ตบุค Compaq NX9040 พยายามตั้งแต่เช้าแล้ว ป่านนี้ก็ยังไม่สำเร็จ
Compaq NX9040 specification - Intel Celeron M 1.6 GHz - Ram 256 MB - Harddisk 40 GB / Linux partition 10 GB - Display adapter Intel(R) 82852/82855 GM/GME - Sound Conexant AC-Link audio
ลอง
- Boot ด้วย Ubuntu 7.10 Live CD ปรากฎว่าไม่ผ่าน พอได้ยินเสียงตอนเปิดเครื่อง เสียงขาดกระตุก แล้วเครื่องก็ค้างไปเลย
kill -9 -1
Kill all process you can kill
ps aux
List all my process
top -d sec
Display Linux task on top of screen
TOP(1) Linux User's Manual
TOP(1) NAME top - display Linux tasks
SYNOPSIS
top -hv | -bcisS -d delay -n iterations -p pid [, pid ...]
The traditional switches '-' and whitespace are optional.
DESCRIPTION
The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of information displayed for tasks are all user configurable and that configuration can be made persistent across restarts.
The program provides a limited interactive interface for process manipulation as well as a much more extensive interface for personal configuration -- encompassing every aspect of its operation. And while top is referred to throughout this document, you are free to name the program anything you wish. That new name, possibly an alias, will then be reflected on top's display and used when reading and writing a configuration file.