Category Archives: Hardware

Add Cloudflare Dynamic DNS Support on Unifi USG

It seems Unifi USG still doesn’t support Cloudflare Dynamic DNS, even though lots of users voted for this feature.
In the past I’m using dnsomatic to update cloudflare DDNS, but dnsomatic is not working anymore. So I spent sometime to find a solution.

1. Create a config.gateway.json and put it on unifi controller. Then provision USG.
If you don’t know how to create the file, please refer to https://help.ubnt.com/hc/en-us/articles/215458888-UniFi-Advanced-USG-Configuration

2. Upgrade ddclient on USG to version 3.9.0.
Save below script as a bash file:

And chomod +x the file and run it with root. Then the script will install libdata-validate-ip-perl as well as ddclient 3.9.0.

3. As we are using standard ddclient, so we have to create a copy of the old ddclient configuration file.

4. Then restart ddclient.

5. Done. From system log, you should be able to see ddclient update cloudflare DDNS now.

fix new iphone can’t sync with outlook.com issue

It seems Microsoft is encourage people to use the app outlook. The app is good, but I still need to sync the contact between my iphone and outlook to get my contacts number.
Spent some time to check this issue, here is the fix:

Can’t create tasks in Synology Active Backup for business

My Synology NAS DS1813+ is running for about 6 years, all good. I used the package “Active backup for business” to backup my AWS server data. Just config rsync and then all good to go.

The backup job was running fine for the past a few years. But I noticed that the task stopped since Christmas. When I tried to re-create the task, I got below errors:

And I also found below error message in /var/log/messages:

Tried to reinstall active backup, still the same.
After investigation, I found that this issue was caused by permission structure of my NAS share folder.
My NAS was coming with DSM 4, and after several major version upgrade, now it’s running DSM 6.2. It seems in the past DSM was using UNIX-like ACL and then from DSM 5.* it’s moved to Windows Like ACLs.
So I need to upgrade my NAS to convert share folder permission to Windows ACL:

After convert, Active backup starts working again.

Fix”Video Schedule Internal Error”blue screen problem

I just set up a new Z170/6700K machine which is running windows 10. But I always got the blue screen with error message Video_Schedule_Internal_Error.

bluescreen

After investigation, I found that this problem was caused by the latest Intel Video card driver win64_15407.4279.
The workaround is to change the shared memory settings for the Intel Video card. You need to assign 128M memory for per 8G memory. It means:

If you have 8G memory, assign 128M memory for the Video card;
If you have 16G memory, assign 256M memory for the Video card;
If you have 32G memory, assign 512M memory for the Video card;

Crossflashing an IBM M1115 RAID controller to LSI firmware

1. Download the flash package, and unzip it to folder SAS
http://forums.laptopvideo2go.com/topic/29059-lsi-92xx-firmware-files/

2. Download latest firmware from LSI website.

http://www.lsi.com/products/host-bus-adapters/pages/lsi-sas-9211-8i.aspx#tab/tab4

At this time, I’m using 9211-8i_Package_P18_IR_IT_Firmware_BIOS_for_MSDOS_Windows.

3. Unzip the firmware package, and copy below files to folder SAS created in step 1
2118ir.bin from FirmwareHBA_9211_8i_IR
2118it.bin from FirmwareHBA_9211_8i_IT
mptsas2.rom from sasbios_rel
sas2flsh.exe from sas2flash_dos_rel

4. Create a DOS bootable USB drives, you can download a tool from below link:
http://rufus.akeo.ie/

5. Turn machine off, and grab the SAS address of the card, it’s on the back on a green sticker (ie 500605B0xxxxxxxx)

6. Use the USB drive to boot the computer, and flash the firmware

7. You may get an error message “ERROR: Failed to initialize PAL. Exiting program.” when you try to flash the card, it means that you’re unable to do this from DOS. You have to get a UEFI shell (https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi worked for me on my 64 bit CPU) and put it on your usb stick. Then you have to boot into UEFI shell, and use below command

光驱消失时的解决方法

症状:
我的电脑中光驱消失,设备管理器中有光驱,但是前面有叹号。

解决方法:
1.先卸载光驱
2.进入注册表("运行" REGEDIT). 找到下列分支HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlClass{4D36E965-E325-11CE-BFC1-08002BE10318}
2、应该能看到有以下主键:"UPPER FILTER" 和 "LOWER FILTER"。 把值都删除。
3、重启系统后,光驱能正常工作。