1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CentOS9にscreenコマンドを導入する方法

Posted at

IBM CloudのCentOS9にscreenコマンドを導入してみた。

CentOS Stream 9 環境情報
[root@syasuda-centos9 ~]# dnf update -y
[root@syasuda-centos9 ~]# cat /etc/redhat-release
CentOS Stream release 9
[root@syasuda-centos9 ~]# uname -a
Linux syasuda-centos9 5.14.0-361.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 24 13:40:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
epelの導入。失敗
[root@syasuda-centos9 ~]# dnf config-manager --set-enabled crb
[root@syasuda-centos9 ~]# dnf install -y  https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
(途中省略)
Downloading Packages:
Public key for epel-release-latest-9.noarch.rpm is not installed
Public key for epel-next-release-latest-9.noarch.rpm is not installed
Error: GPG check FAILED
epelの導入。gpgをチェックしないようにする。
[root@syasuda-centos9 ~]# dnf config-manager --set-enabled crb
[root@syasuda-centos9 ~]# dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
(途中省略)
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                        1/1
  Installing       : epel-next-release-9-7.el9.noarch                                                                                                                       1/2
  Installing       : epel-release-9-7.el9.noarch                                                                                                                            2/2
  Running scriptlet: epel-release-9-7.el9.noarch                                                                                                                            2/2
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Verifying        : epel-release-9-7.el9.noarch                                                                                                                            1/2
  Verifying        : epel-next-release-9-7.el9.noarch                                                                                                                       2/2

Installed:
  epel-next-release-9-7.el9.noarch                                                          epel-release-9-7.el9.noarch

Complete!
screenの導入
[root@syasuda-centos9 ~]# dnf install screen

以下は、screenのカスタマイズ例。エスケープをCtrl+Tにしている。

~/.screenrc
defutf8 on
defencoding utf8
encoding utf8 utf8

escape ^Tt
defscrollback 1000000
termcapinfo xterm* ti@:te@
autodetach on
allpartial off
startup_message off
hardstatus alwayslastline "%{= rw} %H %{= wk}%-Lw%{= bw}%n%f* %t%{= wk}%+Lw %{= wk}%=%{= gk} %y/%m/%d %c "
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?