〇Stellariumの画面
仮想マシンの構築手順
以下のVagrantfileを使用して、Stellarium、Xfce Desktop環境をインストールした仮想マシンを構築できます。Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/centos-7.4"
config.vm.hostname = "co74xfcestellarium"
config.vm.provider :virtualbox do |vbox|
vbox.name = "co74xfcestellarium"
vbox.gui = true
vbox.cpus = 4
vbox.memory = 4096
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "public_network", ip: "192.168.1.116", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
localectl set-locale LANG=ja_JP.UTF-8
yum install -y epel-release
yum check-update
yum -y update
yum -y groupinstall yum groupinstall "X Window System" Xfce "Input Methods"
yum -y install vlgothic-* ipa-gothic-fonts ipa-mincho-fonts ipa-pgothic-fonts ipa-pmincho-fonts
cat << EOF >> /home/vagrant/.Xclients
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx
exec /usr/bin/xfce4-session
EOF
chmod +x /home/vagrant/.Xclients
chown vagrant:vagrant /home/vagrant/.Xclients
# 不要なダイアログを表示されないようにする
sudo sh -c "echo 'X-GNOME-Autostart-enabled=false' >> /etc/xdg/autostart/gnome-welcome-tour.desktop"
sudo sh -c "echo 'X-GNOME-Autostart-enabled=false' >> /etc/xdg/autostart/gnome-software-service.desktop"
sudo sh -c "echo 'X-GNOME-Autostart-enabled=false' >> /etc/xdg/autostart/gnome-settings-daemon.desktop"
sudo systemctl disable initial-setup-graphical.service
sudo systemctl disable initial-setup-text.service
systemctl set-default graphical.target
# Virtualbox Guest Additions
yum -y groupinstall "Development Tools"
yum -y install kernel-devel kernel-headers kernel-devel-3.10.0-693.2.2.el7.x86_64
wget http://download.virtualbox.org/virtualbox/5.2.6/VBoxGuestAdditions_5.2.6.iso
mount -o loop -t iso9660 VBoxGuestAdditions_5.2.6.iso /media/
/media/VBoxLinuxAdditions.run
# install stellarium
yum -y install stellarium
telinit 5
SHELL
end
関連情報
・Stellariumに関する他の記事はこちらを参照してください。・Stellariumのプロジェクトwebサイト
https://stellarium.org/ja/
0 件のコメント:
コメントを投稿