[Ubuntu]Easy way of Mount/Unmount iso image

Posted by Pa-Mon | Posted in ubuntu | Posted on 13-08-2009

0

Program : Gmount-iso

install

sudo aptitude install gmountiso

gmount-iso

REF::http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html

[Ubuntu] Smooth play dvd

Posted by Pa-Mon | Posted in ubuntu | Posted on 13-08-2009

0

ดูหนังฟังเพลงสบายๆ กับ ubuntu กัน
โดยก่อนอื่น ต้องลง gstreamer ก่อน

$ sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse

หลังจากนั้น ลง libdvdcss2 เพื่อให้ สามารถดู DVD ได้

$ wget http://www.dtek.chalmers.se/groups/dvd/deb/libdvdcss2_1.2.5-1_i386.deb
$ sudo dpkg -i libdvdcss2_1.2.5-1_i386.deb

หลังจากนั้นก็เลือกโปรแกรม ที่สามารถดู DVD ได้โดยใช้
VLC:

$sudo apt-get install vlc vlc-plugin-esd

หรือดูโดย xine ก็ได้

$sudo apt-get install xine

เพียงแค่นี้เราก็สามาถดู DVD ได้สบายๆ ไม่มีกระตุก

REF:::http://www.debuntu.org/how-to-play-dvd-under-ubuntu-linux

Convert a video file to an audio(.mp4 to .mp3)

Posted by Pa-Mon | Posted in ubuntu | Posted on 13-07-2009

0

ffmpeg -i video.mp4 -vn -ac 1 audio1.mp3

Remote from Ubuntu to Window

Posted by Pa-Mon | Posted in ubuntu | Posted on 28-06-2009

1

shell>rdesktop เลข ip

ถ้าไม่มีก็ sudo apt-get install rdesktop ก่องนะงับ

[Ubuntu] Listen Eazy FM via Rhythm Box

Posted by Pa-Mon | Posted in ubuntu | Posted on 26-06-2009

1

หลังจากจำใจทนฟัง คลื่นวิทยุสุดโปรด ผ่าน firefox ที่แสนจะกินแรม เพราะเปิดผ่าน flash

วันนี้เราก็ได้ค้นพบ url ที่จะเอาไปใส่ใน rhythm box แร้ว เย้

เรามาเปรียบเทียบ กราฟก่อนหลังกันก่อนดีกว่า

ก่อน

หลัง

วิธีก็ง่ายๆมั่กๆ
Read the rest of this entry »

Widescreen on Virtualbox

Posted by Pa-Mon | Posted in ubuntu | Posted on 25-06-2009

0

หลังจากบอกลา เจ้า vista มาเล่น ubuntu ได้ซักพัก ก็ต้องกลับมาพึ่งเจ้า microsoft office อีกเพราะตัวหนังสือบน open office มันยังดูแปลกๆอยู่ หรือจะมาใช้พวก wine ก็ยังไม่ค่อยงาม เรยเล่น virtualbox มันซะเรย จะได้ไม่ต้องแบ่ง partition ใหม่อีกทั้งจะสลับมาใช้งาน ระหว่าง ubuntu กะ window ก็ง่ายดีจัง แต่ว่า เจ้าvirtual box มันไม่ยอม widescreen เต็มจองามๆให้เราซักนี่ ต้องจัดการซะหน่อย

ขั้นแรกต้องลง Guest Addition ก่อน โดยเปิด virtual box ของเราก่อน แล้วไปที่ device > install Guest Addition
อาจจะต้อง download .iso มาลงก็รอ เสร็จแล้วให้ mount cd drive นั้นๆ

เสร็จแล้ว ที่นี้เราจะได้ของแถมมา คือ เราสามารถใช้ mouse ร่วมกันระหว่าง virtual box กับ ubuntu ได้

สังให้ full screen กด right ctrl + F ก่อน
สั่งให้ auto resize กด right ctrl + G
เสร็จ

BEFORE :

AFTER:

REF:http://ubuntuforums.org/showthread.php?t=351226

VPN on Ubuntu

Posted by Pa-Mon | Posted in ubuntu | Posted on 20-06-2009

1

มาลอง vpn เน็ทเกษตร ผ่าน terminal กันดีกว่า

ต้องลง openvpn ก่อนนะ

sudo aptitude install openvpn

โหลด certificate มาแล้วก็ย้ายให้ไปอยู่ใน directory ที่มี certificate
เปิดไฟล์ .ovpn ใส่ comment ที่

#dev-node MyTap

เริ่ม vpn

sudo openvpn xxxxxxx.ovpn

ใส่ username password ไปก็เรียบร้อย แล้วก็เปิด terminal ทิ้งเอาไว้เรย

install mod_proxy

Posted by Pa-Mon | Posted in ubuntu | Posted on 11-06-2009

1

1. Install reverse_proxy module & libxml

shell> sudo apt-get install sudo apt-get install libapache2-mod-proxy-html libxml2-dev

2. Config proxy.conf

cd /etc/apache2/mods-enabled
sudo vi proxy.conf

change from
Deny from all
to
Allow from all
3. run the proxy modue
shell > a2enmod proxy
4. restart apache
sudo /etc/init.d/apache2 restart

แถม install mod_rewrite
sudo a2enmod rewrite

REF:http://www.livingubuntu.com/77
and http://blog.plathong.net/2009/05/mod_proxy-in-ubuntu/

config mod rewrite on Lamp

Posted by Pa-Mon | Posted in ubuntu | Posted on 11-06-2009

0

นั่งงมหาวิธีทำ mod rewrite อยู่ตั้งนานกว่าเจอ จนงงไปว่าตัวเองทำอะไรไปบ้าง – -
วิธีทำก็คือ ไปเปลี่ยน override ของ apache

shell > cd /etc/apache2/sites-enabled
shell >sudo vi 000-default

แล้วเข้าไปแก้
จาก
AllowOverride None

ให้เป็น
AllowOverride All

อาจจะต้อง restart apache อีกที
เป็นอันเสร็จพิธี เย้

PS: อาจจะต้องใช้ mod_proxy ด้วยไม่แน่ใจ – -.
REF :http://ubuntuforums.org/showthread.php?p=1473118

Virtual box Shared folder : XP

Posted by Pa-Mon | Posted in ubuntu | Posted on 10-06-2009

0

1. ไปที่ virtual box -> settings -> shared folder เลือก folder ที่อยากจะ share
2. ไปที่ terminal พิมพ์

shell> sudo nautilus // ทำให้เป็น root

3. คลิกขวาที่ folder ที่ share เลือก sharing option ในตอนนี้ ถ้าเกิดว่าเรายังไม่ได้ลง samba จะเตือนให้เราลงก่อน ก็ให้เลือกให้ลงก่อน จากนั้น ก็เลือกให้ share this folder
4. boot xp ให้เราลองไปดูก่อนว่าเจอ net work ของเราหรือยังพิมพ์ที่ address bar ใน computer

\\ชื่อเครื่องใน ubuntu ของเรา
เช่น
\\pamon-world

จะต้องให้ xp มี workgroup ว่า WORKGROUP ด้วย
5.ถ้าเกิดเจอแล้ว ให้ map drive โดยทำได้ 2 วิธี

  • คลิกขวาที่ my computer เลือก map network drive
    Drive: เลือกอะไรก็ได้
    Folder: \\ชื่อเครื่องใน ubuntu ของเรา\folderที่จะshare
  • พิมพ์ ใน command line
    >net use x: \\ชื่อเครื่องของเราใน ubuntu\folderที่จะ share
  • สุดท้ายก็จะได้ folder ที่จะ share มา