PVE
Proxmox VE是一个运行虚拟机(KVM)和容器(LXC)的平台。基于 Debian Linux,完全开源,具有强大灵活性。免费。
安装PVE
下载地址:Index of /iso/
安装完成,通过浏览器8006端口访问。

开始使用:↓↓
查看硬件配置
浏览器

neofetch 命令

修改.bashrc
默认的终端太素了,可以把 ubuntu 主机的 .bashrc
拿过来用。
~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# 如果不是交互式运行,不执行任何操作
case $- in
*i*) ;;
*) return;;
esac
# 不要在历史记录中放入重复的行或以空格开头的行。
# 参见bash(1)获取更多选项
HISTCONTROL=ignoreboth
# 追加到历史文件,不要覆盖它
shopt -s histappend
# 设置历史长度,请参阅bash(1)中的HISTSIZE和HISTFILESIZE
HISTSIZE=1000
HISTFILESIZE=2000
# 在每个命令后检查窗口大小,并在必要时,更新LINES和COLUMNS的值。
shopt -s checkwinsize
# 让less对非文本输入文件更友好,请参阅lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# 设置变量,标识你工作的chroot环境(在下面的提示符中使用)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# 设置一个花哨的提示符
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# 如果这是一个xterm,将标题设置为user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# 启用ls的颜色支持,并添加一些便捷的别名
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# 一些更多的ls别名
alias ll='ls -lFh'
alias la='ls -AlFh'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# 自定义别名
alias qc='bash /usr/local/query_command.sh'
alias free='free -h'
alias iostat='iostat -h'
定义脚本
/usr/local/query_command.sh
#!bash
curl cheat.sh/$1
修改后的终端,支持颜色,能够使用自定义命令 qc
查询不同命令的用法。
