본문 바로가기

IT331

Linux 디렉토리 구조 [퍼옴] 1. / (root) 디렉토리 : 가장 중요한 디렉토리2. / 디렉토리의 하위 디렉토리* 각 디렉토리의 역할bin : 일반 사용자들을 위한 명령어들이 있다.boot : 부트로더와 부팅을 위한 파일들이 있다.dev : 장치 파일들이 있다.etc : 시스템 혹은 프로그램들의 환경 설정 파일들이 있다.home : 사용자들의 홈 디렉토리lib : 공유 라이브러리와 커널 모듈이 있다.media : 이동식 디스크가 마운트 되는 곳이다.mnt : 파일 시스템이 임시로 마운트 되는 곳이다.opt : 응용 프로그램이 설치되는 곳이다.proc : 실행중인 프로세스의 정보와 CPU, 메모리 등의 시스템 정보가 가상의 파일로 저장되어 있다.sbin : 시스템 관리 명령어들이 있다.srv : 시스템이 제공하는 서비스를 위한 파.. 2018. 5. 8.
우분투 서버 캐쉬메모리 비우기 매일 11시에 캐쉬메모리를 지우도록 설정 #crontab -e0 11 * * * sync && echo 3 > /proc/sys/vm/drop_caches 출처 https://blog.lael.be/post/1090 2018. 5. 7.
우분투 커널 업그레이드 sudo apt updatesudo apt upgradesudo apt dist-upgrade4.9.58-71 -> 4.14.37-130sudo apt install linux-image-xu3 syncsudo reboot hostnamectl | grep Kernel uname -r 2018. 5. 7.
미박스에서도 plex 우연히 검색 중에 발견하고 미박스에 설치. 잘 된다. Kodi나 mx player, vls 봐 나아 보인다. 2018. 5. 4.
NAS 완성 이번에 만든 NAS. odroid hc2(SBC – Single Board Computer)에 Ubuntu 리눅스 서버를 설치하고, plex media server, nextcloud server, wordpress server, transmission-daemon 등을 설치, 아이들 사진, 동영상 자료 등 공유하는 NAS를… 2018. 5. 1.
Using Plex with Nextcloud After hearing about it for years, I finally got around to installing plex on my nuc. I’m impressed with everything about Plex. It was easy to install, and mostly works out of the box. I am using it to manage my ever growing movie collection and massive music library. All of my files were already on the nuc since I am using Nextcloud. Rather than duplicating the files, I pointed my media library .. 2018. 5. 1.
아이들 영상 복사 rsync -avur /home/mogibu/apm/www/nextcloud-data/mogibu/files/fam-videos /home/mogibu/data/family/ sudo rsync -avur /home/mogibu/apm/www/nextcloud-data/mogibu/files/fam-photos /home/mogibu/data/family/ 2018. 4. 30.
transmission-daemon user change 다운로드 폴더 권한 주기다운로드 받을 폴더를 임의로 지정했다면 해당 폴더에 쓰기 권한을 줘야 한다. 주지 않으면 토렌트를 아무리 추가해도 error를 낸다.sudo chown -R debian-transmission:debian-transmission 디렉토리경로하지만 이렇게 설정할 경우 ftp로 접속하거나 samba로 접속했을 때 내 계정에 권한이 없기 때문에 수정이 불가능하다. 따라서 다음과 같이 다시 설정해준다.sudo chown -R 내계정:내계정 디렉토리경로sudo usermod -a -G 내계정 debian-transmissionsudo chmod -R 775 디렉토리경로내 계정 그룹에 debian-transmission 사용자를 추가시켜 준 후, 다운로드 디렉토리에 그룹 쓰기 권한을 주는 것.. 2018. 4. 27.
오늘 서버 작업 내용 rsync 설치mysql 을 home/mogibu/db/mysql 로 이전 2018. 4. 27.
Plex media server 설치, 삭제 armfh 버전 다운로드 https://dev2day.de/pms/pool/main/p/plexmediaserver-installer/sudo sucd /tmpwget https://dev2day.de/pms/pool/main/p/plexmediaserver-installer/plexmediaserver-installer_1.12.3.4973-215c28d86-1_armhf.debsudo dpkg -i plexmediaserver*.debsudo systemctl enable plexmediaserver.servicesudo systemctl start plexmediaserver.service(sudo systemctl start plexmediaserversudo systemctl enable ple.. 2018. 4. 25.
서버 백업 파일 정리 backupRoot0425.tar.gz : 플렉스 미디어 서버 설치 후backupRoot0425-2.tar.gz : 플렉스 미디어 서버 설치 후 owncloud 폴더들 삭제 후 2018. 4. 25.
torrent daemon sudo apt install transmission-daemonsudo service transmission-daemon restartsudo service transmission-daemon stop mkdir /home/~/torrent/video 폴더가 torrent 폴더mkdir /home/~/torrent/temproot@m~:~# sudo gpasswd -a debian-transmission m~Adding user debian-transmission to group m~ root@m~:~# sudo chmod 775 -R /home/~/torrentchown -R mogibu:mogibu /home/~/torrent sudo nano /etc/transmission-daemon/setti.. 2018. 4. 15.