4 月 11
joechenMS Windows, 未分類 troubleshooting
2018-04-11
桌機有個狀況發生很久了, 就是安裝 LibreOffice 時, 如果照預設的選項, 是會在 c:\Users\Public\Desktop 目錄去新增一個 icon
不過卻一直發生 “警告 1090” 找不到目錄的錯誤, 試了很多法子都不行
最後看到一篇說, 換個防毒就可以了, 原本以為是 windows defender 有問題,
但在筆電上, 同樣有 defender 卻可以安裝 Libreoffice, 這又更令人奇怪
最後偶然發現在 defender 裡有個設定是, “病毒與威脅防護設定”裡
有個”受控資料夾存取權”, 被 enabled , 關閉它之後就順利安裝 LibreOffice了
先前編輯文件後不能存檔在桌面的問題也就被解決了。
updated:
REF: https://ask.libreoffice.org/en/question/138666/installation-failure-warning-1909-internal-error-2902/
2 月 03
joechen未分類
改寫前:
c:\Program Files\Wireshark>tshark.exe -i 1 -t ad -c 3 -f "arp"
Capturing on 'LAN'
1 2018-02-03 01:24:57.171146 Vmware_c3:97:f8 → AsustekC_fd:12:ba ARP 60 Who has 192.168.7.73? Tell 192.168.7.79
2 2018-02-03 01:24:57.171169 AsustekC_fd:12:ba → Vmware_c3:97:f8 ARP 42 192.168.7.73 is at 00:26:18:fd:12:ba
3 2018-02-03 01:24:57.505058 AsustekC_fd:12:ba → Vmware_c3:97:f8 ARP 42 Who has 192.168.7.79? Tell 192.168.7.73
3 packets captured
改寫後:
c:\Program Files\Wireshark>tshark.exe -i 1 -t ad -c 3 -f "arp" -o "gui.column.format:\"No.\",\"%m\",\"Time\",\"%t\",\"Vendor\",\"%rhs\",\"Source\",\"%uhs\",\"Destination\",\"%uhd\",\"Protocol\",\"%p\",\"Length\",\"%L\",\"Info\",\"%i\""
Capturing on 'LAN'
1 2018-02-03 01:23:53.208062 D-LinkIn_5c:c0:fe d8:fe:e3:5c:c0:fe → ff:ff:ff:ff:ff:ff ARP 60 Who has 192.168.7.96? Tell 192.168.7.1
2 2018-02-03 01:23:59.275652 SamsungE_85:b6:a5 ac:5f:3e:85:b6:a5 → ff:ff:ff:ff:ff:ff ARP 60 Who has 192.168.7.2? Tell 192.168.7.96
3 2018-02-03 01:23:59.276012 SamsungE_85:b6:a5 ac:5f:3e:85:b6:a5 → ff:ff:ff:ff:ff:ff ARP 60 Who has 192.168.7.2? Tell 192.168.7.96
3 packets captured
可利用 tshark -G help 裡的
tshark.exe -G column-formats
來看改寫方法
2 月 01
joechen未分類
c:\Program Files\Wireshark>.\tshark.exe -G column-formats
%q 802.1Q VLAN id
%Yt Absolute date, as YYYY-MM-DD, and time
%YDOYt Absolute date, as YYYY/DOY, and time
%At Absolute time
%V Cisco VSAN
%B Cumulative Bytes
%Cus Custom
%y DCE/RPC call (cn_call_id / dg_seqnum)
%Tt Delta time
%Gt Delta time displayed
%rd Dest addr (resolved)
%ud Dest addr (unresolved)
%rD Dest port (resolved)
%uD Dest port (unresolved)
%d Destination address
%D Destination port
%a Expert Info Severity
%I FW-1 monitor if/direction
%F Frequency/Channel
%hd Hardware dest addr
%hs Hardware src addr
%rhd Hw dest addr (resolved)
%uhd Hw dest addr (unresolved)
%rhs Hw src addr (resolved)
%uhs Hw src addr (unresolved)
%e IEEE 802.11 RSSI
%x IEEE 802.11 TX rate
%f IP DSCP Value
%i Information
%rnd Net dest addr (resolved)
%und Net dest addr (unresolved)
%rns Net src addr (resolved)
%uns Net src addr (unresolved)
%nd Network dest addr
%ns Network src addr
%m Number
%L Packet length (bytes)
%p Protocol
%Rt Relative time
%s Source address
%S Source port
%rs Src addr (resolved)
%us Src addr (unresolved)
%rS Src port (resolved)
%uS Src port (unresolved)
%E TEI
%Yut UTC date, as YYYY-MM-DD, and time
%YDOYut UTC date, as YYYY/DOY, and time
%Aut UTC time
%t Time (format as specified)
For example, to print Wireshark’s default columns with tshark:
tshark.exe -o “gui.column.format:\”No.\”,\”%m\”,\”Time\”,\”%t\”,\”Source\”,\”%s\”,\”Destination\”,\”%d\”,\”Protocol\”,\”%p\”,\”Length\”,\”%L\”,\”Info\”,\”%i\””
c:\Program Files\Wireshark>
1 月 09
joechen未分類
REF: http://docs.alfresco.com/community/tasks/solr-reindex.html
This task describes how to perform a full Solr reindex.
This task assumes you are using only one Solr instance for all nodes in the Alfresco Community Edition cluster. If not, then you need to repeat process on each Solr instance used in the cluster.
- Confirm the location of the Solr core directories for archive-SpacesStore and workspace-SpacesStore cores. This can be determined from the solrcore.properties file for both the cores. By default, the solrcore.propertiesfile can be found at <ALFRESCO_HOME>/solr4/workspace-SpacesStore/conf or <ALFRESCO_HOME>/solr4/archive-SpacesStore/conf. The Solr core location is defined in the solrcore.propertiesfile as:
For Solr, the default data.dir.root path is:
data.dir.root=<ALFRESCO_HOME>/alf_data/solr4/index/
- Shut down Solr (if running on a separate application server).
- Delete the contents of the index data directories for each Solr core at ${data.dir.root}/${data.dir.store}.
- <ALFRESCO_HOME>/alf_data/solr4/index/workspace/SpacesStore
- <ALFRESCO_HOME>/alf_data/solr4/index/archive/SpacesStore
- Delete all the Alfresco Community Edition models for each Solr core at ${data.dir.root}.
<ALFRESCO_HOME>/alf_data/solr4/model
- Delete the contents of the <ALFRESCO_HOME>/alf_data/solr4/content directory.
- Start up the application server that runs Solr.
- Monitor the application server logs for Solr at <TOMCAT_HOME>/logs/solr.log. You will get the following warning messages on bootstrap:
WARNING: [alfresco] Solr index directory '<ALFRESCO_HOME>/alf_data/solr/workspace/SpacesStore/index' doesn't exist. Creating new index...
09-May-2012 09:23:42 org.apache.solr.handler.component.SpellCheckComponent inform
WARNING: No queryConverter defined, using default converter
09-May-2012 09:23:42 org.apache.solr.core.SolrCore initIndex
WARNING: [archive] Solr index directory '<ALFRESCO_HOME>/alf_data/solr/archive/SpacesStore/index' doesn't exist. Creating new index...
- Use the Solr administration console to check the health of the Solr index.
Note:The process of building the Solr indexes can take some time depending on the size of the repository. To monitor reindexing progress, use the Solr administration console and check the logs for any issues during this activity.
While the reindex is taking place, some searches may not return the full set of results.
To copy the indexes from a recently re-indexed Solr node to another Solr node, follow these steps:
- Make sure both the Solr nodes have the same version of the index server.
- Stop node1 and copy the content store, index configuration, and index data to the new machine/node.
- (Optional) Copy the models from node1 to node2 and validate that they are compatible.
- Fix any configuration issues, for example, renaming the core, updating the configuration to point to the correct data, indexes, and Alfresco Community Edition.
- Disable index tracking on node2 by setting the enable.alfresco.tracking property to false in solrcore.properties.
- Go to the Solr Admin Web interface to monitor information about each core.
- Stop node 2 and enable tracking by setting the enable.alfresco.tracking property to true in solrcore.properties.
- Restart the Solr server on node2.
The new index on node2 should start tracking and come up-to-date.
12 月 23
joechen未分類
REF: https://support.auvik.com/hc/en-us/articles/206311526-How-to-enable-SNMP-on-a-VMware-ESXi-hypervisor#topic_esx6
How to enable SNMP on ESXi 6.x
SSH or Telnet to your ESXi node using root-level credentials.
Execute the following commands. Replace YOUR_STRING with your desired community string.
esxcli system snmp set -r
esxcli system snmp set -c YOUR_STRING
esxcli system snmp set -p 161
esxcli system snmp set -L “City, State, Country”
esxcli system snmp set -C noc@example.com
esxcli system snmp set -e yes
12 月 09
joechenAlfresco, GNU/Linux, Shell scripts
#!/usr/bin/expect
spawn ssh "root@ip-or-hostname"
expect "*assword: "
send -- "your-password\n"
expect "\[root@ip-or-hostname:~\] "
#send -- "hostname\n"
#send -- "/bin/sh /vmfs/volumes/datastore1/ghettoVCB/bin/ghettoVCB.sh -g /vmfs/volumes/datastore1/ghettoVCB/backup.conf -m vmguest-name\n"
send -- "echo \"Processing vmguest-name archives\"\n"
send -- "cd /vmfs/volumes/vm-bak/vmguest-name\n"
send -- "ls -t | grep -v `date -D %s +\"%Y-%m-%d\" -d \$((\$( date +%s) - 0 ))` | grep -v `date -D %s +\"%Y-%m-%d\" -d \$((\$( date +%s) -86400 ))` | grep -v `date -D %s +\"%Y-%m-%d\" -d \$((\$( date +%s) - 172800 ))` > list2del.txt\n"
send -- "cat list2del.txt\n"
send -- "rm -rf `cat list2del.txt`\n"
send -- "rm -f list2del.txt\n"
expect eof
12 月 05
joechen未分類
REF: 微軟詳解 .NET 語言戰略:C#、VB、F# 都不落
原文網址:https://read01.com/MayEdM.html
Older Entries Newer Entries