본문 바로가기

분류 전체보기

(10)
sftp chroot 적용 우분투 ubuntu 22.04 $ sudo apt update && sudo apt install openssh-server $ sudo adduser --shell /bin/false 아이디 $ sudo mkdir -p /test/files
ssh key 생성하기 참고 블로그: https://shanepark.tistory.com/195 SSH key 생성하고, 서버에 등록해서 비밀번호 없이 접속하기 Intro 매번 SSH 접속 할 때 마다 비밀번호 입력하려면 매우 번거롭습니다. 이 때, 신뢰할 수 있는 컴퓨터라면 공개키를 등록 해서 비밀번호 없이 간편하게 접속 할 수 있습니다. 아래와 같이 public ke shanepark.tistory.com ssh key 경로: ~/.ssh $ ssh-keygen -t rsa 1. 키를 저장할 경로( 기본값 : $HOME/.ssh/id_rsa) 2. passphrase (추가로 사용할 암호, 기본값 없음) 3. passphrase 확인 위 명령어 실행후 아래 3개 확인 2, 3은 공란으로 해도 무방함 생성된 pub 키로 오..
vmware player 17 ubuntu 22.04 설치 https://www.how2shout.com/linux/installing-vmware-workstation-17-player-on-ubuntu-22-04-lts/ Installing VMware Workstation 17 Player on Ubuntu 22.04 LTS The steps to install Vmware Player 17 are performed for Ubuntu 22.04 Jammy. But can also be used for Debian, 11 Linux Mint, or POP OS. www.how2shout.com 참고 블로그 vmware player 17 홈페이지에서 다운받기(리눅스용) $ sudo apt install build-essential $ cd Downloads ..
스크립트 활용한 자동실행 (CCTV 자료 주기적 복사) Text 편집기 써서 작성 crontab 활용시 문제 될까봐 sudo 로 하지 않고 사용자로 파일 생성함 #! /bin/bash find /대상폴더 -maxdepth 2 -mindepth 2 -type d -mmin +800 -exec mv {} /목적폴더 \;
Jellyfin docker compose version: "2.1" services: jellyfin: image: linuxserver/jellyfin container_name: jellyfin group_add: - 110 # video, for /dev/dri devices
우분투 22.04 i386 dpkg 삭제방법 # sudo dpkg --add-architecture i386 삭제방법 # sudo apt-get purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'` --allow-remove-essential # sudo dpkg --remove-architecture i386 # sudo dpkg --print-foreign-architectures 하면 i386 안나타남
xrdp 설치 (ubuntu 22.04) # sudo apt install xrdp # sudo systemctl status xrdp # sudo systemctl enable xrdp # sudo usermod -a -G ssl-cert xrdp # sudo systemctl restart xrdp # sudo ufw allow from 192.168.1.0/24 to any port 3389(필요하다면 방화벽 설정) # sudo ufw reload
guacamole 한방설치 docker # docker run -d -p 8080:8080 --name guacamole --restart=always -v /docker/guacamole/config:/config -e "EXTENSIONS=auth-totp" maxwaldorf/guacamole 2FA 적용(구글 otp) https://github.com/MaxWaldorf/guacamole
vsftpd 설정 우분투 기준 ​ # sudo apt-get install vsftpd # sudo nano /etc/vsftpd.conf 상기 설정 파일에서 하기 부분 설정하기 write_enable=YES local_umask=022 chroot_list_enable=YES chroot_list_file=/etc/vsftpd.chroot_list allow_writeable_chroot=YES listen_port=포트번호 #포트 변경하고 싶으면 추가 ​ chroot_list_file=/etc/vsftpd.chroot_list 파일은 없으니 만들어준다 ​ # sudo nano /etc/vsftpd.chroot_list 해당 텍스트파일에서 ftp에 chroot 적용하고 싶은 아이디 입력 후 저장(단순히 아이디만 넣어주면..
리눅스 최대절전모드 해제하기 1. 해제 $ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target 다음과 같은 출력이 표시됩니다. hybrid-sleep.target Created symlink /etc/systemd/system/sleep.target → /dev/null. Created symlink /etc/systemd/system/suspend.target → /dev/null. Created symlink /etc/systemd/system/hibernate.target → /dev/null. Created symlink /etc/systemd/system/hybrid-sleep.target → /dev/null. 2. 활성화..