2015年6月4日木曜日

Scientific Linux7で変わったこと(TigerVNCとfirewalld)

GPIB制御するラップトップを変更するのは怖いので,musrfitを実行するサーバーだけScientific Linux 7にアップグレードしてみました.

SELinuxをとめないとSSH接続できなかったので,

[root@korma yishii]# setenforce 0
[root@korma yishii]# getenforce
Permissive

[root@korma yishii]# 

設定ファイルを書き換えて,再起動時にもSELinuxを動かさないようにする.

[root@korma yishii]# more /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are pro
tected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 


[root@korma yishii]# 


こんな感じでした.

iptablesはfirewalldに変わっていました.
VNCはfirewallをとめないと入れなかったので,

[root@korma .vnc]# systemctl stop firewalld
[root@korma .vnc]# systemctl disable firewalld
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'


vncはtigervncをインストールし,vncpasswdコマンドでパスワードを設定した後,vncserver :1とだけやって起動.
もちろん一般ユーザで実行しないと怖いことになります.
vncを止める時は.vncserver -kill :1だけで切れます.