Install
...
코드 블럭 |
---|
language | bash |
---|
theme | Emacs |
---|
linenumbers | true |
---|
|
sudo yum -y install tmux git zsh curl wget vim
sudo systemctl enable --now cockpit.socket |
...
oh-my-zsh on system-wide
코드 블럭 |
---|
language | bash |
---|
theme | Emacs |
---|
linenumbers | true |
---|
|
# do the following on root (sudo)
yum -y install git zsh
ZSH=/oh-my-zsh
sudo git clone https://github.com/ohmyzsh/ohmyzsh $ZSH
ZSH_CUSTOM=$ZSH/custom
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
echo 'PROMPT="[!%!]$DALLAS_CURRENT_TIME_\$(ruby_prompt_info)$DALLAS_CURRENT_MACH_$DALLAS_CURRENT_LOCA_ $DALLAS_CURRENT_USER_$DALLAS_PROMPT_CHAR_ "' >> $ZSH/themes/dallas.zsh-theme
ZSHRC=$ZSH/templates/zshrc.zsh-template
sed -i $ZSHRC -e 's#^export ZSH=$HOME/.oh-my-zsh#export ZSH=/oh-my-zsh#g'
sed -i $ZSHRC -e 's/^ZSH_THEME="robbyrussell"/ZSH_THEME="dallas"/g'
sed -i $ZSHRC -e 's/^plugins=.git.$/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g'
sed -i $ZSHRC -e 's/^# DISABLE_AUTO_UPDATE="true"/DISABLE_AUTO_UPDATE="true"/g'
cat << EOL >> $ZSHRC
alias ls='ls --color=tty --time-style=long-iso'
alias vi='vim'
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
EOL |
...
코드 블럭 |
---|
language | bash |
---|
theme | Emacs |
---|
linenumbers | true |
---|
|
ZSH=cp /oh-my-zsh
ZSHRC=$ZSH/templates/zshrc.zsh-template
cp $ZSHRC /etc/skel/.zshrc
cp $ZSHRC |
코드 블럭 |
---|
language | bash |
---|
theme | Emacs |
---|
linenumbers | true |
---|
|
cp /oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc |
Change SSH and Cockpit ports (if needed)
Change SSH Port
https://cockpit-project.org/guide/latest/listen.html