随笔分类 -  Notes

摘要:测试环境: Ubuntu14.04 LTS Desktop ffmpeg version 3.3.3 命令行运行: ffmpeg -i rtsp://admin:12345@10.0.10.19:554/Streaming/Channels/101 -fflags flush_packets -ma 阅读全文
posted @ 2017-12-06 11:43 Waichung 阅读(13709) 评论(0) 推荐(0)
摘要:1、命令行运行 2、选择洲区(这里选择亚洲Asia) 3、选择国家(这里选择中国China) 4、选择北京时间 5、选Yes 方式1:在用户目录的.profile文件中加入一行下列内容,然后source ~/.profile使其生效 方式2:复制相应的时区文件到/etc目录下 sudo cp /us 阅读全文
posted @ 2017-05-18 15:56 Waichung 阅读(4465) 评论(0) 推荐(0)
摘要:1、R[=code](force redirect) 强制外部重定向,强制在替代字符串加上http://thishost[:thisport]/前缀重定向到外部的URL.如果code不指定,将用缺省的302 HTTP状态码。 2、 F(force URL to be forbidden)禁用URL, 阅读全文
posted @ 2017-05-02 11:23 Waichung 阅读(240) 评论(0) 推荐(0)
摘要:两对双引号"\"\""是用于解决:pg_dump: no matching tables were found 问题。 pg_dump -h localhost -p 5432 -U postgres -d mydb -t "\"demoTable1\"" -t "\"demoTable2\"" > 阅读全文
posted @ 2017-04-18 17:21 Waichung 阅读(2725) 评论(0) 推荐(0)
摘要:原文来自:http://www.programgo.com/article/3272573017/ 1.安装文泉宋体 sudo aptitude install xfonts-wqy sudo aptitude install ttf-wqy-zenhei ttf-wqy-microhei sudo 阅读全文
posted @ 2017-03-06 13:24 Waichung 阅读(315) 评论(0) 推荐(0)
摘要:将普通用户加入dialout组,然后重启或注销登录 阅读全文
posted @ 2017-01-19 10:18 Waichung 阅读(749) 评论(0) 推荐(0)
摘要:测试环境: 系统: Ubuntu14.04 LTS Desktop 设备:海康IP摄像头和USB摄像头 1、需要先安装vlc包,命令行运行 2、安装完成后,使用cvlc工具,在命令行运行(注:测试环境的海康摄像头IP 10.0.10.64 , rtsp的端口 554 , 关闭了http basic 阅读全文
posted @ 2017-01-07 10:32 Waichung 阅读(8294) 评论(0) 推荐(1)
摘要:命令行运行,安装完成后需重启: sudo apt-get install nautilus-open-terminal 阅读全文
posted @ 2016-12-22 14:06 Waichung 阅读(322) 评论(0) 推荐(0)
摘要:方法1: 方法2: 阅读全文
posted @ 2016-12-02 09:08 Waichung 阅读(2647) 评论(0) 推荐(0)
摘要:Linux: netstat -pan | grep 80 Windows: netstat -nao | findstr "80" 阅读全文
posted @ 2016-07-25 16:37 Waichung 阅读(218) 评论(0) 推荐(0)
摘要:命令行运行 sudo apt-get install gfortran 阅读全文
posted @ 2016-05-31 17:34 Waichung 阅读(4442) 评论(0) 推荐(0)
摘要:最近在Ubuntu12.04的32位版本上安装vscode,我下载的是32位deb包, vscode官网 安装命令 sudo dpkg -i vscode-i386.deb 安装完成没有报错,但是点击快捷方式无法运行,于是在命令行直接运行 /usr/share/code/code (vscode安装 阅读全文
posted @ 2016-05-31 10:28 Waichung 阅读(3787) 评论(0) 推荐(0)
摘要:.ps1文件是PowerShell写好的脚本文件。在Windows系统中,默认情况下是不允许执行.ps1文件的,那么怎么才能让系统允许执行.ps1文件呢? 什么是“.ps1”文件? 这个是PowerShell写的脚本文本,你可以在记事本中写一段PowerShell代码,然后将其保存为“xxx.ps1 阅读全文
posted @ 2016-05-14 14:35 Waichung 阅读(865) 评论(0) 推荐(0)
摘要:Login to your Gitlab > Admin area > settings > Features > remove the check mark "Signup enabled" Source page: https://forum.gitlab.com/t/disable-user- 阅读全文
posted @ 2016-05-09 10:08 Waichung 阅读(341) 评论(0) 推荐(0)
摘要:Stop gitlab and remove its supervision process sudo gitlab-ctl uninstall Debian/Ubuntu sudo dpkg -r gitlab Redhat/Centos sudo rpm -e gitlab Source pag 阅读全文
posted @ 2016-05-07 09:23 Waichung 阅读(586) 评论(0) 推荐(0)
摘要:下载远程服务器上的文件 scp root@10.0.10.10:/home/user/download.txt ./download.txt 上传文件到远程服务器 scp ./upload.txt root@10.0.10.10:/home/user/upload.txt 阅读全文
posted @ 2016-04-20 09:49 Waichung 阅读(379) 评论(0) 推荐(0)
摘要:/etc/udev/rules.d/70-persistent-net.rules 阅读全文
posted @ 2016-03-02 14:32 Waichung 阅读(476) 评论(0) 推荐(0)
摘要:下载openssl新版本源码和编译安装 wget ftp://ftp.openssl.org/source/openssl-1.0.2f.tar.gz tar zxf ./openssl-1.0.2f.tar.gz cd ./openssl-1.0.2f/ ./config make sudo ma 阅读全文
posted @ 2016-02-03 18:04 Waichung 阅读(509) 评论(0) 推荐(0)
摘要:<VirtualHost *:80> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </VirtualHost> 原文来自: http://stackover 阅读全文
posted @ 2016-01-28 11:45 Waichung 阅读(396) 评论(0) 推荐(0)
摘要:Solution 1sudoapt-get-yinstalldconf-toolsdconfwrite/org/gnome/desktop/remote-access/require-encryptionfalse/usr/lib/vino/vino-server--sm-disablestartS... 阅读全文
posted @ 2015-12-19 11:30 Waichung 阅读(464) 评论(0) 推荐(0)