File tree Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Debian安装gSTC-ISP
2
+ Linux下做单片机,安装gSTC-ISP,网上教程很多,但是有错误。本教程,亲测。debian/linux amd64。
3
+ 既然是安装软件,要有root权限吧,或者sudoer,我在root下安装。
4
+ ## 下载源码并解压
5
+ ```
6
+ https://sourceforge.net/projects/gstcisp/
7
+ tar -zxvf
8
+ ```
9
+ ## 配置
10
+ ```
11
+ ./configure
12
+ ```
13
+ ## 编译
14
+ ```
15
+ make
16
+ ```
17
+ 此时会报错
18
+ main.c:25:21: fatal error: vte/vte.h:
19
+ 安装vte支持吧
20
+ ```
21
+ apt-get install libvte-dev
22
+ ```
23
+ 之后修改src/Makefile
24
+ 72行修改成下面
25
+ ```
26
+ CFLAGS = -g -O2 -I/usr/include/vte-0.0/
27
+ ```
28
+ 注意是字母O2,不是数字02,很多教程都写错了。导致修改后还是报错,不能识别这个参数。
29
+ 之后就继续make,如果此时重新configure,Makefile会变回原来的文件,需要重新修改。
30
+
31
+ ## 安装
32
+ ```
33
+ make install
34
+ ```
35
+ 这样就安装完成了。
Original file line number Diff line number Diff line change
1
+ # dd-wrt使用Linux日志服务器
2
+ 想测试一下新买的UPS供路由器多长时间,但是dd-wrt断电后日志就没了,自己还有闲置的Aliyun服务器,就配置了系统自带的rsyslog。
3
+ ## 取消/etc/rsyslog.conf四行关于imtcp imudp 514的注释
4
+
5
+ ```
6
+ $ModLoad imudp
7
+ $UDPServerRun 514
8
+ $ModLoad imtcp
9
+ $InputTCPServerRun 514
10
+ ```
11
+ ## 重启rsyslog
12
+ ```
13
+ 重启rsyslog
14
+ ```
15
+
16
+ ## 把服务器ip填写到dd-wrt管理界面的日志服务器IP位置。(服务->服务->系统日志->远程服务器)
17
+
18
+ ## 需要设置防火墙策略,关闭或者添加规则,关闭又分临时关闭和永久性关闭.
Original file line number Diff line number Diff line change
1
+ ## debian 初始化声卡
2
+ 不确定概率,debian会出现不出声音的情况,可能与安装virtualbox-win虚拟机有关,这时候初始化一下声卡就OK了。
3
+
4
+ root下执行
5
+ ```
6
+ alsactl init
7
+ ```
Original file line number Diff line number Diff line change
1
+ # linux机器之间ssh免密互通
2
+ 确保当前用户的家目录下.ssh目录中没有id_dsa id_dsa.pub文件
3
+ 输入命令
4
+ ## 生成密钥文件
5
+ ```
6
+ ssh-keygen
7
+ ```
8
+ ## copy 密钥文件到目标用户名 目标主机 实现免密
9
+ ```
10
+ ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
11
+ ```
You can’t perform that action at this time.
0 commit comments