每日一句

:D获取中....

小蚁摄像机实时同步视频到群晖 nas

拿到小蚁摄像头的 shell

把小蚁摄像头里的内存卡取出来,在内存卡根目录建立一个文件夹 test

在 test 目录下创建文件 equip_test.sh 粘贴以下内容。

  1. #!/bin/sh
  2. # Telnet
  3. if [ ! -f "/etc/init.d/S88telnet" ]; then
  4. echo "#!/bin/sh" > /etc/init.d/S88telnet
  5. echo "telnetd &" >> /......

CentOS下日志管理

处理日志的进程 rsyslog

rsyslog可以处理绝大部分日志记录,比如系统操作有关信息,如登录信息,程序的启动关闭信息

[root@CatdeXin-PC ~]# ps -aux | grep rsyslog
root       1297  0.0  0.3 222764  7292 ?        Ssl  2月21   0:07 /usr/sbin/rsyslogd -n

rsyslogd = rsyslog deamon(守护进程)

常见的日志文件(系统进程应用程序)

/var/l......

python linux下使用Conda搭建和自由切换Python环境

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.1-Linux-x86.sh
bash Anaconda3-5.3.1-Linux-x86.sh

配置环境变量,路径为安装的路径

vi /etc/profile
export PATH=$PATH:/home/gzh/anaconda3/bin/

检验anaconda是否安装成功

#conda --version
......

Git简明实用教程

版本控制


Git 是一个版本控制工具,因此要使用其进行版本控制首先需要建立一个版本库

版本库

        初始化版本库:

$ git init --bare

git 会作出以下回应:

Initialized empty Git repository in {{yourpath}}.git

该操作创建一个空的版本库,文件夹内目录结构如下:

......

yum安装软件报错Error: Nothing to do

缺少EPEL(epel是社区强烈打造的免费开源发行软件包版本库,系统包含大概有1万多个软件包),我是centos7,所以需要先安装这个

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
......

ubuntu18 更换软件源

# 阿里云源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyu......                    

小蚁摄像头实时同步视频到群晖 nas

xiaoyi1.8.7.0C_hack

Support telnet,tftp,rtsp,no logo.

Clone this repository on a computer,

Then, format a micro SD card in fat32 format and copy the content of the folder at the root of your memory card.

If plugged, ......

GitLab配置优化

GitLab配置

  1、修改GitLab绑定的域名

    a、修改/etc/gitlab/gitlab.rb配置文件,修改成自己的域名

external_url 'http://gitlab.example.com'

    b、使配置生效

      停止服务命令:gitlab-ctl stop

      配置生效命令:gitlab-ctl reconfigure

    c、启动服务

      命令:gitlab-ctl start

......

使用debian10+bind9配置DNS服务器

1、服务安装 

apt install -y bind9 dnsutils

2、配置named.conf

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

3、配置named.conf.options

options {
	directory "/var/cache/bind";......                    

debian10 更新apt-get源

debian版本

root@l:~# cat /etc/issue
Debian GNU/Linux 10 \n \l

更新源

mv /etc/apt/sources.list /etc/apt/sources.list.bak
vi /etc/apt/sources.list

修改sources.list文件内容,删除默认的内容,改成国内源:

deb http://mirrors.aliyun.com/debian/ buster main non-free co......