반응형


집에서 사용하는 라우터에 usb 하드디스크를 물려 망내 쉐어디스크로 사용중이며 samba 로 연결하여, 편리한게 아이패드나, 아이폰 그리고 xbmc 에서 미디어 파일들을 접근하여 사용하고 있습니다.


요즘 유닉스/리눅스 공부한다고, 좀 사양 떨어진 넷북에 주분투를 설치하였고 메인 컴퓨터는 맥북이 있지요. 둘다 유닉스 계열 OS 라 많이 편하네요. 여하튼  양쪽 컴퓨터에서 미디어 파일들을 usb 하드디스크에 올리고 싶은데요.. 직접 분리해서 usb 로 연결하는게 가장 좋은 방법이긴 합니다만.. 그래도 라우터에 물려 있으니 일종의 공유폴더로 연결하여 넷북에서 네트워크를 이용한 파일 업/다운로드 를 하고 싶더라구요.

그래서 알아보니, 의외로 간단했습니다.


1. 홈디렉토리에 media/share 폴더를 만든다

2. etc/fstab 파일을 열어 아래 내용을 적어준다

3. 마운트 한다.



1. 홈디렉토리에 media/share 폴더를 만든다


mkdir /media/share


2. etc/fstab 파일을 열어 아래 내용을 적어준다


중요한 부분은 삼바 서버의 공유파일 경로입니다.

확인하려면 아래 명령어로 확인 할 수 있습니다.

서버이름 혹은 아이피를 사용하여도 되며, -U 뒤에 있는 admin 은 사용자 이름입니다.


sambaclient -L 192.168.1.1 -U admin


공유된 폴더가 usb0_1 인것을 확인 할 수 있습니다. 자 그럼 /etc/fstab 의 내용을 변경해 봅니다.

읽기 전용파일 이라서 관리자 모드로 sudo 를 넣어줘야 변경이 가능합니다.


명령어 내용은

[//경로/공유폴더] [내컴퓨터마운드폴더] [파일타입] [사용자,패드워드] [0,0]


파일타입은 오래된 자료의 경우 smbfs 파일타입을 사용하라고 하는데요, 이미 사용하지 않는 오래된 타입이라서 cifs 를 사용해야 하더군요. 패키지가 없으면 다운받을 수 있습니다. 


sudo apt-get install cifs-utils


파일을 열어 서버공유폴더 내용을 작성 해 줍니다. 참고로 fstab 은 시스템 컨픽 파일로, 유닉스/리눅스 시스템에서 볼 수있습니다. uilt-linux 패키지중 하나며, 사용가능한 디스크 현황 그리고 파티션 현황 그리고 이 디스크와 파티션들이 시스템에서 어떻게 사용되는지의 정보를 가지고 있는 파일입니다.


sudo vim /etc/fstab

//192.168.1.1/usb0_1 media/share cifs user=admin,passwd=admin 0 0



내용을 저장하고 나옵니다. :qw


3. 마운트 한다.

smb 서버 공유폴더를 마운트 해줍니다. 마운트 하면 폴더 형태로 보이게 됩니다.


sudo mount media/share



짜쟌~

이렇게 파일 메니저에서 손쉽게 samba/공유 폴더 에 접근 가능케 되었습니다. 다운로드는 물론 업로드도 가능합니다. 하지만 제 라우터의 경우엔 너무 느리네요. usb 로 직접 꽂아서 파일 옮기는게 10000배 정도 빠른듯 합니다.



반응형
반응형


KindleGen 영문 설명서 번역 입니다. (구글)



KindleGen 은 도큐먼트 파일을 KF8 과 MOBI 형태로 변환해 주는 명령어 툴입니다.


KindleGen 다운받는 곳 입니다.


이 포스팅은 구글 번역기를 사용하였습니다. (영문->일본어->한국어) 자연스럽게 읽을 수 있도록 조금 바꿨습니다.


한글 설명서


Kindle 전자 책 만들기 - 기본 사용자 (Windows 및 Mac 만 해당) : -------------------------------------------------- ------------------------- - http://www.amazon.com/kindleformat/kindlepreviewer에서 Kindle의 미리보기를 다운로드 - 다운로드가 완료되면 Kindle의 미리보기를 설치 - Kindle의 미리보기를 설치하는 방법에 대한 추가 지침이 필요한 경우 http://kindlepreviewer.s3.amazonaws.com/UserGuide.pdf를 참조 - 설치가 완료되면 Kindle의 미리보기를 시작 - Kindle의 미리보기에서 "열린 책"링크를 클릭 - Kindle 전자 책으로 변환 EPUB / HTML / OPF를 선택 - 책 미리보기를 변환하기위한 지침을 따르십시오 - "mobi는"확장자가 변환 ebook 소스 HTML / EPUB과 같은 폴더에서 폴더 컴파일 된 파일 이름에서 얻을 수 있습니다. : 고급 사용자 - Kindle 전자 책 만들기 ------------------------------------------- 고급 사용자는 Kindle 전자 책 EPUB / HTML을 변환하는 명령어 도구를 사용할 수 있습니다. 이 인터페이스는 Windows, Mac 및 Linux 플랫폼에서 사용할 수 있습니다. 이 도구는 자동화 된 대량 변환에 이용할 수 있습니다. Windows 용 KindleGen (XP, Vista에서는 7) : 1. www.amazon.com / kindleformat / kindlegen에서 바탕 화면에 KindleGen zip 파일을 다운로드합니다. 2. zip 파일을 마우스 오른쪽 클릭하고 모두 확장을 선택하고 C와 같은 폴더 이름을 입력하십시오 : \ KindleGen. 3. 시작 메뉴> 모든 프로그램> 보조 프로그램> 명령 프롬프트를 선택하여 명령 프롬프트를 엽니 다. 4. 유형 C : \ KindleGen \ kindlegen. KindleGen을 수행하는 방법에 대한 설명이 표시됩니다. 5. 변환 예 : 이러한 CD, 데스크탑 및 형식으로 책이 놓여져있는 디렉토리로 이동하여 book.html라는 파일을 변환하려면 C : \ KindleGen \ kindlegen book.html. 변환이 성공하면 book.mobi라는 새 파일이 바탕 화면에 표시됩니다. 6. 주의 : 그것은 KindleGen를 실행하려면 다음 단계를 따르는 것이 좋습니다. 더블 클릭 KindleGen 아이콘이 프로그램을 시작하지 않습니다. 따옴표없이 위의 명령을 실행합니다. 당신은 kindlegen 실행 파일에 파일을 드래그 앤 드롭하면 그것은 당신을 위해 파일을 변환하지만, 출력 로그를 캡처 할 수 없게되기 때문에, 이것도 권장되지 않습니다. Linux 2.6의 I386 용 KindleGen : 1. www.amazon.com / kindleformat / kindlegen에서 홈 디렉토리와 같은 Kindlegen 등의 폴더 (~ / KindleGen)으로 KindleGen tar.gz 형식을 다운로드하십시오. 2. '~ / KindleGen'에 파일의 내용을 추출합니다. 터미널을 열고 "CD ~ / KindleGen"명령을 사용하여 다운로드 한 파일이있는 폴더로 이동 한 후 내용을 추출하기위한 명령 "의 tar xvfz의 kindlegen_linux_2.6_i386_v2.tar.gz"를 사용합니다 . 3. 터미널 응용 프로그램과 타입 ~ / KindleGen / kindlegen를 엽니 다. KindleGen을 수행하는 방법에 대한 설명이 표시됩니다. 4. 변환 예 : book.html라는 파일을 변환하려면 책이 놓여져있는 디렉토리로 이동하여 이러한 CD, 데스크탑 및 타입 ~ / KindleGen / kindlegen book.html로. 변환이 성공하면 book.mobi라는 새 파일이 바탕 화면에 표시됩니다. 5. 주의 : 이것은 KindleGen를 실행하려면 다음 단계를 수행합니다 것이 좋습니다. 더블 클릭 KindleGen 아이콘이 프로그램을 시작하지 않습니다. 따옴표없이 위의 명령을 실행 의 Mac OS 10.5 이상 I386 용 KindleGen : 1. www.amazon.com / kindleformat / kindlegen에서 KindleGen.zip를 다운로드하십시오. 기본적으로 파일은 다운로드 폴더에 다운로드됩니다 2. 파일을 압축 해제합니다. Safari에서 zip 파일이 자동으로 다운로드 후 압축 해제됩니다. 이 설정이 비활성화되어 있거나 다른 브라우저를 사용하는 경우 그것을 압축 다운로드 한 파일을 더블 클릭합니다. 3. 오른쪽과 형식 터미널에서 스포트라이트 아이콘을 클릭합니다. 그것은 연결 프로그램을 클릭합니다. 4. KindleGen을 수행하는 방법에 대한 지침을 보려면, Finder 창에서 kindlegen 프로그램을 찾습니다. 클릭하여 커서가 어디에 터미널 창으로 드래그합니다. 커서가 줄 끝에 경로와 이동에 씁니다. 지시를 표시하려면 Enter 키를 누릅니다. 5. 4 단계 대신 터미널에서 ~ / Downloads/KindleGen_Mac_i386_v2 cd 명령을 입력하고 명령 kindlegen를 입력하고 지시를 표시합니다. 6. 변환 예 : book.html 바탕 화면에 복사 book.html라는 파일을 변환하려면. Finder 창에서 kindlegen 프로그램을 찾습니다. 클릭하여 터미널 창으로 드래그 커서가 어디에 있는지, 그것을 드롭합니다. 커서가 자동으로 삽입 경로를 행의 끝으로 이동합니다. Finder 창에서 문서를 검색합니다. 클릭하여 터미널 창으로 드래그 커서가 어디에 있는지, 그것을 드롭합니다. 커서가 줄 끝에 경로와 이동에 씁니다. Enter 키를 누릅니다. 변환이 성공하면 book.mobi라는 새 파일이 바탕 화면에 표시됩니다. 7. 바탕 화면에 복사 book.html 및 터미널 명령 cd ~ / Downloads/KindleGen_Mac_i386_v2를 입력하고 명령 kindlegen는 ~ / 바탕 화면 / book.html 입력하여 파일을 변환 : 6 단계로 대신한다. 변환이 성공하면 book.mobi라는 새 파일이 바탕 화면에 표시됩니다. 8. 주의 : 이것은 KindleGen를 실행하려면 다음 단계를 수행합니다 것이 좋습니다. 더블 클릭 KindleGen 아이콘이 프로그램을 시작하지 않습니다. 따옴표없이 위의 명령을 실행


번역에 사용한 영어 원문

Creating Kindle ebooks - Basic users (Windows and Mac only):
---------------------------------------------------------------------------
- Download the Kindle Previewer from http://www.amazon.com/kindleformat/kindlepreviewer
- Once the download is finished, install the Kindle Previewer
- If you need further instruction on how to install Kindle Previewer, please refer http://kindlepreviewer.s3.amazonaws.com/UserGuide.pdf
- Once the install is complete, launch Kindle Previewer 
- Click on "Open book" link in Kindle Previewer
- Select the EPUB/HTML/OPF to convert to Kindle ebook
- Follow the instructions to convert the book and preview
- The converted ebook with extension ".mobi" can be obtained from the folder Compiled-filename from the same folder as the source HTML/EPUB.

Creating Kindle ebooks - Advanced users:
-------------------------------------------
Advanced users can use the command line tool to convert EPUB/HTML to Kindle ebooks. This interface is available in Windows, Mac and Linux platform. This tool can be used for automated bulk conversions.

KindleGen for Windows (XP, Vista, 7):
1. Download the KindleGen zip file from www.amazon.com/kindleformat/kindlegen to the desktop.
2. Right-click the zip file, select Extract All, and enter the folder name as c:\KindleGen.
3. Open a command prompt by selecting Start menu > All Programs > Accessories > Command Prompt. 
4. Type c:\KindleGen\kindlegen. Instructions on how to run KindleGen are displayed.
5. Conversion Example: To convert a file called book.html, go to the directory where the book is located, such as cd desktop, and type c:\KindleGen\kindlegen book.html. If the conversion was successful, a new file called book.mobi displays on the desktop.
6. Please note: it is recommended to follow these steps to run KindleGen. Double-clicking the KindleGen icon does not launch this program. Run the above commands without quotes.  If you drag and drop a file on the kindlegen executable it will convert the file for you, but you will not be able to capture the output logging, so this is also not recommended. 

KindleGen for Linux 2.6 i386 :
1. Download the KindleGen tar.gz from www.amazon.com/kindleformat/kindlegen to a folder such as Kindlegen in home directory (~/KindleGen).
2. Extract the contents of the file to '~/KindleGen'. Open the terminal, move to folder containing the downloaded file using command "cd ~/KindleGen" and then use command "tar xvfz kindlegen_linux_2.6_i386_v2.tar.gz" to extract the contents.
3. Open the Terminal application and type ~/KindleGen/kindlegen. Instructions on how to run KindleGen are displayed.
4. Conversion Example: To convert a file called book.html, go to the directory where the book is located, such as cd desktop, and type ~/KindleGen/kindlegen book.html. If the conversion was successful, a new file called book.mobi displays on the desktop.
5. Please note: It is recommended to follow these steps to run KindleGen. Double-clicking the KindleGen icon does not launch this program. Run the above commands without quotes

KindleGen for Mac OS 10.5 and above i386:
1. Download KindleGen.zip from www.amazon.com/kindleformat/kindlegen. By default, the file is downloaded in the Downloads folder
2. Unzip the file. In Safari, the zip file is automatically unzipped after download. If this setting is disabled or if another browser was used, double-click the downloaded file to unzip it.
3. Click the spotlight icon in the top right corner and type Terminal. Click the application to open it.
4. To view the instructions on how to run KindleGen, locate the kindlegen program in the Finder window. Click and drag it to Terminal window where the cursor is. The cursor writes in the path and moves to the end of the line. Press Enter to view the instructions. 
5. Alternative to step 4, view the instructions by typing the command cd ~/Downloads/KindleGen_Mac_i386_v2 in Terminal and then typing the command kindlegen.
6. Conversion Example: To convert a file called book.html, copy book.html to the desktop. In the Finder window, locate the kindlegen program. Click and drag it to the Terminal window, and drop it where the cursor is. The cursor inserts the path automatically and moves to the end of that line. In the Finder window, locate the document. Click and drag it to the Terminal window, and drop it where the cursor is. The cursor writes in the path and moves to the end of the line. Press Enter. If the conversion was successful, a new file called book.mobi displays on the desktop.
7. Alternative to step6: Copy book.html to the desktop and convert the file by typing the command cd ~/Downloads/KindleGen_Mac_i386_v2 in Terminal and then typing the command kindlegen ~/Desktop/book.html. If the conversion was successful, a new file called book.mobi displays on the desktop.
8. Please note: It is recommended to follow these steps to run KindleGen. Double-clicking the KindleGen icon does not launch this program. Run the above commands without quotes

반응형
반응형



Mac 을 사용하다 보면 간혹 숨겨진 파일이나 폴더들을 보고 싶은 경우가 있습니다. 

숨겨진 파일들 보는 방법입니다.


1. 터미널을 열고

2. 아래 명령어를 입력합니다.

defaults write com.apple.finder AppleShowAllFiles -bool true


3. 로그아웃을 한뒤 다시 로그인을 해주면 됩니다.

4. 숨겨진 파일들이 보이게 되지요.


숨겨진 파일/폴더들을 다시 보이지 않게 하기 위해서는 위의 스텝을 반복합니다. 

이때 명령어는 아래 명령어로 바꿔줍니다.

defaults write com.apple.finder AppleShowAllFiles -bool false


반응형
반응형

 

어제 iOS 5 의 발표가 있고 나서 개발자 버전이 출시 되었는데요, 일반인들도 자신의 아이폰의 UDID(Unique Device ID) 를 개발자 등록 기기로 등록하여 베타 버전인 iOS 를 사용하고 싶은 분들이 저를 포함하여 많은듯 싶네요.

그래서 본인의 아이폰의 UDID 를 아이폰 개발자에게 보내는 방법을 적어봅니다.

일단 UDID 를 찾아야 하는데요,

1. 아이폰을 PC / MAC 에 연결합니다.
2. iTunes 를 실행합니다.
3. 장비 아래에 있는 아이폰을 클릭하여 요약정보를 봅니다. 


 


4. 일련번호를 클릭하면,  식별자(UDID) 가 나옵니다.


5. 편집(E) 를 눌러 "복사" 를 클릭하면, 클립보드에 복사가 되는데요, 
6. "붙여넣기" 하고 싶은 곳에 "붙여넣기" 하시면 식별자(UDID) 가 복사됩니다.


이렇게 보내면, 착한 개발자님들이 등록을 해줄 껍니다.
돈받고 해주시는 분들도 있긴 있어요 ㅎㅎ

반응형

+ Recent posts