IT Tips

You are currently browsing the articles from KomKid.Net matching the category IT Tips.

Expanding the size of a virtual disk

เมื่อ OS ใน Virtual Box เต็ม จะทำอย่างไรกันดีเล่าพี่น้อง
ความจริงวิธีที่จะทำ มันไม่ตรงกับหัวข้อครับ เพราะมันไม่ใช่การขยาย แต่มันเป็นการสร้างใหม่
1.เลือก VDI Image เป้าหมายที่ต้องการขยาย

2.สร้าง VDI Image อันใหม่ให้มีขนาดที่ต้องการ
3.เพิ่ม Image อันใหม่เป็น Slave และ เพิ่ม linux Image เข้าไปใน CD สำหรับใช้ Boot ตามตัวอย่างใช้ Parted Magic

4.เปิด terminal พิมพ์ nano /proc/paritions เพื่อดูขนาด harddisk

5.ใช้คำสั่ง dd โดยสังเกตขนาดตามรูป จะโอนจาก 10G(hda) ไปเป็น 30G(hdb) ก็ใช้คำสั่ง

1
dd if=/dev/hda of=/dev/hdb

6.รอจนเสร็จแล้ว shutdown
7.สร้าง OS อันใหม่ แล้วเพิ่ม VDI Image อันใหม่ กับ image ของ Parted Magic boot อีกทีเพื่อ resize partition เพราะ image ใหม่มีขนาด 30 GB ก็จริง แต่ขนาด partition ยังเท่าเดิม

8.เสร็จแล้วก็ shutdown แล้วเอา image ของ Parted Magic ออกก็จะได้ OS ใหม่ใหญ่กว่าเดิมไว้ใช้งาน

Written by Komkid on July 22nd, 2010 with no comments.
Read more articles on Admin and IT Tips and Software and Ubuntu.

Create Screenshot from movie

Ubuntu : Totem Movie Player
1.เปิดไฟล์
2.เข้าเมนู Edit -> Create Screenshot Gallery…

3.เลือกความกว้าง สูงสุดได้ 500 pixel
4.เลือกจำนวนภาพหรือทำเครื่องหมายเพื่อให้โปรแกรมคำนวณให้ก็ได้

Windows : Media Player Classic
1.เปิดไฟล์
2.เข้าเมนู View -> Options…
3.เลือก Output เป็น VMR9 (windowed)

4.เข้าเมนู File -> Save Thumbnails…
5.ตั้งชื่อไฟล์ ชนิด จำนวนแถว ขนาด ด้านล่าง

ขอบคุณภาพประกอบจาก www.thailandtorrent.com

Written by Komkid on May 18th, 2010 with no comments.
Read more articles on IT Tips and Software and Ubuntu.

Service ports for firewall configuration

DHCP
*UDP 67, 2535

DNS
*UDP 53
*TCP 53,139, 445

Symantec Systen Center
*TCP 2967

Written by Komkid on January 26th, 2010 with no comments.
Read more articles on Admin and IT Tips and Networking.

Open Visio file with Dia

Dia เปิดไฟล์ของ Visio (*.vsd) ตรง ๆ ไม่ได้ แต่เปิด XML Drawing (*.vdx) ได้
ดังนั้นก็ง่าย ๆ ด้วยการเปิดไฟล์ Visio แล้ว Save as เป็น XML Drawing (*.vdx) ดังตัวอย่าง
visio_xml_drawing
dia_xml_drawing

Written by Komkid on November 23rd, 2009 with no comments.
Read more articles on IT Tips and Software.

Solve Host to IP without DNS

แปลง Host เป็น IP โดยไม่ต้องพึ่ง DNS Server ทำได้โดย ระบุในไฟล์ ชื่อ hosts
ของ Windows อยู่ที่ C:\WINDOWS\system32\drivers\etc\hosts
ของ linux อยู่ที่ /etc/hosts

รูปแบบคือ
IP ช่องว่างตามด้วย host

ตัวอย่างของ Windows

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

อันนี้ของ linux

192.168.0.250 IF-Nikom.sci.com IF-Nikom
192.168.0.1 axaptaserver.sci.com axaptaserver
192.168.0.251 server1.sci.com server1
192.168.0.252 server2.sci.com server2
192.168.0.253 server3.sci.com server3

ตามหลักการก็น่าจะเร็วกว่าการใช้ dns ด้วย เพราะไม่ต้องวิ่งผ่าน server

Written by Komkid on October 4th, 2009 with no comments.
Read more articles on IT Tips and Networking.

« Older articles

No newer articles