2017年5月15日星期一

xenapp协议驱动程序错误

xenapp修改1494,2598端口后,出现协议驱动程序错误,在远程桌面会话主机配置中,无法修改ICA的适配器配置,解决方法,修改inetpub\wwwroot\citrix\xenapp\conf\default.ics
在[application]下增加CGPAddress=,防止将CGPIP传递到客户端,不使用2598,只使用1494则可以正常工作

重要:其实可以在web interface管理中
xenapp web站点以及xenapp services站点

  1. 在安全访问中使用已转换,在指定地址转换中只指定1494的转换
  2. 不指定2598的转换
  3. 在路由器上只做WEB,1494的端口映射
经过上述的处理,则不需要修改ics文件,即可正常使用WEB访问及receiver访问

2017年5月9日星期二

keepass2与keepassx的比较

https://superuser.com/questions/878902/whats-the-difference-between-keepass-and-keepassx
这个站点做了很好的说明

You probably already know, but both KeePass and KeePassX are open source (published under the GNU General Purpose Licence 2) secure (using AES or Twofish) data storage programs, using a single database file to store (mainly) passwords, or pretty much any data you'd like e.g. user names, passwords, urls, attachments and comments.
KeePass was started about 2003, originally for Windows only, but now uses Mono to run on anything that Mono supports, like Mac OS X, Linux, FreeBSD...
KeePassX is an "Contributed/Unofficial KeePass Port" of KeePass that was started in 2005 (if the copyright notice on the bottom of their webpages is accurate) to run KeePass on Linux. It is now available as a native program for Linux, Windows, OS X, and others.
As the KeePassX homepage says:
Originally KeePassX was called KeePass/L for Linux since it was a port of Windows password manager Keepass Password Safe. After KeePass/L became a cross platform application the name was not appropriate anymore and therefore, on 22 March 2006 it has been changed [to KeePassX].

Currently, the biggest difference between KeePass & KeePassX seems to be the appearance and "feel" of each program, especially on Linux or Mac OS X where KeePassX doesn't rely on Mono, so matches the look of other native programs closer. And, KeePassX's version 0.4.x & 2.x display issues.
Also, KeePassX doesn't support plugins (there are several plugins for KeePass), as the user Grief points out in their answer so do upvote it too.

Screenshots of KeePassX "1.x"/(0.4.x) & "2.x", and KeePass2

These are on a Linux Mint 17 XFCE (Ubuntu 14.04 based) system. See this Ubuntu package search for keepass for what version's currently in what release:

KeePassX 0.4.3 (version 1.x compatible)

This version's in Ubuntu "Trusty Tahr" 14.04 LTS, and uses the KeePass v1.x database - AES/Rijndael or Twofish KeePassX 0.4 This is basically the same font & sizes as other windows, looks great & fits in. You can customize the columns & see the preview panel. Opening an entry to view/edit opens a new window: KeePassX 0.4 view entry

KeePassX 2.0.2

In Ubuntu 16.04 LTS & 16.10, using the KeePass v2.x database - AES/Rijndael only. KeePass2 normal view It uses the new database version 2.x, but you can't use TwoFish encryption, and it removes some display features like the preview panel (the bottom/right panel with details on the selected entry) and customizing columns. Viewing/editing an entry does not open a new window, it changes the whole KeePassX window into the view/edit window.
For some reason, it wouldn't let me resize the window to any smaller than this screenshot. Hopefully they'll add back the missing display features soon, but until then I'll stick with KeePassX 0.4.x.

KeePass 2.25 using Mono

In Ubuntu 14.04 LTS, there's a slightly higher version in 16.04 LTS & newer: enter image description here Visually very similar to KeePassX 0.4.3 but the font's different & smaller, just looks out of place. The preview panel's much more compact (like reading a .CSV file) and viewing/editing an entry opens a new window. It's got a side-by-side view too: KeePass2 side-by-sideAlso can NOT do somethings that the Windows version can like Export to KeePass version 1 formats: KeePass2 Not on Windows Error And has some display issues for me, like in this next image the key transformation rounds is actually 6003, but only the 6 is visible: KeePass2 Display Problems

Formerly, the current "main" KeePassX (0.4.3) only supported "the KeePass 1.x (Classic) password database format" But as of December 7, 2015, KeePassX version 2 has finally reached a stable release:
We’re proud to announce the first stable release of the KeePassX 2 series after several years of development.
KeePassX 2.0 is using the new .kdbx (same as KeePass 2) database format.
You can import your .kdb database from 0.4 from the Database > Import KeePass 1 database.
This is a one-way process though. You can’t migrate back to the .kdb format.
New features include:
  • Multiple attachments per entry
  • Add custom key/value pairs to entries
  • Open multiple database in one window
And the page "KeePass Edition Comparison" is probably helpful to differentiate versions 1 and 2.
It compares around 50 different aspects, copying them all here would be unnecessary, so I'll just paste a few of the differences, features that KeePass 1.x do NOT have, compared to KeePass 2.x. Many of these look very Windows-centered:
Full Unicode Support, Enhanced High DPI Support, Windows User Account, One-Time Passwords (as a plugin), Enter Master Key on Secure Desktop, Custom String Fields, Internal Attachment Viewer/Editor, Entry History, Import External Icons, Group Notes, Show Entries of Sub-Groups, Recycle Bin, Entry Tags, Grouped Results, Sort Search Results, Auto-Type TCATO, Pick Characters, Export To XSL-Transformed, Import from "More than 35 formats (see Help: Import)", Open Database via URL (FTP, HTTP, WebDAV, SCP, SFTP, FTPS), Shared Database Editing (Office-style locking), Synchronization, Scripting, Trigger System.
And, KeePass 1.x supports the Rijndael & Twofish Encryption Algorithms. KeePass 2.x only uses Rijndael.
See the linked Comparison page above for more info, & some description.

2017年5月6日星期六

mint 18.1 qqlight安装

1:安装winehq
sudo dpkg --add-architecture i386
get key https://dl.winehq.org/wine-builds/Release.key
install key sudo apt-key add Release.key
添加源 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'(mint)
sudo apt update
sudo apt install winehq-devel

2:安装cabextract
sudo apt install cabextract

3:下载winetricks
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod 755 winetricks
sudo mv winetricks /usr/bin/

4:下载qqlight.verb
https://github.com/hillwoodroc/winetricks-zh
wget https://raw.githubusercontent.com/hillwoodroc/winetricks-zh/master/verb/qqlight.verb

5:安装qqlight
winetricks qqlight.verb

6:中间会下载多个文件,如果发现文件缺失,自行下载并放到指定目录

7:修改快捷方式
右键kde,edit application, 增加item
Exec=env WINEPREFIX=/home/wangzili/.local/share/wineprefixes/qqlight wine "C:\\Program Files (x86)\\Tencent\\QQLite\\Bin\\QQScLauncher.exe"

2017年4月30日星期日

安装wine


  1. sudo dpkg --add-architecture i386
  2. get key https://dl.winehq.org/wine-builds/Release.key
  3. install key sudo apt-key add Release.key
  4. 添加 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'(mint)
  5. sudo apt update
  6. sudo apt install --install-recommends winehq-devel

安装google-chrome


  1. 下载key https://dl-ssl.google.com/linux/linux_signing_key.pub
  2. 安装key sudo apt-key add keyname
  3. 添加源 sudo apt-add-repository 'deb http://dl.google.com/linux/chrome/deb/ stable main'(mint)
  4. sudo apt update
  5. sudo apt install google-chrome-stable

2017年4月25日星期二

Linux Mint 安装后的二三事

最近使用的Ubuntu16.04经常报错,又不想花时间去解决,又因最近一次Gnome的安装,系统无法进入桌面,一气之下安装了Mint,总结如下
  1. 系统安装不再叙述;
  2. 输入法
  • 安装fcitx fcitx-table-wbpy qt4-qtconfig fcitx-frontend-qt4 kde-config-fcitx fcitx-ui-classic
  • 使用im-config配置输入法
  • 使用fcitx-config配置输入法
  • 使用qt4 settings配置输入法
  1.  安装shadowsockets-qt5
  • sudo add-apt-repository ppa:hzwhuang/ss-qt5
  • sudo apt update
  • sudo apt install shadowsocks-qt5
  1. 设置tmpfs
  • 设置虚拟盘, 修改/etc/fstab 此方案不可行
  • 参见https://forums.linuxmint.com/viewtopic.php?t=237543
  • sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/
  • sudo systemctl enable tmp.mount
  • Reboot

Ubuntu tmpfs配置

Ubuntu tmpfs配置
配置文件位于/lib/init/fstab, 用户在/etc/fstab下的配置将覆盖其配置内容, 下面是配置文件的说明.
# /lib/init/fstab: static file system information.
# These are the filesystems that are always mounted on boot, you can
# override any of these by copying the appropriate line from this file into
# /etc/fstab and tweaking it as you see fit.  See fstab(5).

优化SSD
添加noatime,nodiratime,commit=60参数到mount
创建/tmp tmpfs文件系统到内存
tmpfs /tmp tmpfs defaults,noatime,nodiratime,mode=1777,size=50% 0 0