본문 바로가기

Linux

라즈베리파이2 에 우분투14.04 설치하는 방법

라즈베리파이2 에 우분투14.04 설치하는 방법

출처로 이동

하.. 왜 라즈베리파이를 선택했는지 후회스럽다.

Odroid U3로 했으면 진작 끝났을것을… 꾸역꾸역 끌고 오는걸 포기하게 만든 반가운 소식

라즈베리파이2에서 사용할 수 있는 우분투가 나왔다…

데비안으로 인한.. ros 패키지 설치 삽질은 고난이었다..

정말 Odroid로 갈아타기 직전이었는데, 다시 힘을 낸다. 고고고고고!!

wiki url

https://wiki.ubuntu.com/ARM/RaspberryPi

Ubuntu 14.04 LTS image Download

Download 2015-04-06-ubuntu-trusty.zip

152MiB ZIP, 1.75GiB uncompressed image
Login username is “ubuntu”, password is “ubuntu”

sudo bmaptool copy --bmap 2015-04-06-ubuntu-trusty.bmap 2015-04-06-ubuntu-trusty.img /dev/{usb드라이브}

파티션 설정

라즈비안을 처음 설치하고 부팅하면 raspi-config가 실행되면서 Expand Filesystem 메뉴로 일정 공간만 사용가능한 상태를 SD카드 전체 사용으로 변경했었지만, ubuntu에 없기 때문에 직접 설정해준다.

sudo fdisk /dev/mmcblk0

Delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w).

차례대로 입력하면 된다.

저장 후 reboot

sudo reboot

resize~

sudo resize2fs /dev/mmcblk0p2

swap partition이 없기 때문에 설치해준다.

sudo apt-get install dphys-swapfile

GUI 환경을 위해서 minimal ubuntu-standard image를 설치한다.

xubuntu-desktop, lubuntu-desktop,kubuntu-desktop 중에 하나 설치하면 된다.

$ sudo apt-get install xubuntu-desktop  # or
$ sudo apt-get install lubuntu-desktop  # or
$ sudo apt-get install kubuntu-desktop  # etc

SSH server 설치

sudo apt-get install openssh-server

라즈베리파이에서 GUI 환경 구동을 위한 필수 드라이버 (fbturbo) 설치

sudo apt-get install xserver-xorg-video-fbturbo

/etc/X11/xorg.conf 파일 생성 및 편집

sudo vi /etc/X11/xorg.conf

Section "Device"
    Identifier "Raspberry Pi FBDEV"
    Driver "fbturbo"
    Option "fbdev" "/dev/fb0"
    Option "SwapbuffersWait" "true"
EndSection

추가 후 저장, 종료

라즈베리파이 VideoCore package 설치

sudo apt-get install libraspberrypi-bin libraspberrypi-dev

파일 위치 지정

sudo ln -s /usr /opt/vc

libraspberrypi-bin-nonfree 설치

sudo apt-get install libraspberrypi-bin-nonfree

마지막으로 update와 upgrade 진행

sudo apt-get update && sudo apt-get upgrade -y
sudo reboot

'Linux' 카테고리의 다른 글

sshfs - ssh as a filesystem  (0) 2016.09.15
sudo prompt  (0) 2016.09.14
Ubuntu14.04에 postgres 9.4설치하기  (0) 2016.02.08
Linux mint 17.3으로 업데이트  (0) 2015.12.11
Linux 4.2에 VMware player 7 설치하기  (0) 2015.11.25