linux相关
文章平均质量分 76
garyexs
这个作者很懒,什么都没留下…
展开
-
df -h
Linux df -h 显示磁盘空间原创 2019-10-23 12:43:58 · 160 阅读 · 0 评论 -
ubuntu 下安装pip3
在使用任何apt 安装任何软件包之前,建议用以下命令更新软件sudo apt update更新好了后可能会出现apt list --upgradable安装pip3sudo apt install python3-pip验证安装是否成功pip3 --version然后安装构建python 模块所需的开发工具,sudo apt install build-essentia...原创 2019-10-16 16:50:40 · 107 阅读 · 0 评论 -
Pi Dashboard (Pi 仪表盘)
sudo apt-get install gitcd /var/www/htmlsudo git clone https://github.com/spoonysonny/pi-dashboard.gitcd /var/www/htmlsudo chown -R www-data pi-dashboard原创 2019-08-08 10:19:31 · 1095 阅读 · 0 评论 -
树莓派拓展内存
拓展内存终端输入raspi-config选择advanced option选择expand filesystem原创 2019-08-08 10:13:56 · 1836 阅读 · 0 评论 -
ubuntu笔记本设置关闭盖子不休眠
sudo vi /etc/systemd/logind.conf然后将其中的:#HandleLidSwitch=suspend改成下面,记得去掉“#”号:HandleLidSwitch=ignore最后重启服务service systemd-logind restart原创 2019-08-08 10:54:45 · 2284 阅读 · 0 评论 -
Ubuntu上禁用笔记本自带键盘
xinput list列出列表,找到自带键盘的id然后执行xinput set-prop id "Device Enabled" 0也可以直接输入设备名字如xinput set-prop "AT Translated set 2 keyboards" "Device Enabled" 0...原创 2019-08-08 11:01:39 · 1420 阅读 · 0 评论 -
lsof:端口
lsof -i :22 知道22端口被哪个进程占用原创 2019-09-19 10:50:08 · 688 阅读 · 0 评论 -
树莓派 开机启动
树莓派,没有过流保护,很容易就烧掉。一般我放着也只是吃灰。没有什么用,所以我不会再为之花费钱。至少现在不,以后要是自己鼓捣外设,可能再买吧。sudo vi /etc/systemd/system/frpc.service[Unit]Description=FRP Client DaemonAfter=network.targetWants=network.target[Servic...原创 2019-08-08 10:06:19 · 459 阅读 · 0 评论 -
frp内网穿透配置
frp可以帮助实现内网穿透,可以远程访问局域网内的服务。1,下载首先从https://github.com/fatedier/frp/releases下载所需的frp版本。2,解压frp分为服务端和客户端,服务端只需要frps和frps.ini,客户端只需要frpc和frpc.ini。[common]server_addr = x.x.x.x #服务器ipserv...原创 2018-11-28 15:08:36 · 505 阅读 · 0 评论 -
docker常用命令
ubuntu安装dockersudo apt-get updatesudo apt-get install docker.io删除docker,包括删除配置文件等sudo apt-get remove - - purge docker.io查看版本docker version查看正在运行的容器docker ps查看所有容器docker ps -a启动和停止dockers...原创 2018-11-28 12:22:00 · 465 阅读 · 0 评论 -
安装php7缺少libcrypto.so.10失败
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/openssl-libs-1.0.2k-16.el7.x86_64.rpmrpm -ivh openssl-libs-1.0.2k-16.el7.x86_64.rpm --force原创 2019-04-28 20:05:18 · 2660 阅读 · 0 评论 -
linux 命令
重命名将文件a.txt重命名为b.txtmv a.txt b.txt原创 2019-04-17 09:20:19 · 72 阅读 · 0 评论