728x90 리눅스43 리눅스 - 잘못 설치한 패키지 강제 삭제(dpkg --purge) sudo dpkg --purge sudo dpkg --purge --force-remove-reinstreq 출처: https://wiki.terzeron.com/ko/OS_%EC%9D%BC%EB%B0%98_%EC%8B%9C%EC%8A%A4%ED%85%9C/Unix%EC%99%80_Linux_Tips/Ubuntu_Linux%EC%97%90%EC%84%9C_%EC%9E%98%EB%AA%BB_%EC%84%A4%EC%B9%98%EB%90%9C_%ED%8C%A8%ED%82%A4%EC%A7%80_%EC%A0%9C%EA%B1%B0%ED%95%98%EA%B8%B0 Ubuntu Linux에서 잘못 설치된 패키지 제거하기 wiki.terzeron.com 2023. 5. 18. 리눅스 - WSL 2 Ubuntu 기본 로그인 사용자 변경 방법 1. 한줄 명령어로 기본 로그인 사용자 변경 ubuntu config --default-user 출처: https://askubuntu.com/questions/816732/how-to-change-default-user-in-wsl-ubuntu-bash-on-windows-10 How to change default user in WSL Ubuntu bash on Windows 10 I installed the WSL Bash on Windows 10 and set my user to e.g. 'abc' but now I want to change it to something else. How can I change the user name of the user I'm logged in as? W.. 2023. 5. 17. 리눅스 - WSL 2 Ubuntu 드라이브 변경(C:드라이브에서 D:드라이브로) 컴퓨터에 WSL 2 Ubuntu가 설치된 지 확인하는 명령어 wsl --list -v WSL 2 Ubuntu 종료 명령어 wsl -t Ubuntu C: 드라이브에 설치된 WSL 2 Ubuntu Export 하기 wsl --export Ubuntu "D:\wsl_export\ubuntu-ex.tar" C: 드라이브에 WSL 2 Ubuntu 제거 wsl --unregister Ubuntu D: 드라이브에 WSL 2 Ubuntu 등록 wsl --import Ubuntu "D:\wsl_import\ubuntu" "D:\wsl_export\ubuntu-ex.tar" 출처: https://dev.to/mefaba/installing-wsl-on-another-drive-in-windows-5c4a Installin.. 2023. 5. 17. 리눅스 - 데스크톱 환경 테마 모음 https://www.pling.com/ www.pling.com A community where developers and artists share applications, themes and other content www.pling.com 2023. 5. 17. 리눅스 - GNOME 확장 모음(GNOME EXTENSIONS) https://extensions.gnome.org/ 그놈 쉘 확장 extensions.gnome.org 2023. 5. 17. 리눅스 - 바탕화면 및 프로그램 표시에 프로그램 아이콘 생성(.desktop) /usr/share/applications/program.desktop [Desktop Entry] Type=Application Name=Program Name Comment=Program Comment Icon=/home/user/icon.png Exec=/home/user/program.sh Terminal=false Categories=Development;python;bash; chmod g+r /usr/share/applications/program.desktop chmod o+r /usr/share/applications/program.desktop 출처: https://quitlee.blogspot.com/2018/04/ubuntu_2.html 우분투[ubuntu] 런처(윈도우 메뉴)에 아.. 2023. 5. 16. 리눅스 - GRUB 부팅 순서 변경 1. 부팅 시 GRUB 화면에서 윈도우의 인덱스 순서 확인 - 첫번째는 0, 두 번째는 1이며 윈도우의 인덱스 순서를 확인 2. /etc/default/grub 수정 GRUB_DEFAULT=0 2023. 5. 15. 리눅스 - 서비스 생성(systemctl) 서비스 생성 nano /etc/systemd/system/my_service.service [Unit] Description=My Service After=network.target [Service] ExecStart=/usr/bin/python3 /path/to/app.py WorkingDirectory=/path/to/app/directory Restart=always User=my_user [Install] WantedBy=multi-user.target [Unit] : 서비스의 이름과 실행 순서 등의 정보를 정의합니다. [Service] : 서비스 실행 시 필요한 정보를 정의합니다. ExecStart : 서비스를 시작할 명령어를 지정합니다. WorkingDirectory : 서비스를 시작할 때 실.. 2023. 5. 9. 리눅스 - WSL2 Ubuntu cmd에서 쉘 진입 Ubuntu 쉘 진입 wsl -d ubuntu 시작 경로 지정 wsl --cd / -d ubuntu WSL 리스트 wsl --list 2023. 5. 4. 리눅스 - 현재 시간, 날짜 변경하기(date, NTP) date 명령어 date # 현재 시간 확인 sudo date -s "20230315 14:30:30" # 현재 시간 변경 date # 바뀐 시간 확인 NTP(Network Time Protocol) 명령어 (외부로부터 정확한 시간 정보를 가져오는 방법) sudo apt-get install ntp NTP 설치 sudo nano /etc/ntp.conf 설정 파일 수정 server time.bora.net server kr.pool.ntp.org server time.bora.net server time.kornet.net 설정 파일에 한국 시간 NTP 주소 등록 sudo service ntp restart NTP 서비스 재시작 2023. 3. 12. 리눅스 - 기본 게이트웨이 주소 변경 명령어(route) sudo route add default gw 192.168.0.2 # 추가 sudo route change default gw 192.168.0.2 # 변경 sudo route del default gw 192.168.0.2 # 제거 영구적으로 변경하고 싶을 경우 sudo vi /etc/network/interfaces 설정 파일 에디터로 열기 iface eth0 inet static address netmask gateway 설정 파일의 내용 수정 sudo service networking restart 서비스 재시작 2023. 3. 10. 리눅스 - ifconfig 아이피 변경 명령어 $ ifconfig eth0 예시) eth0의 IP 주소를 `192.168.0.100`로 변경하기 $ ifconfig eth0 192.168.0.100 2023. 3. 10. 이전 1 2 3 4 다음 728x90