1. Download image (Ubuntu Server 24.04.2 LTS for Raspberry Pi)

Install Ubuntu on a Raspberry Pi | Ubuntu

 

ubuntu-24.04-live-server-arm64.iso  vs. ubuntu-24.04.2-preinstalled-server-arm64+raspi.img

 

 

https://ubuntu.com/download/raspberry-pi

 

ubuntu.com

 

 

2. Download Win32 Disk  Imager

https://sourceforge.net/projects/win32diskimager/

 

Win32 Disk Imager

Download Win32 Disk Imager for free. A Windows tool for writing images to USB sticks or SD/CF cards . This program is designed to write a raw disk image to a removable device or backup a removable device to a raw image file. It is very useful for embedded

sourceforge.net

Exit Google Drive in Windows before running Win32 Disk Imager !!!

 

 

3. ssh : id/password = ubuntu/ubuntu (초기 비밀 번호)

sudo vi /etc/ssh/sshd_config.d/*.conf
PasswordAuthentication yes
# no => yes 변경

sudo systemctl restart sshd

 

공개 key 기반 접속

윈도우즈에서 ssh-keygen (생성할 때 비번 입력)

윈도우즈의 id_rsa.pub 를 server의 ~/.ssh/authorized_keys 로 복사

 

 

4. Update Ubuntu

sudo apt-get update
sudo apt-get upgrade

 

 

5. Make new account & add the account to sudo group

sudo adduser [user-id]
sudo usermod -aG sudo [user-id]

 

 

6. ftp

sudo apt-get install vsftpd

 

 

7. timezone & ntpdate : crontab 설정 전!!!

https://func.tistory.com/2

 

Linux - Time Synchronization (ntpdate)

sudo ntpdate time.google.com Server List 3.kr.pool.ntp.org time.windows.com ntp2.kornet.net time.bora.net NTP Pool Project : http://ntppool.org pool.ntp.org: the internet cluster of ntp servers Pac..

func.tistory.com

 

 

8. mount

1. 이동식 디스크 연결 확인
$ sudo fdisk -l |grep sda

2. 마운트 폴더 생성
$ sudo mkdir /mnt/usb
$ sudo mount -t ntfs /dev/sda1 /mnt/usb

3. 자동 mount
$ sudo ls -al /dev/disk/by-uuid/
lrwxrwxrwx 1 root root  10 Jan  1  1970 1234567890ABCDEF -> ../../sda1

$ sudo vi /etc/fstab
UUID=1234567890ABCDEF /mnt/evo860 ntfs default 0 0

 

* iptime 공유기는 samba 1.0 과 2.0을 지원하며, mount할 때 ver=2.0 명시 필요

sudo apt-get install cifs-utils
sudo apt-get install smbclient
sudo mkdir /mnt/nas1dual

sudo vi /etc/fstab
//<NAS-IP>/Media /mnt/nas cifs username=<username>,password=<password>,vers=2.0,x-systemd.automount 0 0

 

 

9. ffmpeg, crontab 

EBS, ffmpeg, rtmpdump, Python (beutiful soup), crontab :: Algorithm

 

 

10. Jellyfin

curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash

 

jellyfin 서비스 사용자를 비디오 그룹에 추가하여 FFMpeg 프로세스가 인코더에 

엑서스 할 수 있도록 하고 jellyfin을 다시 시작합니다.

 

sudo usermod -aG video jellyfin 

sudo systemctl restart jellyfin

 

PuTTY를 이용한 사용자 계정 설정 (Plex 설정 참고)

(Windows)

PuTTY > Connection > Tunnels > "Add"

    Source port: 8888

    Destination: server.ip.address:8096

PuTTY > Session > server.ip.address 에 SSH로 접속

Web Browser에서 http://localhost:8888/web/

 

 

11. Minecraft server

Minecraft server :: Algorithm

 

Minecraft server

Build a Minecraft Server on RaspberryPi 4 (linuxnorth.org)  [Paper Edition] 1. Install Javasudo apt install openjdk-21-jre  2. Paper Downloads | PaperMC    Paper DownloadsDownload Paper, our Minecraft server software offering unrivaled performance

func.tistory.com

Minecraft + Python :: Algorithm

 

Minecraft + Python

1. PaperMC server 2. FruitJuice pluginFruitJuice - Paper Plugin | Hangar (papermc.io) FruitJuice - Paper Plugin | HangarEnables a python/scratch API to minecraft - Download the Paper Plugin FruitJuice by jdeast on Hangarhangar.papermc.io 3. Python venv

func.tistory.com

 

 

------------------<old>-------------------------------------------

 


xx. Samba : 보안 상 내부망에서만 사용!!!

sudo apt-get install samba 
sudo smbpasswd -a [user-id]
sudo vi /etc/samba/smb.conf

[pi]
comment = pi
path = /home/[user-id]/[directory]
valid users = [user-id]
writeable = yes
read only = no
create mode = 0777
directory mode = 0777

sudo service smbd restart

 

 

 

 

xx. plex server

sudo dpkg -i plexmediaserver_1.31.3.6868-28fc46b27_arm64.deb 

 

 

[Opening the Plex Web App on a Device Other than the Server Itself]

 

Installation | Plex Support

 

Installation

Preparation Before You Begin Before you begin installing Plex Media Server, it’s strongly recommended that you check that your media...

support.plex.tv

 

On the Same Local Network

 

http://server.local.ip.address:32400/web

 

On the Same Local Network

(Windows)

PuTTY > Connection > Tunnels > "Add"

    Source port: 8888

    Destination: server.ip.address:32400

PuTTY > Session > server.ip.address 에 SSH로 접속

Web Browser에서 http://localhost:8888/web/

 

Plex Pass 의 창 안 닫히면 주소창에  http://localhost:8888/web/ 로 다시 접속

 

"서버확보" 하라고 하면 "다시 보이지 않기" 로 건너뛰고,

혹시 "서버확보" 하다 권한 없음으로 실패 시 

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server$  의 Preference.xml 을 지우고,

sudo systemctl restart plexmediaserver

한 후 다시 접속 시도

 

 

plex group 에 [user-id] 추가

groups [user-id]
sudo usermod -a -G plex [user-id]          "-a 가 없으면, plex 에만 속하게 됨"
groups [user-id]

 

Media 폴더 생성하고, home/[user-id]에 symbolic link 생성

cd /var/lib/plexmediaserver
sudo mkdir Media
sudo chown [user-id]:plex Media

cd
ln -s /var/lib/plexmediaserver/Media/ plex

 

 

Plex > 더 보기 > ubuntu 서버 > "+" > Library 추가

 

cd /var/lib/plexmediaserver
sudo mkdir Media
sudo chown [user-id]:plex Media


sudo -s
cd /var/lib
chmod 775 /var/lib/plexmediaserver


sudo vi /etc/samba/smb.conf
[PLEX]
comment = PLEX
path = /var/lib/plexmediaserver/Media
valid users = [user-id]
writeable = yes
read only = no
create mode = 0777
directory mode = 0777

sudo service smbd restart

 

http://[IP]:32400/web

library folde: /var/lib/plexmedialibrary

if mp4 files are not scanned, change the scanner option

 

 

'Operating System' 카테고리의 다른 글

Minecraft server  (0) 2023.03.26
osx iso  (0) 2022.03.01
EBS, ffmpeg, rtmpdump, Python (beutiful soup), crontab  (0) 2021.09.18
Windows 10 - License, Key  (0) 2021.07.10
Linux - Time Synchronization (ntpdate)  (0) 2021.07.06

+ Recent posts