FeeBSD locale 설정

site: https://www.freebsd.org/doc/handbook/using-localization.html

 

1./etc/login.conf 를 수정 하여 Global 설정을 변경 하는 방법 (모든 유저설정의 경우 설정)

/etc/login.conf 를 수정 합니다. 

root@bsd11:~ # vi /etc/login.conf

me:\
:charset=ko_KR.UTF-8:\
:lang=ko_KR.UTF-8:
root@bsd11:~ # cap_mkdb /etc/login.conf

 

재접속후 확인 

root@bsd11:~ # locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=
root@bsd11:~ #

 

일반유저도 동일하게 적용됩니다.

별도의 .login_conf 를 수정할 필요가 없습니다.

$ cat .login_conf
# $FreeBSD: releng/11.1/share/skel/dot.login_conf 77995 2001-06-10 17:08:53Z ache $
#
# see login.conf(5)
#
#me:\
#       :charset=iso-8859-1:\
#       :lang=de_DE.ISO8859-1:
$ locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=
$

 

 

 

2. 각각 설정할 경우 User Directory 의 .login_conf 를 수정 합니다. 

유저별 다른 Character Set 을 사용할 경우

$ vi .login_conf
#
#me:\
# :charset=iso-8859-1:\
# :lang=de_DE.ISO8859-1:


me:\
:charset=ko_KR.UTF-8:\
:lang=ko_KR.UTF-8:

$ locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
$

ssh 재접속후 확인

$ locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=
$

 

/usr/share/skel 부분은 생략해도 됩니다.

Global 설정의 경우 /etc/login.conf 파일을 수정하는것이 간편합니다. 🙂

생성되는 user 전부를 변경하기 위하여 /usr/share/skel 디렉토리의 dot.login_conf를 변경 합니다. 

root@bsd11-Client:~ # vi /usr/share/skel/dot.login_conf
# $FreeBSD: releng/11.1/share/skel/dot.login_conf 77995 2001-06-10 17:08:53Z ach
e $
#
# see login.conf(5)
#
me:\
        :charset=ko_KR.UTF-8:\
        :lang=ko_KR.UTF-8:

 

Test 삼아 test1 user 를 생성해 봅니다. 🙂

root@bsd11-Client:~ # pw user add test2 -m
root@bsd11-Client:~ # passwd  test2
Changing local password for test2
New Password:
Retype New Password:

 

test2 로 변경후 locale 확인

$ locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=
$

 

3.예전에 많이 쓰던 방법 🙂

요즘은 global 설정으로 /etc/login.conf 만 설정 합니다.

root 유저의 경우

root@bsd11-Client:~ # vi .cshrc
setenv LANG ko_KR.UTF-8
setenv LC_ALL ko_KR.UTF-8

root@bsd11-Client:~ # locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=ko_KR.UTF-8
root@bsd11-Client:~ #

적용 로케일 확인

root@bsd11-Client:~ # locale -a
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=

 

 

FreeBSD inspircd irc-server install

site: http://www.inspircd.org/

root@bsd11:~ # cd /usr/ports/irc/inspircd/ && make config

GEOIP , GUNTLS , LDAPAUTH , LDAPOPER 를 선택 합니다.

 

inspircd 를 설치 합니다.

root@bsd11:/usr/ports/irc/inspircd # make config install



~중략

Installing inspircd-2.0.26...
===> Creating groups.
Creating group 'ircd' with gid '72'.
===> Creating users
Creating user 'ircd' with uid '72'.
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/bin/inspircd

This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/inspircd

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:
http://www.inspircd.org/

root@bsd11:/usr/ports/irc/inspircd # rehash

root@bsd11:~ # sysrc inspircd_enable="YES"
inspircd_enable: -> YES
root@bsd11:~ #

config 없이 테스트 삼아 실행을 해 봅니다. :)
root@bsd11:~ # service inspircd start
Starting inspircd.
root@bsd11:~ #

root@bsd11:~ # sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
test sshd 1815 3 tcp4 192.168.0.100:22 192.168.0.10:7839
root sshd 1812 3 tcp4 192.168.0.100:22 192.168.0.10:7839
test sshd 729 3 tcp4 192.168.0.100:22 192.168.0.10:7727
root sshd 726 3 tcp4 192.168.0.100:22 192.168.0.10:7727
root sendmail 662 3 tcp4 127.0.0.1:25 *:*
root sshd 659 4 tcp4 *:22 *:*
root syslogd 530 7 udp4 *:514 *:*
root@bsd11:~ #

생각했던것 처럼 정상적으로 실행되지 않아 보입니다. 🙂

root@bsd11:~ # service inspircd stop
inspircd not running? (check /var/run/inspircd/inspircd.pid).
root@bsd11:~ #

root@bsd11:/var/log/inspircd # cat inspircd.log
Thu Aug 30 23:20:03 2018: ANNOUNCEMENT: Your configuration contains a deprecated value: <die:value> - you need to reread your config (at /usr/local/etc/inspircd/inspircd.conf:528)
Thu Aug 30 23:20:03 2018: ANNOUNCEMENT: Your configuration contains a deprecated value: <die:value> - you need to reread your config (at /usr/local/etc/inspircd/inspircd.conf:981)
root@bsd11:/var/log/inspircd #

 

inspircd.conf 수정

root@bsd11:/usr/local/etc/inspircd # vi inspircd.conf
528 #<die value="You should probably edit your config *PROPERLY* and try again.">
981 #<die value="User error. You didn't edit your config properly. Go back and try again.">

528/981 라인 부분을 주석 처리 합니다.

 

inspircd 데몬을 실행 합니다.

정상적으로 데몬이 실행 된것을 확인 할수 있습니다.

root@bsd11:~ # service inspircd start
Starting inspircd.
root@bsd11:~ # sockstat  -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
ircd     inspircd   2982  6  udp4   *:43757               *:*
ircd     inspircd   2982  7  tcp46  *:6697                *:*
ircd     inspircd   2982  8  tcp46  *:6660                *:*
ircd     inspircd   2982  9  tcp46  *:6661                *:*
ircd     inspircd   2982  10 tcp46  *:6662                *:*
ircd     inspircd   2982  11 tcp46  *:6663                *:*
ircd     inspircd   2982  12 tcp46  *:6664                *:*
ircd     inspircd   2982  13 tcp46  *:6665                *:*
ircd     inspircd   2982  14 tcp46  *:6666                *:*
ircd     inspircd   2982  15 tcp46  *:6667                *:*
ircd     inspircd   2982  16 tcp46  *:6668                *:*
ircd     inspircd   2982  17 tcp46  *:6669                *:*
ircd     inspircd   2982  18 tcp46  *:7000                *:*
ircd     inspircd   2982  19 tcp46  *:7001                *:*

 

추가 설치 ssl 및 ldap 설정… (차후작성)

기본설치 만으로 irc  서버의 운영을 권장 하지 않으며 LDAP 및 SSL 인증과 묶어서 사용을 권장 합니다.

Default 설치후 보안 설정 없이 irc server 의 운영은 보안에 안좋습니다.

감사합니다. 🙂

irc client weechat 설치 의 경우 아래 링크를 참고해 주세요.

FreeBSD weechat irc Client install

 

 

gnutls ssl 인증서 를 사용하여 inspircd 설정

인증서 생성 openssl 이용한 방법

root@bsd11:~ # cd /usr/local/etc/inspircd/
root@bsd11:/usr/local/etc/inspircd # mkdir sslcert/
root@bsd11:/usr/local/etc/inspircd/sslcert # openssl req -x509 -nodes -newkey rsa:1024 -keyout key.pem -out cert.pem
Generating a 1024 bit RSA private key
....++++++
....++++++
writing new private key to 'key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:KO
State or Province Name (full name) [Some-State]:seoul
Locality Name (eg, city) []:city
Organization Name (eg, company) [Internet Widgits Pty Ltd]:testirc
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:testirc
Email Address []:test@test.com

 

certtool 이용한 방법

# certtool --generate-privkey --outfile key.pem
# certtool --generate-self-signed --load-privkey key.pem --outfile cert.pem

 

 

inspircd.conf 파일을 설정 합니다.

root@bsd11:~ # cd /usr/local/etc/inspircd/
root@bsd11:/usr/local/etc/inspircd # vi inspircd.conf

<include file="examples/modules.conf">


<bind address="" port="6667" type="clients" ssl="gnutls">
<bind address="" port="6666" type="servers" ssl="gnutls">
#<gnutls cafile="" crlfile="" certfile="/usr/local/etc/inspircd/sslcert/cert.pem" keyfile="/usr/local/etc/inspircd/sslcert/key.pem" priority="NORMAL:-MD5" hash="sha1">
<gnutls cafile="" crlfile="" certfile="/usr/local/etc/inspircd/sslcert/cert.pem" keyfile="/usr/local/etc/inspircd/sslcert/key.pem" dh_bits="1024">


<include file="examples/opers.conf.example">
<files motd="examples/motd.txt.example" rules="examples/rules.txt.example">

root@bsd11:/usr/local/etc/inspircd # cd examples/
root@bsd11:/usr/local/etc/inspircd/examples # cp modules.conf.example modules.conf

root@bsd11:/usr/local/etc/inspircd/examples # vi modules.conf

<module name="m_md5.so">
<module name="m_ssl_gnutls.so">
<module name="m_spanningtree.so">

 

weechat 설정

irc.conf 파일에서 아래와 같이 설정을 변경 합니다.

$ cd .weechat/
$ vi irc.conf
ssl = on
ssl_cert = ""
ssl_dhkey_size = 1024
ssl_verify = off

 

 

접속후 화면

irc server 의 ssl ports 가 정상적으로 open 안된 경우 아래와 같은 메시지가 출력됩니다.

x11:17:13 testirc =!= | irc: TLS handshake failed
x11:17:13 testirc =!= | irc: error: An unexpected TLS packet was received.
x11:17:13 testirc -- | irc: reconnecting to server in 10 seconds

 

 

FreeBSD weechat irc Client install

IRC Server 를 설치 하다 보니 weechat 을 오랜만에 설치 합니다.

심플하게 terminal 에서 irc 를 사용한다고 하면 weechat 이 좋을거 같습니다.

gnome 이나 xfce Desktop 사용시에는 xirc 를 추천 합니다. 🙂

Linux irc Client 의 경우 https://www.tecmint.com/best-irc-clients-for-linux/ 사이트에서 가장 많이쓰는 irc client 를 확인할수 있습니다.

 

ports 로 weechat 설치

설치하다가 오류가 나서 pkg 로 설치 했습니다.

root@bsd11-Client:~ # whereis weechat
weechat: /usr/ports/irc/weechat

root@bsd11-Client:~ # cd /usr/ports/irc/weechat && make install clean

===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/emulators/tpm-emulator
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/security/trousers
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/security/trousers
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/security/gnutls
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/security/gnutls
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/irc/weechat
*** Error code 1

Stop.
make: stopped in /usr/ports/irc/weechat
root@bsd11-Client:/usr/ports/irc/weechat # make MAKE_JOBS_UNSAFE=yes install clean
~중략

[0/1] /usr/local/bin/cmake -H/usr/ports/emulators/tpm-emulator/work/tpm_emulator-0.7.4 -B/usr/ports/emulators/tpm-emulator/work/.build
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/ports/emulators/tpm-emulator/work/.build
ninja: error: manifest 'build.ninja' still dirty after 100 tries

*** Error code 1

Stop.
make[6]: stopped in /usr/ports/emulators/tpm-emulator
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/security/trousers
*** Error code 1

Stop.

 

 

pkg 명령어로 weechat 을 설치 합니다.

검색을 해보니 그냥 바이너리로 설치하는게 방법일거 같아서 pkg 명령어를 이용하여 설치 합니다.

서버 데몬이 아닌 간단히 의존성 없는 APP를 설치할 경우 pkg 를 이용하는것이 시간과 정신건강에 좋습니다.  🙂

root@bsd11-Client:~ # pkg install weechat
To run tcsd automatically, add the following line to /etc/rc.conf:

tcsd_enable="YES"

You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.

If you want to use tcsd with software TPM emulator, use the following
configuration in /etc/rc.conf:

tcsd_enable="YES"
tcsd_mode="emulator"
tpmd_enable="YES"

To use TPM, add your_account to '_tss' group like following:

# pw groupmod _tss -m your_account
Message from lua52-5.2.4:

===> NOTICE:

The lua52 port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
root@bsd11-Client:~ #

sysrc 를 통하여 Deamon 을 enable 시켜줍니다. 
root@bsd11-Client:~ # sysrc tcsd_enable="YES"
tcsd_enable: -> YES
root@bsd11-Client:~ # sysrc tcsd_mode="emulator"
tcsd_mode: -> emulator
root@bsd11-Client:~ # sysrc tpmd_enable="YES"
tpmd_enable: -> YES
root@bsd11-Client:~ # cat /etc/rc.conf
hostname="bsd11-Client"
keymap="us.iso.kbd"
ifconfig_em0="DHCP"
sshd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
tcsd_enable="YES"
tcsd_mode="emulator"
tpmd_enable="YES"
root@bsd11-Client:~ #

 

일반유저에서 weechat 을 실행 합니다.

$ whoami
test1
$ weechat-curses

아래와 같은 화면을 볼수 있습니다.

/server add testirc 192.168.0.100/6667 를 입력하여 접속할 서버의 config 를 생성 합니다.

.weechat 디렉토리의 irc.conf 파일에 [server] 섹션 부분이 추가 됩니다.

/exit

exit 를 입력하여 weechat 에서 빠져 나옵니다.

weechat 을 실행 하고 나면 user directory 에 .weechat 디렉토리가 생성 됩니다.

 

.weechat 디렉토리의 irc.conf 파일을 설정 합니다. 

일반적인 접속 테스트만 진행하기 위하여 address 부분과 autoconnect , nick , username 만 설정 하였습니다.

$ vi irc.conf

[server_default]
addresses = "192.168.0.100/6667"
anti_flood_prio_high = 2
anti_flood_prio_low = 2
autoconnect = on
autojoin = ""
autoreconnect = on
autoreconnect_delay = 10
autorejoin = off
autorejoin_delay = 30
away_check = 0
away_check_max_nicks = 25
capabilities = ""
command = ""
command_delay = 0
connection_timeout = 60
ipv6 = off
local_hostname = ""
msg_kick = ""
msg_part = "WeeChat ${info:version}"
msg_quit = "WeeChat ${info:version}"
nicks = "test1,test11,test12,test13,test14"
nicks_alternate = on
notify = ""
password = ""
proxy = ""
realname = ""
sasl_fail = continue
sasl_key = ""
sasl_mechanism = plain
sasl_password = ""
sasl_timeout = 15
sasl_username = ""
split_msg_max_length = 512
ssl = off
ssl_cert = ""
ssl_dhkey_size = 2048
ssl_fingerprint = ""
ssl_priorities = "NORMAL:-VERS-SSL3.0"
ssl_verify = on
usermode = ""
username = "test1"


[server]
testirc.addresses = "192.168.0.100/6667"
testirc.proxy = ""
testirc.ipv6
testirc.ssl
testirc.ssl_cert = ""
testirc.ssl_priorities
testirc.ssl_dhkey_size
testirc.ssl_fingerprint = ""
testirc.ssl_verify
testirc.password
testirc.capabilities
testirc.sasl_mechanism
testirc.sasl_username
testirc.sasl_password
testirc.sasl_key
testirc.sasl_timeout
testirc.sasl_fail
testirc.autoconnect
testirc.autoreconnect
testirc.autoreconnect_delay
testirc.nicks = "test"
testirc.nicks_alternate
testirc.username = "test"
testirc.realname
testirc.local_hostname
testirc.usermode
testirc.command
testirc.command_delay
testirc.autojoin
testirc.autorejoin
testirc.autorejoin_delay
testirc.connection_timeout
testirc.anti_flood_prio_high
testirc.anti_flood_prio_low
testirc.away_check
testirc.away_check_max_nicks
testirc.msg_kick
testirc.msg_part
testirc.msg_quit
testirc.notify
testirc.split_msg_max_length

설정내용은 별도로 주석을 달지 않았습니다.

설정내용은 차후 업데이트 하도록 하겠습니다.

 

weechat 을 접속하여 irc server 에 접속을 합니다. 

$ weechat-curses

/join #testirc

channel 로 접속을 합니다.

weechat 설치가 완료 되었습니다. 🙂

 

charset 의 경우 .weechat 디렉토리의 $ charset.conf 에서 설정 할수 있습니다.

charset 의 경우 아래와 같이 변경 할수 있습니다. 

$ cd .weechat/
$ vi charset.conf
[default]
decode = "iso-8859-1"
encode = "UTF8"

decode 를 UTF8 로 변경 하여도 다시 iso-8859-1 로 변경 됩니다.

Locale 변경

freebsd 의 경우 Default C 로 locale 이 설정 되어 있습니다.

사용하는 user locale 을 변경 하기 위해선 home Directory 의 .login_conf 파일 수정이 필요 합니다.

$ vi .login_conf

# see login.conf(5)
#
#me:\
# :charset=iso-8859-1:\
# :lang=de_DE.ISO8859-1:
me:\
:charset=ko_KR.UTF-8:\
:lang=ko_KR.UTF-8:

재접속후 확인
$ locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=
$

 

irc 접속하여 한글 테스트

혹시나 charset decode 부분을 UTF8 로 변경이 가능할수 있을거 같아 찾아 봤지만..

이런 메시지를 확인 했습니다. 🙂

 

weechat 에서 설정을 바꿀경우 /set charset.default.decode “UTF8” 으로도 바꿀수 있지만 decode 를 바꾸면 아래와 같은 메시지를 확인 할수 있습니다.

x23:21:39 weechat =!= | charset: UTF-8 is not allowed in charset decoding options (it is internal and default charset: decode of UTF-8 is OK even if you specify another
x | charset to decode)
x23:21:39 weechat =!= | Error: failed to set option “charset.default.decode”

 

/set charset 에서 확인시

charset.default.decode string “iso-8859-1”  선택하여 확인 하면 아래와 같은 메시지를 확인 할수 있습니다. 🙂

charset.default.decode: global decoding charset: charset used to decode incoming messages when they are not UTF-8 valid

 

FreeBSD major update 11.1 -> 11.2 update

make world 방법이 아닌 freebsd-update 를 이용한 방법 입니다.

mkae world 의 경우 차후 포스팅 하도록 하겠습니다. 🙂

root@bsd11:~ # freebsd-update upgrade -r 11.2-RELEASE
Looking up update.FreeBSD.org mirrors... none found.
Fetching metadata signature for 11.1-RELEASE from update.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/src world/base world/doc world/lib32

The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y

Fetching metadata signature for 11.2-RELEASE from update.FreeBSD.org... done.

~ 중략

47510....47520....47530....47540....47550....47560....47570....47580....47590....47600....47610....47620....47630....47640....47650....47660....
47670....47680....47690....47700....47710....47720....47730....47740....47750....47760....47770....47780....47790....47800....47810....47820....
47830....47840....47850....47860....47870....47880....47890....47900....47910....47920....47930....47940....47950....47960....47970....47980....
47990....48000....48010....48020....48030....48040....48050....48060....48070....48080....48090....48100....48110....48120....48130....48140....
48150....48160....48170....48180....48190....48200....48210....48220....48230....48240....48250....48260....48270....48280....48290....48300....
48310....48320....48330....48340....48350....48360....48370....48380....48390....48400....48410....48420....48430....48440....48450....48460....
48470....48480....48490....48500....48510.... done.
Applying patches...
Fetching 3598 files...

~중략

The following files will be updated as part of updating to 11.2-RELEASE-p2:
/.cshrc
/.profile
/COPYRIGHT
/bin/[
/bin/cat
/bin/chflags
/bin/chio
/bin/chmod
/bin/cp
/bin/csh
/bin/date
/bin/dd
/bin/df
/bin/domainname
/bin/echo
/bin/ed
/bin/expr
/bin/freebsd-version
/bin/getfacl
/bin/hostname
/bin/kenv
To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".


root@bsd11:~ # /usr/sbin/freebsd-update install
Kernel updates have been installed. Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.
root@bsd11:~ #
root@bsd11:~ # init 6

 

Rebooting 후 freebsd-update 실행

root@bsd11:~ # freebsd-update install
root@bsd11:~ # init 6

root@bsd11:~ # uname -a
FreeBSD bsd11 11.2-RELEASE-p2 FreeBSD 11.2-RELEASE-p2 #0: Tue Aug 14 21:45:40 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

/etc/rc.conf 을 기존 keymap을 us.iso.kdb 에서 us로 변경 해 줍니다.

 

keymap=”us”

root@bsd11:~ # cat /etc/rc.conf
hostname="bsd11"
#keymap="us.iso.kbd"
keymap="us"
ifconfig_em0="DHCP"
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
root@bsd11:~ #