본문 바로가기

서버

(14)
docker plex nvidia nvenc 참고 : https://github.com/NVIDIA/nvidia-docker NVIDIA/nvidia-docker Build and run Docker containers leveraging NVIDIA GPUs - NVIDIA/nvidia-docker github.com 1. Linux 배포판에 NVIDIA 드라이버 및 Docker 19.03을 설치했는지 확인 2. 난 이상하게 docker2가 잘 동작함 1.번이 충족된다면 Ubuntu 16.04/18.04, Debian Jessie/Stretch/Buster # Add the package repositories $ distribution=$(. /etc/os-release;echo $ID$VERSION_ID) $ curl -s -L https:/..
plex 용 rlone vfs rclone 설정 [Unit] Description=RClone Service Wants=network-online.target After=network-online.target [Service] Type=notify Environment=RCLONE_CONFIG=/home/유저아이디/rclone.conf ExecStart=/usr/bin/rclone mount GD: /mnt/gdrive \ --allow-other \ --fast-list \ --drive-skip-gdocs \ --poll-interval=1m \ --buffer-size 32M \ --vfs-read-chunk-size=32M \ --vfs-read-chunk-size-limit 2048M \ --vfs-cache-mode wri..
외부접속시 ssh tunnels 을 이용한 plex 설치 PUTTY를 이용해서 평소에 서버에 접속하듯 접속하는도중 설정을 추가 (ssh란의 tunnels에서 설정) Gateway: ip.address.of.server Source Port: 8888 Destination: localhost:32400 을 설정하고 add를 누른후 웹브라우져에서 http://localhost:8888/web 에 접속하여 그대로 설치하고 운영 출처 : https://support.plex.tv/articles/200288586-installation/
3. docker&docker-compose_도커&도커콤포즈 설치 1. 도커 설치 참고: https://docs.docker.com/install/linux/docker-ce/debian/#prerequisites 참고: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user sudo apt-get remove docker docker-engine docker.io containerd runc #일단 다 지우고 시작 sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-common curl -fsSL http..
2. SSH 키로 접속 1. SSH 키 만들고 권한 작성 권한조절 문제가 발생하였을 경우 참고 출처: 출처: 권한 반드시 확인 ssh-keygen -t rsa # Enter passphrase (empty for no passphrase): # 만약 자동로그인을 원한다면 넘어가고(엔터) 아니면 값을 넣고 - 안넣으면 보안홀.... ls -al ~/.ssh/ # 키 확인 cd ~/.ssh cp id_rsa.pub authorized_keys chmod 700 ~/.ssh sudo chmod 600 ~/.ssh/id_rsa sudo chmod 644 ~/.ssh/id_rsa.pub sudo chmod 644 ~/.ssh/authorized_keys sudo chmod 644 ~/.ssh/known_hosts #있다면 # 관련 권한..
1. sudoers & 데비안 소스 리스트 # sudoers 백업 cp /etc/sudoers /etc/sudoers.bak # sudo의 설치 apt update apt -y upgrade apt -y install sudo echo "$UserName ALL=(ALL:ALL) ALL" >> /etc/sudoers # 작성 $UserName에는 id #echo "$UserName ALL=(ALL) NOPASSWD: AL" >> /etc/sudoers #암호쓰기 싫다면 # 소스리스트 카카오로 변경 sed -i 's/ftp.kr.debian.org/mirror.kakao.com/g' /etc/apt/sources.list sed -i 's/security.debian.org/mirror.kakao.com/g' /etc/apt/sources.list
ufw 방화벽 사용 ufw status sudo ufw allow / sudo ufw deny / ufw delete allow 22/tcp ufw default allow sudo ufw reset : 방화벽 초기화 출처: 출처:
디스크 마운트 fdisk -l 난 이거를 포맷해서 사용해야함 Disk /dev/sdb: 894.3 GiB, 960197124096 bytes, 1875385008 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x75be61a3 #파티션 만들기 fdisk /dev/sdb 일단 파티션 싹 지우기 d 새로운 파티션 만들기 n 주요파티션 만들기 p 1 2048 맥스 숫자로 123123123123 이전파티션 정보를 지우기 y 파티션확인 p 정..