<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>KoreaUbuntu코리아우분투</title>
	<atom:link href="http://koreaubuntu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://koreaubuntu.wordpress.com</link>
	<description>우분투를 사용하며 정보를 모은곳입니다.</description>
	<lastBuildDate>Wed, 25 Jan 2012 14:22:07 +0000</lastBuildDate>
	<language>ko</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='koreaubuntu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>KoreaUbuntu코리아우분투</title>
		<link>http://koreaubuntu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://koreaubuntu.wordpress.com/osd.xml" title="KoreaUbuntu코리아우분투" />
	<atom:link rel='hub' href='http://koreaubuntu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>mysql 백업 및 복원 방법</title>
		<link>http://koreaubuntu.wordpress.com/2012/01/25/mysql-%eb%b0%b1%ec%97%85-%eb%b0%8f-%eb%b3%b5%ec%9b%90-%eb%b0%a9%eb%b2%95/</link>
		<comments>http://koreaubuntu.wordpress.com/2012/01/25/mysql-%eb%b0%b1%ec%97%85-%eb%b0%8f-%eb%b3%b5%ec%9b%90-%eb%b0%a9%eb%b2%95/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 14:21:57 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[Ubuntu 서버설정]]></category>
		<category><![CDATA[백업]]></category>
		<category><![CDATA[복원]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=439</guid>
		<description><![CDATA[ mysql 백업 및 복원 방법 phpmyadmin 접속.. 웹상에서 MYSQL을 접속하고 관리할 수 있는 프로그램입니다 브라우저에서 접속주소 -&#62; 고객도메인/mysql 을 입력하시고 들어가면&#8230;..아래 로긴창에서 신청시 부여받은 디비계정(접속계정과 동일)과 패스워드로 로그인 합니다  phpmyadmin 을 이용한 백업 # 웹에서 phpmyadmin 접속 - 왼쪽에 자신의 디비네임을 클릭을 하고.. &#8211; 상단 내보내기를 클릭 - 구조와 테이블 체크 (모두선택 클릭) &#8211; 파일로 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=439&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.mireene.com/webimg/btn_h1.gif" alt="" width="23" height="21" align="absMiddle" border="0" /><strong> mysql 백업 및 복원 방법<br />
</strong></p>
<p><img src="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" alt="" width="23" height="21" align="absMiddle" border="0" /><strong>phpmyadmin 접속..</strong></p>
<p>웹상에서 MYSQL을 접속하고 관리할 수 있는 프로그램입니다</p>
<p>브라우저에서 접속주소 -&gt; 고객도메인/mysql</p>
<p>을 입력하시고 들어가면&#8230;..아래 로긴창에서 신청시 부여받은 디비계정(접속계정과 동일)과 패스워드로 로그인 합니다</p>
<p><img src="http://www.mireene.com/webimg/mysql_admin_img.gif" alt="" width="385" height="280" border="0" /><br />
<img src="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" alt="" width="23" height="21" align="absMiddle" border="0" /><strong> phpmyadmin 을 이용한 백업</strong><br />
# 웹에서 phpmyadmin 접속<br />
<img src="http://www.mireene.com/webimg/mysqlbackup_h_01.gif" alt="" width="391" height="228" /><br />
- 왼쪽에 자신의 디비네임을 클릭을 하고.. &#8211; 상단 내보내기를 클릭<br />
<img src="http://www.mireene.com/webimg/mysqlbackup_h_02.gif" alt="" width="349" height="162" /><br />
- 구조와 테이블 체크 (모두선택 클릭) &#8211; 파일로 저장 선택 -&gt; 실행</p>
<p>&nbsp;</p>
<p><img src="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" alt="" width="23" height="21" align="absMiddle" border="0" /><strong> phpmyadmin 을 이용한 복원</strong></p>
<p># phpmyadmin이용 <strong>복원시에는</strong> 에러가 자주 발생 합니다<br />
<img src="http://www.mireene.com/webimg/mysqlbackup_h_03.gif" alt="" width="364" height="147" /><br />
- sql 선택 &#8211; 찾아보기 (백업 파일을 지정) 선택후 아래 실행 클릭</p>
<p><img src="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" alt="" width="23" height="21" align="absMiddle" border="0" /><strong>phpmyadmin DB삭제(전체) </strong><br />
# mysql복원시 동일이름의 테이블이 존재하면 에러 발생 하므로…복원시에는 기존 테이블을 삭제후 작업을 해야 합니다.<br />
<img src="http://www.mireene.com/webimg/mysqlbackup_h_04.gif" alt="" width="417" height="228" /><br />
- 모두 체크 선택후 드롭다은 리스트 메뉴중 삭제 선택…<br />
<img src="http://www.mireene.com/webimg/mysqlbackup_h_05.gif" alt="" width="280" height="157" /><br />
- 삭제여부 확인 메시지……아래 “예”클릭..</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/439/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=439&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2012/01/25/mysql-%eb%b0%b1%ec%97%85-%eb%b0%8f-%eb%b3%b5%ec%9b%90-%eb%b0%a9%eb%b2%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>

		<media:content url="http://www.mireene.com/webimg/btn_h1.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/mysql_admin_img.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/mysqlbackup_h_01.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/mysqlbackup_h_02.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/mysqlbackup_h_03.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/outlook2002/btn_h2.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/mysqlbackup_h_04.gif" medium="image" />

		<media:content url="http://www.mireene.com/webimg/mysqlbackup_h_05.gif" medium="image" />
	</item>
		<item>
		<title>우분투(리눅스) 프린터 서버 설정하기</title>
		<link>http://koreaubuntu.wordpress.com/2012/01/04/%ec%9a%b0%eb%b6%84%ed%88%ac%eb%a6%ac%eb%88%85%ec%8a%a4-%ed%94%84%eb%a6%b0%ed%84%b0-%ec%84%9c%eb%b2%84-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0/</link>
		<comments>http://koreaubuntu.wordpress.com/2012/01/04/%ec%9a%b0%eb%b6%84%ed%88%ac%eb%a6%ac%eb%88%85%ec%8a%a4-%ed%94%84%eb%a6%b0%ed%84%b0-%ec%84%9c%eb%b2%84-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 22:15:59 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[Ubuntu 서버설정]]></category>
		<category><![CDATA[프린터]]></category>
		<category><![CDATA[프린터 서버]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=432</guid>
		<description><![CDATA[서버의 OS는 우분투 그 외 여러 작업을 해서 프린트 명령을 할 클라이언트는 윈도우 http://drunkenbear.tistory.com/plugin/CallBack_bootstrapperSrc?nil_profile=tistory&#038;nil_type=copied_post 설정 과정은 다음과 같다. 1. 프린터를 서버에 연결한다. (왠만한것들은 자동으로 잡아줄 것이다.) 2. 프린터 공유를 위해 약간의 설정을 변경한다. ( 시스템  &#62;&#62;  관리  &#62;&#62;  인쇄 로 이동.     &#62;&#62; server  &#62;&#62; setting  &#62;&#62;  &#8220;publish shared &#8230;&#8221;  체크 &#62;&#62;  &#8220;인터넷에서 인쇄 허용&#8221; 체크  &#62;&#62;  확인 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=432&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<h2>서버의 OS는 우분투</h2>
</div>
<div>
<div>그 외 여러 작업을 해서 프린트 명령을 할 클라이언트는 윈도우<br />
<a href="http://drunkenbear.tistory.com/plugin/CallBack_bootstrapperSrc?nil_profile=tistory&#038;nil_type=copied_post">http://drunkenbear.tistory.com/plugin/CallBack_bootstrapperSrc?nil_profile=tistory&#038;nil_type=copied_post</a></div>
<div>설정 과정은 다음과 같다.</div>
<div>1. 프린터를 서버에 연결한다.<br />
(왠만한것들은 자동으로 잡아줄 것이다.)<br />
2. 프린터 공유를 위해 약간의 설정을 변경한다.<br />
( 시스템  &gt;&gt;  관리  &gt;&gt;  인쇄 로 이동.     &gt;&gt; server  &gt;&gt; setting  &gt;&gt;  &#8220;publish shared &#8230;&#8221;  체크<br />
&gt;&gt;  &#8220;인터넷에서 인쇄 허용&#8221; 체크  &gt;&gt;  확인 )<br />
3. 웹서비스를 위해 LAMP 를 설치<br />
( 터미널에 다음을 복사해서 입력<br />
sudo apt-get install phpmyadmin phpsysinfo php5-gd apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-server mysql-server-5.0 php5-common php5-mysql<br />
이 모든 패키지가 다 필요하지는 않으니 알아서 선택.)<br />
4. 마지막으로 다음을 설치해 준다.<br />
( sudo apt-get install cupsys openssh-server cupsys-driver-gutenprint )</p>
<p>5. 서버 설정을 마쳤으므로 클라이언트에서 서버를 추가한다.<br />
( 클라이언트가 될 PC에서 웹브라우저 주소에 다음을 입력한다.</p>
<p>http://서버주소:631</p>
<p>서버 설정이 올바르게 됬다면 초록색통의 웹페이지가 보이게 될 것이며 메뉴에 printer 항목이 모일것이다.<br />
그것을 클릭하면 서버에 설치된 프린터 목록이 보이게된다. 프린터 항목을 클릭하면 주소 창에 다음과 같이 나올것이다.<br />
<a href="http://xn--hk3b17fwjz7w:631/printers/">http://서버주소:631/printers/</a>프린터모델명<br />
주소를 모두 복사한 후 프린터 위치에 집어넣어야 한다. 프린터 위치는  제어판 &gt;&gt; 프린터 &gt;&gt; 프린터 추가 &gt;&gt; 네트워크 &#8230;<br />
&gt;&gt; 인터넷이나 홈&#8230;  &gt;&gt;  이곳에 입력.</p>
<p>모든것이 올바르게 되었다면 프린터를 정상적으로 탐색할 것이다.</p></div>
<div></div>
<div>펌 : <a href="http://drunkenbear.tistory.com/">http://drunkenbear.tistory.com</a> Posted by 술취한 곰탱이 술취한곰탱이</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/432/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=432&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2012/01/04/%ec%9a%b0%eb%b6%84%ed%88%ac%eb%a6%ac%eb%88%85%ec%8a%a4-%ed%94%84%eb%a6%b0%ed%84%b0-%ec%84%9c%eb%b2%84-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO video stream from webcam through internet with ffmpeg(우분투 웹캠서버 만들기)</title>
		<link>http://koreaubuntu.wordpress.com/2011/12/25/howto-video-stream-from-webcam-through-internet-with-ffmpeg%ec%9a%b0%eb%b6%84%ed%88%ac-%ec%9b%b9%ec%ba%a0%ec%84%9c%eb%b2%84-%eb%a7%8c%eb%93%a4%ea%b8%b0/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/12/25/howto-video-stream-from-webcam-through-internet-with-ffmpeg%ec%9a%b0%eb%b6%84%ed%88%ac-%ec%9b%b9%ec%ba%a0%ec%84%9c%eb%b2%84-%eb%a7%8c%eb%93%a4%ea%b8%b0/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 03:04:13 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[멀티미디어]]></category>
		<category><![CDATA[Ubuntu 서버설정]]></category>
		<category><![CDATA[웹캠]]></category>
		<category><![CDATA[웹캠서버]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=430</guid>
		<description><![CDATA[1)First we have to install ffmpeg (http://ffmpeg.mplayerhq.hu/)(ffmpeg 설치) Code: sudo apt-get install ffmpeg 2)Back up ffserver config file.(안전을 위해 백업) Code: sudo mv /etc/ffserver.conf /etc/ffserver.conf_backup 3)Begin new ffserver config file. (this config was taken from http://www.webmasterworld.com/video/3514671.htm and edited by me)(설정파일만들기) Code: sudo gedit /etc/ffserver.conf paste into file lines below.(아래코드를 붙여 넣고) Code: Port 8090 # bind to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=430&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1)First we have to install ffmpeg (<a href="http://ffmpeg.mplayerhq.hu/" target="_blank">http://ffmpeg.mplayerhq.hu/</a>)(ffmpeg 설치)</p>
<div id="post_message_4122375">
<div>
<div>Code:</div>
<pre>sudo apt-get install ffmpeg</pre>
</div>
<p>2)Back up ffserver config file.(안전을 위해 백업)</p>
<div>
<div>Code:</div>
<pre>sudo mv /etc/ffserver.conf /etc/ffserver.conf_backup</pre>
</div>
<p>3)Begin new ffserver config file. (this config was taken from <a href="http://www.webmasterworld.com/video/3514671.htm" target="_blank">http://www.webmasterworld.com/video/3514671.htm</a> and edited by me)(설정파일만들기)</p>
<div>
<div>Code:</div>
<pre>sudo gedit /etc/ffserver.conf</pre>
</div>
<p>paste into file lines below.(아래코드를 붙여 넣고)</p>
<div>
<div>Code:</div>
<pre>Port 8090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 1000
# max bandwidth per-client (kb/s)
MaxBandwidth 10000
# Suppress that if you want to launch ffserver as a daemon.
NoDaemon 

&lt;Feed feed1.ffm&gt;
File /tmp/feed1.ffm
FileMaxSize 5M
&lt;/Feed&gt; 

# FLV output - good for streaming
&lt;Stream test.flv&gt;
# the source feed
Feed feed1.ffm
# the output stream format - FLV = FLash Video
Format flv
VideoCodec flv
# this must match the ffmpeg -r argument
VideoFrameRate 15
# generally leave this is a large number
VideoBufferSize 80000
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 1
VideoQMax 5
VideoSize 352x288
# this sets how many seconds in past to start
PreRoll 0
# wecams don't have audio
Noaudio
&lt;/Stream&gt; 

# ASF output - for windows media player
&lt;Stream test.asf&gt;
# the source feed
Feed feed1.ffm
# the output stream format - ASF
Format asf
VideoCodec msmpeg4
# this must match the ffmpeg -r argument
VideoFrameRate 15
# generally leave this is a large number
VideoBufferSize 80000
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 1
VideoQMax 5
VideoSize 352x288
# this sets how many seconds in past to start
PreRoll 0
# wecams don't have audio
Noaudio
&lt;/Stream&gt;</pre>
</div>
<p>4)Start ffserver. Open terminal.</p>
<div>
<div>Code:</div>
<pre>ffserver</pre>
</div>
<p>in ffserver config file you can delete line &#8220;NoDaemon&#8221; to run ffserver as daemon.</p>
<p>5)Start ffmpeg video stream.</p>
<div>
<div>Code:</div>
<pre>ffmpeg -r 15 -s 352x288 -f video4linux -i /dev/video0 http://localhost:8090/feed1.ffm</pre>
</div>
<p>If there is no any errors. its done )</p>
<p>Now you can watch the video.<br />
Open your favorite player and open url <a href="http://localhost:8090/test.flv" target="_blank">http://localhost:8090/test.flv</a> or <a href="http://localhost:8090/test.asf" target="_blank">http://localhost:8090/test.asf</a>.</p>
<p>If you whant to watch your stream from another computer with windows media player:<br />
type mms://&lt;ip adress of ffserver machine&gt;:8090/test.asf in IE</p>
<p>Also you can encode video to swf, mpeg and other formats . Read ffmpeg documentation.</p>
<p>If your internet connection is slow, you have make VideoFrameRate lower(1-5).</p>
<p><strong>For streaming to flash player (swf)(플래쉬 플레이어로 보기위해)<br />
</strong><br />
add this lines to the end of ffserver.conf</p>
<div>
<div>Code:</div>
<pre>&lt;Stream test.swf&gt;
Feed feed1.ffm
Format swf
VideoCodec flv
VideoFrameRate 2
VideoBufferSize 80000
VideoBitRate 100
VideoQMin 1
VideoQMax 5
VideoSize 352x288
PreRoll 0
Noaudio
&lt;/Stream&gt;</pre>
</div>
<p>Now you have another stream to test.sfw file then create &lt;any name&gt;.html file<br />
Add this lines to it</p>
<div>
<div>Code:</div>
<pre>&lt;EMBED src="http://&lt;ip adress of ffserver machine&gt;:8090/test.swf" width=640 height=480 type="application/x-shockwave-flash"&gt;&lt;/EMBED&gt;</pre>
</div>
<p>then open it in your browser, enjoy )(즐감)</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/430/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=430&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/12/25/howto-video-stream-from-webcam-through-internet-with-ffmpeg%ec%9a%b0%eb%b6%84%ed%88%ac-%ec%9b%b9%ec%ba%a0%ec%84%9c%eb%b2%84-%eb%a7%8c%eb%93%a4%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>vsftpd 한글 깨지는 문제</title>
		<link>http://koreaubuntu.wordpress.com/2011/12/19/vsftpd-%ed%95%9c%ea%b8%80-%ea%b9%a8%ec%a7%80%eb%8a%94-%eb%ac%b8%ec%a0%9c/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/12/19/vsftpd-%ed%95%9c%ea%b8%80-%ea%b9%a8%ec%a7%80%eb%8a%94-%eb%ac%b8%ec%a0%9c/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 08:49:43 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[문제해결]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[한글]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=428</guid>
		<description><![CDATA[윈도우에서 접속하면 한글이 깨져 보인다  해결하려면 &#160; - apt-get source vsftpd로 소스를 받아서&#8230; opts.c 파일을 수정한다. #include &#8220;ftpcodes.h&#8221; #include &#8220;ftpcmdio.h&#8221; #include &#8220;session.h&#8221; #include &#8220;tunables.h&#8221; void handle_opts(struct vsf_session* p_sess) { struct mystr opts = INIT_MYSTR; struct mystr prm  = INIT_MYSTR; str_copy(&#38;opts, &#38;p_sess-&#62;ftp_arg_str); str_upper(&#38;opts); str_split_char(&#38;opts, &#38;prm, &#8216; &#8216;); /* if (str_equal_text(&#38;opts, &#8220;UTF8&#8243;)) { if (str_equal_text(&#38;prm, &#8220;ON&#8221;)) { [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=428&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>윈도우에서 접속하면 한글이 깨져 보인다  해결하려면</p>
<p>&nbsp;</p>
<p>- apt-get source vsftpd로 소스를 받아서&#8230; opts.c 파일을 수정한다.</p>
<div>#include &#8220;ftpcodes.h&#8221;<br />
#include &#8220;ftpcmdio.h&#8221;<br />
#include &#8220;session.h&#8221;<br />
#include &#8220;tunables.h&#8221;</p>
<p>void<br />
handle_opts(struct vsf_session* p_sess)<br />
{<br />
struct mystr opts = INIT_MYSTR;<br />
struct mystr prm  = INIT_MYSTR;<br />
str_copy(&amp;opts, &amp;p_sess-&gt;ftp_arg_str);<br />
str_upper(&amp;opts);<br />
str_split_char(&amp;opts, &amp;prm, &#8216; &#8216;);<br />
<span style="color:#e31600;"><strong>/*<br />
if (str_equal_text(&amp;opts, &#8220;UTF8&#8243;))<br />
{<br />
if (str_equal_text(&amp;prm, &#8220;ON&#8221;))<br />
{<br />
tunable_charset_client=vsf_sysutil_strdup(&#8220;UTF8&#8243;);<br />
vsf_cmdio_write(p_sess, FTP_OPTSOK, &#8220;UTF8 option is On.&#8221;);<br />
}<br />
else<br />
if (str_equal_text(&amp;prm, &#8220;OFF&#8221;))<br />
{<br />
vsf_cmdio_write(p_sess, FTP_OPTSOK, &#8220;UTF8 option is Off.&#8221;);<br />
}<br />
else<br />
{<br />
vsf_cmdio_write(p_sess, FTP_BADOPTS, &#8220;Invalid UTF8 option.&#8221;);<br />
}<br />
}<br />
else */</strong></span><br />
{<br />
vsf_cmdio_write(p_sess, FTP_BADOPTS, &#8220;Option not understood.&#8221;);<br />
}<br />
}</div>
<p>- 색으로 칠해진 소스를 주석 처리하면 끝..</p>
<p>패키징 하고</p>
<p>make</p>
<p>그리고</p>
<p>sudo  debian/rules binary</p>
<p>상위 폴더에 .deb 찾아 더블클릭 설치하면 완료</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/428/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=428&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/12/19/vsftpd-%ed%95%9c%ea%b8%80-%ea%b9%a8%ec%a7%80%eb%8a%94-%eb%ac%b8%ec%a0%9c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>우분투 패키징</title>
		<link>http://koreaubuntu.wordpress.com/2011/12/19/%ec%9a%b0%eb%b6%84%ed%88%ac-%ed%8c%a8%ed%82%a4%ec%a7%95/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/12/19/%ec%9a%b0%eb%b6%84%ed%88%ac-%ed%8c%a8%ed%82%a4%ec%a7%95/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 07:36:12 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[시스템관리]]></category>
		<category><![CDATA[패키징]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=425</guid>
		<description><![CDATA[Linux 2008/01/16 11:45 간단하게 소스를 패키지하는 두 가지 방법 : DebHelper 이용하는 방법, checkinstall 이용하는 방법 그리고 rpm 패키지를 deb 패키지로 변환하는 방법에 대해서 소개한다. 예전의 방법이나, Debian 패키징의 세부사항은 링크를 참조하는 것이 좋다. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; (1) DebHelper 이용하기 0. 필요한 것들 dh-make debhelper 1.  패키지에 의존 관계의 패키지 설치 $ sudo apt-get build-dep $(패키지 이름) 2. dh_make [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=425&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<h2></h2>
<p><a href="http://fracktal.tistory.com/category/Linux">Linux</a> 2008/01/16 11:45</div>
<div>
<p><span style="font-size:small;"><span style="font-size:x-small;">간단하게 소스를 패키지하는 두 가지 방법 :<br />
DebHelper 이용하는 방법, checkinstall 이용하는 방법</p>
<p>그리고 rpm 패키지를 deb 패키지로 변환하는 방법에 대해서 소개한다.</p>
<p>예전의 방법이나, Debian 패키징의 세부사항은 링크를 참조하는 것이 좋다.<br />
</span><br />
<span style="font-size:x-small;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></p>
<p><strong>(1) DebHelper 이용하기</strong></span></p>
<p>0. 필요한 것들</p>
<div>dh-make<br />
debhelper</div>
<p><span style="font-size:x-small;"><br />
1.  패키지에 의존 관계의 패키지 설치</span></p>
<div><strong>$</strong> sudo apt-get build-dep $(패키지 이름)</div>
<p>2. dh_make ( debian/rules 등을 생성)</p>
<p>(소스가 수정할 필요가 있을 경우에는 수정을 한후,)<br />
./configure와 make 대신<br />
dh_make를 실행한다.</p>
<div><strong>$</strong> dh_make</div>
<p>그리고, debian/rules 파일과 (configure 설정)<br />
debian/control 파일, debian/<span style="font-family:'Courier New';">changelog</span>을  (이름 설정)<br />
알맞게 설정한다.</p>
<p>3. deb 패키지 생성 (deb 패키지가 생성된다.)</p>
<div><strong>$</strong> sudo debian/rules binary</div>
<p>4. deb 패키지 설치</p>
<div><strong>$</strong> sudo dpkg -i xxxxxxx.deb</div>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong><span style="font-size:small;">(2) checkinstall을 이용하기</span></strong></p>
<p>1. 필요한 패키지</p>
<div>checkinstall</div>
<p>2. deb 패키지 생성</p>
<div><strong>$</strong> ./configure (그밖의 설정)<br />
<strong>$</strong> make<br />
<strong>$</strong> sudo checkinstall</div>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong><span style="font-size:small;">(3) rpm 패키지를 deb 패키지로 변환하기</span><br />
</strong></p>
<p><strong><br />
</strong></p>
<p>0. 필요한 것</p>
<div>alien</div>
<p>1. alien을 사용하여 rpm을 deb으로 변환.</p>
<div>$ sudo alien -k &#8211;scripts xxxxx.rpm</div>
<p>2. deb  패키지 설치</p>
<div>$ sudo dpkg -i xxxxx.deb</div>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong><span style="font-size:small;">(4) Example</span></strong></p>
<p><strong>시나리오 1)</strong> 우분투에서 vsftpd 소스를 받아서 한글 로그 처리하기</p>
<div><strong>$</strong> sudo apt-get source vsftpd<br />
<strong>$</strong> ls<br />
<span style="color:#0000ff;"><strong>vsftpd-2.0.4</strong></span>  <span style="color:#ff0000;">vsftpd_2.0.4-0ubuntu4.diff.gz</span>  vsftpd_2.0.4-0ubuntu4.dsc  <span style="color:#ff0000;">vsftpd_2.0.4.orig.tar.gz<br />
</span><br />
<strong>$</strong> cd vsftpd-2.0.4<br />
<strong><span style="color:#000000;">vsftpd-2.0.4 $</span></p>
<p><span style="color:#008000;">// 이제 소스 수정을 한다.<br />
// 1. 로그를 한글로 보기 위해..<br />
// logging.c 의 str_replace_unprintable(p_str, &#8216;?&#8217;); 부분을 주석처리.<br />
//<br />
// 2. ps 명령에서도 작업내역을  한글로 보기 위해<br />
//postlogin.c 의 str_replace_unprintable(&amp;proctitle_str, &#8216;?&#8217;); 부분을 주석..</p>
<p>//이미 debian/rules 등이 만들어져 있으므로&#8230;<br />
// 패키지 생성하기만 하면 된다.</span></p>
<p>vsftpd-2.0.4 $</strong> sudo debian/rules binary</div>
<p>만약 패키지에 configure이 있고, 이 configure 옵션을 바꾸려면,<br />
./configure &#8211;help를 참조하여 debian/rules를 수정한다.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/425/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=425&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/12/19/%ec%9a%b0%eb%b6%84%ed%88%ac-%ed%8c%a8%ed%82%a4%ec%a7%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>리눅스 파일 시스템과 하드 마운트하기</title>
		<link>http://koreaubuntu.wordpress.com/2011/12/18/%eb%a6%ac%eb%88%85%ec%8a%a4-%ed%8c%8c%ec%9d%bc-%ec%8b%9c%ec%8a%a4%ed%85%9c%ea%b3%bc-%ed%95%98%eb%93%9c-%eb%a7%88%ec%9a%b4%ed%8a%b8%ed%95%98%ea%b8%b0/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/12/18/%eb%a6%ac%eb%88%85%ec%8a%a4-%ed%8c%8c%ec%9d%bc-%ec%8b%9c%ec%8a%a4%ed%85%9c%ea%b3%bc-%ed%95%98%eb%93%9c-%eb%a7%88%ec%9a%b4%ed%8a%b8%ed%95%98%ea%b8%b0/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 14:08:17 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[시스템관리]]></category>
		<category><![CDATA[경로]]></category>
		<category><![CDATA[시스템]]></category>
		<category><![CDATA[파일]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=414</guid>
		<description><![CDATA[Linux,UNIX** 2011/07/21 09:51 http://blog.naver.com/pjfile/50116292104 출처:http://songeehana.blog.me/40051212020 ■ 리눅스가 낯선 경우.. 보통의 유저들에게 익숙한 MS Windows, MS DOS 의 파일 시스템은 각 하드, 플로피, cdrom 드라이브 별로 드라이브 명이 있고, 각각의 드라이브 명을 최상위 루트로 하고, 그 아래 각각 트리구조로 디렉토리가 구성되어 있다. 리눅스의 파일 시스템은 이와는 조금 다르기 때문에 처음 사용할때는 조금 헷깔릴수 있다. 리눅스의 파일 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=414&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Linux,UNIX** 2011/07/21 09:51 <a href="http://blog.naver.com/pjfile/50116292104">http://blog.naver.com/pjfile/50116292104</a></p>
<p>출처:http://songeehana.blog.me/40051212020</p>
<p>■ 리눅스가 낯선 경우.. 보통의 유저들에게 익숙한 MS Windows, MS DOS 의 파일 시스템은 각 하드, 플로피, cdrom 드라이브 별로 드라이브 명이 있고, 각각의 드라이브 명을 최상위 루트로 하고, 그 아래 각각 트리구조로 디렉토리가 구성되어 있다.</p>
<p>리눅스의 파일 시스템은 이와는 조금 다르기 때문에 처음 사용할때는 조금 헷깔릴수 있다.</p>
<p>리눅스의 파일 시스템은 각각의 하드웨어와 상관없이 최상위 / (root) 디렉토리가 있고 오직 이것을 상위로 한 단 한개의 트리구조가 있을 뿐이다.</p>
<p>MS쪽은 드라이브 별로 나무가 여러 그루라면, 리눅스 쪽은 커다란 한 그루만 있다고 생각하면 된다.</p>
<p>그래서 MS에서는 파일경로를 표기할때 c:\program files\&#8230; 처럼 드라이브 명을 맨처음에 항상 표기하지만, 리눅스 쪽은 /sys/kernel 처럼 바로 root 부터 시작한다.</p>
<p>하나의 트리구조 밖에 없기 때문이다. (엄밀히 말하면 하드링크 덕에 단순 트리 구조는 아니지만..) 리눅스에 하드 디스크가 한개뿐이라면, MS에서 c: 드라이브 하나 뿐이라고 생각하면 간단하게 개념이 정리된다.</p>
<p>&nbsp;</p>
<p>하지만, 씨디롬, 디브이디롬, usb 등등 MS에서 각각 드라이브로 사용할 여러 저장 하드웨어는 여러개 사용할 수 밖에없다.</p>
<p>이럴 땐 기존의 큰 트리구조의 중간에, 이 하드웨어 안의 작은 트리구조를 접목시키듯이 이어주게 된다. 기존의 큰 한그루의 트리구조의 한 가지에, 이 하드웨어의 파일 구조를 하위 구조로 이어주는 이 작업을 mount라 한다.</p>
<p>예전에 리눅스에서 쓰던 데이터가 들어있는 하드디스크라면, 권한의 주인이 같지 않아서 잘 마운트가 되지 않을수도 있다.</p>
<p>이럴 경우에는 root 권한으로 강제로 주인을 현재 로그인유저로 바꾸어주면 된다. 예전같으면 콘솔창에서 복잡한 명령어로 권한 설정하고 해야하겠지만.. 요즘은 라이트 유저도 쓰기 편하게 gui 형태로 마우스 클릭으로 모두 가능하다.</p>
<p>&nbsp;</p>
<p>sudo nautilus로 노틸러스 창을 띄우고 그 창에서 폴더에 오른클릭으로 폴더 속성에 들어가서 바꾸어 주면 된다.</p>
<p>내경우에 처음에 리눅스를 잘 모르고, 혹시나 이 주인과 권한 설정이 데이타 내용을 인크립트 해서, 시스템이 바뀌면 하드내용이 날아가는게 아닐까.. 하고 겁먹었던적이 있어서.. 혹시나 똑같은걸 걱정하는 사람이 있을까봐 사족을 달아본것. 실제로 하드디스크 자체에 암호를 거는 encrypted LVM 기능이 있긴하다.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>■ 하드 추가하기 1. 새로 구입한 하드를 포멧하자. 전원을 끄고 코드도 뽑고 하드를 연결후에 우분투를 부팅하고나서.. 우분투 메뉴 &#8211; 시스템 &#8211; 관리 &#8211; 디스크 도구 를 실행한다. 컴퓨터에 있는 하드들이 왼쪽 리스트에 쭈르륵 보일것이다.</p>
<p>리스트 중에 하드를 선택하면, 오른쪽 창에서, 하드의 정확한 제조명칭과 그 하드가 마운트된 폴더명까지 연결해서 보여주니, 조금만 조심한다면, 잘못해서 다른 하드를 포멧할 위험은 없다.</p>
<p>다들 직관적으로 알수 있는 메뉴라 첨 보더라도 쉽게 사용할수 있다.</p>
<p>NTFS등으로 미리 포맷되어있던 하드라면, 아래쪽에 파티션 삭제를 눌러 먼저 파티션을 없에주고.. 아래쪽 볼륨쪽에서, 초록색 + 표시인 파티션 만들기를 누르자. 다음 설정은 모르면 그냥 만들기 버튼 눌러도 된다.</p>
<p>슬라이드바로 파티션 크기 정해서 여러 파티션으로 나눠주거나, 파일시스템을 EXT4 외에 다른것으로 정해줄수도 있다.</p>
<p>EXT4, 1TB에 2~3분정도.. 예전 버전의 우분투 디스크도구에서는, 새로 포멧할때 파티션 만들기가 아니라 아래쪽에 있는 파티션 테이블 만들기를 눌러주어야 한다.</p>
<p>http://ubuntuforums.org/showthread.php?t=1330081 여기서 보듯.. 다들 헷깔려한다..</p>
<p>&nbsp;</p>
<p>2. 마운트할 디렉토리 설정 윈도우의 NTFS 포멧할때와는 비교할수도 없이 빠르지만.. (빠른 NTFS포멧은 순식간이긴 하지만) 기다리는 동안.. 새로운 하드디스크를 연결하기 전에 미리 그 하드디스크를 마운트 할 디렉토리를 만들어주자. 예를 들면 $sudo mkdir /backupdisk 그 후 이 디렉토리의 주인과 권한을 설정해준다.</p>
<p>chown &amp; chmod 명령해서 주인과 권한 설정하고 ls 등의 명령으로 수정한 내용을 확인하거나..</p>
<p>명령은 다음 형식이다.</p>
<p>$ sudo chown 아이디:그룹명 /경로 $ sudo chmod 권한설정 /경로 방금만들고 텅빈 폴더일테니 하위폴더 옵션인 -R은 필요없다.</p>
<p>예를 들면 $ sudo chown id123:gid123 /backupdisk $ sudo chmod 0775 /backupdisk 혹은 $sudo nautilus 명령을 터미널에 쳐서 root권한으로 노틸러스 열고, 오른클릭메뉴의 속성에서 작업하면 gui로 마우스 클릭만으로 설정 가능하다.</p>
<p>요즘 리눅스의 장점이랄까, 콘솔에 의존하지 않고 상당부분을 gui로 할수 있으니, 적극 활용하는 것도 괜찮다.</p>
<p>지금은 이 /backupdisk 에 파일을 만들거나 하면, 루트디렉토리를 마운트 한 하드디스크에 데이터가 기록된다.</p>
<p>하지만 앞으로 새로추가한 하드를 이 디렉토리로 마운트해준다면 새로운 하드에 그 내용이 써질것이다. *참고 : 띄어쓰기한 폴더명을 터미널 창에서 입력하기 (혹은 &#8220;+&#8221; 등의 특문이 들어간 폴더명도 마찬가지) 띄어쓰기나 +같은 연산자가 포함된 폴더명은 터미널에서 그냥 입력하면 제대로 인식못한다.</p>
<p>파일명 폴더명에 띄어쓰기는 여러가지로 불편해서 비추하고 대신 언더바로 쓰는 버릇도 좋긴하다만, 정 하고 싶다면.. 그 폴더명만 &#8220;&#8221;로 묶어준다. 예를 들면 $mkdir /&#8221;harddisk 2009&#8243; 등으로 해주면 제대로 인식한다.</p>
<p>&nbsp;</p>
<p>3. 마운트 그 다음으로는 새로 추가할 하드디스크를 이 디렉토리에 마운트 시켜주어야 한다.</p>
<p>마운트 하는 방법은 여러가지가 있다.</p>
<p>1. 매번 터미널 창에서 명령으로 마운트 해 쓰는 방법</p>
<p>2. 우분투가 알아서 새 하드를 인식하고 자동으로 마운트 해주는데로 넙죽넙죽 받아먹는 방법 부팅전에 하드를 꼽아두기만 했다면, 알아서 우분투 메뉴 &#8211; 위치 &#8211; 내컴퓨터 바로 아래 항목으로 자동마운트 된다. 단 이러면 원하는 디렉토리에 마운트 할수 없다. 또한 각종 마운트 옵션도 설정하기가 힘들다.</p>
<p>3. fstab 파일을 수정해서 부팅때마다 원하는 설정으로 자동으로 마운트 하도록 하는 방법이 있다.</p>
<p>&nbsp;</p>
<p>먼저 세번째 방법 fstab 으로 마운트 하는 방법부터 알아보면..</p>
<p>■ uuid와 fstab 파일을 이용해서 부팅때 자동으로 하드 디스크를 원하는 디렉토리로 마운트 하기 리눅에서 하드디스크 파티션 인식은 각 하드웨어 파티션별로 고유한 넘버가 할당된 UUID 를 통해 각각을 구분한다.</p>
<p>터미널 창에서 $ ls -l /dev/disk/by-uuid 그러면 하드디스크 리스트가 쭈르륵 뜰것이다.</p>
<p>sda1는 uuid가 땡땡땡, sda2는 &#8230; 이런식으로.. 예전버전 우분투에서는 $ sudo vol_id -u /dev/sdb1 명령어를 사용. sdb1 대신 알고 싶은 파티션 이름을 적으면 된다.</p>
<p>아무 정보 없이 sda1, sda2, adb1, 등으로만 구분되어있어 어떤게 새로 추가한 하드인지 알기 어렵다.</p>
<p>&#8220;우분투 메뉴 &#8211; 시스템 &#8211; 관리 &#8211; 디스크 관리&#8221;를 실행해서 하드 리스트를 보면서 확실하게 알아낼것. sda1 등은 오른쪽 창에 뜬다. 혹은 한단락 아래 있는 글에 여러가지 확인 방법을 적어놨으니 그 방법으로 확인해도 된다.</p>
<p>원하는 하드디스크의 uuid를 마우스로 드래그 해서 우클릭 복사 하자. (ctrl+c로는 콘솔창에서 복사가 힘들다.) sudo gedit /etc/fstab 명령으로 fstab파일을 열고 편집하자. 다음 내용을 기존 내용에 추가로 적는다. # /dev/sdb1 2009년 추가 (등등 맨앞에 #을 적으면 이줄의 내용은 무시하고 읽지 않게 되니, 이줄에는 내가 알아보기 쉽게 설명을 적어놓는다)</p>
<p>UUID=a620ca47-b2d4-4dcc-8e45-af1e6c520d05 /backupdisk ext4 defaults 0 2 형식은 맨처음에 아까 알아낸 uuid를 적고, 다음으로 마운트 될 경로 예를 들면 /backupdisk 등등 미리 만들어두었던 경로명을 적어준다.</p>
<p>그다음은 파일시스템 종류 예를 들면 ext3, ext4, ntfs 등등 단 이 파일시스템은 실제로 그 하드디스크를 포멧한 형식과 같아야 한다.</p>
<p>마지막으로 defaults 0 2 의 마운트 옵션을 적어두면 된다. 대부분의 경우 이 세옵션은, 이렇게 적으면 무난하게 사용할수 있다. 각각의 내용은 tap 키로 띄어 써주자. 작성후에는 물론 save를 해야한다.</p>
<p>깜박하고 관리자 권한으로 열지 않았거나 하면 저장되지 않는다.</p>
<p>gedit 메뉴중, 파일을 나타내는 탭에 적힌 파일명 왼쪽에 별표가 붙어있으면, 수정했으나 아직 저장안한 상태라는 표시이다.</p>
<p>* 인코딩 등의 설정은 거의 건드릴 필요없고 defaults만 써도 충분하다.</p>
<p>* fat32 의 경우에는 vfat 으로 써야 한다. 그외 ntfs, ntfs-3g, jfs, reiserfs, udf, iso9660, swap 등등 * UUID 는 그 파티션을 포멧할때마다 바뀐다.</p>
<p>&nbsp;</p>
<p>■ 제대로 마운트 되었나 안되었나? 이렇게 디렉토리를 만들고, 마운트 해준다고 했지만, 혹시 실수로 뭔가 잘못되지 않았는지 확인해보자.</p>
<p>제대로 마운트 되었다면 이 디렉토리는 새로운 하드로 연결될것이고, 아니라면 기존 루트 디렉토리가 하드로 연결될것이다. 파티션 중에서 최상위 디렉토리에는 일종의 휴지통 디렉토리인 lost+found 디렉토리가 있다.</p>
<p>새로 만든 디렉토리 /backupdisk 를 노틸러스로 열어봤더니, lost+found 디렉토리가 없고 텅텅 비어있다 라면 마운트가 제대로 되지 않은 것이다.</p>
<p>혹은 디스크의 남은 용량을 체크해보거나, 우분투메뉴 &#8211; 시스템 &#8211; 관리 &#8211; 디스크도구 에서 hdd 정보에서도 확인할수 있다.</p>
<p>&nbsp;</p>
<p>■ 어떤 하드가 sda1 이고, 어떤 하드가 sdb2 인지 어떻게 알아볼수 있을까?</p>
<p>주로 cmos에서 하드디스크 부팅 우선순위를 정해 준 순서에 따라,sda, sdb, sdc 등으로 하드디스크가 정해진다. sda라는 하드디스크를 파티션을 여러개 나눠줬으면, sda1, sda2, sda3 등으로 각각의 파티션 별로 번호가 붙는다.</p>
<p>그러나 사용하기 나름으로 얼마든지 바뀌니, 꼭 용량, 하드디스크 모델명(예 WD10EADS-00L5B1) 등으로 확인할것. 하드디스크를 추가해서 sdb였던 것이 sdc로 밀려나면 fstab내용이 엉망이 되지 않을까 하는 걱정은 하지 않아도 된다.</p>
<p>fstab에 쓴 sda, sdb..등은 내가 보기 편하게 정리해둔 주석에만 있을뿐, 실제 마운트는 uuid로 구분 되기 때문이다. uuid는 그 하드디스크를 포멧할 때마다 새로운 값으로 바뀐다.</p>
<p>복잡한 명령어 필요없이 이제는 우분투 메뉴 &#8211; 시스템 &#8211; 도구 &#8211; 디스크 도구 에서 편하게 알아볼수 있다.</p>
<p>터미널에서 $ df -h 을 입력하면 현재 마운트된 위치, 디렉토리명, 총디스크 용량, 사용용량, 등이 자세하게 한눈에 정리해서 볼수 있다.</p>
<p>여기에 추가로 # sudo fdisk -l 명령으로 각 파티션의 파일시스템 (ext3, ntfs 등) 을 확인할 수도 있다.</p>
<p>&nbsp;</p>
<p>■ 첫번째 방법 : 터미널 창에서 명령어로 하드 디스크 마운트하기 fstab으로 설정하기 뭣하고 잠시 사용하는 하드디스크라면 보통은 우분투가 알아서 자동으로 마운트 해준다 (2번째 방법)</p>
<p>하지만 가끔씩은 기존 하드들의 셋팅과 충돌해서 자동으로 마운트 하지 못하는 경우도 있고, 외장하드, cd롬 등등 어쨋거나 수동으로 콘솔에서 마운트 해주어야 할 경우가 종종 있다.</p>
<p>3번째 방법과 마찬가지로 미리 마운트 할 디렉토리를 만들어두고, 위의 방법들로 hdd가 sda1인지 sdb1인지 등등을 알아낸후 # mount -t ntfs /dev/sda1 /mnt/c 명령으로 마운트 한다.</p>
<p>ntfs 에는 파일시스템의 종류를, 마지막 /mnt/c에는 미리 만들어둔 디렉토리 경로를 써준다.</p>
<p>수동으로 마운트를 해제할때는 umount 명령을 사용한다.</p>
<p>unmount가 아니니 스펠링에 주의할것. 미리 그 파티션을 사용하는 프로그램을 모두 꺼주어야 마운트가 해제된다.</p>
<p>사용중이면 메시지가 나오면사 마운트해제 안됨. # umount /dev/sda1 ■ fstab 파일에서 사용하는 마운트 할때 옵션들 일반적인 사용 용도로 하드를 fstab에서 자동마운트 할것이라면 다음의 모든 옵션은 무시하고 defaults 로 써주면 된다.</p>
<p>&nbsp;</p>
<p>출처 : <a href="http://en.wikipedia.org/wiki/Fstab">http://en.wikipedia.org/wiki/Fstab</a></p>
<p>&nbsp;</p>
<p>쓰지도 않을 수두룩한 옵션들은 생략하고.. defaults rw, suid, dev, exec, auto, nouser, async nobootwait 실제 fstab 내용이 문제가 있다면, 오류를 바로 고쳐야 하겠지만 그게 아니라..</p>
<p>fstab에 적은 내용과 지금 하드가 다르다거나 (핫 스왑 등으로 빼놓고 부팅할때), 레이드 문제 등으로 부팅때 the disk driver for /&#8230; is not ready yet or not present. continue to wait; or Press S to skip mounting or M for Manual recovery. 메시지가 나오면서 부팅이 멈추는걸 막을수 있다.</p>
<p>이 옵션이 아니라면 오직 이때문에 부팅때마다 키보드로 s를 쳐주어야 할것이다.</p>
<p>defaults,nobootwait 처럼 스페이스로 띄우지 말고 바로 연결해서 입력해줄것. uid, gid 옵션은 fat 파일시스템을 마운트 할때 user identifier, group identifier를 설정해줄때 사용한다.</p>
<p>umask, dmask, fmask 옵션은 fat파일시스템에서 파일을 생성할때, 디렉토리만 생성할때, 파일만 생성할때 모드 설정. locale 설정은 ntfs-3g 파일시스템일때 설정. Dump 백업 유틸리티 dump를 0이면 사용하지 않음, 1이면 사용. 보통은 사용하지 않는다.</p>
<p>Pass (Fsck Order) 0 == 체크하지 않음, 1 == 이 파티션을 처음으로 체크, 2 == 다음에 이 파티션을 체크 기본값은 30번 마운트 하면 체크.</p>
<p>■ suid, setuid 출처 : http://en.wikipedia.org/wiki/Setuid set user id 의 준말. 유닉스 등에서 사용자가 실행파일의 주인이나 그룹의 허락을 받아 실행파일을 실행할수 있는권한을 나타내는 표식이다.</p>
<p>작업할때 보통의 유저들보다 더 높은 권한이 있어야 할때 setuid 나 setgid(set group id) 가 필요하다.</p>
<p>예를들자면 로그인 패스워드를 바꾸는 등.. 잘못쓰면 보안상 치명적인 결함이 되므로 조심해서 주어야 할 권한이다.</p>
<p>■ ext3 읽기 속도 높이는 요령 출처 :http://myubuntu.tistory.com/entry/EXT3-형식의-약점 Directory Indexting 기능을 이용하자. sudo tune2fs -O dir_index /dev/sda1 (sda1 대신 인덱신 할 파티션명 적을 것)</p>
<p>■ windows 계열 os에서 ext 파일 시스템 읽기 ext2explore 프로그램으로 읽을수 있다. 프로그램 이름은 ext2이지만 ext 계열을 모두 읽을수 있다.</p>
<p>윈도우즈의 내컴퓨터와는 호환되지 않고 별도로 동작하는 프로그램. 여기서 ext 계열의 하드디스크를 읽고 save 버튼으로 기존 윈도우즈 파일시스템 하드로 저장, 즉 복사할수 있다. 어찌된일인지 몇몇 폴더는 빈 폴더로 인식해서 읽을수가 없었다.</p>
<p>이때문에 파일복사하다가 날린 자료 생각하면 아윽.. 덕분에 파일복사후에는 파일수, 용량까지 체크하는 버릇이 들게 해준 아주 고마운(?) 녀석.. 생각만 해도 또 열받네..</p>
<p>■ Encrypted LVM 으로 설정했을때, 하드디스크 성능이 얼마나 떨어질까? <a href="http://www.phoronix.com/scan.php?page=article&amp;item=ubuntu_maverick_encryption&amp;num=1">http://www.phoronix.com/scan.php?page=article&amp;item=ubuntu_maverick_encryption&amp;num=1</a></p>
<p>■ EXT4 의 reseved space 줄이기. EXT4는 기본셋팅으로 용량의 5%를 슈퍼유저를 위해 남겨둔다.</p>
<p>근데 1TB하드라면 46GB.. 2TB하드면 92GB&#8230; 요즘 대용량 하드엔 너무 많다. 리눅스 OS가 있는 파티션은 이 용량을 0%까지 떨어뜨리지 말고, 적당히 남겨두어야 한다.</p>
<p>나머지 저장용 파티션은 0%까지 해도 된다. 0%로 떨어뜨리려면 다음 명령 (좀 남기려면 0대신 다른값으로..) $ sudo tune2fs -m 0 /dev/sdb1 Reseved 용량을 확인하려면 $ sudo tune2fs -l /dev/sdb1 | grep &#8216;Reserved block count&#8217;</p>
<p>■ 심볼릭 링크 vs 하드 링크 비교 심볼릭링크 = 바로가기단축아이콘과 같은 역할, 원본 파일을 가르키는 역할만 할뿐, 실제 파일내용은 없음. ln -s a b 원본을 지우면 심볼릭링크가 없는 대상을 가르킬뿐이다.</p>
<p>inode 다르다. 디렉토리 링크 가능. 다른종류의 파일시스템의 안의 내용을 가르킬수있다.</p>
<p>다른 slice(파티션과 비슷한 개념) 의 내용 가르킬수 있다 하드링크 = 원본파일에 기존 경로/파일명이 아닌 다른 경로/파일명으로 접근할수 있는 길을 새로 만드는것. ln a b 같은 파일을 다른경로/다른이름으로 여러방법으로 접근하되, 차지하는 용량은 1개일때와 동일. 둘중 어느 길로 파일을 수정하게 되더라도, 양쪽 모두의 결과에 영향을 미친다.</p>
<p>원본파일을 지우더라도, 원본 경로만 지워질뿐, 하드링크 쪽 파일은 살아있게 된다. 즉 하드링크를 만들게 되면, 원본과 복사본이라는 구별이 없어진다. inode 동일 디렉토리 링크 불가. 동일한 파일시스템 안의 내용만 가능 동일한 slice 안의 내용만 가능. 파일 복사 = 경로/파일명이 두가지가 되나, 각각 서로 상관없이 독립적으로 수정, 삭제가 이루어진다. 용량도 두배.</p>
<p>&nbsp;</p>
<p>■ ■ ■ ■ ■ ■ ■ 여러가지 (저널링) 파일 시스템 ■ ■ ■ ■ ■ ■ ■ ■</p>
<p>EXT2, EXT3 ext2 는 비동기식 파일 시스템이다. 비동기라는 말은.. 내가 저장 버튼을 눌러도 실제로 하드에 저장은 한참 후에 저장될수 있다는 뜻이다.</p>
<p>매번 마구잡이 저장이 아니라, 한꺼번에 어느정도 모아서 정리한 후에, 실제로 하드에 쓴다고 생각하면 된다. 따라서 성능상의 이점은 있지만, 갑자기 실제 쓰기 전에 정전등으로 시스템 다운되면 문제가 생겨서 무결성 체크에 많은 시간이 든다.</p>
<p>ext3 는 역시나 비동기식 파일 시스템이지만 이를 보완할수 있는 저널링 기능이 추가되었다.</p>
<p>바로 내용을 쓰지는 않지만 그때그때 로그에 기록. 시스템 다운되면 로그내용을 참고해서 복구. 복구 확률이 기존의 ext2보다 상당히 높다. 또한 시스템 부팅때 ext2는 file system check 시간이 상당히 긴 단점이 있는데,이런 리눅스의 단점을 없에준다. 가장 신뢰할 수 있는 안정적인 파일시스템 중 하나이다.</p>
<p>ext3에는 3가지 모드가 있다. 1. journal : 파일 시스템에 데이터를 기록하기 전에 모든 데이터를 저널에 넘긴 뒤 기록하는 방식. 가장 안전한 모드이다. 하지만 매번 같은 데이터를 두번씩 저장하는 꼴이므로 성능이 떨어지게 된다. 2. ordered : 메타데이터가 저널에 넘겨지기 전에 모든 데이터를 강제적으로 먼저 주 파일 시스템에 기록, 비정상적인 시스템 다운 때 문제가 발생할 수도 있다 (우분투의 기본 설정)</p>
<p>3. writeback : 메타데이터만 저널에 넘겨준 후 나중에 데이터를 주 파일 시스템에 기록. 실제적인 성능 향상이 되지만, crash 때 데이터 복구률이 낮다. (성능 &amp; 위험 최대, xfs 등 경쟁파일 시스템의 기본설정) 사용방법은 /etc/fstab 에 옵션 data=?? 부분에 넣거나 mount -o data=?? 으로 하면 된다. (??부분에 옵션 쓸것)</p>
<p>자세한 방법은 다음 링크에서 http://ubuntuforums.org/showthread.php?t=107856 writeback 모드 하면 어플리케이션에서 파일저장 버튼을 눌렀더라도, 노틸러스에서는 그 파일을 아직 못찾을수도 있다. (비동기식 파일시스템) 그럴때는 그냥 노틸러스에서 다시고침 등을 눌러주면 보일것이다.</p>
<p>또한 내부 저널 커밋을 저널이 다 찼을때 할것인가, 특정 시간마다할 것인가에 따라서도 안정성이 달라질수 있다.</p>
<p>기본값은 저널의 1/4가 차거나, 타임아웃이 되었을때 한다. ext3의 장점 : 기존에 가장 많이 쓰던 ext2에서 바로 쉽게 업그레이드 (파일 백업&amp;복사 과정이 필요없이 바로 전환), 다른 경쟁 파일 시스템보다 낮은 cpu 자원 소비. 몇몇 경쟁 파일 시스템이 보여주는 &#8220;안정성(신뢰성) 문제&#8221;가 없다(=갑작스런 정전 등의 사고가 아니라면 데이타가 깨지는 일이 없다.) -&gt;</p>
<p>바꾸어 말하면 정전 사고 이후 윈도우, freeBSD 등 다른 서버는 괜찮고 리눅스 서버만 맛이 가는 경우가 많은데, ext3 파일 시스템이 그 주 원인으로 의심받는 경우가 많다고 한다.</p>
<p>&nbsp;</p>
<p>출처 : http://gauryan.egloos.com/1706561 예전에는 경쟁 시스템에 비해 성능이 많이 뒤진다고 했으나, 그간 발전해서 xfs등과 비교해도 비슷하거나 일부면에서 더 좋다는 평가. ext3의 단점 : 애초에 저널링 파일 시스템을 염두에 두고 만든 파일 시스템이 아니다.</p>
<p>속도가 느리다. (지금은 경쟁자들과 거의 동등한 수준. 신경끄자) inode의 동적 할당및 다양한 블록크기(frag, trail)과 같은 최신 파일시스템설계의 기능이 부족 (구형의 ext2의 연장선이기 때문에) 마운트 도중 fsck 불가능, 마운트 도중 파일시스템의 덤프작업은 데이터 손상이 생길수 있다.</p>
<p>JFS, ext4, XFS 등에 있는 extents 기능을 지원하지 않는 등등 최신 파일 시스템 기술이 적용되어있지 않다.</p>
<p>조각모음 할 도구가 없다.</p>
<p>ext2로 전환해서 하는 방법이 있지만 전환 과정에서 데이타가 손상될수 있다. shake, defrag 등 유저가 만든 툴이 있긴하나 간접적인 방법(파일재복사)을 쓴 것일뿐 제대로 된 defrag 툴은 없다. 압축, 크기제한(링크의 원문참조), 저널링 때 checksum 검사안함, 개발자 stephen tweedie 이름 third extended file system 배포 2001 년 11월 linux 2.4.15 최대파일크기 16GB~2TB 최대파일이름길이 255바이트 최대볼륨크기 2TB~32TB 날짜표현범위 1901-12-14 ~ 2038-01-18 ■ 리눅스 저널링 파일 시스템과 조각모음.. 리눅스 저널링 파일 시스템은 조각모음이 필요없다고 주장하는 사람도 많다. 비동기라는 특성과, 비교적 최근에 개발되어서 기타 진보된 기능으로, MS계열보다 조각단편화가 덜 생기는것은 사실이다.</p>
<p>하지만, MS의 NTFS 파일 시스템도 처음 나왔을때는 조각모음이 필요없는 파일시스템이라 대대적으로 광고했었음에도 불구하고, 요즘은 조각모음이 어느새 MSwindows 필수팁처럼 되어버린걸 생각해보라.. 반복해서 쓰고 지우는데는 아무리 우월한 파일시스템도 조각단편화에 별수 없다.</p>
<p>어느정도까지 느리게 할수 있을뿐.. ext4를 개발하면서 처음단계부터 defrag 기능을 포함해서 개발한것도 간접적으로 이를 증명한다.</p>
<p>■ JFS Jounaling File System IBM의 AIX운영체제로 개발된 저널링 파일 시스템. 심볼릭링크의 성능이 안좋은 단점. 최초의 저널링 파일 시스템이며, 현재 리눅스에서 사용하는 버전은 JFS2 이다. ■ XFS Extended File System SGI 실리콘 그래픽스 가 자사의 IRIX 서버를 위해 개발. 가장 성능이 뛰어나다고 평가받음. ext3와 비교했을때 쓰기는 비슷, 읽기가 빠르다. writeback 저널링 정책을 사용 (risky) 빠른 대신 debuging mode 가 없다. 베드섹터났을때 스스로 처리안해준다. 유저 평이 가장 좋았으나, ext4 가 나오면서;;</p>
<p>■ ReiserFS 처음부터 저널링을 염두에 두고 만들었으며, 리눅스에서 채택한 최초의 저널링 파일 시스템. 저널링 정책으로 ordered 가 기본값으로 설정되어있다. 독일의 한스 라이저 등이 개발. 리눅스(우분투)에서 별다른 설치 없이 처음부터 기본적으로 지원하는 파일 시스템 중 하나. 작은 파일의 경우 성능이 ext2, ext3 보다 10~15배 뛰어나다.</p>
<p>큰 파일 등을 읽을 경우 ext2,3 보다 현저히 떨어짐 ext3와 비교했을 때 NFS와 호환이 나쁘고 퍼포먼스가 나쁘다. 테일 채워넣기 라는 기능으로 단편화를 동적으로 줄이고, 같은 디스크에 약 5%의 데이터를 더 저장할수 있다. 유저들의 사용기에 따르면 하드웨어 특성을 예민하게 타서 안정성에 문제가 있다</p>
<p>유저 평에 의하면 간간히 파일이 깨진다고 한다. 크기등은 그대로이나 내용이 이상하게 바뀐다.</p>
<p>일년에 두세차례 정도 빈도로&#8230; 정전, 다운 사고가 발생하면, ext2는 &#8216;fsck를 돌려라&#8217;는 에러메시지가 나와 복구하는 과정이 자동으로 쉽지만, ReiserFS는 파티션을 아예 인식못하고 단지 에러만 표시, 복구가 힘들다. 복구 정보도 적어서 복구가 쉽지 않다.</p>
<p>주 제작자인 한스 라이저가 중범죄로 감옥살이 하는 덕에 이미지가 덩달아 안 좋아진 면도 있다. (Reiser4 중단.)</p>
<p>■ UFS 프비(FreeBSD)의 기본 파일 시스템. FreeNAS 등 프비 계열의 서버에 관심이 있다면.. ■ EXT4 우분투 9.04 부터는 별도 설치없이 처음부터 지원한다. (단 루트 파티션을 ext4로 하려면 구형 grub으로는 안된다, 재설치 필요) 처음엔 ext2,3 때처럼 하위호환성을 유지한채 개발하려했으나, 개발도중 ext3에서 분리하기로 한다. (2006년 6월) 저널링에 체크섬 기능을 추가 안정성과 성능을 개선 온라인 조각모음 지원 &#8211; 아직은 따로 프로그램을 설치해서 사용해야한다.</p>
<p>파일복구 기능 자체 지원 &#8211; 아직 예정 (EXT3 는 삭제한 파일 복구가 너무 힘들었다) ext3를 포함 대부분 파일 시스템은 초단위로 타임스탬프 자료를 기록하나, ext4는 나노초 까지 정밀도를 높임 저널링 기능을 끄고 사용할 수도 있다.</p>
<p>지금은 버그픽스도 거의 완료되었고, 실제 성능이 상당히 잘 나오는 관계로 ext4가 가장 좋은 선택일 것이다. ext4 마운트 옵션 &#8211; <a href="http://lwn.net/Articles/203915/">http://lwn.net/Articles/203915/</a></p>
<p>■ EXT4 성능 벤치마킹 출처 : http://arstechnica.com/open-source/news/2009/01/super-fast-ext4-filesystem-arrives-in-ubuntu-9-04.ars 위 그래프는 벤치마킹 툴로 측정한 것이고.. 실제 사용에서도 거의 벤치마킹 프로그램 속도까지 나온다는 것이 중요.. 하드속도가 100MB/s넘는 하드끼리의 복사라면, 파일복사속도가 60~70MB/s정도나오며, 동시에 두번째 복사작업을 하나 더 실행하면 추가로 30MB/s 정도로 더나온다.</p>
<p>■ BTRFS 차세대 파일 시스템. 아직 개발중으로 베타 테스트용으로만 사용중. 고성능 대용량 저장을 위한 시스템. GPL 라이센스. 굳이 차세대라는 용어를 쓴 이유는 기존 파일 시스템에서는 없었던 새로운 기능들이 꽤나 많이 적용되었기 때문.. 우분투 10.4 버전부터 포함되었으나, 아직은 성능,안정성 등에 문제가 있다고 함.</p>
<p>■ ZFS 차세대 파일 시스템. 라이센스 문제로 리눅스에서는 보기 힘들듯. Sun 에서 개발. Solaris10부터 적용 이미 사용중.</p>
<p>&nbsp;</p>
<p>■ 저널링 파일 시스템 관련 출처와 references http://www.ibm.com/developerworks/kr/library/l-journaling-filesystems/index.html http://blog.naver.com/kingseft?Redirect=Log&amp;logNo=140004706378 http://blog.naver.com/cosmos115?Redirect=Log&amp;logNo=130002279705 http://blog.n-nuri.com/507 http://kldp.org/node/65341 http://wapedia.mobi/ko/Ext3 http://www.ibm.com/developerworks/kr/library/l-ext4/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/414/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=414&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/12/18/%eb%a6%ac%eb%88%85%ec%8a%a4-%ed%8c%8c%ec%9d%bc-%ec%8b%9c%ec%8a%a4%ed%85%9c%ea%b3%bc-%ed%95%98%eb%93%9c-%eb%a7%88%ec%9a%b4%ed%8a%b8%ed%95%98%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>가장 쉬운 우분투 통째로 옮기기,하드카피</title>
		<link>http://koreaubuntu.wordpress.com/2011/11/30/%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%9a%b0%eb%b6%84%ed%88%ac-%ed%86%b5%ec%a7%b8%eb%a1%9c-%ec%98%ae%ea%b8%b0%ea%b8%b0%ed%95%98%eb%93%9c%ec%b9%b4%ed%94%bc/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/11/30/%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%9a%b0%eb%b6%84%ed%88%ac-%ed%86%b5%ec%a7%b8%eb%a1%9c-%ec%98%ae%ea%b8%b0%ea%b8%b0%ed%95%98%eb%93%9c%ec%b9%b4%ed%94%bc/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 00:33:46 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[Tip & Tech]]></category>
		<category><![CDATA[통째로]]></category>
		<category><![CDATA[시스템복사]]></category>
		<category><![CDATA[하드카피]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=409</guid>
		<description><![CDATA[이 방법이 좋은 이유는 용량이 관계 없다는 것이다. 준비물 1,새하드 2,필기도구 3,acronis 10 이상 부팅cd 4,cd드리이브 우분투를 통째로 새하드에 옮기려면 uuid가 필요하다 uuid는 우분투가 부팅시 하드를 식별하는 아이디이다. 우선 새하드를 붙이고 기존우분투로 부팅후 터미널에서 ls -l /dev/disk/by-uuid 그러면 아래와 같은 문자열이 나온다. total 0 lrwxrwxrwx 1 root root 10 2011-08-11 12:42 1C62E81111E833E4 -&#62; ../../sda2 lrwxrwxrwx [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=409&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>이 방법이 좋은 이유는 용량이 관계 없다는 것이다.</p>
<p>준비물</p>
<p>1,새하드</p>
<p>2,필기도구</p>
<p>3,acronis 10 이상 부팅cd</p>
<p>4,cd드리이브</p>
<p>우분투를 통째로 새하드에 옮기려면 uuid가 필요하다</p>
<p>uuid는 우분투가 부팅시 하드를 식별하는 아이디이다.</p>
<p>우선 새하드를 붙이고 기존우분투로 부팅후</p>
<p>터미널에서</p>
<pre>ls -l /dev/disk/by-uuid</pre>
<p>그러면 아래와 같은 문자열이 나온다.</p>
<pre>total 0 lrwxrwxrwx 1 root root 10 2011-08-11 12:42 1C62E81111E833E4 -&gt; ../../sda2 lrwxrwxrwx 1 root root 10 2011-08-11 12:42 56e9d5f8-1111-4ffc-b02c-9a5b6f3d121a -&gt; ../../sda5

새하드의 uuid를 적어 놓는다.

터미널에서
gksudo gedit /etc/default/grub
grub를 열어서 기존 uuid를 전부 새 uuid 로 변경-모두 바꾸기를 사용하면 편리

다시 터미널에서 grub설정 저장
sudo update-grub
그리고
/boot/grub/menu.lst  도 확인하여 uuid 변경

이제 부터 중요!

시스템을 bios에서 cd 부팅하여  acronis로 진입 acronis 상단메뉴중(오른쪽 말고) 하드 복사를 선택 -복사가 끝나면 구하드 떼어내면 끝</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=409&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/11/30/%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%9a%b0%eb%b6%84%ed%88%ac-%ed%86%b5%ec%a7%b8%eb%a1%9c-%ec%98%ae%ea%b8%b0%ea%b8%b0%ed%95%98%eb%93%9c%ec%b9%b4%ed%94%bc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>UBUNTU 디렉토리구조</title>
		<link>http://koreaubuntu.wordpress.com/2011/08/15/ubuntu-%eb%94%94%eb%a0%89%ed%86%a0%eb%a6%ac%ea%b5%ac%ec%a1%b0/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/08/15/ubuntu-%eb%94%94%eb%a0%89%ed%86%a0%eb%a6%ac%ea%b5%ac%ec%a1%b0/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 06:57:19 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[어디서 부터 시작할까?]]></category>
		<category><![CDATA[디렉토리]]></category>

		<guid isPermaLink="false">http://koreaubuntu.wordpress.com/?p=403</guid>
		<description><![CDATA[우분투 디렉토리구조 리눅스의 디렉토리에 구조는 유닉스의 디렉토리 구조를 따릅니다. 우분투도 리눅스의 자식이라 거의 같은 디렉토리를 사용합니다. &#160; MS윈도우와 달리 리눅스의 디렉토리 구조는 매우 세분화 되어 있으며 같은 디렉토리도 다른 위치에 링크되어 있기 때문에 더욱 복잡합니다. &#160; 서브로 한단계만 들어가도 이해하기 힘들며 디렉토리 구조를 모두 이해하기란 결코 쉬운 일이 아닙니다. &#160; 글을 쓰는 저자도 이 방면에는 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=403&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<h1>우분투 디렉토리구조</h1>
<p>리눅스의 디렉토리에 구조는 유닉스의 디렉토리 구조를 따릅니다.</p>
<p>우분투도 리눅스의 자식이라 거의 같은 디렉토리를 사용합니다.</p>
<p>&nbsp;</p>
<p>MS윈도우와 달리 리눅스의 디렉토리 구조는 매우 세분화 되어 있으며 같은 디렉토리도</p>
<p>다른 위치에 링크되어 있기 때문에 더욱 복잡합니다.</p>
<p>&nbsp;</p>
<p>서브로 한단계만 들어가도 이해하기 힘들며 디렉토리 구조를 모두 이해하기란 결코 쉬운</p>
<p>일이 아닙니다.</p>
<p>&nbsp;</p>
<p>글을 쓰는 저자도 이 방면에는 젠벵이라 10분의1도 모른다고 자신 있게 말할 수 있습니다.</p>
<p>일단 상위 디렉토리와 중요한 디렉토리만 간략히 살펴보도록 하겠습니다.</p>
<p>&nbsp;</p>
<p>1. /bin</p>
<p>bin은 binary(기계어) 라는 뜻으로 보통 실행파일을 의미합니다.</p>
<p>(MS윈도우의 경우 bin 파일이 /Windows, /Windows/System32 에 산재되어 있습니다.)</p>
<p>&nbsp;</p>
<p>ls, cp, mv 등의 기본적인 콘솔 명령어가 이 곳에 위치합니다.</p>
<p>즉 $ cp hello.txt good.txt 는 $ /bin/cp hello.txt good.txt 과 같은 의미입니다.</p>
<p>여기에 있는 프로그램들은 시스템 파일이므로 지워서는 안 됩니다.</p>
<p>&nbsp;</p>
<p>2. /boot</p>
<p>전원을 키고 부팅할 경우 필요한 파일들이 위치합니다.</p>
<p>커널에 대한 link, 기타 초기화 파일들이 있어 이 곳은 절대 손대면 안됩니다.</p>
<p>(MS도스의 IO.SYS 나 MSDOS.SYS로 이해하시면 편합니다.)</p>
<p>&nbsp;</p>
<p>/boot/grub 은 부트메니저 grub의 설정이 들어 있습니다.</p>
<p>이 곳의 menu.lst 파일을 조작하면 부팅설정 변경이 가능합니다.</p>
<p>&nbsp;</p>
<p>3. /dev</p>
<p>dev는 device(장치) 라는 의미입니다.</p>
<p>이 곳에는 컴퓨터에 연결된 모든 장치가 파일로 표현되어 모여 있습니다.</p>
<p>&nbsp;</p>
<p>리눅스는 입출력을 파일로 대신하는 구조로 이루어져 있습니다.</p>
<p>플로피나 하드드라이브는 MS윈도우에서 드라이브명(a:, c:) 을 할당 받지만</p>
<p>리눅스에서는 단지 단순한 파일로 대체됩니다.</p>
<p>&nbsp;</p>
<p>/dev/fd 는 플로피이고 /dev/hd 는 하드디스크 /dev/mouse 는 마우스를 의미합니다.</p>
<p>프린터, 콘솔, 포트등도 모두 이 곳에 위치합니다.</p>
<p>( /dev/hda 는 첫번째 IDE 하드 디스크 전체이고, 그중 /dev/hda1 은</p>
<p>그 하드 디스크의 첫번째 파티션을 의미합니다. 요즘은 거의 sda로 대체되고 있습니다.)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>4. /etc</p>
<p>이 곳은 리눅스의 거의 모든 설정 파일이 위치합니다.</p>
<p>여기 파일들을 조작해 프로그램 설정을 변경할 수 있습니다.</p>
<p>(MS윈도우의 레지스트리(Registry)에 해당합니다.)</p>
<p>&nbsp;</p>
<p>전체 사용자의 암호를 갖고 있는 /etc/passwd, X Window, Fonts 설정파일이 있으며</p>
<p>우리가 사용하는 각종 프로그램의 설정 파일들이 이 곳에 위치합니다.</p>
<p>여기를 자주 들려야 리눅스 실력이 향상됩니다.</p>
<p>&nbsp;</p>
<p>/etc/init.d 와 rcx.d</p>
<p>여기는 MS윈도우의 config.sys에 해당한다고 보시면 됩니다.</p>
<p>하지만 파일이 하나가 아니고 한 디렉토리가 꽉 찹니다.</p>
<p>리눅스 시작시 시동해야 할 데몬이나 스크립트들이 모여있습니다.</p>
<p>&nbsp;</p>
<p>/etc/profile</p>
<p>MS윈도우의 autoexec.bat에 해당합니다.</p>
<p>여기서 프롬프트를 변경하거나 시작 프로그램을 추가할 수 있습니다.</p>
<p>&nbsp;</p>
<p>/etc/fstab</p>
<p>파일 시스템의 마운팅 여부를 설정합니다.</p>
<p>하드나 파티션을 추가한 경우 이 곳의 설정을 변경합니다.</p>
<p>fstab은 시스템에 아주 중요한 파일이며 알아두면 아주 유용합니다.</p>
<p>&nbsp;</p>
<p>5. /home</p>
<p>각 사용자들의 홈 디렉토리를 포함하고 있습니다.</p>
<p>예를 들어 hello 사용자의 홈 디렉토리는 /home/hello 가 됩니다.</p>
<p>/home/hello 아래에는 각 사용자의 개인설정 파일과 바탕화면, 문서등이 저장됩니다.</p>
<p>(MS윈도우의 /Documents and Settings 에 해당합니다.)</p>
<p>&nbsp;</p>
<p>시스템을 다시 설치한다면 이 디렉토리는 백업해 두는 것이 좋습니다.</p>
<p>&nbsp;</p>
<p>6. /lib</p>
<p>여기에는 시스템 전체 운영에 필수적인 공유 라이브러리가 들어 있습니다.</p>
<p>라이브러리란 프로그램이 실행될 때 가져다 쓰는 프로그램이라 생각하시면 됩니다.</p>
<p>파일을 추가만 하시고 삭제는 하지 마세요. 시스템이 멈출 수 있습니다.</p>
<p>&nbsp;</p>
<p>7. /lost+found</p>
<p>파일 시스템을 체크하는 경우 잃어버린 파일(?)을 찾아서 이곳에 위치시킵니다.</p>
<p>&nbsp;</p>
<p>8. /media</p>
<p>플로피나 CD, USB 메모리의 마운트 포인트로 활용됩니다.</p>
<p>(마운트 포인트는 마운트된 장치에 접근할 수 있는 디렉토리를 말합니다.)</p>
<p>마운트된 플로피의 내용을 보고 싶다면 이 곳을 찾으면 됩니다.</p>
<p>CD를 넣으면 이 디렉토리 아래 마운트 포인트가 생성됩니다.</p>
<p>&nbsp;</p>
<p>9. /mnt</p>
<p>저장장치나 주변 장치의 마운트 포인트로 활용됩니다.</p>
<p>&nbsp;</p>
<p>10. /opt</p>
<p>이 곳은 원래 상용프로그램이 위치하는 장소입니다.</p>
<p>&nbsp;</p>
<p>11. /proc</p>
<p>여기 보이는 것은 실제 파일이 아니라 메모리에서 실행되고 있는 프로세스를 보여주는 곳입니다.</p>
<p>프로세스(process)란 실제 메모리에서 실행되는 프로그램이라 생각하시면 됩니다.</p>
<p>&nbsp;</p>
<p>볼 수만 있는 것이 아니라 파일같이 이용해서 각 프로세스를 참조할 수도 있습니다.</p>
<p>이러한 방식을 리눅스의 가상 파일 시스템이라고 합니다.</p>
<p>&nbsp;</p>
<p>12. /root</p>
<p>root 계정 사용자도 홈디렉토리가 있습니다.</p>
<p>하지만 /home에 위치하지 않고 바로 이 곳 /root를 이용합니다.</p>
<p>이유는 남들이 함부로 들어오지 못 하도록 하기 위함입니다.</p>
<p>&nbsp;</p>
<p>13. /sbin</p>
<p>/bin 와 같은 개념이지만 시스템 관리자가 사용하는 파일들이 저장되어 있습니다.</p>
<p>(&#8220;sbin&#8221;는 &#8220;safe binary&#8221;의 의미로 superuser만 사용해서 안전하다는 뜻입니다. )</p>
<p>fdisk, mkfs, init, halt 등 시스템 관련 파일이 위치합니다.</p>
<p>잘못 조작할 경우 전체 시스템에 이상을 초래할 수도 있습니다.</p>
<p>&nbsp;</p>
<p>14. /srv</p>
<p>서비스 디렉토리로 주로 인터넷 관련 파일이 위치합니다.</p>
<p>&nbsp;</p>
<p>15. /subdomain</p>
<p>서브도메인을 사용하지 않으면 비어 있습니다.</p>
<p>&nbsp;</p>
<p>16. /sys</p>
<p>리눅스 시스템이 필요로 하는 파일들입니다.</p>
<p>손대지 않는게 좋습니다.</p>
<p>&nbsp;</p>
<p>17. /tmp</p>
<p>임시 저장 파일을 담고 있습니다.</p>
<p>(MS윈도우 /temp와 같습니다.)</p>
<p>&nbsp;</p>
<p>18. /usr</p>
<p>/usr 는 시스템에 필수적인 요소는 아니지만 사용자에게는 아주 중요한 디렉토리입니다.</p>
<p>거의 모든 응용프로그램이 이 곳에 위치하며 일부 설정 파일도 들어 있습니다.</p>
<p>&nbsp;</p>
<p>라이브러리도 존재하고 컴파일 환경도 위치하고 무엇보다도 X Window가 여기에 있습니다.</p>
<p>(MS윈도우의 /Program Files에 해당하지만 더 큰 의미를 가집니다. 리눅스는 X Window도</p>
<p>시스템이라기보다 응용프로그램으로 생각합니다.)</p>
<p>&nbsp;</p>
<p>몇 가지 중요한 서브디렉토리를 살펴보겠습니다.</p>
<p>&nbsp;</p>
<p>/usr/bin</p>
<p>우리가 사용하는 대부분의 응용프로그램이 이 곳에 위치함니다.</p>
<p>(적은 의미의 MS윈도우의 /Program Files에 해당합니다.)</p>
<p>&nbsp;</p>
<p>/usr/X11R6</p>
<p>X 윈도우에 관계되는 모든 프로그램, 설정 파일, 그리고 지원 파일들이 들어 있습니다.</p>
<p>&nbsp;</p>
<p>/usr/include</p>
<p>C 컴파일러에 대한 헤더 파일을 포함하고 있습니다.</p>
<p>&nbsp;</p>
<p>/usr/lib</p>
<p>/lib와 같은 기능을 하지만 주로 응용프로그램에 관련된 라이브러리가 위치합니다.</p>
<p>&nbsp;</p>
<p>/usr/local</p>
<p>과거에는 이 곳에 응용 프로그램이 많이 설치 되었지만 점차 사용이 줄어들고 있습니다.</p>
<p>&nbsp;</p>
<p>/usr/share/man</p>
<p>메뉴얼 페이지를 저장하고 있는 디렉토리입니다.</p>
<p>하나씩 읽어보면(?) 배우는게 많습니다.</p>
<p>&nbsp;</p>
<p>/usr/share/doc</p>
<p>설치된 프로그램에 대한 추가 정보를 볼 수 있습니다.</p>
<p>&nbsp;</p>
<p>/usr/src</p>
<p>이 디렉토리는 컴파일 되지 않은 다양한 프로그램 소스들이 들어 있습니다.</p>
<p>이 곳에서 비디오 드라이버 모듈을 만들기도 하고 RPM을 만들어 내기도 합니다.</p>
<p>리눅스 커널 소스도 이 곳에 위치합니다.</p>
<p>&nbsp;</p>
<p>19. /var</p>
<p>이 곳은 시스템 운영 도중에 파일 크기가 변하는 요소들을 담고 있는 디렉토리입니다.</p>
<p>간단히 말해 게임하다가 최고점이 나오면 점수를 여기에 저장합니다.</p>
<p>그 외에도 시스템 유지에 필요한 중요한 파일들이 이 곳에 위치합니다.</p>
<p>&nbsp;</p>
<p>출처 : <a href="http://ubuntu.or.kr/viewtopic.php?p=6108">http://ubuntu.or.kr/viewtopic.php?p=6108</a></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=403&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/08/15/ubuntu-%eb%94%94%eb%a0%89%ed%86%a0%eb%a6%ac%ea%b5%ac%ec%a1%b0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>최신 동영상 ffmeeg x264 코덱 설치</title>
		<link>http://koreaubuntu.wordpress.com/2011/07/24/%ec%b5%9c%ec%8b%a0-%eb%8f%99%ec%98%81%ec%83%81-ffmeeg-x264-%ec%bd%94%eb%8d%b1-%ec%84%a4%ec%b9%98/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/07/24/%ec%b5%9c%ec%8b%a0-%eb%8f%99%ec%98%81%ec%83%81-ffmeeg-x264-%ec%bd%94%eb%8d%b1-%ec%84%a4%ec%b9%98/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 22:46:55 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[멀티미디어]]></category>
		<category><![CDATA[Codec]]></category>

		<guid isPermaLink="false">https://koreaubuntu.wordpress.com/2011/07/24/%ec%b5%9c%ec%8b%a0-%eb%8f%99%ec%98%81%ec%83%81-ffmeeg-x264-%ec%bd%94%eb%8d%b1-%ec%84%a4%ec%b9%98/</guid>
		<description><![CDATA[FFmpeg is a versatile tool to encode and decode a multitude of video and audio formats. x264 encodes high-quality H.264 video. Choose your Ubuntu 0.The instructions on the page are for Ubuntu Natty Narwhal 11.04 and Ubuntu Maverick Meerkat 10.10. Separate instructions are also available for older, supported releases: Install FFmpeg and x264 on Ubuntu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=402&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>FFmpeg is a versatile tool to encode and decode a multitude of video and audio formats. x264 encodes high-quality H.264 video.</p>
<p>Choose your Ubuntu<br />
0.The instructions on the page are for Ubuntu Natty Narwhal 11.04 and Ubuntu Maverick Meerkat 10.10. Separate instructions are also available for older, supported releases:<br />
Install FFmpeg and x264 on Ubuntu Lucid Lynx 10.04 LTS<br />
Install FFmpeg and x264 on Ubuntu Hardy Heron 8.04 LTS<br />
Retired Guides: Ubuntu Karmic Koala 9.10 Ubuntu Jaunty Jackalope 9.04, Ubuntu Intrepid Ibex 8.10, Ubuntu Dapper Drake 6.06 LTS</p>
<p>Install the Dependencies<br />
1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following (you can usually paste into a terminal with shift+ctrl+v). Copy and paste the whole code box for each step.<br />
Code:<br />
sudo apt-get remove ffmpeg x264 libx264-dev<br />
2. Get all of the packages you will need to install FFmpeg and x264 (you may need to enable the Universe and Multiverse repositories):<br />
Code:<br />
sudo apt-get update<br />
sudo apt-get install build-essential checkinstall git checkinstall libfaac-dev \<br />
    libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \<br />
    libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \<br />
    libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev</p>
<p>Install x264<br />
3. Get the current source files, compile, and install x264.<br />
Code:<br />
cd<br />
git clone git://git.videolan.org/x264<br />
cd x264<br />
./configure &#8211;enable-static<br />
make<br />
sudo checkinstall &#8211;pkgname=x264 &#8211;pkgversion=&#8221;3:$(./version.sh | \<br />
    awk -F&#8217;[" ]&#8216; &#8216;/POINT/{print $4&#8243;+git&#8221;$5}&#8217;)&#8221; &#8211;backup=no &#8211;deldoc=yes \<br />
    &#8211;fstrans=no &#8211;default</p>
<p>Install libvpx (optional)<br />
4. This is used to encode VP8 video. If you follow this step, add &#8211;enable-libvpx to the FFmpeg ./configure line in step 5.<br />
Code:<br />
sudo apt-get remove libvpx-dev<br />
cd<br />
git clone git://review.webmproject.org/libvpx<br />
cd libvpx<br />
./configure<br />
make<br />
sudo checkinstall &#8211;pkgname=libvpx &#8211;pkgversion=&#8221;1:$(date +%Y%m%d%H%M)-git&#8221; &#8211;backup=no \<br />
    &#8211;deldoc=yes &#8211;fstrans=no &#8211;default</p>
<p>Install FFmpeg<br />
5. Get the most current source files, compile, and install FFmpeg.<br />
Code:<br />
cd<br />
git clone git://git.videolan.org/ffmpeg<br />
cd ffmpeg<br />
./configure &#8211;enable-gpl &#8211;enable-libfaac &#8211;enable-libmp3lame &#8211;enable-libopencore-amrnb \<br />
    &#8211;enable-libopencore-amrwb &#8211;enable-libtheora &#8211;enable-libvorbis &#8211;enable-libx264 \<br />
    &#8211;enable-libxvid &#8211;enable-nonfree &#8211;enable-postproc &#8211;enable-version3 &#8211;enable-x11grab<br />
make<br />
sudo checkinstall &#8211;pkgname=ffmpeg &#8211;pkgversion=&#8221;5:$(date +%Y%m%d%H%M)-git&#8221; &#8211;backup=no \<br />
  &#8211;deldoc=yes &#8211;fstrans=no &#8211;default<br />
hash x264 ffmpeg ffplay ffprobe</p>
<p>Install qt-faststart (optional)<br />
6. This is a useful tool if you&#8217;re showing your H.264 MP4 videos on the web. It relocates some data in the video to allow playback to begin before the file is completely downloaded. Usage: qt-faststart input.mp4 output.mp4.<br />
Code:<br />
cd ~/ffmpeg<br />
make tools/qt-faststart<br />
sudo checkinstall &#8211;pkgname=qt-faststart &#8211;pkgversion=&#8221;$(date +%Y%m%d%H%M)-git&#8221; &#8211;backup=no \<br />
    &#8211;deldoc=yes &#8211;fstrans=no &#8211;default install -D -m755 tools/qt-faststart \<br />
    /usr/local/bin/qt-faststart</p>
<p>Adding lavf support to x264 (optional)<br />
7. This allows x264 to accept just about any input that FFmpeg can handle and is useful if you want to directly use x264.<br />
Code:<br />
cd ~/x264<br />
make distclean<br />
./configure &#8211;enable-static<br />
make<br />
sudo checkinstall &#8211;pkgname=x264 &#8211;pkgversion=&#8221;3:$(./version.sh | \<br />
    awk -F&#8217;[" ]&#8216; &#8216;/POINT/{print $4&#8243;+git&#8221;$5}&#8217;)&#8221; &#8211;backup=no &#8211;deldoc=yes \<br />
    &#8211;fstrans=no &#8211;default<br />
That&#8217;s it for installation. You can keep the x264, libvpx, and ffmpeg directories in your home directory if you plan on updating later. See Updating FFmpeg and x264 below for more details.</p>
<p>Using FFmpeg and x264<br />
The easiest method for high quality video encoding is by using the libx264 presets. See x264 &#8211;fullhelp for more info on these options.</p>
<p>One-pass CRF (Constant Rate Factor) using the slow preset. One-pass CRF is good for general encoding and is what I use most often. Adjust -crf to change the quality. Lower numbers mean higher quality and a larger output file size. A sane range is 18 to 28.<br />
Code:<br />
ffmpeg -i input -acodec libfaac -aq 100 -vcodec libx264 -preset slow -crf 22 \<br />
    -threads 0 output.mp4<br />
One-pass CRF (Constant Rate Factor) using the medium preset, animation tuning, baseline profile, and level 3.0:<br />
Code:<br />
ffmpeg -i input -acodec libfaac -aq 100 -vcodec libx264 -preset medium \<br />
    -tune animation -profile baseline -level 3.0 -crf 20 -threads 0 output.mp4<br />
Two-Pass encode using the fast preset. Two-pass encoding is usually used when you want a specific output file size.<br />
Code:<br />
ffmpeg -i input -pass 1 -vcodec libx264 -preset fast -b 512k -threads 0 \<br />
    -f mp4 -an -y /dev/null &amp;&amp; ffmpeg -i input.avi -pass 2 -acodec libfaac -ab 128k \<br />
    -ac 2 -vcodec libx264 -preset fast -b 512k -threads 0 output.mp4</p>
<p>Updating FFmpeg and x264<br />
Development of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. First, remove some packages and then update the dependencies:<br />
Code:<br />
sudo apt-get remove ffmpeg x264 libx264-dev libvpx-dev<br />
sudo apt-get update<br />
sudo apt-get install build-essential git checkinstall yasm texi2html \<br />
  libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev \<br />
  libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev \<br />
  libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev<br />
Update x264:<br />
Code:<br />
cd ~/x264<br />
make distclean<br />
git pull<br />
Now compile x264 as shown earlier in the guide starting with the x264 ./configure line. Update libvpx:<br />
Code:<br />
cd ~/libvpx<br />
make clean<br />
git pull<br />
Now compile libvpx as shown earlier in the guide starting with the libvpx ./configure line. Update FFmpeg:<br />
Code:<br />
cd ~/ffmpeg<br />
make distclean<br />
git pull<br />
Finish the installation starting with the FFmpeg ./configure line.</p>
<p>Reverting Changes Made by This Guide<br />
To remove FFmpeg/x264 and other packages added for this guide:<br />
Code:<br />
sudo apt-get autoremove x264 ffmpeg qt-faststart build-essential git checkinstall \<br />
  yasm texi2html libfaac-dev libjack-jackd2-dev libmp3lame-dev libsdl1.2-dev \<br />
  libtheora-dev libva-dev libvdpau-dev libvorbis-dev libvpx libx11-dev libxfixes-dev \<br />
  libxvidcore-dev zlib1g-dev<br />
Lastly, delete the x264, libvpx, and ffmpeg directories in your home folder.</p>
<p>Additional Resources<br />
x264 revision log<br />
FFmpeg revision log<br />
HOWTO: Proper Screencasting on Linux<br />
HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoders in FFmpeg</p>
<p>If You Need Help<br />
Feel free to ask your questions here and we will try to answer you. Helpful information includes your Ubuntu version, names of any third-party repositories or PPAs you are using, FFmpeg command, and the complete FFmpeg output if applicable. Other sources for help are the #ffmpeg IRC channel and the ffmpeg-user mailing list.</p>
<p>Recent Updates<br />
2011-07-11: (Natty/Maverick) Replaced git-core dependency with git because git-core is the old, obsolete name.<br />
2011-07-10: (Natty/Maverick) Removed &#8211;enable-vaapi and &#8211;enable-vdpau from FFmpeg configure. This is still autodetected, and therefore usually not required, but the documentation was unclear and there was a misleading comment in a relevant commit.<br />
2011-07-06: (Natty/Maverick) Add &#8211;enable-vaapi and &#8211;enable-vdpau to FFmpeg configure. Sort FFmpeg configure options alphabetically.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/402/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=402&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/07/24/%ec%b5%9c%ec%8b%a0-%eb%8f%99%ec%98%81%ec%83%81-ffmeeg-x264-%ec%bd%94%eb%8d%b1-%ec%84%a4%ec%b9%98/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
		<item>
		<title>System backup</title>
		<link>http://koreaubuntu.wordpress.com/2011/07/24/system-backup/</link>
		<comments>http://koreaubuntu.wordpress.com/2011/07/24/system-backup/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 22:42:57 +0000</pubDate>
		<dc:creator>davidlee9023</dc:creator>
				<category><![CDATA[시스템관리]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">https://koreaubuntu.wordpress.com/2011/07/24/system-backup/</guid>
		<description><![CDATA[Hi, and welcome to the Heliode guide to successful backing-up and restoring of a Linux system! Most of you have probably used Windows before you started using Ubuntu. During that time you might have needed to backup and restore your system. For Windows you would need proprietary software for which you would have to reboot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=401&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi, and welcome to the Heliode guide to successful backing-up and restoring of a Linux system!</p>
<p>Most of you have probably used Windows before you started using Ubuntu. During that time you might have needed to backup and restore your system. For Windows you would need proprietary software for which you would have to reboot your machine and boot into a special environment in which you could perform the backing-up/restoring (programs like Norton Ghost).<br />
During that time you might have wondered why it wasn&#8217;t possible to just add the whole c:\ to a big zip-file. This is impossible because in Windows, there are lots of files you can&#8217;t copy or overwrite while they are being used, and therefore you needed specialized software to handle this.</p>
<p>Well, I&#8217;m here to tell you that those things, just like rebooting, are Windows CrazyThings &#8482;. There&#8217;s no need to use programs like Ghost to create backups of your Ubuntu system (or any Linux system, for that matter). In fact; using Ghost might be a very bad idea if you are using anything but ext2. Ext3, the default Ubuntu partition, is seen by Ghost as a damaged ext2 partition and does a very good job at screwing up your data. </p>
<p>1: Backing-up</p>
<p>&#8220;What should I use to backup my system then?&#8221; might you ask. Easy; the same thing you use to backup/compress everything else; TAR. Unlike Windows, Linux doesn&#8217;t restrict root access to anything, so you can just throw every single file on a partition in a TAR file! </p>
<p>To do this, become root with<br />
Code:<br />
sudo su<br />
and go to the root of your filesystem (we use this in our example, but you can go anywhere you want your backup to end up, including remote or removable drives.)<br />
Code:<br />
cd /<br />
Now, below is the full command I would use to make a backup of my system:</p>
<p>Code:<br />
tar cvpzf backup.tgz &#8211;exclude=/proc &#8211;exclude=/lost+found &#8211;exclude=/backup.tgz &#8211;exclude=/mnt &#8211;exclude=/sys /<br />
Now, lets explain this a little bit.<br />
The &#8216;tar&#8217; part is, obviously, the program we&#8217;re going to use.</p>
<p>&#8216;cvpfz&#8217; are the options we give to tar, like &#8216;create archive&#8217; (obviously),<br />
&#8216;preserve permissions&#8217;(to keep the same permissions on everything the same), and &#8216;gzip&#8217; to keep the size down.</p>
<p>Next, the name the archive is going to get. backup.tgz in our example.</p>
<p>Next comes the root of the directory we want to backup. Since we want to backup everything; /</p>
<p>Now come the directories we want to exclude. We don&#8217;t want to backup everything since some dirs aren&#8217;t very useful to include. Also make sure you don&#8217;t include the file itself, or else you&#8217;ll get weird results.<br />
You might also not want to include the /mnt folder if you have other partitions mounted there or you&#8217;ll end up backing those up too. Also make sure you don&#8217;t have anything mounted in /media (i.e. don&#8217;t have any cd&#8217;s or removable media mounted). Either that or exclude /media.</p>
<p>EDIT : kvidell suggests below we also exclude the /dev directory. I have other evidence that says it is very unwise to do so though.</p>
<p>Well, if the command agrees with you, hit enter (or return, whatever) and sit back&amp;relax. This might take a while.</p>
<p>Afterwards you&#8217;ll have a file called backup.tgz in the root of your filessytem, which is probably pretty large. Now you can burn it to DVD or move it to another machine, whatever you like!</p>
<p>EDIT2:<br />
At the end of the process you might get a message along the lines of &#8216;tar: Error exit delayed from previous errors&#8217; or something, but in most cases you can just ignore that.</p>
<p>Alternatively, you can use Bzip2 to compress your backup. This means higher compression but lower speed. If compression is important to you, just substitute<br />
the &#8216;z&#8217; in the command with &#8216;j&#8217;, and give the backup the right extension.<br />
That would make the command look like this:</p>
<p>Code:<br />
tar cvpjf backup.tar.bz2 &#8211;exclude=/proc &#8211;exclude=/lost+found &#8211;exclude=/backup.tar.bz2 &#8211;exclude=/mnt &#8211;exclude=/sys /<br />
2: Restoring</p>
<p>Warning: Please, for goodness sake, be careful here. If you don&#8217;t understand what you are doing here you might end up overwriting stuff that is important to you, so please take care!</p>
<p>Well, we&#8217;ll just continue with our example from the previous chapter; the file backup.tgz in the root of the partition.</p>
<p>Once again, make sure you are root and that you and the backup file are in the root of the filesystem.</p>
<p>One of the beautiful things of Linux is that This&#8217;ll work even on a running system; no need to screw around with boot-cd&#8217;s or anything. Of course, if you&#8217;ve rendered your system unbootable you might have no choice but to use a live-cd, but the results are the same. You can even remove every single file of a Linux system while it is running with one command. I&#8217;m not giving you that command though! </p>
<p>Well, back on-topic.<br />
This is the command that I would use:</p>
<p>Code:<br />
 tar xvpfz backup.tgz -C /<br />
Or if you used bz2;</p>
<p>Code:<br />
 tar xvpfj backup.tar.bz2 -C /<br />
WARNING: this will overwrite every single file on your partition with the one in the archive!</p>
<p>Just hit enter/return/your brother/whatever and watch the fireworks. Again, this might take a while. When it is done, you have a fully restored Ubuntu system! Just make sure that, before you do anything else, you re-create the directories you excluded:<br />
Code:<br />
mkdir proc<br />
mkdir lost+found<br />
mkdir mnt<br />
mkdir sys<br />
etc&#8230;<br />
And when you reboot, everything should be the way it was when you made the backup!</p>
<p>2.1: GRUB restore<br />
Now, if you want to move your system to a new harddisk or if you did something nasty to your GRUB (like, say, install Windows), You&#8217;ll also need to reinstall GRUB.<br />
There are several very good howto&#8217;s on how to do that here on this forum, so i&#8217;m not going to reinvent the wheel. Instead, take a look here:</p>
<p>http://www.ubuntuforums.org/showthre&#8230;t=grub+restore</p>
<p>There are a couple of methods proposed. I personally recommend the second one, posted by remmelt, since that has always worked for me. </p>
<p>Well that&#8217;s it! I hope it was helpful!<br />
As always, any feedback is appreciated!<br />
__________________<br />
&#8220;Windows is something to overcome&#8221;</p>
<p>Howto&#8217;s by me:<br />
Tweak firefox! (URL now works..)<br />
Backup/Restore your system!<br />
Avoid having to reboot</p>
<p>Compentux.org , the Linux Tip &amp; Howto gathering initiative!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koreaubuntu.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koreaubuntu.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koreaubuntu.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koreaubuntu.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/koreaubuntu.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/koreaubuntu.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/koreaubuntu.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/koreaubuntu.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koreaubuntu.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koreaubuntu.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koreaubuntu.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koreaubuntu.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koreaubuntu.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koreaubuntu.wordpress.com/401/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koreaubuntu.wordpress.com&amp;blog=8929304&amp;post=401&amp;subd=koreaubuntu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://koreaubuntu.wordpress.com/2011/07/24/system-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01059553ef3c863683fd333ca1841c2f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">사랑아빠</media:title>
		</media:content>
	</item>
	</channel>
</rss>
