vagrantのubuntu-18.04にloopbackを入れる
sudo apt-get install nodejs
Installing Node.js via package manager | Node.js
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -h loopback-cli
CentOS7.5 mongoDB4.0 install
$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
$ arch
x86_64
$ sudo vi /etc/yum.repos.d/mongodb-org-4.0.repo
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
sudo yum install -y mongodb-org
CantOS7.5 Emacs26.1 Install
「/usr/local/src」へ移動し、DL&解凍。
$ cd /usr/local/src
$ sudo wget http://ftp.gnu.org/pub/gnu/emacs/emacs-26.1.tar.gz
$ sudo tar zxvf emacs-26.1.tar.gz
インストールを実行。
$ cd emacs-26.1
$ ./configure --without-x
、./configure --without-xのとこで
configure: error: The required function `tputs' was not found in any library.
The following libraries were tried (in order):
libtinfo, libncurses, libterminfo, libtermcap, libcurses
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.
という風にコケてしまうので、yumでncurses-develを入れる。
という訳で実行するコマンドは以下。
(autoconfの入手先はJAISTに変えてある)
# yum groupinstall -y "Development Tools"
# wget http://ftp.jaist.ac.jp/pub/GNU/autoconf/autoconf-2.69.tar.gz
# tar zxvf autoconf-2.69.tar.gz
# cd autoconf-2.69
# sudo ./configure
# sudo make
# sudo make install
# sudo yum install -y texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel ncurses-devel
# cd ~/src/emacs-26.1
# sudo ./autogen.sh
# sudo ./configure --with-gnutls=no --with-x-toolkit=no --with-jpeg=no --with-png=no
# sudo make bootstrap
# sudo make install
最後にバージョン確認をする。
■
# 今後複数の仮想マシンを作ることを想定して、それらをまとめるフォルダ(MyVagrant)を作る mkdir MyVagrant # MyVagrantに移動する cd MyVagrant # 仮想マシンを作るフォルダを作る(MyCentOS) mkdir MyCentOS # MyCentOSに移動する cd MyCentOS # 仮想マシン設定用のVagrantfileを作る vagrant init bento/centos-7.5 # Vagrantfileを編集して仮想マシンのIPアドレスを192.168.33.10にする (動画をご覧ください) # 仮想マシンを起動する(少し時間かかります) vagrant up # 仮想マシンの状態を確認する vagrant status
#gitをインストール
$ sudo yum -y remove git
$ sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel autoconf asciidoc xmlto docbook2X make gcc
$ sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
$ wget https://github.com/git/git/archive/v2.17.1.tar.gz
$ tar -zxf v2.17.1.tar.gz
$ cd git-2.17.1
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
$ git --version
$ rm -rf git-2.17.1.tar.gz
#NVMのインストール
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
The script clones the nvm repository to ~/.nvm
and adds the source line to your profile (~/.bash_profile
, ~/.zshrc
, ~/.profile
, or ~/.bashrc
).
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#nodeインストール
nvm install v10.4.0
#最新のNVMをインストール
rasberry pi 固定IP設定メモ
下記サイトを参考に
http://geisterhacker.com/index.php/2017/01/16/raspberry-pi3-tightvncserver/
vncbootは下記とおり
#! /bin/sh
### BEGIN INIT INFO
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.
### END INIT INFO
# /etc/init.d/vncboot
# ログインするユーザーがpiの場合
USER=pi
HOME=/home/pi
export USER HOME
case "$1" in
start)
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
su $USER -c '/usr/bin/vncserver :1 -geometry 1440x900 -depth 24'
;;
stop)
echo "Stopping VNC Server"
su $USER -c '/usr/bin/vncserver -kill :1'
;;
*)
echo "Usage: /etc/init.d/vncboot {start|stop}"
exit 1
;;
esac
exit 0
色々と忘れていること
一年前と今の仕事が違うので、いつの間にか頭から抜けていることが沢山あることに気がついた。
完全に忘れてしまう前に思い出しておこう。
復習の意味もこめて。
素人がもがいた程度の内容ですが。