https://atuin.sh/
运行
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
报错
$ curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
curl: (77) error setting certificate verify locations:CAfile: /etc/ssl/certs/ca-certificates.crtCApath: /etc/pki/tls/certs
没有ca-certificates.crt,但是我又ca-bundle.crt
export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
hint: 在这里配置一下各个user都能无密码使用sudo:
https://gcore.com/learning/how-to-disable-password-for-sudo-command/
下载成功
$ curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh _______ _______ __ __ ___ __ _
| _ || || | | || | | | | |
| |_| ||_ _|| | | || | | |_| |
| | | | | |_| || | | |
| | | | | || | | _ |
| _ | | | | || | | | | |
|__| |__| |___| |_______||___| |_| |__|Magical shell historyAtuin setup
https://github.com/atuinsh/atuin
https://forum.atuin.shPlease file an issue or reach out on the forum if you encounter any problems!===============================================================================downloading atuin 18.3.0 x86_64-unknown-linux-gnu
installing to /data/home/unashi/.atuin/binatuinatuin-update
everything's installed!To add $HOME/.atuin/bin to your PATH, either restart your shell or run:source $HOME/.atuin/bin/env (sh, bash, zsh)source $HOME/.atuin/bin/env.fish (fish)% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed
100 14349 100 14349 0 0 32685 0 --:--:-- --:--:-- --:--:-- 32685_______ __ __ _______ __ _ ___ _ __ __ _______ __ __
| || | | || _ || | | || | | | | | | || || | | |
|_ _|| |_| || |_| || |_| || |_| | | |_| || _ || | | || | | || || || _| | || | | || |_| || | | || || _ || |_ |_ _|| |_| || || | | _ || _ || | | || _ | | | | || ||___| |__| |__||__| |__||_| |__||___| |_| |___| |_______||_______|Thanks for installing Atuin! I really hope you like it.If you have any issues, please open an issue on GitHub or visit our forum (https://forum.atuin.sh)!If you love Atuin, please give us a star on GitHub! It really helps ⭐️ https://github.com/atuinsh/atuinPlease run "atuin register" to get setup with sync, or "atuin login" if you already have an account
如提示中所说,add $HOME/.atuin/bin存到 PATH。
但是
$ source ~/.zshrc
atuin: /lib64/libc.so.6: version `GLIBC_2.29' not found (required by atuin)
glibc的版本较低。直接调整glibc会比较危险,可能导致操作系统崩溃。
==== 下面不用看了,就是一些错误记录。直接拉到最后看。
使用cargo下载。
https://github.com/atuinsh/atuin/issues/944
cargo install atuinUpdating crates.io index
error: cannot install package `atuin 18.3.0`, it requires rustc 1.77 or newer, while the currently active rustc version is 1.75.0
atuin 18.2.0` supports rustc 1.67
rustc版本要求,可以通过rustup进行更新
https://rustwiki.org/zh-CN/edition-guide/rust-2018/rustup-for-managing-rust-versions.html
显示版本冲突
$ /data/home/username/.cargo/bin/cargo install atuinUpdating crates.io indexInstalling atuin v18.3.0
error: failed to compile `atuin v18.3.0`, intermediate artifacts can be found at `/tmp/cargo-installtNpOc7`Caused by:failed to select a version for `env_logger`.... required by package `atuin v18.3.0`versions that meet the requirements `^0.11.2` are: 0.11.3, 0.11.2the package `atuin` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.
这种问题也是因为rustc的版本不对
https://github.com/atuinsh/atuin/issues/2031
最后把rustc版本更新到了1.77
然后出错
error: failed to run custom build command for `atuin-daemon v0.2.0`Caused by:process didn't exit successfully: `/tmp/cargo-installVICH25/release/build/atuin-daemon-660983d92ece083b/build-script-build` (exit status: 1)--- stdoutcargo:rerun-if-changed=./proto/history.protocargo:rerun-if-changed=./proto--- stderrError: Custom { kind: Other, error: "protoc failed: google/protobuf/timestamp.proto: File not found.\nhistory.proto: Import \"google/protobuf/timestamp.proto\" was not found or had errors.\n" }
warning: build failed, waiting for other jobs to finish...
error: failed to compile `atuin v18.3.0`, intermediate artifacts can be found at `/tmp/cargo-installVICH25`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
这个可以通过https://stackoverflow.com/questions/56031098/protobuf-timestamp-not-found 解决。
然后link的时候符号没有,还是得同意系统。
后面把libc.so.6删了,系统用不了了。
ok我认输。升级系统把glibc升级了(小丑)