使用工具: https://github.com/valinet/ExplorerPatcher
分类目录:折腾
openwrt webdav安装记录
放弃用Lighttpd-mod-webdav的方法,一直不成功
1 2 3 4 |
opkg update opkg install lighttpd lighttpd-mod-cgi lighttpd-mod-alias lighttpd-mod-webdav opkg install php7 php7-cgi --nodeps |
opkg 在安装时如果报依赖错误,加–nodeps 参数可以解决 修改 /etc/lighttpd/conf.d/30-cgi.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<br />\####################################################################### ## ## CGI modules ## --------------- ## ## See https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_modcgi ## server.modules += ( "mod_cgi" ) ## ## Plain old CGI handling ## ## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini. # cgi.assign = ( ".php" => "/usr/bin/php-cgi", ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl", ".rb" => "/usr/bin/ruby", ".erb" => "/usr/bin/eruby", ".py" => "/usr/bin/python" ) ## ## to get the old cgi-bin behavior of apache ## ## Note: make sure that mod_alias is loaded if you uncomment the ## next line. (see modules.conf) ## #alias.url += ( "/cgi-bin" => server_root + "/cgi-bin" ) #$HTTP["url"] =~ "^/cgi-bin" { # cgi.assign = ( "" => "" ) #} ## ####################################################################### |
修改……
markdown 转PDF
试过其他的方式,都无法转换TOC,在网上介绍pandoc可以支持.现在试试 还是在linux换件下安装Pandoc吧
1 2 3 4 |
apt-get install pandoc texlive-xetex -y pandoc -N -s --toc --smart --latex-engine=xelatex -V CJKmainfont='Microsoft YaHei' -V mainfont='Microsoft YaHei' -V geometry:margin=1in 1.md -o output.pdf |
参考:https://www.zhihu.com/question/20849824 命令行有两个最关键参数,–latex-engine=xel……
Linux VPS回程路由一键测试脚本
kms记录
git常用操作
proxmox折腾记
添加NAT网桥 只有一个公网IP,想要虚拟机上网,就只能使用NAT模式.没有使用WEB UI上的方案,直接编辑/etc/network/interface文件
1 2 3 4 5 6 7 8 9 10 11 12 |
auto vmbr0 iface vmbr0 inet static address 192.168.100.1 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp post-up iptables -t nat -A POSTROUTING -s '192.168.100.0/24' -o enp2s0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.100.0/24' -o enp2s0 -j MASQUERADE |
注:enp2s0为有公网IP的网卡 编辑完成后运行service networking restart生效 安装D……