代码

状态栏托盘图标顺序,在/usr/share/indicator-application/ordering-override.keyfile修改:直接修改这个文件会在所有用户中生效,如果只要在当前用户改变图标顺序,把这个文件复制到 ~/.local/share/indicators/application 目录下就可以了:mkdir -p ~/.local/share/indicators/application cp /usr/share/indicator-application/ordering-override.keyfile ~/.l ···

1、换阿里云软件源阿里云:http://mirrors.aliyun.com在系统设置 - 软件和更新 - 下载自 - 选择下载服务器 - 中国 - mirrors.aliyun.com选择或者直接编辑:sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak #备份系统默认的软件源 sudo vim /etc/apt/sources.list添加:deb http://mirrors.aliyun.com/ubuntu/ yakkety main restricted deb http:/ ···

rewrite ^(/)_media/(.*) $1lib/exe/fetch.php?media=$2 last; rewrite ^(/)_detail/(.*) $1lib/exe/detail.php?media=$2 last; rewrite ^(/)_export/([^/]+)/(.*) $1doku.php?do=export_$2&id=$3 last; location / { if (!-f $request_filename) { rewrite ···

升级openssl环境至openssl-1.0.1g1、查看源版本openssl version -aOpenSSL 1.0.1f 6 Jan 20142、下载openssl-1.0.2j.tar.gzwget https://www.openssl.org/source/openssl-1.0.2j.tar.gz3、更新zlibapt install -y zlib4、解压安装tar zxf openssl-1.0.2j.tar.gz cd openssl-1.0.2j ./config shared zlib make make insta ···

参考:http://security.360.cn/cve/CVE-2016-6304/CN.htmlhttps://www.openssl.org/news/secadv/20160922.txt目前“Oneinstack”、“LNMP一键包”默认的OpenSSL版本都不是最新版,修复此漏洞需要重新编译。Oneinstack不要用openssl version查看版本号,要用nginx -V查看版本号。1、查看nginxnginx -V查看nginx版本和openssl版本,顺便复制configure arguments后面的全部内容,比如我 ···

Ubuntu 16.04.1 LTS 64bitShutter 0.93.11、菜单乱码将$win->get_name进行UTF-8解码修改脚本文件:sudo vim /usr/bin/shutter第8627行my $window_item = Gtk2::ImageMenuItem->new_with_label( $win->get_name );修改为my $window_item = Gtk2::ImageMenuItem->new_with_label( $shf->utf8mb4_decode($wi ···