Oracle Linux 安装1panel

Oracle Linux 安装1panel

根据1panel 官网安装命令

​**curl -sSL https**​:// -o && sh

后面的 需要使用sudo执行


​**curl -sSL https**​:// -o && sudo sh


# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de

ERROR: Unsupported distribution 'ol'

[1Panel Log]: ... 启动 docker
Failed to enable unit: Unit file docker.service does not exist.
Failed to start docker.service: Unit docker.service not found.

看起来是docker 安装失败,查看 文件,判断/etc/os-release文件的ID属性,orcacle linux 为ol,


zsh和oh my zsh 配置

zsh 设置


sh -c "$(curl -fsSL"

git extras[]安装

$ git clone
$ cd git-extras
# checkout the latest tag
$ git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
$ [sudo] make install

bash complete

when building android source, need to source >build/
will complain "complete not found"

because android build use bash as default,complete is bash embed function

add below to .zshrc
autoload -U compinit && compinit
autoload -U bashcompinit && bashcompinit

if build android source still error, and using bash is ok,
try to use

emulate bash

before make.

just ensure you have "#!/usr/bin/env bash" at the first line of your script

emulate sh -c '. ./'

git 命令卡死,cpu 占用率到100%
__git_files () {
_wanted files expl 'local files' _files


autojump is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line.

Directories must be visited first before they can be jumped to.
git clone git://
cd autojump
./ or ./

add the following line(s) to ~/.zshrc:

[[ -s ~/.autojump/etc/profile.d/ ]] && source ~/.autojump/etc/profile.d/
autoload -U compinit && compinit -u

linux-server 安装依赖错误

user@XM4002951:~$ sudo apt-get install linux-server

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following packages will be upgraded:


1 upgraded, 0 newly installed, 0 to remove and 382 not upgraded.

1 not fully installed or removed.

Need to get 0 B/1,734 B of archives.

After this operation, 1,024 B of additional disk space will be used.

dpkg: dependency problems prevent configuration of linux-server:

linux-server depends on linux-image-server (=; however:

  Version of linux-image-server on system is

linux-server depends on linux-headers-server (=; however:

  Version of linux-headers-server on system is

dpkg: error processing linux-server (–configure):

dependency problems – leaving unconfigured

No apport report written because the error message indicates its a followup error from a previous failure.

                                                                                                          Errors were encountered while processing:


E: Sub-process /usr/bin/dpkg returned an error code (1)

user@XM4002951:~$ sudo dpkg-reconfigure linux-server

/usr/sbin/dpkg-reconfigure: linux-server is broken or not fully installed