Nextcloud is very similar to Owncloud, but it has better apps.

 

 

1. Download server packages

wget https://download.nextcloud.com/server/releases/nextcloud-23.0.12.tar.bz2

※ Nextcloud 23 is the last version supporting php7.3

 

2. Install prerequisites

sudo apt install -y apache2 libapache2-mod-php mariadb-server openssl redis-server wget php-imagick php-common php-curl php-gd php-gmp php-bcmath php-imap php-intl php-json php-mbstring php-mysql php-ssh2 php-xml php-zip php-apcu php-redis php-ldap php-phpseclib

 

3. Unzip the downloaded server package

tar -jxvf nextcloud-23.0.12.tar.bz2 -C /var/www/html/
cd /var/www/html
sudo chown www-data:www-data nextcloud -R

4. Access the URL and finish to install

URL: http://<YOUR_IP>/nextcloud

Admin account

 - Username

 - Password

Storage & database

 - Data folder

 - Configure the database

    ★MySQL/MariaDB★

    Database user

    Database password

    Database name = nextcloud

    localhost

 

5. Modify memory cache config

When finished installation, you can check the config file( /var/www/html/nextcloud/config/config.php ).

Add the followings into CONFIG for higher performance.

'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
	'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
],

 

'Programming > RaspberryPi' 카테고리의 다른 글

Install Owncloud on RaspberryPi  (0) 2023.03.15
Rasbian qbittorrent-nox installation  (0) 2019.11.19
SD card image backup  (0) 2018.10.12
SDcard Partition Resize  (0) 2018.08.21
RaspberryPi Remote Desktop Client  (0) 2018.06.01

1. Download server packages

wget https://download.owncloud.com/server/stable/owncloud-10.11.0.tar.bz2

2. Install prerequisites

sudo apt install -y apache2 libapache2-mod-php mariadb-server openssl redis-server wget php-imagick php-common php-curl php-gd php-gmp php-bcmath php-imap php-intl php-json php-mbstring php-mysql php-ssh2 php-xml php-zip php-apcu php-redis php-ldap php-phpseclib

3. Unzip the downloaded server package

sudo tar -jxvf owncloud-10.11.0.tar.bz2 -C /var/www/html/
cd /var/www/html
sudo chown www-data:www-data owncloud -R

4. Access the URL and finish to install

URL: http://<YOUR_IP>/owncloud

Admin account

 - Username

 - Password

Storage & database

 - Data folder

 - Configure the database

    ★MySQL/MariaDB★

    Database user

    Database password

    Database name = owncloud

    localhost

 

5. Modify memory cache config

When finished installation, you can check the config file( /var/www/html/owncloud/config/config.php ).

Add the followings into CONFIG for higher performance.

'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
	'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
],

 

'Programming > RaspberryPi' 카테고리의 다른 글

Install Nextcloud on RaspberryPi  (0) 2023.03.15
Rasbian qbittorrent-nox installation  (0) 2019.11.19
SD card image backup  (0) 2018.10.12
SDcard Partition Resize  (0) 2018.08.21
RaspberryPi Remote Desktop Client  (0) 2018.06.01

2019.11.19 기준 Rasbian 의 최신 버전은 Debian Buster 기반으로 되어있다. 따라서, Rasbian에 qbittorrent-nox 를 설치하고자 하는 경우 add-apt-repository 명령으로 repository를 추가하고자 하면 에러가 발생한다.

따라서 Debian 홈페이지로 부터 qbittorrent-nox deb 파일을 다운받아 설치하면 된다.

라즈베리파이3의 경우 armhf 아키텍쳐 용을 라즈베리파이4의 경우 arm64 아키텍쳐 용을 다운받아 설치 하면 될 것이다.

설치 명령어는 다음과 같다.

$ sudo dpkg -i <downloaded_deb_file>

 

설치 후 Service 등록 등은 Github 설명 참조.

 

'Programming > RaspberryPi' 카테고리의 다른 글

Install Nextcloud on RaspberryPi  (0) 2023.03.15
Install Owncloud on RaspberryPi  (0) 2023.03.15
SD card image backup  (0) 2018.10.12
SDcard Partition Resize  (0) 2018.08.21
RaspberryPi Remote Desktop Client  (0) 2018.06.01

라즈비안이 들어있는 SD 카드를 이미지로 백업하고 싶은 경우 

Win 32 Disk Imager 로 백업 이미지를 만들 수 있다.


방법은 간단하다.

1. Win 32 Disk Imager 설치

2. Backup 할 SD 카드를 꼽고

3. Win 32 Disk Imager 에서 Backup 할 Drive를 선택 + output Image 가 될 파일을 지정

※ 파티션이 여러개 여서, 여러 개의 Drive로 보이더라도, Linux File system 이라 윈도우에서 안보이는 경우여도 첫 번째 파티션을 선택하면 전체 백업 된다.

4. Read


백업된 이미지를 다시 SD 카드에 쓰기위해서는

1. Win 32 Disk Imager 에서 Backup 된 image를 선택 + Drive 지정

2. Write

※ 이때, Backup 된 이미지는 기존 SD 카드의 크기를 가지기 때문에, 복원을 위해서는 기존 SD 카드의 크기보다 크거나 같은 SD 카드가 필요하며, 기존 SD 카드보다 큰 SD 카드의 경우 복원 후 resize 가 필요하다.


'Programming > RaspberryPi' 카테고리의 다른 글

Install Owncloud on RaspberryPi  (0) 2023.03.15
Rasbian qbittorrent-nox installation  (0) 2019.11.19
SDcard Partition Resize  (0) 2018.08.21
RaspberryPi Remote Desktop Client  (0) 2018.06.01
Raspbian Korean(Hangul) Install  (0) 2018.05.18

라즈베리파이 등을 사용할 때, Root Filesystem의 size가 실제 SD 카드의 사이즈 보다 작게 인식 되는 경우가 있다.

라즈베리 파이의 경우에는 raspi-config를 사용하여 resize 할 수 있지만,

일반적인 Command를 사용해서 resize 하는 방법은 아래와 같다.

해당 과정 중에 문제가 생기는 경우 Kernel panic으로 다시 살릴 수 없기에 SD카드를 백업해 둘 것을 추천한다.

 - 백업은 win32 DiskImager로 Read 하면 이미지로 백업 가능. 추후 write로 복원


1. 현재 partition 확인

fdisk 로 device 정보 확인 후,

$ fdisk -l


해당 디바이스의 사이즈가 실제 디바이스의 사이즈보다 작은 경우

partition table을 다시 작성해준다.

이 때, partition table Start sector를 확인해 둔다.

$ fdisk /dev/mmcblk0


우선 기존의 작게 인식되는 partition을 삭제해 준다.

Command (m for help): d

Partition number (1,2, default 2): 2


새로 partition을 추가 한다.

이때, start sector가 위에서 확인한 기존 partition table과 일치해야 kernel panic이 나지 않을 것이다.

Command (m for help): n

Partition type

p    primary (1 primary, 0 extended, 3 free)

e     extended (container for logical partitions)

Select (default p): p

Partition number (2-4, default 2): 2

First sector (2088450-31116287, default 2088960): 2088450

Last sector, +sectors or +size{K,M,G,T,P} (2088450-31116287, default 31116287): 


작성된 partition table을 저장 하고 종료한다.

Command (m for help): w


현재 사용 중인 시스템에서는 partition table을 다시 작성한 것이 재부팅 후에 인식이 되므로, 시스템을 재부팅 해준다.

$ shutdown -r now


재부팅 된 시스템에서, partition 사이즈가 제대로 인식이 되는지 확인한다.

$ fdisk -l


제대로 인식이 됐다면, resize를 해준다.

$ resize2fs /dev/mmcblk0p2


끗.

'Programming > RaspberryPi' 카테고리의 다른 글

Rasbian qbittorrent-nox installation  (0) 2019.11.19
SD card image backup  (0) 2018.10.12
RaspberryPi Remote Desktop Client  (0) 2018.06.01
Raspbian Korean(Hangul) Install  (0) 2018.05.18
Raspbian Install  (0) 2018.05.16

Ubuntu에서 Remote Desktop Client를 써 봤을 때, 매우 만족했었다.

해당 Remote Desktop Client는 Remmina인데,

Raspbian에서도 설치가 가능하다.


설치는

$ sudo apt-get install remmina


사용법은

$ remmina

윈도우 접속 하고자 하는 경우: RDP 선택 후, IP 입력하면 연결 할 수 있다.


라즈베리 파이로 돌리기에는 다소 버거울 수 있지만, 

그래도 없는 것 보다는 낫지 않을까...?하는 마음으로 켜봤는데

예상보다 훨~~씬 빠르다!!! 오히려 라즈베리파이 데스크톱 보다 빠른 느낌...?

'Programming > RaspberryPi' 카테고리의 다른 글

Rasbian qbittorrent-nox installation  (0) 2019.11.19
SD card image backup  (0) 2018.10.12
SDcard Partition Resize  (0) 2018.08.21
Raspbian Korean(Hangul) Install  (0) 2018.05.18
Raspbian Install  (0) 2018.05.16

Raspbian 을 처음 설치하면, 한글이 설치 되지 않아, Naver 에 접속해도 깨져보이고, 키보드의 한영키 를눌러도, 한글이 입력되지 않는다.

한글 폰트  및 한글 입력기가 설치 되어  있지 않아서 그렇다.


한글 폰트를 설치하여, 깨지지 않게 보기 위한 방법 

$ sudo apt-get install fonts-nanum


한글 입력을 하기 위한 방법

$ sudo apt-get install ibus-hangul

$ ibus-setup

ibus-setup 을 실행하면,  뜨는 창에서 Input Method 탭에서 Korean을 찾아 Add 하면된다.

ibus-hangul 은  일부 환경(티스토리)에서 띄어쓰기가 제멋대로 되는 문제가있다.ㅠ

그나마, iBusHangul Setup 에서 Commit in word unit  옵션을 활성화 하면 쓸 수 있는 정도가 되긴하는데,  완벽하진않다.


그래서 대안으로 설치한 uim!

문제없이 동작 잘 된다. 설치 방법

$ sudo apt-get install uim uim-byeoru

uim은 키보드입력기 일테고, byeoru 는 뭐지? 했는데, 한글입력을 위한 패키지 이름인가보다.

한영 전환은 shift+space

'Programming > RaspberryPi' 카테고리의 다른 글

Rasbian qbittorrent-nox installation  (0) 2019.11.19
SD card image backup  (0) 2018.10.12
SDcard Partition Resize  (0) 2018.08.21
RaspberryPi Remote Desktop Client  (0) 2018.06.01
Raspbian Install  (0) 2018.05.16

Raspbian installation on Raspberry Pi 3


Raspberry Pi 3 model B는 프로세서로 Broadcom BCM2837를 포함하고 있는데, 이는 ARM Cortex A-53 quad core를 포함한다.

Raspbian은 Raspberry Pi 를 위한 Debian based OS이다.

RaspberryPi 에는 다른 OS 보다 Raspbian 을 사용하는 것이 편리할 수 있다.


Raspbian 은 Rasberry Pi 사이트로 부터 다운 받을 수 있다.

2018년 5월 현재 Stable 버전인 RASPBIAN STRETCH WITH DESKTOP 을 다운 받으면 된다.

stretch는 Debian의 code name 이다.

zip 파일을 다운 받아 압축을 풀면(반디집 등으로 풀면 됨) .img 파일이 나온다.


다운받은 image 를 USB bunner중 하나인 Etcher 를 사용하여 USB 디스크를 만들면 된다.

Etcher는 https://etcher.io 에서 다운로드

Select image로 위에서 압축 풀어 나온 .img 파일을 선택하고

USB 장치는 자동으로 선택되는데, 잘 선택 되었는지 확인 

Flash!를 하면 된다. 쉽다.


참조: https://www.raspberrypi.org/documentation/installation/installing-images/README.md

'Programming > RaspberryPi' 카테고리의 다른 글

Rasbian qbittorrent-nox installation  (0) 2019.11.19
SD card image backup  (0) 2018.10.12
SDcard Partition Resize  (0) 2018.08.21
RaspberryPi Remote Desktop Client  (0) 2018.06.01
Raspbian Korean(Hangul) Install  (0) 2018.05.18

+ Recent posts