nextcloud 移动数据位置
下面是官方说明: https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition Removable media Also note that the interface providing the ability to access removable media is not automatically connected upon install, so if you’d like to use external storage (or otherwise use a device in /media for data), you need to give the snap permission to access removable media by connecting that interface: $ sudo snap connect nextcloud:removable-media 可以使用 mount –bind 命令挂载已有目录。要实现自动挂载,可以写在 /etc/fstab 里面。
Linux打印机管理
lpq -a //显示出目前所有打印机的工作队列情况 lprm 11 //取消11号打印机作业 lpq -l -P Hp2015 //用详细方式显示打印机Hp2015作业 lpstat -t :列出目前的“打印系统”状态,不只包括打印机而已 暂停或者开始打印机: 重新开始打印机 sudo cupsenable HP_LaserJet_1020 禁用打印机 sudo cupsdisable HP_LaserJet_1020
加快QWebview中执行Javascript的速度
The issue is that Qt is evaluating the return value of the last statement in Javascript and converting it to a QVariant. It became time consuming because jQuery was returning the jQuery object, which was being evaluated in its entirety by Qt - and recursively at that. This also consumed RAM too. It wasn’t console.log that was fixing the issue, it was the “null” value it returned. I tested, and stapling “null” at the end of the script also worked.
Below is the updated code.
1 | myWebElement->evaluateJavaScript( myScript + "; null" ); |
如果发现执行速度超级慢,按上面的方法处理。
QWizard不能显示完成与取消按钮的问题
我使用的是Qt5.4.2, 遇到这个问题。对话框显示出来后,用鼠标改变一下大小就能显示出来。看起来像Qt的bug。 经反复尝试,发现修改QWizard的属性styleSheet为ClassicStyle就可以解决这个问题。 具体原因不清楚。
Windows远程桌面连接Linux
Windows连接Linux 在Linux装下xrdp软件
1 | 1、安装xrdp sudo apt-get install xrdp |
Redmine 联接 https 地址的svn服务器
https://blog.csdn.net/taonull/article/details/39249729 1.打开redmine控制台; 2.运行svn list –xml https://svn地址; 3.提示证书时选择p(永久保存ssl凭证); 4.运行成功后,找到subversion_adapter.rb(redmine文件夹\apps\redmine\htdocs\lib\redmine\scm\adapters),找到 def credentials_string str << " --username #{shell_quote(@login)}" unless @login.blank? str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank? str << " --no-auth-cache --non-interactive"
修改为: str << " --username #{shell_quote(@login)}" unless @login.blank? str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank? str << " --trust-server-cert --no-auth-cache --non-interactive --config-dir \"c:/Users/Administrator/AppData/Roaming/Subversion\""