본문 바로가기

728x90
반응형

분류 전체보기

C276x260 우분투에서 Docker 컨테이너 내에서 systemd를 실행하는 방법 우분투에서 Docker 컨테이너 내에서 systemd를 실행하는 방법 Docker 컨테이너 내에서 systemd를 실행하는 것은 기본적으로 권장되지 않지만 가능합니다. systemd를 사용하려면 컨테이너가 호스트의 init 프로세스로 설정되어야 합니다. Dockerfile 작성 vim Dockerfile FROM ubuntu:22.04 # systemd를 사용할 수 있도록 환경 변수 설정 ENV container docker # 패키지 설치 및 설정 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ systemd \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /va.. 더보기
C276x260 [url] 우분투 서버 문서(Ubuntu Server documentation) 우분투 서버 문서(Ubuntu Server documentation)Ubuntu Server documentation : https://ubuntu.com/server/docs 더보기
C276x260 우분투에서 cron 작업에 대한 로그를 별도의 파일로 분리하는 방법 우분투에서 cron 작업에 대한 로그를 별도의 파일로 분리하는 방법1. rsyslog 설정 변경cron 로그를 별도의 파일로 보내도록 rsyslog를 구성해야 합니다.sudo vim /etc/rsyslog.d/50-default.confdefault rsyslog(50-default.conf)더보기---cat /etc/rsyslog.d/50-default.conf# Default rules for rsyslog.## For more information see rsyslog.conf(5) and /etc/rsyslog.conf## First some standard log files. Log by facility.#auth,authpriv.* .. 더보기
C276x260 Jenkins와 Slack을 연동하여 알림을 받는 방법 Jenkins와 Slack을 연동하여 알림을 받는 방법Slack 설정Slack 워크스페이스에서 채널을 생성합니다.Slack 앱 관리 페이지로 이동하여 "Jenkins CI" 앱을 검색하고 추가합니다.Jenkins 설정젠킨스 플러그인 설치Dashboard > Jenkins 관리 > PluginsGlobal Slack Notifier PluginSlack Notification Plugin슬랙 크리덴셜 생성Dashboard > Jenkins 관리 > CredentialsDashboard > Jenkins 관리 > Credentials > System > Global credentials (unrestricted)Kind : Secret testScope : Global (Jenkins, nodes, item.. 더보기
C276x260 우분투에 Gradle을 설치하는 방법 우분투에 Gradle을 설치하는 방법 테스트 환경 운영체제 정보 $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" JAVA 호환성(gradle compatibility) Gradle 8.5의 바이너리(zip 파일) 다운로드 sudo wget ht.. 더보기
C276x260 우분투에서 ethtool을 사용하여 랜 카드의 속도 및 전송 모드를 설정하는 방법 우분투에서 ethtool을 사용하여 랜 카드의 속도 및 전송 모드를 설정하는 방법ethtool 설치sudo apt-get updatesudo apt-get -y install ethtool네트워크 인터페이스 확인설정할 랜 카드의 네트워크 인터페이스를 확인합니다. 일반적으로 ifconfig 또는 ip addr 명령을 사용하여 확인할 수 있습니다.ifconfig enp0s8$ ifconfig enp0s8enp0s8: flags=4163 mtu 1500 inet 192.168.56.71 netmask 255.255.255.0 broadcast 192.168.56.255 inet6 fe80::a00:27ff:fe2a:e26b prefixlen 64 scopeid 0x20 .. 더보기
C276x260 우분투에서 PXE 네트워크 부팅 서버를 구성하는 방법 우분투에서 PXE 네트워크 부팅 서버를 구성하는 방법1. TFTP 설치 및 설정sudo apt-get updatesudo apt-get install -y tftpd-hpaTFTP 서비스 상태 확인sudo systemctl status tftpd-hpaTFTP 서비스 비활성화sudo systemctl disable tftpd-hpaTFTP 서비스 중지sudo systemctl stop tftpd-hpa2. TFTP 설정 파일sudo vim /etc/default/tftpd-hpa# /etc/default/tftpd-hpaTFTP_USERNAME="tftp"TFTP_DIRECTORY="/var/lib/tftpboot"TFTP_ADDRESS=":69"TFTP_OPTIONS="--secure --create".. 더보기
C276x260 우분투 데스크톱 환경에 root로 로그인하는 방법 우분투 데스크톱 환경에 root로 로그인하는 방법우분투 데스크톱 환경에 직접 root로 로그인하는 것은 기본적으로 비활성화되어 있습니다. 이는 시스템 보안을 강화하기 위한 것입니다. 그러나 필요에 따라 root로 로그인할 수 있는 방법이 있습니다.1. Root 계정 활성화root 계정을 활성화해야 합니다.sudo passwd root2. GDM 설정 (GNOME 데스크톱 환경 사용자의 경우)GNOME 데스크톱 환경에서는 기본적으로 root 계정으로의 직접 로그인이 비활성화되어 있습니다. GDM(GNOME Display Manager)을 수정하여 root로 직접 로그인할 수 있도록 설정할 수 있습니다.sudo vim /etc/gdm3/custom.conf더보기---$ cat /etc/gdm3/custom... 더보기

728x90
반응형