
linux
文章平均质量分 51
时光@印迹
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用Python websockets搭建互联网服务器
在上一篇文章中实现局域网的通信,使用websockets,python作服务端,unity作客服端完成网络通信这次准备实现互联网上的通信。1.整个云服务器要实现互联网通信,简单的方法就是先准备一个云服务器,这里我直接使用了阿里云服务器。学习用,就整了个最便宜的,38块一年。阿里云网站然后熟悉一下阿里云服务器的使用,这里参考了这篇文章:阿里云ECS服务器入门使用流程 新手必看教程登陆后,进入右上角控制台在页面里点击“云服务器ESC”然后点击管理控制台进入到自己服务器页面:注意这个公原创 2022-01-31 14:58:06 · 5230 阅读 · 1 评论 -
ubuntu20.04下eigen 安装及qpOASES的安装
eigen1、安装:sudo apt-get install libeigen3-dev2 、调整默认安装路径是: /usr/include/eigen3到安装目录下cd /usr/include/eigen3执行复制命令,将Eigen文件夹放在/usr/include 下面sudo cp Eigen/ .. -R代码中就可以使用 #include <Eigen/Dense>包含了qpOASES下载git clone https://github.com/coin-or原创 2021-07-07 15:13:56 · 3099 阅读 · 9 评论 -
ubuntu16.04开机启动程序并赋予权限
1、终端运行 gnome-session-properties2、在command栏里输入我们要添加的程序: bash /home/xu/test.sh 关机重启,发现可以打开终端,程序也可以跑,但是如果程序需要管理员权限,就会运行失败, 原因是没有以root权限运行程序。我们手动运行程序加sudo需要输入密码, 我们这里通过SUDO_ASKPASS进行自动输入密码。3、创建密码文件_PWD_TEMP_,写入如下内容并添加可执行权限,将其放到/home/xu原创 2020-09-22 10:37:42 · 1465 阅读 · 0 评论 -
树莓派搭建rtmp服务器使用ffmpeg推流
首先需要下载nginx-1.8.1 : http://nginx.org/download/nginx-1.8.1.tar.gzwget http://nginx.org/download/nginx-1.18.0.tar.gznginx-rtmp-module : https://github.com/arut/nginx-rtmp-modulegit clone https://github.com/arut/nginx-rtmp-moduleopenssl :https://www.o原创 2020-09-06 22:24:36 · 1884 阅读 · 0 评论 -
ubuntu20.04设置开机启动
sudo vim /lib/systemd/system/rc-local.service在文件尾部中添加:[Install]WantedBy=multi-user.targetAlias=rc-local.service随后创建rc.local文件,sudo vim /etc/rc.local并添加以下内容:#!/bin/shecho “看到这行字,说明添加自启动脚本成功。” > /usr/local/test.logexit 0给rc.local加上权限sudo chm原创 2020-06-05 10:19:20 · 12094 阅读 · 0 评论 -
树莓派使用create_ap创建局域网
1.git clone https://github.com/oblique/create_ap.git2.cd create_ap3.sudo make install就这样安装好了4.接下来安装依赖库sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq5.创建wifi格式:sudo create_ap wlan0 eth0 热点名 密码(例子:没有密码 名字为pibot 后可以跟密码):sudo原创 2020-06-04 10:54:01 · 1361 阅读 · 0 评论 -
g++命令行编译c++文件
直接编译,将hel.cpp编译,比如test.cpp,就加在后面g++ -o hel.out hel.cpp test.cpp执行 ./hel.out方法二:经过中间步骤将hel.cpp编译成hel.o文件,g++ -c hel.cpp如果依赖了其它的c++文件,比如test.cpp,就加在后面g++ -c hel.cpp test.cpp将hel.o链接成可执行程序hel.out...原创 2019-12-27 10:21:11 · 597 阅读 · 0 评论