"Debian"의 두 판 사이의 차이

wwiki
이동: 둘러보기, 검색
(사용자 관리)
(시간설정)
 
(같은 사용자의 중간 판 27개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==설치된 패키지 검색==
+
==패키지==
$ dpkg-query -l [검색어]
 
  
==서비스 리스트==
+
===설치된 패키지 검색===
$ chkconfig --list
+
$ dpkg-query -l [검색어]
 +
 
 +
==서비스==
 +
 
 +
===서비스 리스트===
 +
$ chkconfig --list
  
 
===결과===
 
===결과===
 
alsa-utils                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
 
alsa-utils                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
  
마지막에 나오는 S:on이 실행상태인것 같은데, 실제 서비스 실행상태와는 다른 경우가 있다.
+
마지막에 나오는 S:on이 실행상태인 것 같은데, 실제 서비스 실행상태와는 다른 경우가 있다.
 +
$ [[service]] slapd status
  
$ service slapd status
+
==디스크==
  
==smartctl==
+
===디스크 검사===
디스크 검사
 
  
 +
====smartctl====
 +
디스크 검사<syntaxhighlight lang="bash">
 
$ sudo apt install smartmontools
 
$ sudo apt install smartmontools
 +
$ smartctl /dev/mmcblk0
 +
</syntaxhighlight>
  
$ smartctl /dev/mmcblk0
+
====[[fsck]]====
 +
$ fsck /dev/mmcblk0
  
==fsck==
+
==네트워크==
$ fsck  /dev/mmcblk0
 
  
==DNS==
+
===DNS 서버===
$  cat /etc/resolv.conf
+
[[cat]] /etc/resolv.conf
  
==ping==
+
===ping===
ping: command not found
+
ping: command not found<syntaxhighlight lang="bash">
 +
$ apt-get update
 +
$ apt-get install iputils-ping
 +
</syntaxhighlight>
  
$ apt-get update
+
===ipv6 비활성화===
 +
활성화여부 확인
  
$ apt-get install iputils-ping
+
sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6  
  
==사용자 관리==
+
결과가 0이라면 ipv6이 활성화된 상태
  
===기존유저 user를 group에 추가===
+
/etc/sysctl.conf  <syntaxhighlight lang="ini">
$ usermod -a -G group user
+
net.ipv6.conf.all.disable_ipv6 =
 +
net.ipv6.conf.default.disable_ipv6 =
 +
net.ipv6.conf.lo.disable_ipv6 =
 +
</syntaxhighlight>sudo sysctl --load 하여 설정을 리로드
  
=== 다른 사용자로 명령 실행 ===
+
sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6  로 활성화 확인
sudo -u www-data cmd
 
  
 
==시간설정==
 
==시간설정==
sudo dpkg-reconfigure tzdata
+
[[리눅스 환경변수|환경변수]] TZ 를 Asia/Seoul 로 설정할 수 있다.
[[분류:Linux]]
+
 
 +
동일계열인 [[Ubuntu#시간설정|Ubuntu의 시간설정방법으로도]] Debian에서 가능하다. 환경변수를 설정하는 것이 더 간단하다.
 +
 
 +
== 지역설정 ==
 +
환경변수 LC_ALL=C.UTF-8 로 설정하면 한글 입출력이 가능하다.
 +
 
 +
[[locale]]
 +
 
 +
== 경로 ==
 +
 
 +
=== debian 10 ===
 +
 
 +
==== 인증서 ====
 +
패키지명: ca-certificates
 +
 
 +
/usr/share/ca-certificates/
 +
 
 +
== 전원 관리 ==
 +
https://wiki.debian.org/Suspend
 +
[[분류:Debian]]

2022년 6월 5일 (일) 09:44 기준 최신판

패키지[편집 | 원본 편집]

설치된 패키지 검색[편집 | 원본 편집]

$ dpkg-query -l [검색어]

서비스[편집 | 원본 편집]

서비스 리스트[편집 | 원본 편집]

$ chkconfig --list

결과[편집 | 원본 편집]

alsa-utils                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on

마지막에 나오는 S:on이 실행상태인 것 같은데, 실제 서비스 실행상태와는 다른 경우가 있다.

$ service slapd status

디스크[편집 | 원본 편집]

디스크 검사[편집 | 원본 편집]

smartctl[편집 | 원본 편집]

디스크 검사

$ sudo apt install smartmontools
$ smartctl /dev/mmcblk0

fsck[편집 | 원본 편집]

$ fsck  /dev/mmcblk0

네트워크[편집 | 원본 편집]

DNS 서버[편집 | 원본 편집]

$  cat /etc/resolv.conf

ping[편집 | 원본 편집]

ping: command not found

$ apt-get update
$ apt-get install iputils-ping

ipv6 비활성화[편집 | 원본 편집]

활성화여부 확인

sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6  

결과가 0이라면 ipv6이 활성화된 상태

/etc/sysctl.conf  

net.ipv6.conf.all.disable_ipv6 = 1  
net.ipv6.conf.default.disable_ipv6 = 1  
net.ipv6.conf.lo.disable_ipv6 = 1

sudo sysctl --load 하여 설정을 리로드

sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6  로 활성화 확인

시간설정[편집 | 원본 편집]

환경변수 TZ 를 Asia/Seoul 로 설정할 수 있다.

동일계열인 Ubuntu의 시간설정방법으로도 Debian에서 가능하다. 환경변수를 설정하는 것이 더 간단하다.

지역설정[편집 | 원본 편집]

환경변수 LC_ALL=C.UTF-8 로 설정하면 한글 입출력이 가능하다.

locale

경로[편집 | 원본 편집]

debian 10[편집 | 원본 편집]

인증서[편집 | 원본 편집]

패키지명: ca-certificates

/usr/share/ca-certificates/

전원 관리[편집 | 원본 편집]

https://wiki.debian.org/Suspend