2012. 8. 25. 16:04ㆍ교육
포고플러그 클래식 archlinux 설치하기
archlinux를 설치하면 포고플러그의 기본 기능을 사용할 수 없다. samba나 ftp를 통해 가능하지만 기본 기능을 사용하고자 한다면 optware를 설치해야 한다.
관련링크 : http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3
포고플러그에는 기본 운영체제 외에 optware와 archlinux를 설치할 수 있는데 둘 다 리눅스 기반의 가벼운 운영체지로 기존의 운영체제외 다른 운영체제를 설치하는 이유는 더 다양한 기능으로 활용하기 위해서 이다.
기본 운영체제의 기능으로는 꽤 빠른 클라우드 정도이지만, 다른 운영체제를 설치함으로써 samba나 transmission, vsftpd로 활용이 가능하다.
두 운영체제의 차이점은 optware는 기본 운영체제와 함께 사용 가능한다는 것이고, archlinux는 단독으로만 사용 가능한다. 그러나 실사용이나 안정성면에 있어서 archlinux가 낫다.
1. 설치하기전
기기등록, ssh 활성화, archlinux를 설치할 1기가 이상의 usb메모리가 있어야 한다.
(1) https://my.pogoplug.com/ko/signin 에 로그인 후에 등록후 ssh활성화를 한다.
우측 상단의 아이디를 클릭-설정-보안-ssh 박스 체크-비밀번호 설정하고, 메모리카드를 설정한다.
진한 글씨로 된 부분은 직접 입력하는 명령어이며 putty에서는 우측 마우스 클릭을 클릭하여 붙여넣기한다. (긴명령어는 복사 후 붙여넣기를 하시면 됩니다.)
(2) putty(http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe)를 사용해서 포고플러그의 내부로 접속한다.
Host Name에 포고플러그의 ip 주소를 입력하고 Open을 클릭한다. 아이디에는 root와 방금 설정한 비밀번호를 입력하고 비밀번호가 화면에 표시되지 않는다.
~ # killall hbwd
~ # /sbin/fdisk /dev/sda ext3로의 포맷 과정입니다.
Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.
Command (m for help): p
Disk /dev/sda: 2021 MB, 2021654528 bytes
63 heads, 62 sectors/track, 1010 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1010, default 1): Using default value 엔터 치시면 됩니다.
Last cylinder or +size or +sizeM or +sizeK (1-1010, default 1010): Using default value 마찬가지로 엔터를 치시면 됩니다.
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table
~ # sync
~ # cd /tmp
/tmp # wget http://archlinuxarm.org/os/pogoplug/mke2fs
Connecting to archlinuxarm.org (206.217.130.189:80)
/tmp # chmod 755 mke2fs
/tmp # ./mke2fs -j /dev/sda1
mke2fs 1.41.9 (22-Aug-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
123392 inodes, 493124 blocks
24656 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=507510784
16 block groups
32768 blocks per group, 32768 fragments per group
7712 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
포맷이 완료되었습니다.
/tmp # wget http://archlinuxarm.org/os/oxnas/oxnas-install.sh
--2012-08-09 08:30:09-- http://archlinuxarm.org/os/oxnas/oxnas-install.sh
Resolving archlinuxarm.org... 50.116.36.110
Connecting to archlinuxarm.org|50.116.36.110|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://us.mirror.archlinuxarm.org/os/oxnas/oxnas-install.sh [following]
--2012-08-09 08:30:09-- http://us.mirror.archlinuxarm.org/os/oxnas/oxnas-install.sh
Resolving us.mirror.archlinuxarm.org... 206.217.130.189
Connecting to us.mirror.archlinuxarm.org|206.217.130.189|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6919 (6.8K) [application/octet-stream]
Saving to: `oxnas-install.sh'
100%[======================================>] 6,919 31.4K/s in 0.2s
2012-08-09 08:30:10 (31.4 KB/s) - `oxnas-install.sh' saved [6919/6919]
/tmp # chmod 755 oxnas-install.sh
/tmp # ./oxnas-install.sh
#############################
##
## Pogoplug OXNAS based boards
## Arch Linux ARM rootfs Installer
##
#############################
##
## For use with OXNAS 7820 only.
##
#############################
## PREPARATION
# Switching to /tmp...
# Ensuring we're ready to proceed...
umount: can't umount /dev/sda1: Invalid argument
# Preparing our way...
# Getting uboot parameters...
# = MAC : 00:25:31:02:7F:C8
# = load_nand : nboot 60500000 0 200000
# = bootargs : root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
# = board : PPV3
#
# Checking board revision...
# board has PCI: 0
#
# Deriving boot partition format...
# = PARTITION: /dev/sda1
# = FMT : ext3
#
#############################
## RETRIEVING FILES
# Downloading ArchLinuxARM-oxnas-rootfs...(approx. 138MB)
--2012-08-09 08:30:23-- http://archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz
Resolving archlinuxarm.org... 50.116.36.110
Connecting to archlinuxarm.org|50.116.36.110|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://us.mirror.archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz [following]
--2012-08-09 08:30:23-- http://us.mirror.archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz
Resolving us.mirror.archlinuxarm.org... 206.217.130.189
Connecting to us.mirror.archlinuxarm.org|206.217.130.189|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 167458239 (160M) [application/octet-stream]
Saving to: `ArchLinuxARM-oxnas-latest.tar.gz'
100%[======================================>] 167,458,239 183K/s in 14m 49s
2012-08-09 08:45:13 (184 KB/s) - `ArchLinuxARM-oxnas-latest.tar.gz' saved [167458239/167458239]
--2012-08-09 08:45:13-- http://archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz.md5
Resolving archlinuxarm.org... 50.116.36.110
Connecting to archlinuxarm.org|50.116.36.110|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://us.mirror.archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz.md5 [following]
--2012-08-09 08:45:14-- http://us.mirror.archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz.md5
Resolving us.mirror.archlinuxarm.org... 206.217.130.189
Connecting to us.mirror.archlinuxarm.org|206.217.130.189|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 75 [application/octet-stream]
Saving to: `ArchLinuxARM-oxnas-latest.tar.gz.md5'
100%[======================================>] 75 --.-K/s in 0s
2012-08-09 08:45:14 (1.16 MB/s) - `ArchLinuxARM-oxnas-latest.tar.gz.md5' saved [75/75]
# Verifying MD5
# Extracting 이 부분에서 상당한 시간이 소모됩니다. 별도의 진행창이 보이지 않습니다.
대략 20분 정도. 인내를 가지고 기다린다.
# Recording MAC Address
# Coping key CE binaries...
cp: can't stat '/usr/sbin/nanddump': No such file or directory
# Done copying.
#############################
## FLASHING NAND & UBOOT VARS
# backing up mtd1
./oxnas-install.sh: line 213: /usr/sbin/nanddump: not found
# Erasing mtd1 @ 0x500000 for 17 erase blocks (kernel location)
Erase Total 17 Units
Performing Flash Erase of length 131072 at offset 0x700000 done
# Erasing mtd1 @ 0xB00000 for 17 erase blocks (2nd kernel location)
Erase Total 17 Units
Performing Flash Erase of length 131072 at offset 0xd00000 done
# Flashing Kernel...
# - @ 0x500000
Writing data to block 40 at offset 0x500000
Writing data to block 41 at offset 0x520000
Writing data to block 42 at offset 0x540000
Writing data to block 43 at offset 0x560000
Writing data to block 44 at offset 0x580000
Writing data to block 45 at offset 0x5a0000
Writing data to block 46 at offset 0x5c0000
Writing data to block 47 at offset 0x5e0000
Writing data to block 48 at offset 0x600000
Writing data to block 49 at offset 0x620000
Writing data to block 50 at offset 0x640000
Writing data to block 51 at offset 0x660000
Writing data to block 52 at offset 0x680000
Writing data to block 53 at offset 0x6a0000
Writing data to block 54 at offset 0x6c0000
Writing data to block 55 at offset 0x6e0000
Writing data to block 56 at offset 0x700000
Writing data to block 57 at offset 0x720000
# - @ 0xB00000
Writing data to block 88 at offset 0xb00000
Writing data to block 89 at offset 0xb20000
Writing data to block 90 at offset 0xb40000
Writing data to block 91 at offset 0xb60000
Writing data to block 92 at offset 0xb80000
Writing data to block 93 at offset 0xba0000
Writing data to block 94 at offset 0xbc0000
Writing data to block 95 at offset 0xbe0000
Writing data to block 96 at offset 0xc00000
Writing data to block 97 at offset 0xc20000
Writing data to block 98 at offset 0xc40000
Writing data to block 99 at offset 0xc60000
Writing data to block 100 at offset 0xc80000
Writing data to block 101 at offset 0xca0000
Writing data to block 102 at offset 0xcc0000
Writing data to block 103 at offset 0xce0000
Writing data to block 104 at offset 0xd00000
Writing data to block 105 at offset 0xd20000
# Done Flashing Kernel
# NEW uBoot Parameters
# = bootargs_usb : root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootwait
# = load_custom_nand : nboot 60500000 0 500000
# = rootfs : /dev/sda1
# = root fs type : ext3
#
# Setting up uboot parameters
#
# Checking uboot parameters...
# = bootargs_stock : root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
# = bootargs : root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootwait
# = load_custom_nand : nboot 60500000 0 500000
# = boot_custom : run load_custom_nand boot || run load_custom_nand2 boot
#############################
## Looks good!
# Sync ...
# Unmount
# Reboot to enter into Arch Linux ARM
설치가 완료되며, 아래명령어로 재부팅한다.
/tmp # /sbin/reboot
만약 주황색불이 들어온다면, 직접 코드를 뽑아서 재부팅해 준다. putty를 사용해서 ssh 접속을 한다. 아이디는 root, 비밀번호도 root이다.
본인이 원하는 비밀번호로 변경한다.
[root@alarm ~]# passwd
드라이브 연결시 자동으로 마운트 되도록 하기 위해 설치합니다.
[root@alarm ~]# pacman -Sy udev-automount
끝으로 archlinux의 프로그램을 관리하는 pacman 을 업그레이드합니다.
[root@alarm ~]# pacman -Syu
이제 원하는 어플리케이션을 설치하시면 됩니다.
samba 는 http://blog.naver.com/sjy1229/70145036410
transmission 과 vsftpd는 http://blog.naver.com/sjy1229/70143422152
절전모드 설치는 http://blog.naver.com/sjy1229/70143590428
초기화 및 복구는 http://blog.naver.com/sjy1229/70145285423
스마트폰 활용은 http://blog.naver.com/sjy1229/70145297224
그리고 제가 쓴 글은 아니지만, 그누보드 홈페이지 운영은
http://www.nextlab.co.kr:8080/nw/bbs/board.php?bo_table=guide
출처 : 본 글은 다음의 주소에 퍼온글이며 수정 편집하였습니다.
http://clien.career.co.kr/cs2/bbs/board.php?bo_table=lecture&wr_id=121603
'교육' 카테고리의 다른 글
스마트폰와 컴퓨터의 정확한 인터넷속도 이해하기 (2) | 2012.08.27 |
---|---|
새창 띄우기 스크립트 (1) | 2012.08.26 |
포그플러그는 하이브리드 클라우드 서비스이다. (2) | 2012.08.23 |
[포고플러그] 개인 및 소상공인을 위한 클라우드 시스템 구축하기 (3) | 2012.08.23 |
컴퓨터에서 스마트폰을 원격제어하기(TeamViewer Quicksupport) (2) | 2012.08.18 |