随笔分类 -  技术 / linux

摘要:https://deb.nodesource.com/ curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash - sudo apt-get install -y nodejs 阅读全文
posted @ 2026-04-14 11:32 bregman 阅读(8) 评论(0) 推荐(0)
摘要:mac os 下使用 podman machine init podman machine start podman machine stop podman machine set --rootless podman machine start 修改代理 $ podman machine ssh C 阅读全文
posted @ 2025-09-12 13:25 bregman 阅读(31) 评论(0) 推荐(0)
摘要:windows 机器去连接远端服务器中的linux系统。linux系统由docker容器启动,默认是root 账号。sshd 默认禁止root账号登陆, 比较简单的是通过ssh的密钥直接登陆。另外,linux 系统不能访问外网,需要传递文件。 linux开启ssh服务 ubuntu系统 servic 阅读全文
posted @ 2025-07-07 23:24 bregman 阅读(114) 评论(0) 推荐(0)
摘要:去掉重复, 以及开头的冒号 export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | awk -F: '{for(i=1;i<=NF;i++) if(!a[$i]++) printf(i>1?":%s":"%s"),$i}' | sed 's/^://') e 阅读全文
posted @ 2025-04-02 14:18 bregman 阅读(40) 评论(0) 推荐(0)
摘要:镜像制作 注意 mac 最近的芯片都是arm64架构, 而Linux一般都是 amd64架构 创建 Dockerfile 文件 # FROM ubuntu # 使用阿里云 alinux3 FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyu 阅读全文
posted @ 2025-02-11 10:35 bregman 阅读(91) 评论(1) 推荐(0)
摘要:#!/bin/bash VARIABLE_NAME="HelloWorld" cat <<'EOF' The variable $VARIABLE_NAME should not be replaced. EOF cat <<EOF In this case, we'll escape the do 阅读全文
posted @ 2024-07-23 10:33 bregman 阅读(47) 评论(0) 推荐(0)
摘要:尝试恢复 grub 界面 按e 编辑, ro 后加上 splash nomodeset 按快捷键ctl + alt + F1, 或者 ctl + alt + F2 或者 其他 F3可以图形登录 删除nvidia 相关, reboot 后可以登录图形界面 sudo apt-get remove nvi 阅读全文
posted @ 2024-05-13 01:01 bregman 阅读(979) 评论(1) 推荐(0)
摘要:## mintlinux安装docker * 用 Aliyun 代理 ```bash # step 1: 安装必要的一些系统工具 sudo apt update sudo apt -y install apt-transport-https ca-certificates curl software 阅读全文
posted @ 2023-09-02 09:21 bregman 阅读(343) 评论(0) 推荐(0)
摘要:> mint linux 下使用virtualbox,安装了 Oracle_VM_VirtualBox_Extension_Pack-6.1.34.vbox-extpack 后。仍然无法使用usb。 * 如下处理。 可能只是最后一句生效了。 ```bash sudo groupadd usbfs s 阅读全文
posted @ 2022-05-02 18:26 bregman 阅读(191) 评论(0) 推荐(0)
摘要:mint linux中 刻录Windows系统盘 阅读全文
posted @ 2022-04-20 09:15 bregman 阅读(108) 评论(0) 推荐(0)
摘要:* 基于wine模式安装微信. 参考 https://github.com/zq1997/deepin-wine * 在4K屏幕下, 分辨率太高导致字体太小, 如下调整 ![image](https://img2020.cnblogs.com/blog/698752/202105/698752-20 阅读全文
posted @ 2021-05-02 00:19 bregman 阅读(1011) 评论(1) 推荐(0)
摘要:* 分辨率问题参考 https://blog.csdn.net/a1171936767/article/details/114324666 ```bash vim /opt/netease/netease-cloud-music/netease-cloud-music.bash # 增加分辨率参数, 阅读全文
posted @ 2021-03-21 13:03 bregman 阅读(89) 评论(2) 推荐(0)
摘要:* 输入法:fcitx * 系统环境:mint linux 20.1 * 解决方法:通过配置fcitx,延迟5秒解决. ![](https://img2020.cnblogs.com/blog/698752/202103/698752-20210321011234771-1551982576.png 阅读全文
posted @ 2021-03-21 01:13 bregman 阅读(505) 评论(0) 推荐(0)
摘要:echo 'export dataPath=$HOME/data/pre' >> ~/.bash_profile # 路径即刻生效: # . .bash_profile 或 source .bash_profile 或 exec bash --login echo 'export dataPath= 阅读全文
posted @ 2017-05-09 10:37 bregman 阅读(492) 评论(0) 推荐(0)