Quantcast
Channel: Amigo's Technical Notes
Viewing all 122 articles
Browse latest View live

Thecus W5000 and QNAP TS-119PII with Mac OSX Wireless File Transfer Performance Report

$
0
0

Recently, I bought a Asus RT-AC51U for Android USB tethering and 5GHz features. I also bough some new wireless USB device. Two D-Link DWA-171 A1 are for Mac mini and NAS. One D-Link DWA-131 E1 is for Lenovo C440.

Because DWA-171 A1 is compatible with OSXWindows Server 2012 R2, and QTS but DWA-131 E1 isn’t for QTS, I decide to test wireless transfer between Mac mini and two NAS.

Asus RT-AC51U

WikiDevi is a good source to know more about your router. But the internal search tool is always missing, I suggest to use Google with site:wikidevi.com to search within WikiDevi or just edit URL directly.

According to ASUS RT-AC51U on WikiDevi, here are some important features:

  1. Because it has 2×2:2 2.4GHz antennas, 802.11n at 2.4GHz is up to 300Mbps.
  2. Because it has 1×1:1 5GHz antenna, 802.11n at 5GHz is up to 150Mbps while 802.11ac is 433Mbps.
  3. 802.11n at 2.4GHz is handled by MediaTek MT7620.
  4. 802.11n at 5GHz and 802.11ac are handled by MediaTek MT7610E

About 2×2:2, the first number means there are 2 antennas for transmitters (TX), the second is 2 antennas  for receivers (RX), and the last number is up to 2 spatial streaming. A more detail explanation may be found in 802.11n on The Cisco Learning Network and 無線網路新趨勢–漫談 802.11ac 新協定 on NTU.

D-Link DWA-171 Rev A1

The H/W ver: A1 is very important information but only show on a small label on the package or the last few characters of P/N on the device. Different hardware version might use different chips result in different performance and comparability.

According to D-Link DWA-171 rev A1 on WikiDevi, here is an important feature:

  1. Realtel RTL8811AU supports draft 802.11ac which is not 802.11ac.
  2. Max speed for 802.11n is 150Mbps with 1T1R.

It works on OSXWindows Server 2012 R2 and QTS.

D-Link DWA-131 Rev E1

The H/W ver: E1 is very important information but only show on a small label on the package or the last few characters of P/N on the device. Different hardware version might use different chips and result in different performance and comparability.

According to D-Link DWA-131 rev E1 on WikiDevi, here is an some important feature:

  1. Realtel RTL8192EU supports 802.11n.
  2. Max speed for 802.11n is 300Mbps with 2T2R.

It works on OSX and Windows Server 2012 R2.

Thecus W5000 with Windows Storage Server 2012 R2 Essential

W5000 use a Intel Atom Processor D2550 which is a 1.86GHz dual-core processor with Hyper-Threading Technology. It has 1MB L2 cache, Intel 64 Architecture, and supports up to 4GB DDR3.

The test machine comes with 2GB of DDR3 RAM and is upgradable. It also comes with a Seagate Laptop Thin SSHD 500GB as a system drive.

I install two Seagate Barracuda Desktop HDD as RAID 1 in it.

Windows Storage Server 2012 R2 Essentials is a x64 Windows based on Microsoft Windows Server 2012 R2. In specification tab of Thecus W5000, you will see a comparison table of Workgroup, Standard, and Essentials. Essentials doesn’t support Hyper-V but is capable of being a Domain Controller of Active Directory.

Although WSS 2012 R2 Essentials is a x64 Windows, it is limited to 4GB of RAM due to processor architecture. Memory Limits for Windows and Windows Server Releases on Microsoft provides a clear explanation.

Both DWA-171 rev A1 and D-Link DWA-131 rev E1 are working properly.

QNAP TS-119PII

TS-119PII use a Marvell 88F6282 which is a single core ARMv5TE-compliant 32-bit processor with 256K L2 cache.

It comes with 512MB RAM and is not upgradable.

I install a single Seagate Barracuda Desktop HDD 500GB in it.

QTS is an embedded Linux developed by QNAP. This report test with 4.2.1 build 0217.

Compatible/Incompatible USB Wireless on QNAP Wiki contains a full list of known compatible/incompatible USB wireless. DWA-171 rev A1 is identified and working properly but only for 2.4GHz. It doesn’t work on 5GHz. Therefore, the max speed is 150Mbps. DWA-131 rev E1 is not compatible and therefore not identified by QTS.

Mac Mini Late 2012

I have upgrade my Mac mini to 16GB RAM and Seagate Laptop SSHD 1 TB which spins at 5400rpm and has a 8GB MLC cache.

According to System Information and macg.co:Mac mini (Late 2012)は11n/450Mbps/3ストリームに対応している on MACお宝鑑定団, the build-in AirPort Extreme 802.11n is based on Broadcom BCM43xx which is capable being up to 450Mbps at 5GHz on 40MHz bandwidth using 3×3:3.

I am not sure if 2.4GHz may support up to 450Mbps yet.

But there is one problem: the connection speed is 150Mbps with RT-AC51U at 2.4GHz. According to OSX Yosemite Wifi issues on apple support, it seems related to OSX 10.10. Only getting connection speeds of 130 with new Airport Extreme on 802.11n at 5ghz on MacRumors reports this issue with even earlier OSX.

Both DWA-171 rev A1 and DWA-131 rev E1 are working properly but you need to download drivers from Edimax for OSX 10.10. EW-7822UAC, EW-7811UTC, EW-7811UAC, EW-7811DAC, EW-7811USC are using the same Realtel RTL8811AU chip.

Test Method

It is detail explained in Prepare Your NAS File Transfer Performance Test with Mac OSX Client. I test both Samba and NFS.

I also add test results from Thecus W5000 with OSX client as reference.

  1. Thecus W5000 with Mac OSX File Transfer Performance Report

Performance

Wireless file transfer performance on Thecus W5000 and QNAP TS-119PII via Samba and NFS.
Wireless file transfer performance on Thecus W5000 and QNAP TS-119PII via Samba and NFS.

Analyze

Mac mini‘s build-in 802.11n at 5GHz is faster than DWA-171‘s 802.11ac even has a slower connection speed. Both are slower than Fast Ethernet. It seems there are compatibility issue between DWA-171 and RT-AC51U or 802.11ac should be faster than 802.11n at 150Mbps.

If both using DWA-171‘s 802.11ac, though with higher theoretical bandwidth, it is actually slower than using DWA-171 on Mac mini and Fast Ethernet on W5000.

If Mac mini use its build-in 802.11n at 5GHz, Fast Ethernet on W5000 is faster than DWA-171‘s 802.11ac.

If Mac mini use DWA-171‘s 802.11ac, for W5000, Fast Ethernet is the fastest. Then comes DWA-171‘s 802.11ac at the same 5GHz. DWA-131 at 2.4GHz is so slow that I give up finishing the test.

TS-119PII with DWA-171‘s 802.11n at 2.4GHz is slower than Mac mini with build-in 802.11n at 5GHz or 802.11ac to W5000 with Fast Ethernet.

I already know there are compatibility issue between Windows Server 2012 R2 and OS X from Improving OS X SMB server share performance to Windows Server 2008R2 on JAMF Nation but it doesn’t seems the primary reason in this test.

Considering TS-119PII performs well with OS X, wireless real-world through-put and compatibility might be the issue. 16 款 802.11ac 路由器與網卡採購:要快還要穩,決戰2.4、5GHz 雙頻段 on 電腦王 also share the poor stability, performance, and compatibility experience for those using Realtek chips. Check on WikiDevi before you buy!

More Thoughts

I have learned it is more complex to test wireless transfer. The connection speed is not a constant and will change because of conflict, distance, and noise. Besides, compatibility among chips still needs to be improved.

Upsangel shares his real-world wireless throughput experience in 802.11AC路由Router選購技術攻略:不花冤枉錢的ac網絡架設指南 and 一分鐘了解什麽是802.11ac WIFI – 本年度買Router路由器必須瞭解的AC無線製式 as below:

802.11n 1T1R 2T2R 3T3R
Theoretical 150Mbps 300Mbps 450Mbps
Upsangel ~80Mpbs ~200Mpbs
802.11ac      
Theoretical 433Mbps 867Mbps 1.3Gbps
Upsangel ~100Mpbs ~250 to 300Mpbs ~350Mpbs

Something is interesting. OS X is holding back the 2013 MacBook Air’s 802.11ac Wi-Fi speeds on ArsTechnica says the TCP window size stay within 64KB and limits file transfer speeds to about 21.2MBps when using wireless device. I think it’s worth the time to read for detail.

Reference

  1. Apple: Mac mini (Late 2012) – Technical Specifications
  2. Apple: OS X
  3. Apple: Support: OSX Yosemite Wifi issues
  4. ArsTechnica: OS X is holding back the 2013 MacBook Air’s 802.11ac Wi-Fi speeds
  5. Asus: RT-AC51U
  6. Cisco: The Cisco Learning Network: 802.11n
  7. D-Link Wireless AC Dual Band USB Adapter DWA-171
  8. D-Link Wireless N Nano USB Adapter DWA-131
  9. Edimax
  10. Google
  11. Google: Support: Set up tethering or portable Wi-Fi hotspot
  12. Intel: Intel 64 Architecture
  13. Intel Atom Processor D2550
  14. Intel Hyper-Threading Technology
  15. JAMF Nation: Improving OS X SMB server share performance to Windows Server 2008R2
  16. Lenovo C440
  17. Linux.org
  18. MACお宝鑑定団:macg.co:Mac mini (Late 2012)は11n/450Mbps/3ストリームに対応している
  19. MacRumors: Forums: Only getting connection speeds of 130 with new Airport Extreme on 802.11n at 5ghz
  20. Marvell: Marvell 88F6282 SoC
  21. MediaTek: MediaTek First to Bring 802.11ac 1T1R
  22. Microsoft: TechNet: Domain Controller Roles
  23. Microsoft: TechNet: Hyper-V
  24. Microsoft: Windows Server 2012 R2
  25. Microsoft: Windows: Memory Limits for Windows and Windows Server Releases
  26. Prepare Your NAS File Transfer Performance Test with Mac OSX Client
  27. QNAP
  28. QNAP TS-119PII
  29. QNAP: QTS
  30. QNAP: Wiki: Compatible/Incompatible USB Wireless
  31. Realtek
  32. Samba.org: [Samba] Question marks, asterisks, colons in filenames
  33. Seagate Barracuda Desktop Datasheet
  34. Seagate Laptop SSHD Datasheet
  35. Techopedia: Spatial Streaming
  36. Thecus
  37. Thecus W5000 with Mac OSX File Transfer Performance Report
  38. Thecus: Windows Storage Server 2012 R2 Essentials
  39. Thecus: Windows Storage Server 2012 R2 Standard
  40. Thecus: W5000
  41. Upsangel
  42. Upsangel: 802.11AC路由Router選購技術攻略:不花冤枉錢的ac網絡架設指南
  43. Upsangel: 一分鐘了解什麽是802.11ac WIFI – 本年度買Router路由器必須瞭解的AC無線製式
  44. Wiki: ARM architecture
  45. Wiki: Fast Ethernet
  46. Wiki: IEEE 802.11ac
  47. Wiki: IEEE 802.11n-2009
  48. Wiki: Multi-level cell
  49. Wiki: Network File System
  50. Wiki: Samba (software)
  51. Wiki: Standard RAID levels: 2 RAID 1
  52. Wiki: Uniform resource locator
  53. Wiki: x86-64: 6.6 Windows
  54. WikiDevi
  55. WikiDevi: ASUS RT-AC51U
  56. WikiDevi: D-Link DWA-131 rev E1
  57. WikiDevi: D-Link DWA-171 rev A1
  58. WikiDevi: MediaTek MT7620
  59. WikiDevi: Realtek
  60. NTU: 無線網路新趨勢–漫談 802.11ac 新協定
  61. 電腦王:16 款 802.11ac 路由器與網卡採購:要快還要穩,決戰2.4、5GHz 雙頻段

Filed under: Review Tagged: NAS, NFS, QNAP, Samba, Thecus, WSS

Using NFS to Share Files on Thecus Between OS X and Linux

$
0
0

I choose to use Network File System aka NFS to share files between OS X and Linux because it’s much faster than Samba. But there is one more thing I need to handle: file and folder permissions.

Allow Connection to NAS

ThecusOS 6 on Thecus is a graphical web interface for easier management.

First, you need to browse available shared folders in [Control Panel] → [File Sharing/Privilege] → [Shared Folder]. Use [Add] button to create or select the folder you want to share via NFS.

Then click [NFS] button to bring up Config NFS Share dialog. Use [Add] tab to create a new exports or [Edit] button to edit existing export. You cannot change Host Name once created.

You may use IP with Netmask to specific range with the same permission. Thanks for correction by Li-chih Wu in Facebook Group: QNAP Geek.

For example, if you want all IP between 192.168.1.1 to 192.168.1.254 with the same permission, use 192.168.1.1/24. Another is all IP between 192.168.1.5 to 192.168.1.6 with the same permission, use 192.168.1.5/29. Netmask on Computer Hope is a very detail explain and IP Calculator by Krischan Jodies may calculate for you.

For OSX, choose AIX in OS Support. This will generate insecure as a parameter in exports which is a NFS configuration files. According to Using Linux NFS with Other OSes on nfs.sourceforge.net, insecure will enable listening to ports higher than 1024. Because non-root users can bind ports above 1024, it’s less secured.

Here is an example configuration to export /NAS_Public on 192.168.2.* for OSX:

"/raid0/data/_NAS_NFS_Exports_/NAS_Public" 192.168.2.1/8(rw,fsid=2,no_root_squash,insecure,async,anonuid=99,anongid=99,no_subtree_check)

Last, choose root:root in ID Mapping. It’s easier for me to share among Linux, OSX, and Windows but less secured. Guest will have full access to this shared folder.

Mounting NFS volumes in OS X on Tech Republic is a good post for first-time OS X user. Automount NFS in OS X from Your Mac / Linux Guy explains with Lightweight Directory Access Protocol aka LDAP.

With these configurations, folder owner created on Linux and OS X are different owner and groups. But files created on one can be edit or delete by another, because guest have full access.

drwxr-xr-x+ 2   1000 users   4096 Apr  2 00:25 Linux
drwxrwxrwx+ 2 nobody nogroup 4096 Apr  1 22:34 Mac

File Permission and Squash Option

Because I want to have full access on files and folders on ThecusOS 6, I have to edit /etc/exports and change no_root_squash into all_squash.

Use exportfs -ra to reload export configuration as explained in Fix NFS privileges on Synology NAS on Linux and Unit tips. It’s the same to Synology DiskStation Manager. But you will have no right to remove anything created with no_root_squash, you may only read them.

drwxr-xr-x+ 2 nobody nogroup 4096 Apr  2 00:33 Linux
drwxr-xr-x+ 2 nobody nogroup 4096 Apr  2 00:33 Mac

Mount the Right Path

When your are in Config NFS Share dialog, you will see hint showing you how to mount the selected folder. Use NFS3 Mount point with Finder. You will see warning “You do not have permission to access this server.” if you use NFS4 Mount point.

How to Access a Shared Folder Locally with NFS on Thecus is a good step-by-step guide.

Here is an example to mount a shared folder NAS_Public at 192.168.1.116:

nfs://192.168.1.116/raid0/data/_NAS_NFS_Exports_/NAS_Public

Notes

This post only apply to ThecusOS 6. If you are using OS X as your NFS server, please refer to EXPORTS(5) on OS X Man Pages.

Reference

  1. About.com: Linux / Unix Command: exports
  2. Apple: OS X
  3. Apple: OS X Man Pages: EXPORTS(5)
  4. Apple: Support: Mac Basics: The Finder organizes all of your files
  5. Christian Schneider: HOWTO setup a small server: NFS Server (Network File System)
  6. Computer Hope: Netmask
  7. Facebook: QNAP Geek
  8. Krischan Jodies: IP Calculator
  9. Linux and Unix tips: Fix NFS privileges on Synology NAS
  10. Linux.org
  11. nfs.sourceforge.net: 3. Setting Up an NFS Server
  12. nfs.sourceforge.net: 8. Using Linux NFS with Other OSes
  13. QNAP
  14. QNAP: QTS
  15. Samba
  16. StackExchange: Unix & Linux: How to configure a fixed user ID on an NFS server?
  17. Synology: DiskStation Manager
  18. Tech Republic: Mounting NFS volumes in OS X
  19. Thecus
  20. Thecus: How to Access a Shared Folder Locally with NFS
  21. ThecusOS 6
  22. You Mac / Linux Guy: Automount NFS in OS X
  23. Wiki: Internet Protocol
  24. Wiki: Lightweight Directory Access Protocol
  25. Wiki: Network File System
  26. 鳥哥的 Linux 私房菜: 第十三章、檔案伺服器之一:NFS 伺服器
  27. 鳥哥的 Linux 私房菜: 何為同一網段之 IP ,及 netmask 的定義與切割子網的方法說明

Filed under: How-To Tagged: NAS, NFS, OSX, Thecus

Thecus N2520 with Mac OSX File Transfer Performance Report

$
0
0

Thecus Windows Storage Server 2012 R2 is slow with OSX but how about ThecusOS 6? It’s based on Linux and perform well in my previous tests. Maybe it is a better alternative solution if you preferred Thecus. Let’s see how it compete with others.

Thecus N2520 with ThecusOS 6

Thecus N2520 use a Intel Atom CE5315 which is a 1.2GHz dual-core SoC based on Berryville. It has 512KB L2 Cache , 32-bit PAE, and 1GB DDR3 RAM.

I install two Seagate Barracuda Desktop HDD as RAID 1 in it.

ThecusOS 6.1.17.1 for N2520 is a 32-bit Linux used in this test.

Mac Mini Late 2012

I have upgrade my Mac mini to 16GB RAM and Seagate Laptop SSHD 1 TB which spins at 5400rpm and has a 8GB MLC cache.

Test Method

It is detail explained in Prepare Your NAS File Transfer Performance Test with Mac OSX Client. I test both Samba and NFS.

I also add test results from Thecus w5000 and QNAP TS-119PII with OSX.

  1. Thecus W5000 with Mac OSX File Transfer Performance Report
  2. QNAP TS-119PII with Mac OSX File Transfer Performance Report

Performance

File transfer performance on Thecus N2520 with Mac OSX via Samba.
File transfer performance on Thecus N2520 with Mac OSX via Samba.
File transfer performance on Thecus N2520 with Mac OSX via NFS.
File transfer performance on Thecus N2520 with Mac OSX via NFS.

* Numbers in green means informal test.

Analyze

N2520 is faster on reading but slower on writing to W5000 in Samba. It catch up with TS-119PII in NFS, less than 10% difference. TS-119PII is top performer on all tests.

According to these numbers, Thecus WSS and ThecusOS 6 are slower than QTS when accessed by OSX via Samba.

These green numbers indicate no significant improvement with different Samba options in ThecusOS 6.

More Thoughts

TS-119PII has a 2.0GHz Marvell 88F6282 SoC with single drive while N2520 is a 1.2GHz Intel Atom CE5315 in RAID 1. It’s not fare to conclude ThecusOS 6 has Samba compatibility issue with OSX. I need more test with different models.

Reference

  1. Apple: Mac mini (Late 2012) – Technical Specifications
  2. Apple: OS X
  3. Intel: New Storage Solutions Based on the Intel® Atom™ Processor CE5300 Series Simplifies HD Content Sharing and Delivery Between Mobile Devices and Smart TV
  4. Linux.org
  5. Marvell: Marvell 88F6282 SoC
  6. Prepare Your NAS File Transfer Performance Test with Mac OSX Client
  7. QNAP TS-119PII
  8. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  9. QNAP: QTS
  10. Samba
  11. Seagate Barracuda Desktop Datasheet
  12. Seagate Laptop SSHD Datasheet
  13. Thecus
  14. Thecus N2520
  15. Thecus W5000
  16. Thecus W5000 with Mac OSX File Transfer Performance Report
  17. Thecus Windows Storage Server 2012 R2
  18. ThecusOS 6
  19. Wiki: Multi-level cell
  20. Wiki: Network File System
  21. Wiki: Physical Address Extension
  22. Wiki: Standard RAID levels: 2 RAID 1
  23. Wiki: System on a chip

Filed under: Review Tagged: NAS, NFS, Samba, Thecus

Firefox: My Missing Manual

$
0
0

Here is a list of accelerators and how-to related to Firefox. It will be maintained and update regularly.

Accelerators

Linux + Windows Mac OSX
Enable or disable Status Bar Crtl + /
Firefox Developer Tools Ctrl + Shift + K ⌘ + ⌥ + K
Web Console Ctrl + Shift + J
Responsive Design View Ctrl + Shift + M ⌘ + ⌥ + M

How-To

Enable JavaScript

Mozilla: Support Forum: how do i enable javascript if there is no option to enable javascript

Sometimes my JavaScript is automatically disabled for no reason. I have to type about:config in address bar and enable javascript.enabled manually.

Move Sessions Between FireFox

Move FireFox Sessions from Linux to Mac

If you open several tabs and windows open, you may move them to your new Firefox by copying sessionstore.js.

Reference

  1. How to enable Status Bar in Firefox newer versions
  2. Move FireFox Sessions from Linux to Mac
  3. Mozilla: Firefox
  4. Mozilla: Firefox Developer Tools
  5. Mozilla: Support Forum: how do i enable javascript if there is no option to enable javascript

Filed under: Information Tagged: Firefox, Tips

Quickly Reset the Hard Disk in your ThecusOS Device as New

$
0
0

After testing NAS running ThecusOS 6, I want to clean my hard disk. Thecus provides a neat tool to do this job. It’s easier than resetting hard disk in QNAP.

Use Official Tool

This works only for N2310 N2520 N2560 N4520 N4560 with ThecusOS 6.

Download OS6_clean_HDD_up.zip and unzip. Copy all contents to an empty USB flash drive and boot your NAS with it. It will clean up the disk and power off automatically.

What Has Been Done

After unzip, factory_test.sh is the only executable script files found. Here is the script:

#!/bin/sh
###################################
### For OS6 bin file dd
###################################
## Must use folder gofactory
cp /etc/gofactory/dd.sh /tmp
rm -f /etc/gofactory
rm -rf /mnt2/gofactory
sync

sh /img/bin/clean_raid.sh

echo "Buzzer 1" > /proc/thecus_io
/img/bin/pic.sh LCM_MSG "Clean Disk" "Finish"
sleep 3
echo "Buzzer 0" > /proc/thecus_io

poweroff -f
exit

Unfortunately, I cannot find dd.sh nor clean_raid.sh using find in ThecusOS 6. It seems a different boot image will be mounted while booting with USB flash. Therefore, I don’t know what it has done.

Reference

  1. Linux: My Missing Manual: find: Look for files in directories
  2. Quickly Reset the Hard Disk in your QNAP Device as New
  3. Thecus
  4. Thecus: Support: How to clean N2310 N2520 N2560 N4520 N4560 (OS6) HDD up and doing a brand new initial.
  5. Thecus: OS6_clean_HDD_up.zip
  6. ThecusOS 6

Filed under: How-To Tagged: Hard Drive, NAS, Partition, Reset, Thecus

QNAP TS-251 with Mac OSX File Transfer Performance Report

$
0
0

We have seen QTS 4.2.1 Build 0217 for TS-119PII but QTS 4.1.3 Build 20150313 for QNAP TS-251 is different. The later support smb 3.0 in [Control Panel] → [Network Services] → [Win/Mac/NFS] → [Microsoft Networking] Tab → [Advanced Options] dialog] → [Highest SMB version]. Let’s see if it is compatible with OSX and faster.

QNAP TS-251 with QTS 4.1.3

TS-251 uses an Intel Celeron J1800 which is a 2.41GHz and up to 2.58GHz dual-core processor. It has 1MB L2 cache, Intel 64 Architecture, and supports up to 8GB DDR3.

The test machine comes with 1GB of DDR3 RAM and is upgradable. In this post, I test with 1GB and 8GB RAM to see the difference.

I install two Seagate Barracuda Desktop HDD as RAID 1 in it.

QTS 4.1.3 Build 20150313 for TS-251 is a 64-bit Linux used in this test. Unlike QTS for TS-119PII, it has many extra features like smb 3.0, Storage Manager, and etc.

Mac Mini Late 2012

I have upgrade my Mac mini to 16GB RAM and use a Seagate Laptop SSHD 1 TB which spins at 5400rpm and comes with 8GB MLC cache build-in to replace the slow hard drive.

Test Method

It is detail explained in Prepare Your NAS File Transfer Performance Test with Mac OSX Client. I test both Samba and NFS.

I also add test results from QNAP TS-119PII, Thecus N2520, and Thecus w5000 with OSX.

  1. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  2. Thecus N2520 with Mac OSX File Transfer Performance Report
  3. Thecus W5000 with Mac OSX File Transfer Performance Report

Performance

File transfer performance on QNAP Ts-251 with Mac OSX via Samba.
File transfer performance on QNAP Ts-251 with Mac OSX via Samba.
File transfer performance on QNAP TS-251 with Mac OSX via NFS.
File transfer performance on QNAP TS-251 with Mac OSX via NFS.
File transfer performance on QNAP TS-251 with Mac OSX via Samba with different smb.
File transfer performance on QNAP TS-251 with Mac OSX via Samba with different smb.

* Numbers in green means informal test.

Analyze

TS-251 is fastest on all Samba tests. I see no big different to enable or disable Asynchronous I/O. It is recommend to disable if you don’t have an UPS connected to your NAS for data safety.

On NFS tests, TS-119PII is as fast as TS-251 on reading but much slower on writing.

For informal tests, smb 3.0/2.1/2.0 are similar but considerable faster than 1.0. Reading on TS-119PII is closer to TS-251 with smb but writing is still fall behind.

More Thoughts

For your information, I also test copy on the same Mac mini with Seagate Laptop SSHD 1TB. Reading and writing on the same drive is 34MB/s. Maybe Seagate Laptop SSHD becomes the bottleneck now.

You might also want to read QNAP TS-251 with Firmware 0612 and 8GB RAM File Transfer Performance Report to see its performance with Linux. It’s getting closer.

Reference

  1. Apple: Mac mini (Late 2012) – Technical Specifications
  2. Apple: OS X
  3. Intel: Intel 64 Architecture
  4. Intel: Intel Celeron Processor J1800 (1M Cache, up to 2.58 GHz)
  5. Linux.org
  6. Prepare Your NAS File Transfer Performance Test with Mac OSX Client
  7. QNAP TS-119PII
  8. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  9. QNAP TS-251
  10. QNAP TS-251 with Firmware 0612 and 8GB RAM File Transfer Performance Report
  11. QNAP: QTS
  12. QNAP: QNAP Turbo NAS User Manual: Storage Manager
  13. QNAP: QNAP Turbo NAS User Manual: Win/Mac/NFS
  14. Samba
  15. Seagate Barracuda Desktop Datasheet
  16. Seagate Laptop SSHD Datasheet
  17. Thecus N2520
  18. Thecus N2520 with Mac OSX File Transfer Performance Report
  19. Thecus W5000
  20. Thecus W5000 with Mac OSX File Transfer Performance Report
  21. Wiki: Multi-level cell
  22. Wiki: Network File System
  23. Wiki: Server Message Block
  24. Wiki: Standard RAID levels: 2 RAID 1
  25. Wiki: Uninterruptible power supply

Filed under: Review Tagged: NAS, NFS, QNAP, Samba

QNAP TS-253 Pro with Mac OSX File Transfer Performance Report

$
0
0

We have seen QTS 4.2.1 Build 0217 for TS-119PII but QTS 4.1.3 Build 20150313 for QNAP TS-253 Pro is different. The later support smb 3.0 in [Control Panel] → [Network Services] → [Win/Mac/NFS] → [Microsoft Networking] Tab → [Advanced Options] dialog] → [Highest SMB version]. Let’s see if it is compatible with OSX and faster.

QNAP Ts-253 Pro with QTS 4.1.3

TS-253 Pro uses an Intel Celeron J1900 which is a 2GHz and up to 2.41GHz quad-core processor. It has 2MB L2 cache, Intel 64 Architecture, and supports up to 8GB DDR3.

The test machine comes with 1GB of DDR3 RAM and is upgradable. In this post, I test with 1GB and 8GB RAM to see the difference.

I install two Seagate Barracuda Desktop HDD as RAID 1 in it.

QTS 4.1.3 Build 20150313 for TS-253 Pro is a 64-bit Linux used in this test. Unlike QTS for TS-119PII, it has many extra features like smb 3.0, Storage Manager, and etc.

Mac Mini Late 2012

I have upgrade my Mac mini to 16GB RAM and use a Seagate Laptop SSHD 1 TB which spins at 5400rpm and comes with 8GB MLC cache build-in to replace the slow hard drive.

Test Method

It is detail explained in Prepare Your NAS File Transfer Performance Test with Mac OSX Client. I test both Samba and NFS.

I also add test results from QNAP TS-119PII, Thecus N2520, and Thecus w5000 with OSX.

  1. QNAP TS-251 with Mac OSX File Transfer Performance Report
  2. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  3. Thecus N2520 with Mac OSX File Transfer Performance Report
  4. Thecus W5000 with Mac OSX File Transfer Performance Report

Performance

File transfer performance on QNAP TS-253 Pro with Mac OSX via Samba with different smb.
File transfer performance on QNAP TS-253 Pro with Mac OSX via Samba with different smb.
File transfer performance on QNAP TS-253 Pro with Mac OSX via NFS.
File transfer performance on QNAP TS-253 Pro with Mac OSX via NFS.

Analyze

TS-253 Pro is as fast as TS-251 on Samba smb 3.0 and NFS.

If you use cifs instead of smb in Finder, Samba is as slows as smb 1.0 on QTS even [Highest SMB version] is set to smb 3.0.

More Thoughts

If you cannot find smb 3.0 in [Highest SMB version] after upgrading firmware, try to reboot again or reinstall QTS again. Quickly Reset the Hard Disk in your QNAP Device as New explains how to remove QTS from your hard disks.

If using cifs is as fast as smb in Finder, maybe you are running at smb 1.0 on QTS.

Reference

  1. Apple: Mac mini (Late 2012) – Technical Specifications
  2. Apple: OS X
  3. Apple: Support: Mac Basics: The Finder organizes all of your files
  4. Intel: Intel 64 Architecture
  5. Intel: Intel Celeron Processor J1900 (2M Cache, up to 2.42 GHz)
  6. Linux.org
  7. Prepare Your NAS File Transfer Performance Test with Mac OSX Client
  8. QNAP TS-119PII
  9. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  10. QNAP TS-251
  11. QNAP TS-251 with Mac OSX File Transfer Performance Report
  12. QNAP TS-253 Pro
  13. QNAP: QNAP Turbo NAS User Manual: Storage Manager
  14. QNAP: QTS
  15. Quickly Reset the Hard Disk in your QNAP Device as New
  16. Samba
  17. Seagate Barracuda Desktop Datasheet
  18. Seagate Laptop SSHD Datasheet
  19. Thecus N2520
  20. Thecus N2520 with Mac OSX File Transfer Performance Report
  21. Thecus W5000
  22. Thecus W5000 with Mac OSX File Transfer Performance Report
  23. Wiki: Multi-level cell
  24. Wiki: Network File System
  25. Wiki: Server Message Block
  26. Wiki: Standard RAID levels: 2 RAID 1

Filed under: Review Tagged: NAS, NFS, QNAP, Samba

Using NFS to Share Files on Asustor Between OS X and Linux

$
0
0

I choose to use Network File System aka NFS to share files between OS X and Linux because it’s much faster than Samba. But there is one more thing I need to handle: file and folder permissions.

Allow Connection to NAS

ADM on Asustor is a graphical web interface for easier management.

First, you need to browse available shared folders in [Access Control] →[Shared Folders]. Use [Add] button to create or select the folder you want to share via NFS.

Then click [Access Rights] button to bring up Edit Shared Folder Privileges dialog. Use [NFS Privileges] tab to create a new exports or [Edit] button to edit existing export. Remember to enable Allow connections from non-reserved ports (ports greater than 1024) which will generate insecure as a parameter in exports which is a NFS configuration files. According to Using Linux NFS with Other OSes on nfs.sourceforge.net, insecure will enable listening to ports higher than 1024. Because non-root users can bind ports above 1024, it’s less secured.

You may use IP with Netmask to specific range with the same permission. Thanks for correction by Li-chih Wu in Facebook Group: QNAP Geek.

For example, if you want all IP between 192.168.1.1 to 192.168.1.254 with the same permission, use 192.168.1.1/24. Another is all IP between 192.168.1.5 to 192.168.1.6 with the same permission, use 192.168.1.5/29. Netmask on Computer Hope is a very detail explain and IP Calculator by Krischan Jodies may calculate for you.

Here is an example configuration to export /Public on 192.168.2.* for OSX:

"/volume1/Public" 192.168.2.1/8(rw,async,no_root_squash,anonuid=0,anongid=0,subtree_check,no_wdelay,insecure)

Last, choose root Mapping as root(0). It’s easier for me to share among Linux, OSX, and Windows but less secured. Guest will have full access to this shared folder.

Mounting NFS volumes in OS X on Tech Republic is a good post for first-time OS X user. Automount NFS in OS X from Your Mac / Linux Guy explains with Lightweight Directory Access Protocol aka LDAP.

With these configurations, folder owner created on Linux and OS X are different owner and groups. But files created on one can be edit or delete by another, because guest have full access.

drwxrwxrwx 2 guest nogroup 4096 Apr 13 20:07 Linux/
drwxrwxrwx 2 guest nogroup 4096 Apr 13 19:55 Mac/

File Permission and Squash Option

Because I want to have full access on files and folders on ADM, I have to edit /etc/exports and change no_root_squash into all_squash.

Use exportfs -ra to reload export configuration as explained in Fix NFS privileges on Synology NAS on Linux and Unit tips will show warning message. You may disable and then enable NFS service again in [Services] →[NFS]. But you will have no right to remove anything created with no_root_squash, you may only read them.

admin@AS-602T:/volume1/Public $ exportfs -ra
exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 13 (Permission denied)
exportfs: can't lock /var/lib/nfs/etab for writing
admin@AS-602T:ls- /volume1/Public
total 8
drwxr-xr-x 2 root root 4096 Apr 13 20:19 Linux/
drwxr-xr-x 2 root root 4096 Apr 13 20:21 Mac/

Mount the Right Path

Here is an example to mount a shared folder Public at 192.168.1.10 with Finder:

nfs://192.168.1.10/Public

Notes

This post only apply to ADM. If you are using OS X as your NFS server, please refer to EXPORTS(5) on OS X Man Pages.

Reference

  1. About.com: Linux / Unix Command: exports
  2. Apple: OS X
  3. Apple: OS X Man Pages: EXPORTS(5)
  4. Apple: Support: Mac Basics: The Finder organizes all of your files
  5. Asustor
  6. Asustor ADM
  7. Christian Schneider: HOWTO setup a small server: NFS Server (Network File System)
  8. Computer Hope: Netmask
  9. Facebook: QNAP Geek
  10. Krischan Jodies: IP Calculator
  11. Linux and Unix tips: Fix NFS privileges on Synology NAS
  12. Linux.org
  13. nfs.sourceforge.net: 3. Setting Up an NFS Server
  14. nfs.sourceforge.net: 8. Using Linux NFS with Other OSes
  15. Samba
  16. StackExchange: Unix & Linux: How to configure a fixed user ID on an NFS server?
  17. Tech Republic: Mounting NFS volumes in OS X
  18. You Mac / Linux Guy: Automount NFS in OS X
  19. Wiki: Internet Protocol
  20. Wiki: Lightweight Directory Access Protocol
  21. Wiki: Network File System
  22. 鳥哥的 Linux 私房菜: 第十三章、檔案伺服器之一:NFS 伺服
  23. 鳥哥的 Linux 私房菜: 何為同一網段之 IP ,及 netmask 的定義與切割子網的方法說明

Filed under: How-To Tagged: Asustor, NAS, NFS, OSX

Asustor AS-602T with Mac OSX File Transfer Performance Report

$
0
0

Asustor focus on Intel processors only. They all made with metal case and looks solid. Let’s see how fast AS-602T could be with OSX.

Asustor AS-602T with ADM 2.4.0

AS-602T uses an Intel Atom D2700 which is a 2.13GHz dual-core processor with Intel Hyper-Threading Technology. It has 1MB L2 cache, Intel 64 Architecture, and supports up to 4GB DDR3.

The test machine comes with 1GB of DDR3 RAM and is upgradable to 3GB.

I install two Seagate Barracuda Desktop HDD as RAID 1 in it.

ADM 2.4.0 RFU6 for AS-602T is a 64-bit Linux used in this test. According to following information, I only know the build-in Samba is 4.0.19. Like QNAP TS-119PII, I cannot select smb version in [Services] → [Windows] → [File Service] Tab → [Advanced Options].  After contacting Asustor, I was informed current ADM supports smb 2.0. More related information about Samba and smb may be found in Samba Wiki: Samba3/SMB2.

admin@AS-602T:~ $ smbstatus

Samba version 4.0.19
PID     Username      Group         Machine                        
-------------------------------------------------------------------
Failed to initialize session_global: NT_STATUS_ACCESS_DENIED

Service      pid     machine       Connected at
-------------------------------------------------------
Failed to initialize session_global: NT_STATUS_ACCESS_DENIED
Failed to traverse sessions: NT_STATUS_ACCESS_DENIED

No locked files

Mac Mini Late 2012

I have upgrade my Mac mini to 16GB RAM and use a Seagate Laptop SSHD 1 TB which spins at 5400rpm and comes with 8GB MLC cache build-in to replace the slow hard drive.

Test Method

It is detail explained in Prepare Your NAS File Transfer Performance Test with Mac OSX Client. I test both Samba and NFS.

I also add test results from QNAP TS-253 Pro, TS-251, TS-119PII, Thecus N2520, and w5000 with OSX.

  1. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  2. QNAP TS-251 with Mac OSX File Transfer Performance Report
  3. QNAP TS-253 Pro with Mac OSX File Transfer Performance Report
  4. Thecus N2520 with Mac OSX File Transfer Performance Report
  5. Thecus W5000 with Mac OSX File Transfer Performance Report

Performance

File transfer performance on Asustor AS-602T with Mac OSX via Samba.
File transfer performance on Asustor AS-602T with Mac OSX via Samba.
File transfer performance on Asustor AS-602T with Mac OSX via NFS.
File transfer performance on Asustor AS-602T with Mac OSX via NFS.

Analyze

AS-602T is faster to TS-119PII, Thecus N2520, and w5000 on all tests. When compared to TS-251 with 1GB on Samba and NFS, AS-602T is about 10% slower on Samba reading but 10% faster on NFS. About writing, it is 25% slower with Samba while 15% with NFS.

If you use cifs:// in Finder to mount Samba shared drive on AS-602T, reading is 35% while writing is 23% slower compared to smb://.

More Thoughts

It seems ADM doesn’t have Samba compatibility issue with OSX. Just don’t use cifs:// in Finder which will slow down performance.

Reference

  1. Apple: Mac mini (Late 2012) – Technical Specifications
  2. Apple: OS X
  3. Apple: Support: Mac Basics: The Finder organizes all of your files
  4. Asustor
  5. Asustor ADM
  6. Asustor: AS-602T
  7. Intel
  8. Intel Atom Processor D2700
  9. Intel Hyper-Threading Technology
  10. Intel: Intel 64 Architecture
  11. Linux.org
  12. Prepare Your NAS File Transfer Performance Test with Mac OSX Client
  13. QNAP TS-119PII
  14. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  15. QNAP TS-251
  16. QNAP TS-251 with Mac OSX File Transfer Performance Report
  17. QNAP TS-253 Pro
  18. QNAP TS-253 Pro with Mac OSX File Transfer Performance Report
  19. Samba
  20. Samba Wiki: Samba3/SMB2
  21. Seagate Barracuda Desktop Datasheet
  22. Seagate Laptop SSHD Datasheet
  23. Thecus N2520
  24. Thecus N2520 with Mac OSX File Transfer Performance Report
  25. Thecus W5000
  26. Thecus W5000 with Mac OSX File Transfer Performance Report
  27. Wiki: Multi-level cell
  28. Wiki: Network File System
  29. Wiki: Server Message Block
  30. Wiki: Standard RAID levels: 2 RAID 1

Filed under: Review Tagged: Asustor, NAS, NFS, Samba

Asustor AS-5102T with Mac OSX File Transfer Performance Report

$
0
0

Asustor focus on Intel processors only. They all made with metal case and looks solid. Let’s see if AS-5102T is faster than AS-602T with OSX.

Asustor AS-602T with ADM 2.4.0

AS-5102T uses an Intel Celeron Processor J1900 which is a 2GHz and up to 2.41GHz quad-core processor. It has 2MB L2 cache, Intel 64 Architecture, and supports up to 8GB DDR3.

The test machine comes with 4GB of DDR3 RAM.

I install two Seagate Barracuda Desktop HDD as RAID 1 in it.

ADM 2.4.0 RFU6 for AS-5102T is a 64-bit Linux used in this test. According to following information, I only know the build-in Samba is 4.0.19. Like QNAP TS-119PII, I cannot select smb version in [Services] → [Windows] → [File Service] Tab → [Advanced Options].  After contacting Asustor, I was informed current ADM supports smb 2.0. More related information about Samba and smb may be found in Samba Wiki: Samba3/SMB2.

Mac Mini Late 2012

I have upgrade my Mac mini to 16GB RAM and use a Seagate Laptop SSHD 1 TB which spins at 5400rpm and comes with 8GB MLC cache build-in to replace the slow hard drive.

Test Method

It is detail explained in Prepare Your NAS File Transfer Performance Test with Mac OSX Client. I test both Samba and NFS.

I also add test results from AS-602T, QNAP TS-253 Pro, TS-251, TS-119PII, Thecus N2520, and w5000 with OSX.

  1. Asustor AS-602T with Mac OSX File Transfer Performance Report
  2. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  3. QNAP TS-251 with Mac OSX File Transfer Performance Report
  4. QNAP TS-253 Pro with Mac OSX File Transfer Performance Report
  5. Thecus N2520 with Mac OSX File Transfer Performance Report
  6. Thecus W5000 with Mac OSX File Transfer Performance Report

Performance

File transfer performance on Asustor AS-5102T with Mac OSX via Samba.
File transfer performance on Asustor AS-5102T with Mac OSX via Samba.
File transfer performance on Asustor AS-5102T with Mac OSX via NFS.
File transfer performance on Asustor AS-5102T with Mac OSX via NFS.

Analyze

AS-5102T is faster than AS-602T in most tests especially on writing. AS-602T is 4% faster on NFS reading.

Compared to TS-253 Pro and TS-251 using smb 3.0 but with the same J1900, most are within 10% difference. Only TS-251 with 8GB RAM is 12% slower on NFS writing.

As you see in AS-602T, if you use cifs:// in Finder to mount Samba shared drive, reading is 35% while writing is 23% slower compared to smb://. Therefore, I test with smb:// only.

More Thoughts

The faster J1900 and more RAM in AS-5102T help to improve performance over AS-602T. Besides, the new VirtualBox on App Central should run faster with J1900.

It seems ADM doesn’t have Samba compatibility issue with OSX. The performance is as good as QTS with smb 3.0.

Reference

  1. Apple: Mac mini (Late 2012) – Technical Specifications
  2. Apple: OS X
  3. Apple: Support: Mac Basics: The Finder organizes all of your files
  4. Asustor
  5. Asustor ADM
  6. Asustor AS-602T with Mac OSX File Transfer Performance Report
  7. Asustor: App Central: VirtualBox
  8. Asustor: AS-5102T
  9. Asustor: AS-602T
  10. Intel
  11. Intel Atom Processor D2700
  12. Intel Hyper-Threading Technology
  13. Intel Celeron Processor J1900 (2M Cache, up to 2.42 GHz)
  14. Intel: Intel 64 Architecture
  15. Linux.org
  16. Prepare Your NAS File Transfer Performance Test with Mac OSX Client
  17. QNAP TS-119PII
  18. QNAP TS-119PII with Mac OSX File Transfer Performance Report
  19. QNAP TS-251
  20. QNAP TS-251 with Mac OSX File Transfer Performance Report
  21. QNAP TS-253 Pro
  22. QNAP TS-253 Pro with Mac OSX File Transfer Performance Report
  23. QNAP: QTS
  24. Samba
  25. Samba Wiki: Samba3/SMB2
  26. Seagate Barracuda Desktop Datasheet
  27. Seagate Laptop SSHD Datasheet
  28. Thecus N2520
  29. Thecus N2520 with Mac OSX File Transfer Performance Report
  30. Thecus W5000
  31. Thecus W5000 with Mac OSX File Transfer Performance Report
  32. Wiki: Multi-level cell
  33. Wiki: Network File System
  34. Wiki: Server Message Block
  35. Wiki: Standard RAID levels: 2 RAID 1

Filed under: Review Tagged: Asustor, NAS, NFS, Samba

Log Off Microsoft Dynamics CRM on Premise from Safari on OSX

$
0
0

“You can check-out any time you like, But you can never leave!” in Hotel California exactly match my experience using Satari on OSX to access Dynamics CRM in virtual machine.

Active Directory Authentication is Kept in Keychain

If you choose to save you user name and password in Keychain while login into On-premises Dynamics CRM, you will automatically login every time browsing. Reset all password kept in Satari preference won’t help, you can never leave.

Remove Active Directory Authentication

Managing SSL Certificate Authorities on OS X on Tech Republic gives me a good idea to clear this authentication: use Keychain Access.

Just launch Keychain Access and right click on the name of your Dynamics CRM to delete. You are log out immediately!

Reference

  1. Apple OSX: Better Apps
  2. Microsoft Dynamics
  3. StackOverflow: How to log off in the dynamic crm
  4. Tech Republic: Managing SSL Certificate Authorities on OS X
  5. Wiki: Hotel California
  6. Wiki: Keychain (software)
  7. Wiki: On-premises software
  8. Wiki: Virtual machine

Filed under: How-To Tagged: CRM, Dynamics, Microsoft, OSX

Microsoft Office: My Missing Manual

$
0
0

Here is a list of how-to related to Microsoft Office products. It will be maintained and update regularly.

Mini How-To

Remove Outlook account profile

Microsoft Community: How do I reset a profile in Microsoft Outlook 2013?

Open [Control Panel] → [Mail] then click on [Show Profiles…] to bring up [General] tab in [Mail] dialog. Now you may delete the unwanted profile or create a new one and set it in [always use this profile].

Reference

  1. Microsoft Community: How do I reset a profile in Microsoft Outlook 2013?


Filed under: Information Tagged: Microsoft, Office

Install Microsoft Dynamics CRM on VirtualBox From Scratch

$
0
0

I need to setup an test environment to learn Microsoft Dynamics CRM on my OS X. Here is my memo from installing and configuring Windows Server 2012 R2, SQL Server 2014, to Dynamics CRM.

 Install VirtualBox and Create a Configuration File

Download VirtualBox and install it. Then launch and create a configuration file for Windows Server 2012 R2.

  1. Choose [Other Windows (64-bit)]  [Windows 20012 (64-bit)] in [Versions] in [Name and operating system] dialog.
  2. Memory must more than 4096MB
  3. Choose [Dynamically allocated] in [Storage and physical hard drive] dialog to allocate space when needed.
  4. Mount Windows Server 2012 R2 iso file in [CD/DVD Drive] on [Storage] tab in [Settings]

Start this virtual machine to begin Windows Server 2012 R2 installation.

Windows Server 2012 R2 Installation

It’s pretty simple to install Windows Server 2012 R2 on an empty disk.

  1. Choose [Windows Server 2012 R2 Standard Evaluation (Server with a GUI)]
  2. Choose [Custom: Install Windows only (Advanced)]

After installation, it will power off automatically.

Install VirtualBox Guest Additions

From VirtualBox menu, choose [Devices] → [Insert Guest Additions CD Image…] to mount this CD image. Use [File Explorer] to run [VBoxWindowsAdditions.exe] to install integration tools and drivers.

After installation, you may mount a shared folder on host operating system in this virtual machine.

Now, you may copy SQL Server 2014 and Dynamics CRM installation files to this virtual machine via shared folder.

Add Extra Features and Configure Active Directory

After installation, you need to manually add several components in Windows Server 2012 R2 and setup a domain controller running Active Directory service.

  1. Use [Server Manager] → [Add roles and features] to add extra components.
  2. In [Installation Type] section, choose [Role-based or feature-based installation]
  3. In [Server Selection], choose current virtual machine as the server.
  4. In [Server Roles] section, select [Active Directory Domain Services], [Application Server], and [Web Server (IIS)].
  5. In [Features] section, select [Windows Search Service], [.NET Framework 3.5 (includes .NET 2.0 anmd 3.0)] in [.NET Framework 3.5 Features] and [APS.NET 4.5] in [.NET Framework 4.5 Features (2 of 7 installed)].

After installing, you will see a flag with warning mark on upper right corner. Click and choose [Promote this server to a domain controller] to launch [Active Directory Domain Services Configuration Wizard].

  1. Choose [Add a new forest] in [Deployment Configuration] and provide a valid root domain name, eg lab.org, for the test environment.

You will see several warning but it is okay to apply these changes. After reboot, your virtual machine will join this new domain.

Add Organization Unit and an Active Directory User for Reporting Service

Next is to customize our Active Directory.

First, add an organizational units aka OU using [Active Directory Users and Computers] utility as described in create a new organizational unit on TechNet.

Second, create a new user in above OU. Use [Member Of] tab in property dialog to add this user in [ReportingGroup].

Now, you have a proper configuration for Dynamics CRM.

Install SQL Server 2014

You need to download SQL Server 2014 from Microsoft TechNet Evaluation Center. Dynamics CRM doesn’t work with SQL Server Express according to its software requirements.

  1. Launch [SQL Server Installation Center], choose [New SQL Server stand-alone installation or add features to an existing installation] in [Installation] section.
  2. In [Setup Role], choose [SQL Server Feature Installation].
  3. In [Feature Selection], select [Full-Text and Semantic Extractions for Search], [Reporting Services – Native], and [Management Tools – Complete]
  4. In [Database engine Configuration], choose [Mixed Mode] and [Add Current User] as a SQL Server administrator.

Configure Reporting Service

Now, assign an Active Directory user for Reporting Services aka SSRS. It’s an requirement before installing [Microsoft Dynamics CRM Reporting Extensions Setup].

I am going to use the user account created in [Add Organization Unit and an Active Directory User for Reporting Service] as described earlier in this post.

  1. Launch [Reporting Services Configuration Connection] and connect to your SQL Server.
  2. In [Service Account] section, choose [user another account]. Provide user information created here.

If you didn’t assign Active Directory user for Reporting Services and fail in [Microsoft Dynamics CRM Reporting Extensions Setup], after above procedure, you may execute installation program [Organizational Unit.exe] in [SrsDataConnector] folder in your Dynamic CRM install directory to try again.

Install Microsoft Dynamics CRM Reporting Extensions on TechNet provides detail explain on this topic.

Install Dynamic CRM

Dynamics CRM is available on Microsoft Download Center. You may use one of the following 90-day trial keys for testing.

  • Workgroup Server 2015 (5 CAL limit): XY8GN-DF2MC-FV482-YM9YP-HH6H2
  • CRM Server 2015 (no CAL limit): C6BDP-T6NK9-8TXJP-36WTB-TXW7V

The first-time installation will update .NET Framework to 4.5.2, restart Windows Server before you try again.

In the next few steps:

  1. Fill the server name running SQL Server in [Specify Deployment Options].
  2. Select the OU which you have created earlier.
  3. Choose [NT AUTHORITY\NETWORK SERVICE] for all service in [Specify Service Accounts].

Now, you have successfully install your Dynamics CRM.

Test Your Dynamics CRM

Browse localhost in virtual machine, you shall be able to see it now.

If you need some sample data, from upper left [Microsoft Dynamics CRM] choose [Settings]. Then choose [Settings] → [Data Management] → [Sample Data] to install.

Other Resource

There are many related posts explains how to install. Step by Step: Installing Dynamics CRM 2013 on Windows Server 2012 on MSDN Blog is also very useful.

Install Microsoft Dynamics CRM Front End Server and Back End Server roles on TechNet provides information to run Dynamics CRM on multiple servers.

Reference

  1. Apple: OS X
  2. Microsoft Developer Network: Reporting Services (SSRS)
  3. Microsoft Download Center: Microsoft Dynamics CRM Server 2015
  4. Microsoft Dynamics
  5. Microsoft MSDN Blogs: Step by Step: Installing Dynamics CRM 2013 on Windows Server 2012
  6. Microsoft SQL Server 2014
  7. Microsoft SQL Server Express Edition
  8. Microsoft TechNet Evaluation Center: SQL Server 2014
  9. Microsoft TechNet: Create a new organizational unit
  10. Microsoft: TechNet: Domain Controller Roles
  11. Microsoft TechNet: Install Microsoft Dynamics CRM Front End Server and Back End Server roles
  12. Microsoft TechNet: Install Microsoft Dynamics CRM Reporting Extensions
  13. Microsoft TechNet: Organizational units
  14. Microsoft TechNet: Software requirements for Microsoft Dynamics CRM Server 2015: SQL Server editions
  15. Microsoft Windows Server 2012 R2
  16. Oracle VM VirtualBox
  17. Wiki: .NET Framework
  18. Wiki: Active Directory
  19. Wiki: Active Directory: 2.2 Forests, trees, and domains
  20. Wiki: Virtual machine

Filed under: How-To Tagged: CRM, Dynamics, Microsoft

Android USB Tethering Drops and Data Usage Crashes, try Reset

$
0
0

20160314 Android USB Tethering Drops and Data Usage Crashes, try Reset

The USB Tethering between my Asus Wireless Router RT-AC51U and Sony Xperia C3 which is runningAndroid 5.1.1 drops about every 30 minutes. And I also found the “Data Usage” in Settings always crashes every time I launch it after experiencing the unusual drop. Therefore, I assume they are related.

It’s not my data connection has been dropped, it is the connection between RT-AC51U and C3. I am sure because if I manually disable data connection on C3USB Tethering is still enabled. Therefore, I assume the problem is about USB Tethering rather than data connection on C3.

Interesting, I cannot check the “Data Usage” in Settings after data connection begins to drop frequently. It always crashes the Settings App. Reboot my C3 doesn’t help. Wonder if someone has hacked to my device and block me from checking “Data Usage” to detect uncommon internet access.

To find out what’s going on, I uninstall every download apps and disable build-in app one by one. Strangely, C3 reboots itself every time after uninstalling or disabling an app and I have never being about to check my “Data Usage“.

Eventually, I decide to reset. Guess what, theUSB Tethering never drops again within 5 days.

I cannot solve my problem and seems reset is the only work around available.

Reference

  1. Asus: RT-AC51U
  2. Google: Nexus Help: Reduce and manage data usage
  3. Google: Nexus Help: Set up tethering or portable Wi-Fi hotspot
  4. Sony: Xperia C3
  5. Wiki: Android Lollipop

Filed under: How-To Tagged: Android

My Favorite Android Apps and Preferred Mobile Settings

$
0
0

GmailMapsStreet ViewYouTube are pre-installed on most Android devices. But there are apps comes with your mobile, some you need to install separately. Here is a list of my favorite apps. I also make a remove/disable list and share my preferred configuration.

Favorite Apps

Authy 2-Factor Authentication

Authy Inc

I preferred this over others because of multiple device and accounts support. It’s always good to have another Authy running on a different device in case of being lost or damaged.

When reinstalling Authy, enter your registered cell phone and choose USE EXISTING DEVICE to get verification. Then launch Authy on another device to Accept and enter YES to confirm. It will popup a dialog with “The new device was added”.

Now you may launch it on your new device but still need your backups password for Authy to decrypt accounts.

Whoscall

Gogolook

To Identify caller ID from database and block calls. Great time saver.

Pocket

Read It Later

Pocket has plugins for Firefox and Chrome. It helps to save web pages to the cloud and read later on any other device.

I preferred to enable both Dark theme, Use true black , and Justified Text for easier reading. Remember to select Removable as your Offline Storage Location to save precious internal storage.

Google Photos

Google Inc.

It simplifies photo browsing and uploading process. Unlike any ordinary digital camera, there’s no need to swap memory card to check photos. After uploading to cloud, I may check them in Google Drive and all my photos are backed up.

For first-time use, I need to click on [Settings] → [Auto Backup] and choose Standard size in [Backup Storage] → [Photo size] for unlimited storage.In some version, it’s called High quality in [Upload size].

Because I have unlimited mobile data plan, I also choose Over Wi-Fi or mobile network in both [Backup Settings] → [Back up photos] and [Back up videos] to upload.

My Sony Xperia C3 comes with Google+ Photos which has been Shut Down already. Please install the new Photos to use all features.

Instagram

Instagram

Shoot and share on both Instagram and Facebook immediately. Build-in filters helps to improve color tones.

The only missing is that it cannot utilize the camera button on C3.

SMS Backup+

Jan Berkel

To backup and restore SMS and call log.

It is very useful before resetting or transferring SMS onto another Android mobile. You need to connect it to your Google Account before backup. It will backup and restore from Call log and SMS labels in your Gmail.

Yahoo Mail

Yahoo

I have tried to use the build-in mail app as a client to Yahoo, but it mix spam with others. Seems better to use Yahoo Mail to save time.

Evernote

Evernote Corporation

On desktop systems, I use it for clipping web pages and keeping notes. Evernote helps to sync between mobile and desktop. It supports simple formatting to highlight

I have link it to Google Smart Lock and use Authy to pass the 2-factor authentication for safety.

Google Keep

Google Inc.

A neat tool to take text notes but becomes difficult to manage when you have many. Therefore, I will move those worth to keep to OneNote and keep frequently used in Keep.

OneNote

Microsoft Corporation

Rich text formatting and table support but with poor web clipping plugins for browsers. I also worry if it will become a resource monster in the future like others from Microsoft.

Audio Recorder

Sony Mobile Communications

Voice recording for meeting and taking notes quickly with many configurable options.

Select Device memory public in [Settings] → [File storage] if you want files playable by other apps.

台灣之星

台灣之星

Check my data usage and call cost from telephone company.

Instant Heart Rate

Azumio Inc.

Use primary camera and flash to check your heart rate. Easy to use and keep track of my health condition.

WhatsApp Messenger

WhatsApp Inc.

Keep in touch with friends not in Taiwan.

When reinstalling, enter your mobile and it will send you a SMS for automatically verification. After being verified, you may restore contact and messages from cloud.

File Commander – File Manager

MobiSystems

It comes as a pre-installed app with my C3. Don’t disable it or you won’t be able to manage files stored in internal memory.

Favorite Apps for Work Only

LINE

LINE Corporation

Most Taiwanese use it to message local people. People like it because they can track whether or not and when you have read it. Government officers and businessmen also use it on sensitive information and there is no sign to change.

Google Drive

Google Inc.

I use it to backup and sync personal documents and files on different devices and systems.

Favorite Apps for Traveling

Google Sheets

Google Inc.

Keep track of my traveling expanse on my mobile or tablet.

Tokyo Subway Navigation

東京地下鉄株式会社

Guide you to travel with Tokyo Metro in Tokyo. There are still other subway systems but this is my primary.

台灣高鐵T Express手機快速訂票通關服務

台灣高速鐵路股份有限公司

Primary checking timetable for Taiwan High Speed Rail. It could be used as an e-ticket, too.

台中搭公車(無廣告)

Taichung City Man

Checking bus timetable in Taichung. Be careful! The bus tracking feature is not dependable. Huge difference.

Apps comes with Sony C3 to Keep

Hangouts

Google Inc.

After disabling it, I encounter several warning and crash messages. Just leave it there.

Sketch

Sony Mobile Communications

It’s a draw and paint app. Although I don’t need it now, I might want to play with it someday. Who knows?

Smart Connect

Sony Mobile Communications

To help to connect to other device or accessories.

Album

Sony Mobile Communications

It may display only video and photos stored in device unless you connect to you FacebookPicasa, and Flickr. There is also a Photos and videos  widget which you may drag to Android desktop. Browsing photos by swiping on widget without launching this app.

Only installable on Sony Mobile.

Music

Sony Mobile Communications

Play music files stored in device in the background even the screen is off. There is also a Music widget which you may drag to Android desktop. Play music without launching this app.

Only installable on Sony Mobile.

Xperia Keyboard

Sony Mobile Communications

Configurable in [Settings] → [Language & input]. There are Chinese keyboard Xperia Chinese keyboard and International keyboard Xperia keyboard available to choose in Current Keyboard.

I always set to Traditional Chinese input in Chinese mode, enable Next word prediction, Wi-Fi and mobile data in Cloud prediction, and select all Fuzzy Pinyin in Chinese text input settings.

In Xperia keyboard,I choose Dark Keyboard skins and enable Backup and sync to Signed in with Google in Use my writing style.

Only installable on Sony Mobile.

Timeshift burst

Sony Mobile Communications

A plug-in only for the build-in Sony Mobile Camera app which is not downloadable in Google Play. It may capture 31 to 61 frames within 2 seconds depends on your hardware.

Only installable on Sony Mobile.

AR effect

Sony Mobile Communications

A plug-in only for the build-in Sony Mobile Camera app which is not downloadable in Google Play. It may add extra pictures to your photos. Just for fun.

Only installable on Sony Mobile.

Pass

Sony Mobile Communications

It is the e-ticket for Lounge. Useless and unable to be disabled or uninstalled.

Favorite but Gives Up

QuickPic Gallery

Cheetah Mobile Cloud (NYSE:CMCM)

It’s useful if you need to view pictures which is saved on local storage. But since it has been owner by Cheetah Mobile, I stop using this app.

ES File Explorer File Manager

ES Global

If your device is rooted and enable Root Explorer, you may dig into system files with this app.

But as the report accurie.me: How To Find Spyware On Your Android Device mentions that it also provides an unknown connection to China, I decide to drop it on my list.

Apps comes with Sony C3 needs to be Disabled or Uninstalled

Facebook

Facebook

It takes up too much RAM, slow-down everything, and need an extra Messenger app just for text. I disabled it and use Chrome Browser to access Facebook Mobile Site instead.

To create a shortcut on Android desktop, enter the URL in Chrome and select Add to homescreen from menu.

Books

Google Inc.

I don’t like to read books on small screen.

Games

Google Inc.

Not really interested.

Movies

Google Inc.

I don’t like to watch movies on small screen. I know I may project it onto big screen but why bother?

Google+

Google Inc.

Useless. I don’t check it frequently.

Music Go!

WALKGAME CORPORATION

An online music app/portal which I don’t need at all. Just uninstall the Music Go! app.

Google Talkback

Google Inc.

Design for the blinds or vision-impaired users to use Android.

News Suite(Formerly Socialife)

Sony Corporation

A news app which I don’t need at all. Just disable the Sociallife app.

TV Go!

WALKGAME CORPORATION

An online video app/portal which I don’t need at all. Just uninstall the TVGO app.

Xperia Lounge (entertainment)

Sony Mobile Communications

An portal app only for entertainment which I don’t need at all. Just disable the Xperia Lounge app.

生活行

Cyberon Corp.

A life information portal which I don’t need at all. Just uninstall the 生活行 app.

Special Configurations for Sony C3

It is a fine mobile comes with Qualcomm S400 MSM8926 1.2GHz and 5.5″ 720 x 1280 IPS TFT screen. I love the big screen. Because it just has 1Gb RAM and 8GB internal storage, I have to manage apps carefully to save memory, CPU power, and storage.

I also made following changes:

Stop the Click Sound and Vibration

Disable Touch sounds and Vibrate on touch in [Settings] → [Sound & notification] → [Other sounds].

Enlarge Display Fonts

Enable Large text in [Settings] → [Accessibility] or select Extra large in [Settings] → [Display] → [Font size].

For web sites, you need to change Text scaling to at least 120% and enable Force enable zoom in [Settings] → [Accessibility] in Chrome.

Make the Clock Easier to Read

Select Digital clock in [Settings] → [Personalization] → [Clocks].

Use All Black as Background

I have create a black 1280x720dpi picture and download to my mobile. Open with Album and click on command [Use as] Wallpaper.

Special Configuration for Acer Iconia B1-A71

I have a special feeling about it because it’s my first tablet and helps me a lot during my travel in Kyoto even It is slow and with very limited RAM. Updates slows down everything therefore I have to disable them to make it more responsive.

Now I only use Maps and YouTube. They are still quite useful to me.

Stop Auto-update in Google Play

Select Do not auto-update apps in [Settings] → [General] → [Auto-update apps]

Reference

  1. accurie.me: How To Find Spyware On Your Android Device
  2. Acer: Iconia B1-A71
  3. Android
  4. Chrome
  5. Facebook
  6. Facebook: Help Center: Facebook Mobile Site (m.facebook.com)
  7. Firefox
  8. Flickr
  9. Google: My Account
  10. Google Drive
  11. Google Gmail
  12. Google Play
  13. Google Play: Album
  14. Google Play: AR effect
  15. Google Play: Audio Recorder
  16. Google Play: Authy 2-Factor Authentication
  17. Google Play: Books
  18. Google Play: Chrome Browser – Google
  19. Google Play: ES File Explorer File Manager
  20. Google Play: Evernote
  21. Google Play: Facebook
  22. Google Play: File Commander – File Manager
  23. Google Play: Games
  24. Google Play: Gmail
  25. Google Play: Google+
  26. Google Play: Google Drive
  27. Google Play: Google Keep
  28. Google Play: Google Photos
  29. Google Play: Google Sheets
  30. Google Play: Google Street View
  31. Google Play: Google Talkback
  32. Google Play: Hangouts
  33. Google Play: Instant Heart Rate
  34. Google Play: Instagram
  35. Google Play: LINE: Free Calls & Messages
  36. Google Play: Maps
  37. Google Play: Messenger
  38. Google Play: Movies
  39. Google Play: Music
  40. Google Play: Music Go!
  41. Google Play: News Suite(Formerly Socialife)
  42. Google Play: OneNote
  43. Google Play: Pass
  44. Google Play: Pocket
  45. Google Play: QuickPic Gallery
  46. Google Play: Sketch
  47. Google Play: Smart Connect
  48. Google Play: SMS Backup+
  49. Google Play: Timeshift burst
  50. Google Play: Tokyo Subway Navigation
  51. Google Play: TV Go!
  52. Google Play: Yahoo Mail
  53. Google Play: WhatsApp Messenger
  54. Google Play: Whoscall – Caller ID & Block
  55. Google Play: Xperia Keyboard
  56. Google Play: Xperia Lounge (entertainment)
  57. Google Play: YouTube
  58. Google Play: 生活行(台鐵公車發票樂透股市電影國道星座天氣)VoiceGO
  59. Google Play: 台灣之星
  60. Google Play: 台灣高鐵T Express手機快速訂票通關服務
  61. Google Play: 台中搭公車(無廣告)
  62. Google Smart Lock
  63. Instagram
  64. Microsoft
  65. Picasa
  66. Pocket
  67. Sony Mobile Communication
  68. Sony: Xperia C3
  69. Taiwan High Speed Rail
  70. Tech Crunch: Google+ Photos Is Shutting Down On August 1st
  71. Tokyo Metro

Filed under: How-To Tagged: Android

Reinstall Synology DSM

$
0
0

Recently, I boot my Synology DS214SE with error message about my hard drive. After re-initializing and re-installing packages, it still doesn’t work properly. Therefore, I decide to re-install DSM.

How to reset your Synology NAS has very detail, step-by-step, instructions.

  1. Use a pin to push reset button until the first beep.
  2. Push again beep within 10 seconds. It will beep 3 times and restart.
  3. After restart, you will be asked to re-install your DSM as below.
DSM Re-install Screen
DSM Re-install Screen

If you want to install a different version, check Downgrade Synology DSM.

Reference

  1. Downgrade Synology DSM
  2. Synology: DS214SE
  3. Synology: DSM
  4. Synology: How to reset your Synology NAS

Filed under: How-To Tagged: NAS, Synology

How to use root in Synology DSM

$
0
0

You may use “ssh admin@[NAS IP]” to login DSM but not root. They are different user. Most configuration need root access to edit. You have to first ssh as admin then use “sudo su” to root.

admin@DS214SE:/$ sudo su -

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password:
root@DS214SE:~#

Login as root

After switching to root, use “synouser –setpw root [new password for root]” to give root a different password for security concern. Next time, you may login as root with your new password.

root@DS214SE:~# synouser --setpw root 1$9%A
root@DS214SE:~# exit
logout
admin@DS214SE:/$ sudo su -
root@DS214SE:~# exit
logout
admin@DS214SE:/$ exit
logout
Connection to 192.168.1.142 closed.
Amigos-Mac-mini:.ssh Amigo$ ssh root@192.168.1.142
root@192.168.1.142's password:
root@DS214SE:~#

How do i get root access again, step by step? on Synology Community Forum has a detail discussion on this topic.

Reference

  1. Synology: Community Forum: How do i get root access again, step by step?
  2. Synology: DSM
  3. Wiki: Secure Shell
  4. Wiki: su (Unix)
  5. Wiki: sudo

Filed under: How-To Tagged: NAS, Synology

How to Remove Unwanted SSH Keys

$
0
0

After re-install my Synology DSM, I cannot use ssh to login DSM. It prompts for following warning message:

Last login: Thu Jun 16 10:11:39 on console
Amigos-Mac-mini:~ Amigo$ ssh admin@192.168.1.142
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:cq9E1KQyJ5Nq3ktPpZ/K1GFydg741lEZKQ3DJxF2DJA.
Please contact your system administrator.
Add correct host key in /Users/Amigo/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/Amigo/.ssh/known_hosts:1
ECDSA host key for 192.168.1.142 has changed and you have requested strict checking.
Host key verification failed.
Amigos-Mac-mini:~ Amigo$

In short, I have to remove my previous key. It’s saved in different location with different tools.

Terminal on OSX

With Terminal on OS X El Capitan, the key is stored in $HOME/.ssh/known_hosts. You have to remove the key started with previous IP and save the file. Here I have to remove the key with 192.168.1.142

192.168.1.142 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoY... (The rest has been removed due to security concern)

Delete SSH Keys Using Terminal Command Line on nixCraft provides different solution. Maybe it is different version of OS X.

As you may see below, I may use ssh to login DSM now. It will prompt for saving key at the first time.

Amigos-Mac-mini:.ssh Amigo$ ssh admin@192.168.1.142
The authenticity of host '192.168.1.142 (192.168.1.142)' can't be established.
ECDSA key fingerprint is SHA256:cq9E... (The rest has been removed due to security concern)
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.142' (ECDSA) to the list of known hosts.
admin@192.168.1.142's password:
Could not chdir to home directory /var/services/homes/admin: No such file or directory
admin@DS214SE:/$

Reference

  1. nixCraft: Mac OS X: Delete SSH Keys Using Terminal Command Line
  2. Reinstall Synology DSM
  3. Synology: DSM
  4. Wiki: OS X
  5. Wiki: OS X El Capitan
  6. Wiki: Secure Shell
  7. Wiki: Terminal (OS X)

Filed under: How-To Tagged: Linux, NAS

Change Default Password for MySQL/MariaDB and phpMyAdmin on NAS

$
0
0

I always need to look for the default password for MariaDB and phpMyAdmin in my NAS. There is no hint at all. Some even change the rules after upgrade. Therefore, I write a note here and share to save your time. This page would be continuously maintained.

Asustor

You don’t need to install MariaDB which is already build-in in ADM. Open ServicesMariaDB Server, select “Enable MariaDB server”, and click “Apply” to launch.

If your application and MariaDB run on the same machine, there is no need to select “Enable MariaDB remote access”. More detail, please read Using NAS as your Database Server.

About phpMyAdmin, you need to register an Asustor ID in SettingsRegistration. Then to install it from App Central first. In 2016/6/19, the phpMyAdmin is 4.0.1.

Default

ADM 2.6.1 R5H1
MySQL root/admin
phpMyAdmin root/admin

Reset MySQL root Password in ADM 2.6.1

Reset MySQL in ADM
Reset MySQL in ADM

Open Services → MariaDB Server, click “Reset Password” then “OK” to confirm. It will remind you the password for MySQL has been changed into default “admin”.

Change Password for MariaDB and phpMyAdmin in ADM 2.6.1

Edit user privileges in phpMyAdmin 4.0.1
Edit user privileges in phpMyAdmin 4.0.1

There is no build-in tools to customize MariaDB‘s password. You will need phpMyAdmin. Login and click on “Users” tab. Click the “Edit privileges” which is next to root user at localhost.

Change user password in phpMyAdmin 4.0.1
Change user password in phpMyAdmin 4.0.1

Scroll down until “Change password” section, provide your new password in these fields. Then press “Go” which is on lower right in the same section to execute.

Once MariaDB‘s password has been changed, phpMyAdmin is changed to the same new password.

If you want change the authentication from cookie to http or config, you may copy from config.sample.inc.php to config.inc.php which is located in /share/Web/phpMyAdmin. Then edit it manually. Auth types and Cookie authentication options provides detail description.

QNAP

You don’t need to install MySQL which is already build-in in QTS. Open Control PanelApplicationsSQL server, select “Enable SQL server”, and click “Apply” to launch.

If your application and MySQL run on the same machine, there is no need to select “Enable TCP/IP networking”. More detail, please read Using NAS as your Database Server.

About phpMyAdmin, you need to install it from App Center first. In 2016/6/19, the phpMyAdmin is 4.2.3.

Default

QTS 4.2
MySQL root/admin
phpMyAdmin root/admin

Reset MySQL root Password in QTS 4.2

Reset MySQL in QTS
Reset MySQL in QTS

Open Control PanelApplicationsSQL server, click “Reset Root Password” then “Apply” to confirm. It will remind you the password for MySQL has been changed into default “admin”.

Change Password for MySQL and phpMyAdmin in QTS 4.2

Edit user privileges in phpMyAdmin 4.2.3
Edit user privileges in phpMyAdmin 4.2.3

There is no build-in tools to customize MySQL‘s password. You will need phpMyAdmin. Login and click on “Users” tab. Click the “Edit privileges” which is next to root user at localhost.

Change user password in phpMyAdmin 4.2.3
Change user password in phpMyAdmin 4.2.3

Scroll down until “Change password” section, provide your new password in these fields. Then press “Go” which is on lower right in the same section to execute.

Once MySQL‘s password has been changed, phpMyAdmin is changed to the same new password.

If you want change the authentication from cookie to http or config, you may manually edit config.inc.php which is located in /share/HDA_DATA/.qpkg/phpMyAdmin/phpMyAdmin or /share/Web/phpMyAdminAuth types and Cookie authentication options provides detail description.

Synology

You have to install both MariaDB and phpMyAdmin from Package Center. In 2016/6/19, the phpMyAdmin is 4.6.2.

Default

DSM 5.2 DSM 6.0
MySQL root/[empty]
* Password is empty aka null string.
root/[admin password]
* Same as admin
phpMyAdmin root/[empty]
* Password is empty aka null string.
root/[admin password]
* Same as admin

Reset MariaDB root Password in DSM 6.0

MariaDB Dialog in DSM
MariaDB Dialog in DSM 6.0

Click on MariaDB icon to launch above configuration dialog. Then click “Change MariaDB password” to pop-up “Log in to MariaDB” dialog.

For password reset, ignore the “MariaDB password” field and click “Reset MariaDB Password”. It will be rest to empty aka null string.

Change Password for MySQL and phpMyAdmin in DSM 6.0

** Use build-in tool to customize password for both. phpMyAdmin will destroy DSM‘s  mechanism. **

Click on MariaDB icon to launch above configuration dialog. Then click “Change MariaDB password” to pop-up “Log in to MariaDB” dialog.

For password customization, provide your password in “MariaDB password” and click “OK”. A new dialog will pop-up for new password for root.

Once MariaDB‘s password has been changed, phpMyAdmin is changed to the same new password.

Reference

  1. Asustor
  2. Asustor ADM
  3. Asustor: Support Center: How do I configure MySQL? What is the default password for MySQL? If I forget admin password for MySQL, how should I do?
  4. Asustor: Support Center: What is the default username and password for phpMyAdmin?
  5. Julien Nicole Blog: Synology : Installing phpMyAdmin
  6. Julien Nicole Blog: Synology : Installing MariaDB
  7. MariaDB
  8. MySQL
  9. phpMyAdmin
  10. phpMyAdmin: Docs: Cookie authentication options
  11. phpMyAdmin: Wiki: Auth types
  12. QNAP: How do I reset or change a root password for MySQL?
  13. QNAP: QTS
  14. Synology: DSM
  15. Using NAS as your Database Server

Filed under: How-To, Information Tagged: Asustor, MariaDB, MySQL, NAS, password, phpMyAdmin, QNAP, Synology

Form Field Validation in Visualforce Pages with Twitter Bootstrap

$
0
0

I have successfully enabled validation for <input> but fail for <select> using HTML attribute on a Visualforce Page on Salesforce Sites at here. Maybe I need to use JavaScript for <select> validation.

My Twitter Bootstrap is 3.3.6 and jQuery is 2.2.4. I also disabled the build-in CSS in Visualforce but there are still some conflicts. I will write a more detail post about this topic.

<apex:page standardStylesheets="false" showHeader="false" sidebar="false">
<link href="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/css/bootstrap.min.css')}" rel="stylesheet" media="screen"/>
<link href="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/css/bootstrap-theme.min.css')}" rel="stylesheet"/>
<apex:includeScript value="{!URLFOR($Resource.jquery, '')}"/>
<apex:includeScript value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/js/bootstrap.min.js')}"/>

<input> Validation

HTML5 Form Validation Examples has a full description on validation related properties of <input>. I use required and type for easy validation.

You may also control the appearance when there is an error using validation states.

Here are some partial code:

<input class="form-control" id="last_name" required="true" maxlength="40" name="last_name" size="20" type="text" placeholder="請問貴姓?"></input>
<input class="form-control" id="email" required="true" maxlength="80" name="email" size="20" type="email" placeholder="請問分析報告要寄到何處?"></input>

<select> Validation

required doesn’t work here though it has been supported according to w3cschool.com. Remember to let the description item without value property in <option> according to Can I apply the required attribute to <select> fields in HTML5?

Here are some partial code:

<select id="00NG000000FVXly" name="00NG000000FVXly" required="true" title="Q1. How do you manage marketing/sales?">
    <option>-- 請從下列選項中擇一 --</option>
    <option value="a. Everybody works independently.">a. 他們各自獨立完成工作</option>
    <option value="b. Review reports and coach.">b. 我會訓練督導他們</option>
    <option value="c. They work as a team.">c. 他們會團隊合作</option>
</select>

Reference

  1. CRM 成熟度檢測
  2. jQuery
  3. Salesforce
  4. Salesforce Developers: An Introduction to Visualforce
  5. Salesforce Developers: Force.com Sites
  6. StackOverflow: Can I apply the required attribute to <select> fields in HTML5?
  7. StackOverflow: Defining a `required` field in Bootstrap
  8. The Art of Web: HTML: HTML5 Form Validation Examples
  9. Twitter Bootstrap
  10. Twitter Bootstrap Forms Validation states
  11. w3schools.com: HTML <select> required Attribute
  12. Wiki: Cascading Style Sheets
  13. Wiki: JavaScript

Filed under: How-To Tagged: Bootstrap, CSS, html, Salesforce
Viewing all 122 articles
Browse latest View live