1. สำรองไฟล์ config เดิมเก็บไว้
# cp /usr/share/examples/cvsup/ports-supfile /usr/share/examples/cvsup/ports-supfile-ori
2. แก้ไข Server ที่จะดาวโหลดไฟล์
# ee /usr/share/examples/cvsup/ports-supfile
เช่น
*default host=cvsup.sg.FreeBSD.org
*default host=cvsup5.jp.FreeBSD.org
ดูเซิร์ฟเวอร์ทั้งหมดได้จาก
http://www.freebsd.org/doc/en/books/handbook/cvsup.html.
ping -c 5 cvsup5.jp.freebsd.org
อัพเดท Ports
To update the ports collection
# csup -g -L 2 /usr/share/examples/cvsup/ports-supfile
# rehash
วันจันทร์ที่ 23 เมษายน พ.ศ. 2555
FreeBSD: Install บน VirtualBox แบบ Text mode
[1] บูทเครื่องจากแผ่นติดตั้งใน VirtualBox
เลือกติดตั้งแบบ Text Mode
1. Thailand
2. USA (ISO)
3. Standard installation
4. standard install a standard MBR (No Boot Manager)
5. Create patition
5.1 A = entire disk
c = create (all size = 165)
q = quit
5.2 Standard Install a standard MBR (no boot manager)
A = Create patition
c = create (all size = 165)
q = quit
สร้าง Partition (โดยประมาณ)
/ 768M
swap 512M
/tmp 512M
/var 768M
/usr 8G
6. Choose distribution
Custom
[x] base
[x] kernels
[x] Document --> EN
[x] man
[x] src --> all --> ยกเว้น game
[x] ports
7. Choose Installation Media
CD/DVD
ตอบคำถามระหว่างติดตั้ง
Last Chance:
Yes :Ethernet Adapter
No :IPV6
No :DHCP
Yes :Brink interface up
No :machine to be a network gateway
No :would like to configure inetd and network services
YES :enable SSH (secure shell) login
No :anonymous FTP access to this machine
No :Fuction as an NFS Server
No :Fuction as an NFS client
Yes :Customize console setting
Yes :Time zone
No : CMOS
- Asia
- 44 Thailand
Yes :Set Clock to UTC ?
No : enable Linux binary compatibility
Yes : browse the applications
YES : add a user account.
member groups = [wheel] ; to allow the user to become root/administrator
No : Visit the general configuration menu for a chance to set any last options ?
[exit install]
ตรวจสอบหลังติดตั้ง
ตรวจสอบเนื้อที่ ฮาร์ดดิส
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 859M 172M 618M 22% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1d 496M 12K 456M 0% /tmp
/dev/ad0s1f 19G 1.4G 16G 8% /usr
/dev/ad0s1e 989M 534K 910M 0% /var
บางครั้งติดตั้งใน virtual box แล้ว CPU ของเครื่อง Peak ให้เพิ่มคำสั่ง แล้ว reboot เครื่องใหม่
#ee /boot/loader.conf
kern.hz=100
เลือกติดตั้งแบบ Text Mode
1. Thailand
2. USA (ISO)
3. Standard installation
4. standard install a standard MBR (No Boot Manager)
5. Create patition
5.1 A = entire disk
c = create (all size = 165)
q = quit
5.2 Standard Install a standard MBR (no boot manager)
A = Create patition
c = create (all size = 165)
q = quit
สร้าง Partition (โดยประมาณ)
/ 768M
swap 512M
/tmp 512M
/var 768M
/usr 8G
6. Choose distribution
Custom
[x] base
[x] kernels
[x] Document --> EN
[x] man
[x] src --> all --> ยกเว้น game
[x] ports
7. Choose Installation Media
CD/DVD
ตอบคำถามระหว่างติดตั้ง
Last Chance:
Yes :Ethernet Adapter
No :IPV6
No :DHCP
Yes :Brink interface up
No :machine to be a network gateway
No :would like to configure inetd and network services
YES :enable SSH (secure shell) login
No :anonymous FTP access to this machine
No :Fuction as an NFS Server
No :Fuction as an NFS client
Yes :Customize console setting
Yes :Time zone
No : CMOS
- Asia
- 44 Thailand
Yes :Set Clock to UTC ?
No : enable Linux binary compatibility
Yes : browse the applications
YES : add a user account.
member groups = [wheel] ; to allow the user to become root/administrator
No : Visit the general configuration menu for a chance to set any last options ?
[exit install]
ตรวจสอบหลังติดตั้ง
ตรวจสอบเนื้อที่ ฮาร์ดดิส
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 859M 172M 618M 22% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1d 496M 12K 456M 0% /tmp
/dev/ad0s1f 19G 1.4G 16G 8% /usr
/dev/ad0s1e 989M 534K 910M 0% /var
บางครั้งติดตั้งใน virtual box แล้ว CPU ของเครื่อง Peak ให้เพิ่มคำสั่ง แล้ว reboot เครื่องใหม่
#ee /boot/loader.conf
kern.hz=100
วันศุกร์ที่ 20 เมษายน พ.ศ. 2555
วันอังคารที่ 5 ตุลาคม พ.ศ. 2553
Video: Component video
Definition of: component video
A video color format that maintains the three traditional TV video signals (YUV) in three separate channels. Component video provides a sharper image than composite video and S-video. See YUV, composite video and S-video.
Analog Component Video
With regard to TVs, DVD players, cable boxes, receivers and related consumer A/V equipment, component video generally refers to "analog" component video. The connection comprises three separate cables identified as Y, Pb and Pr (see YPbPr). Component video cables often come as five-wire sets: the three video and two more for left and right analog audio.
Digital Component Video
Component video may also refer to "digital" component video (YCbCr), which is the norm for videotape formats such as MiniDV, DV and Digital Betacam. The connection uses one cable, typically FireWire or SDI, and is natively supported by many nonlinear video editing programs (NLEs). Digital component video is also carried over HDMI cables, but to avoid confusion, the term "digital" is used to refer to HDMI signals, not "digital component." See YCbCr and chroma subsampling.
RGB: Digital or Analog
Sometimes, component video refers to RGB signals rather than YUV. It may refer to "digital" RGB, which is the native graphics format in the computer, and it is supported by all nonlinear video editing programs (NLEs).
Component video may also refer to "analog" RGB, especially with regard to a three-cable RGB attachment to a studio monitor or high-end video camera. See YUV.
A video color format that maintains the three traditional TV video signals (YUV) in three separate channels. Component video provides a sharper image than composite video and S-video. See YUV, composite video and S-video.
Analog Component Video
With regard to TVs, DVD players, cable boxes, receivers and related consumer A/V equipment, component video generally refers to "analog" component video. The connection comprises three separate cables identified as Y, Pb and Pr (see YPbPr). Component video cables often come as five-wire sets: the three video and two more for left and right analog audio.
Digital Component Video
Component video may also refer to "digital" component video (YCbCr), which is the norm for videotape formats such as MiniDV, DV and Digital Betacam. The connection uses one cable, typically FireWire or SDI, and is natively supported by many nonlinear video editing programs (NLEs). Digital component video is also carried over HDMI cables, but to avoid confusion, the term "digital" is used to refer to HDMI signals, not "digital component." See YCbCr and chroma subsampling.
RGB: Digital or Analog
Sometimes, component video refers to RGB signals rather than YUV. It may refer to "digital" RGB, which is the native graphics format in the computer, and it is supported by all nonlinear video editing programs (NLEs).
Component video may also refer to "analog" RGB, especially with regard to a three-cable RGB attachment to a studio monitor or high-end video camera. See YUV.
Video:Color Space: YCbCr
Definition of: YCbCr
One of two primary color spaces used to represent digital component video (the other is RGB). The difference between YCbCr and RGB is that YCbCr represents color as brightness and two color difference signals, while RGB represents color as red, green and blue. In YCbCr, the Y is the brightness (luma), Cb is blue minus luma (B-Y) and Cr is red minus luma (R-Y). See component video.
YCbCr Is Digital
MPEG compression, which is used in DVDs, digital TV and Video CDs, is coded in YCbCr, and digital camcorders (MiniDV, DV, Digital Betacam, etc.) output YCbCr over a digital link such as FireWire or SDI. The ITU-R BT.601 international standard for digital video defines both YCbCr and RGB color spaces. See chroma subsampling.
YPbPr Is Analog
YPbPr is the analog counterpart of YCbCr. It uses three cables for connection, whereas YCbCr uses only a single cable (see YPbPr). See YUV, YUV/RGB conversion formulas and ITU-R BT.601.
One of two primary color spaces used to represent digital component video (the other is RGB). The difference between YCbCr and RGB is that YCbCr represents color as brightness and two color difference signals, while RGB represents color as red, green and blue. In YCbCr, the Y is the brightness (luma), Cb is blue minus luma (B-Y) and Cr is red minus luma (R-Y). See component video.
YCbCr Is Digital
MPEG compression, which is used in DVDs, digital TV and Video CDs, is coded in YCbCr, and digital camcorders (MiniDV, DV, Digital Betacam, etc.) output YCbCr over a digital link such as FireWire or SDI. The ITU-R BT.601 international standard for digital video defines both YCbCr and RGB color spaces. See chroma subsampling.
YPbPr Is Analog
YPbPr is the analog counterpart of YCbCr. It uses three cables for connection, whereas YCbCr uses only a single cable (see YPbPr). See YUV, YUV/RGB conversion formulas and ITU-R BT.601.
Video:Color space: YPbPr Advantages
YPbPr Advantages
YPbPr is a color space encoding scheme that was developed to save on cable bandwidth requirements while separating the signal enough to provide a quality image. S-Video and composite video mix the signals together by means of electronic multiplexing, however, more often than not the signal is degraded at the display end as the display is not 100% able to separate the signals. It is possible for their multiplexed counterparts to interfere with each other (see Dot crawl). Signals that use YPbPr, like component video, offer enough separation of the signals that no multiplexing is needed, so the quality of the extracted image is generally near identical to the signal before encoding. Though not necessarily an advantage to YPbPr, component video which uses YPbPr was the only one out of the other two common analog cable standards (composite and s-video) to be able to transfer non-interlaced video and at the same time able to transfer resolutions higher than 480i/p.
Definition of: YPbPr
The designation for analog component video signals. The "Y," "Pb" and "Pr" are sets of three inputs or outputs on better video equipment and TVs. The three cables used in a YPbPr connection represent higher quality than the single-wire composite cable commonly used to hook up video equipment, because the brightness and color components of the signal are maintained separately. The YPbPr signals are derived from the red, green and blue (RGB) colors captured by a scanner or digital camera, and RGB is converted into brightness and two color difference signals (B-Y and R-Y) for TV/video. See component video.
YPbPr and YCbCr
YPbPr component video is the analog counterpart of digital component video, which is YCbCr. Whereas YPbPr uses three cables between video equipment, YCbCr uses a single cable. See Y (B-Y) (R-Y), YCbCr, YUV, YUV/RGB conversion formulas and color space.
http://www.pcmag.com/encyclopedia_term/0,2542,t=YPbPr&i=55163,00.asp
YPbPr is a color space encoding scheme that was developed to save on cable bandwidth requirements while separating the signal enough to provide a quality image. S-Video and composite video mix the signals together by means of electronic multiplexing, however, more often than not the signal is degraded at the display end as the display is not 100% able to separate the signals. It is possible for their multiplexed counterparts to interfere with each other (see Dot crawl). Signals that use YPbPr, like component video, offer enough separation of the signals that no multiplexing is needed, so the quality of the extracted image is generally near identical to the signal before encoding. Though not necessarily an advantage to YPbPr, component video which uses YPbPr was the only one out of the other two common analog cable standards (composite and s-video) to be able to transfer non-interlaced video and at the same time able to transfer resolutions higher than 480i/p.
Definition of: YPbPr
The designation for analog component video signals. The "Y," "Pb" and "Pr" are sets of three inputs or outputs on better video equipment and TVs. The three cables used in a YPbPr connection represent higher quality than the single-wire composite cable commonly used to hook up video equipment, because the brightness and color components of the signal are maintained separately. The YPbPr signals are derived from the red, green and blue (RGB) colors captured by a scanner or digital camera, and RGB is converted into brightness and two color difference signals (B-Y and R-Y) for TV/video. See component video.
YPbPr and YCbCr
YPbPr component video is the analog counterpart of digital component video, which is YCbCr. Whereas YPbPr uses three cables between video equipment, YCbCr uses a single cable. See Y (B-Y) (R-Y), YCbCr, YUV, YUV/RGB conversion formulas and color space.
http://www.pcmag.com/encyclopedia_term/0,2542,t=YPbPr&i=55163,00.asp
วันอาทิตย์ที่ 3 ตุลาคม พ.ศ. 2553
FreeBSD: Install jdk16 on FreeBSD81
# cd /usr/ports/java/jdk16
# make build-depends-list
# make fetch-recursive
Port ไม่สามารถที่จะดาวน์โหลด Java อัตโนมัติ เนื่องจากต้องมีการยอมรับใน Term and Condition ในการที่จะใช้งาน Java จึงต้องดาวน์โหลดเอง ไปเก็บไว้ที่ /usr/ports/distfiles
# cd /usr/ports/distfiles
#fetch http://www.badcode.net/tzupdater-1_3_29-2010f.zip
# fetch ftp://www.kuzbass.ru/pub/freebsd/mix/bsd-jdk16-patches-4.tar.bz2
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar
ไฟล์ ที่เหลืออื่นๆให้ ports ดาวน์โหลดให้เอง
# cd /usr/ports/java/jdk16
# make install clean
ระหว่าง ติดตั้ง
ตอบ yes เพื่อยอมรับ license
# make build-depends-list
# make fetch-recursive
Port ไม่สามารถที่จะดาวน์โหลด Java อัตโนมัติ เนื่องจากต้องมีการยอมรับใน Term and Condition ในการที่จะใช้งาน Java จึงต้องดาวน์โหลดเอง ไปเก็บไว้ที่ /usr/ports/distfiles
# cd /usr/ports/distfiles
#fetch http://www.badcode.net/tzupdater-1_3_29-2010f.zip
# fetch ftp://www.kuzbass.ru/pub/freebsd/mix/bsd-jdk16-patches-4.tar.bz2
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar
ไฟล์ ที่เหลืออื่นๆให้ ports ดาวน์โหลดให้เอง
# cd /usr/ports/java/jdk16
# make install clean
ระหว่าง ติดตั้ง
ตอบ yes เพื่อยอมรับ license
วันอาทิตย์ที่ 5 กันยายน พ.ศ. 2553
การ Upgrade FreeBSD ports โดยโปรแกรม CVSUP
การ Upgrade FreeBSD ports โดยโปรแกรม CVSUP (current version system update)
ขั้นตอน
1. ติดตั้งโปรแกรม
# cd /usr/ports/net/cvsup-without-gui
# make install clean
จะดาวน์โหลดไฟล์และติดตั้ง ประมาณ30 นาที
cvsup-16.1h_4
ezm33-1.2.1 10 MB
2. กำหนด server ที่จะไปดาวโหลดไฟล์สำหรับ upgrade
# cp /usr/share/examples/cvsup/ports-supfile /root
# ee /root/ports-supfile
*default host=cvsup.tw.freebsd.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
กด control+c
: exit
3. การ upgrade ports
# cvsup -g -L 2 ports-supfile
ขั้นตอน
1. ติดตั้งโปรแกรม
# cd /usr/ports/net/cvsup-without-gui
# make install clean
จะดาวน์โหลดไฟล์และติดตั้ง ประมาณ30 นาที
cvsup-16.1h_4
ezm33-1.2.1 10 MB
2. กำหนด server ที่จะไปดาวโหลดไฟล์สำหรับ upgrade
# cp /usr/share/examples/cvsup/ports-supfile /root
# ee /root/ports-supfile
*default host=cvsup.tw.freebsd.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
กด control+c
: exit
3. การ upgrade ports
# cvsup -g -L 2 ports-supfile
FreeBSD ports/pkg command
Ports :
http://www.freebsd.org/doc/handbook/ports-using.html
# cd /usr/ports/www/apache22
# less Makefile ; aplication info
# make instal ; install pakages
# make clean ; delete complie files
# make install && make clean
# make install clean ; install and delete complie files
# make fetch ; load all files before install
# make search name=apache ; search apache port
# make build-depends-list ;
# make run-depends-list ;
# make fetch-recursive
Package :
# less pkg-descr
# pkg_info | less ; installed pakages
# pkg_version -v ; verify installed pakages version
# ll /var/db/pkg
# pkg_add -r kde ; install kde pakage
# rehash ; regenerates system's cached
http://www.freebsd.org/doc/handbook/ports-using.html
# cd /usr/ports/www/apache22
# less Makefile ; aplication info
# make instal ; install pakages
# make clean ; delete complie files
# make install && make clean
# make install clean ; install and delete complie files
# make fetch ; load all files before install
# make search name=apache ; search apache port
# make build-depends-list ;
# make run-depends-list ;
# make fetch-recursive
Package :
# less pkg-descr
# pkg_info | less ; installed pakages
# pkg_version -v ; verify installed pakages version
# ll /var/db/pkg
# pkg_add -r kde ; install kde pakage
# rehash ; regenerates system's cached
วันเสาร์ที่ 4 กันยายน พ.ศ. 2553
FreeBSD: How to install and configure a FreeBSD 8 Desktop with Xorg and KDE?
http://rhyous.com/2009/12/18/how-to-install-and-configure-a-freebsd-8-desktop-with-xorg-and-kde/
สมัครสมาชิก:
บทความ (Atom)