리눅스

reboot

첫번째 줄

알파멧 e
 

 

 

 

 

 

 

 

 

 

 

 

[root@localhost ~]# vi /etc/default/grub 

GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"


=>변경
GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR="This is Linux"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"

=>적용
[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg 

[root@localhost ~]# vi /etc/grub.d/00_header

=>맨 하단
cat << EOF
set superusers="thisuser"
password thisuser 1111
EOF


=>저장 후 종료

=>변경 사항 적용
[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg 
Generating grub configuration file ...
/etc/grub.d/00_header: line 366: syntax error: unexpected end of file
[root@localhost ~]# 


=>reboot


 

 

 

 

 

 

 

 

//현재 사용중인 커널 버전
[root@localhost ~]# uname -r
3.10.0-514.el7.x86_64

[root@localhost ~]# wget "https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.17.4.tar.xz"


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

linux

 

about author

PHRASE

Level 60  머나먼나라

행복한 결혼생활을 위해 공동 독서, 공동 교양 교육 프로그램을 개발하라.

댓글 ( 4)

댓글 남기기

작성
  •    
  •    
  •