
SLES 15 vm 遇到 kernel panic, 看起來 /init 有問題
使用 recuse mode 掛載 /boot
在使用 dracut --force 重建 initrd 即可

SLES 15 vm 遇到 kernel panic, 看起來 /init 有問題
使用 recuse mode 掛載 /boot
在使用 dracut --force 重建 initrd 即可
# 安裝
centos:~ # git clone git://github.com/KittyKatt/screenFetch.git /usr/local/screenfetch
centos:~ # cp /usr/local/screenfetch/screenfetch-dev /usr/bin/screenfetch
centos:~ # chmod +x /usr/bin/screenfetch
centos:~ # screenfetch
# 安裝
centos:~ # yum install fortune-mod cowsay
centos:~ # fortune | cowsay -pn
# 使用 insertOne, 增加一筆資料
> db.fruit.insertOne({_id: "apples", qty: 5})
# 使用 insertMany, 增加多筆資料
> db.fruit.insertMany([
# 備份
centos:~ # mongodump [-h <hostname>[:<port>]
centos:~ # ls dump # 在執行完 mongodump 後, 會將備份資料產生 dump 資料夾
# 設定 repository
centos:~ # yum install epel-release
# 安裝 docker
centos:~ # yum install docker
# 設定 repository
centos:~ # vi /etc/yum.repos.d/mongodb-org.repo
[mongodb-org]
baseurl = https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck = 1
須先安裝 Java, Groovy 和 Gradle
linux:~ # mkdir hello
linux:~ # cd hello
linux:~/hello # gradle init
linux:~/hello # mkdir -p src/main/{groovy,java}
# 啟動 Xvfb, 有啟動 x window 可忽略此步驟
centos:~ # Xvfb :99 -ac -screen 0 1280x960x16 &
centos:~ # export DISPLAY=:99
# 安裝 robotframework-selenium2library
centos:~ # pip install xpath
centos:~ # pip install robotframework-selenium2library
# install robotframework-sshlibrary
centos:~ # yum install python-devel openssl openssl-libs openssl-devel
centos:~ # pip install robotframework-sshlibrary