![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux新手笔记
「已注销」
这个作者很懒,什么都没留下…
展开
-
docker从image生成开放端口的ubuntu container
sudo docker run -p 23:22 -it ubuntu原创 2022-03-03 16:30:53 · 519 阅读 · 0 评论 -
debian 11 xfce xrdp
sudo apt update -y && sudo apt install task-xfce-desktop xrdp -y && sudo systemctl get-default && sudo systemctl set-default graphical.target && reboot原创 2022-02-14 07:42:08 · 1021 阅读 · 0 评论 -
ubuntu frps tmux 开机自动启动
sudo apt update -ysudo apt install tmux -y.└── onboot └── frp_0.38.0_linux_amd64 ├── frpc ├── frpc_full.ini ├── frpc.ini ├── frps ├── frps_full.ini ├── frps.ini ├── LICENSE ├── onboot原创 2022-01-11 20:38:28 · 701 阅读 · 0 评论 -
tmux自用
创建新的tmux new -s NAME回到tmux attach -t NAME原创 2021-12-21 19:33:43 · 52 阅读 · 0 评论 -
Ubuntu20.04server树莓派版开机启动sh
编写脚本/home/ubuntu/onboot/miraionboot.sh#!/bin/bashtmux new-session -d -s miraitmux send-keys -t mirai.0 "cd /home/ubuntu/mcl" C-mtmux send-keys -t mirai.0 "./start" C-mchmod +x miraionboot.sh开机启动crontab -e结尾添加内容@reboot sleep 10 && /原创 2021-12-21 19:30:18 · 285 阅读 · 0 评论 -
CentOS 7 安装python3.7.8 脚本(自用)
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/nctqaq/sh/main/python3.7.8.sh" && chmod +x install.sh && bash install.sh目前只在root用户下测试成功原创 2021-10-06 11:35:42 · 360 阅读 · 0 评论 -
树莓派3B给WiFi和网线设置静态IP
sudo nano /etc/dhcpcd.conf按需要的IP地址设置interface wlan0inform 192.168.0.101static routers=192.168.0.1static domain_name_servers=192.168.0.1interface eth0inform 192.168.0.100static routers=192.168.0.1static domain_name_servers=192.168.0.1...原创 2021-05-15 11:38:39 · 139 阅读 · 0 评论 -
树莓派3B温度监控bash脚本
存为*.sh文件bash 文件名或sh 文件名来执行#!/bin/bashtemperature=0raw_temperature=0old_temperature=0while truedo read raw_temperature < /sys/class/thermal/thermal_zone0/temp temperature=$((${raw_temperature}/1000)) if [ $old_tempera原创 2021-03-27 10:54:13 · 177 阅读 · 0 评论 -
CentOS 7 防火墙配置添加端口
查询服务是否开启systemctl status firewalld查询22端口是否开启firewall-cmd --query-port=22/tcp开启22端口firewall-cmd --permanent --add-port=22/tcp重启防火墙服务service firewalld restart原创 2021-02-21 16:53:36 · 316 阅读 · 0 评论 -
Arch Linux 官方中文安装教程
官方网站链接转载 2021-02-18 10:01:23 · 1918 阅读 · 0 评论 -
Ubuntu 20.04 关闭鼠标加速
xinput --list --short⎡ Virtual core pointer id=2 [master pointer (3)]⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]⎜ ↳ Logitech G102 LIGHTSYNC Gaming Mouse id=10 [slave pointer (2)]⎜ ↳ Logitech原创 2021-01-15 10:01:00 · 2480 阅读 · 0 评论 -
ssh快捷键
ctrl+a光标到行首ctrl+e光标到行尾ctrl+c终止程序/重新输入命令ctrl+L清屏原创 2020-08-18 12:18:11 · 543 阅读 · 0 评论 -
CentOS VNC server 启动与停止
启动vnc服务器vncserver :1New ‘lopc:1 (nct)’ desktop is lopc:1Starting applications specified in /home/nct/.vnc/xstartup Log file is/home/nct/.vnc/lopc:1.log停止vnc服务器vncserver -kill :1Killing Xvnc process ID 11892原创 2020-08-16 11:32:07 · 1079 阅读 · 0 评论 -
Linux 永久修改主机名
hostnamectl set-hostname 新名字重启reboot原创 2020-08-14 20:40:51 · 112 阅读 · 0 评论