ubuntu 添加新分辨率命令
2017-6-12
1 通过cvt确定新模式的modelineroot@ubuntu:~# cvt 1920 1080 60# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHzModeline "1920x1080_60.00" 17
64位ubuntu安装32位包
2017-7-9
今天使用64位toolchain编译工程时,发现,toolchain依赖的共享库不存在,编译报错:herbert@Lenovo:/work/migration$ aarch64-buildroot-linux-gnu-cc test.c ../libexec/gcc/aarch64-bu
使用openswan+xl2tpd搭建L2TP/IPSec VPN服务器
2017-8-5
L2TP/IPSec VPN的兼容比较好,在Windows/Android/IOS上面都能支持。本文使用OpenSwan和xl2tpd在Ubuntu上搭建L2TP/IPSec VPN。IPSec认证方式为PSK,PPP认证方式为chap2,这种认证方式兼容性也比较好。1 安装OpenSwan和xl2
搭建PPTP VPN服务器
2017-8-26
1 安装pptpdsudo apt install pptpd2 配置/etc/pptpd.conf只需要修改ip配置即可,注意不要本地的ip段冲突。12localip 10.0.10.1remoteip 10.0.10.100-1053 配置/etc/ppp/pptpd-options主要是认证加
Setup L2TP/IPSec Client Using OpenSwan and xl2tpd
2017-8-26
----I setup a PPTP vpn server on my remote server using pptpd, I can connect to it using my mobile phone MEIZU MX5. but failed using ubuntu's VPN conn
reset terminator config
2017-8-27
https://superuser.com/questions/634148/how-to-reset-terminator-terminal-emulator-configuration The settings for most programs are kept either in "dot
run-parts运行对文件名有要求
2017-8-27
使用 run-parts --test dir来测试哪些文件会被运行。vpn.down这个文件名不行,改为vpn-down即可。具体的可以使用man run-parts查看。
改变sudo等命令输入密码错误的等待时间
2017-8-27
系统为Ubuntu 16.04,需要修改的文件为/etc/pam.d/common-auth。注意:不同的发行版设置的文件可能不同。1 去掉等待时间添加nodelay到下述行。auth [success=1 default=ignore] pam_unix.so nullok_sec
添加开机启动后自动进行L2TP/IPSec拨号
2017-8-28
1 添加rc.d脚本,在启动时启动ipsec和xl2tpd服务首先,将/etc/init.d/xl2tpd和/etc/init.d/ipsec两个脚本添加到rc.d中。发现/etc/init.d/xl2tpd已经添加了,只要添加ipsec即可,首先需要修改ipsec脚本,修改下述行,表示支持runl
使用Let's Encrypt部署HTTPS网站
2017-11-8
Let's Encrypt提供免费的SSL/TLS认证,并且提供certbot工具自动部署到Apache。Step 1打开 https://certbot.eff.org/ ,选择Software和System后,将提供使用命令:$ sudo apt-get update$ sudo apt-get
Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.