2020年2月2日日曜日

ContOS8 StumpWM & Emacs 26.3


このエントリーをはてなブックマークに追加


気分を変えるために StumpWM を久々に動かしてみた。
StumpWM は Common Lisp で記述されたシンプルなウインドマネージャーで、タイル型と呼ばれるウインドマネージャーです。キーボードを中心に操作を行い、Emacs と相性が良いです。

xrdp で動かす場合の導入のメモを残しておきます。roswellのおかげですごく簡単になっています。



1. 前提環境: CentOS8 minimal インストール & 設定

sudo dnf update -y
sudo dnf config-manager --set-enabled PowerTools
sudo dnf install -y glibc-all-langpacks gcc make rpm-build git sudo which tree jq automake libcurl-devel ncurses-devel wget
sudo dnf install -y epel-release
sudo dnf install -y xrdp tigervnc-server

sudo systemctl enable xrdp --now
sudo firewall-cmd --add-port=3389/tcp --permanent
sudo firewall-cmd --reload

2. roswell のインストール

mkdir ~/temp && cd ~/temp
git clone -b release https://github.com/roswell/roswell.git
cd roswell
sh bootstrap
./configure --prefix=/opt/local
make
sudo make install
echo 'export PATH=$HOME/.roswell/bin:/opt/local/bin:$PATH' >> ~/.bashrc


3. stumpwm

cd
source ~/.bashrc
ros setup
ros install sbcl --without-install
ros install stumpwm
ros init stumpwm

vi stumpwm.ros

#!/bin/sh
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#
(progn ;;init forms
  (ros:ensure-asdf)
  #+quicklisp(ql:quickload '(:stumpwm) :silent t)
  )

(defpackage :ros.script.stumpwm.3789541534
  (:use :cl))
(in-package :ros.script.stumpwm.3789541534)

(defun main (&rest argv)
  (declare (ignorable argv))
  (stumpwm:stumpwm))
;;; vim: set ft=lisp lisp:

ros build stumpwm.ros
sudo mv stumpwm /opt/local/bin

echo "exec /opt/local/bin/stumpwm" >> ~/.Xclients
chmod +x ~/.Xclients

個人用設定の配置
git clone https://github.com/irixjp/dot.stumpwm.d.git ~/.stumpwm.d

日本語フォント、ターミナル、ブラウザのインストール
sudo dnf install -y gnome-terminal firefox google-noto-sans-cjk-ttc-fonts google-noto-serif-cjk-ttc-fonts
reboot


Emacs 26.3

sudo dnf install -y automake autoconf gtk3-devel libxml2-devel libtiff-devel libpng-devel libjpeg-turbo-devel gnutls-devel libXpm-devel ImageMagick-devel giflib-devel Xaw3d-devel

cd ~/temp
wget http://ftp.iij.ad.jp/pub/gnu/emacs/emacs-26.3.tar.gz
tar zxf emacs-26.3.tar.gz
cd emacs-26.3

./autogen.sh
./configure --prefix=/opt/local
make
sudo make install


# migemo用
sudo rpm -Uvh http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/nkf-2.1.3-5.el7.x86_64.rpm
cd ~/temp
git clone https://github.com/koron/cmigemo
cd cmigemo
./configure --prefix=/opt/local
make gcc
make gcc-dict
sudo make gcc-install

sudo sh -c 'echo /opt/local/lib >> /etc/ld.so.conf.d/opt-local-lib.conf'
sudo ldconfig
ldconfig -p |grep migemo

# fkyspell用
sudo dnf install -y aspell-en
echo "lang en_US" >> ~/.aspell.conf

# mozc
sudo dnf install -y mozc
/usr/libexec/mozc/mozc_tool --mode=config_dialog


# フォント
cd ~/temp
wget https://github.com/tomokuni/Myrica/raw/master/product/MyricaM.zip
unzip MyricaM.zip
mv MyricaM.TTC ~/.local/share/fonts/
fc-cache -f -v

# sary
rpm -ihv http://www.ring.gr.jp/pub/linux/Vine/VineSeed/x86_64/RPMS.plus/sary-1.2.0-2vl7.x86_64.rpm

# ripgrep
wget https://github.com/jc21-rpm/ripgrep/releases/download/v11.0.2/centos8__ripgrep-11.0.2-1.el8.x86_64.rpm
sudo dnf install -y centos8__ripgrep-11.0.2-1.el8.x86_64.rpm

2 件のコメント:

AJ さんのコメント...

Hi, I do think this is a great website. I stumbledupon it ?? I am going to return once again since i have book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

B.A. पार्ट वन का एग्जाम | B.A. सेकंड ईयर का टाइम टेबल | BA Final Year Exam Date Sheet

Amit Import さんのコメント...

Get the import export data for India Import Export Data at Importglobals. India mostly export iron and steel products, industrial machinery, and automobiles and more. Visit our website for more information in details.
India Import Data

コメントを投稿