This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set user to root before execute this script | |
# sudo su | |
echo "whoami" | |
whoami | |
sleep 2s | |
cd /root | |
# Korean time | |
date | |
sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo docker container run -d --name mariadb mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD="<YOUR_PASSWORD>" | |
sudo docker ps -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ubuntu Server 2020.04 | |
# 서버 시간 한국으로 설정 | |
date | |
sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime | |
date | |
# First add the required dependencies and the security key: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
curl -sL https://deb.nodesource.com/setup_15.x -o nodesource_setup.sh | |
sudo sh nodesource_setup.sh | |
sudo apt install nodejs | |
node -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
date | |
sudo apt install git curl zsh fonts-powerline cowsay lolcat figlet toilet -y | |
figlet hello | lolcat -a -d 20 | |
echo "-" |
Install zsh env
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install powerlevel10 theme
sudo apt install fonts-powerline
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boost, Flatbuffers, MySQL, ZooKeeper | |
# https://cliutils.gitlab.io/modern-cmake/ | |
# https://pleiades.io/help/clion/installation-guide.html | |
# https://cmake.org/cmake/help/latest/module/FindBoost.html | |
# [Boost] | |
# set(Boost_USE_STATIC_RUNTIME ON) | |
set(Boost_USE_STATIC_LIBS ON) # only find static libs | |
set(Boost_USE_MULTITHREADED ON) | |
set(Boost_USE_DEBUG_LIBS OFF) # ignore debug libs and |
MacOS
최신 버전이면 brew를 통해서 하면 되지만, 특정 버전은 b2로 설치한다
NewerOlder