Posts

Showing posts from 2017

Using Windscribe VPN service provide with Kodi

Instruction 1) Download VPN Manager. Download and save the repository here : Repository Install it via Systems/Addons/Install from zip (you can put the repository zip on a network attached drive or USB key) Then install VPN Manager via Systems/Addons/Install from repository/Zomboided Addon repository Reference: https://github.com/Zomboided/service.vpn.manager/wiki/01.-Installation 2) Install additional prerequisites Hit escape on your keyboard to back out to the main Kodi screen Scroll over to PROGRAMS -> VPN MANAGER FOR OPENVPN Click on ADD-ON SETTINGS Now comes the fun part! Change the VPN Provider to the VPN you use (I use Private Internet Access) and enter in your Username and Password. Don't change anything else. Scroll to the top and move right until you get to DEBUG. Click ENABLE DEBUG FOR JUST VPN MANAGER Make sure USE SUDO WITH OPENVPN AND KILLALL is set to 'default' or 'always' Click 'ALWAYS USE KODI LOG DIRECTORY FOR OPENVPN LOG

MTU

There is kind of a work around to detect MTU problems with TCP using ICMP as a base: http://en.wikipedia.org/wiki/Path_MTU_Discovery PMTU. The caveats are: it doesn't work with UDP, and some scenarios with ICMP being blocked or old operating systems, and some interoperability/network topology situation The problem comes when you want to send more data over this connection - lets say you wanted to send 3000 bytes: your computer would split this up based on your MTU - in this case, two packets of 1500 bytes each, and send them to your ADSL modem which would then split them up so that it can fulfill its MTU. Now your 3000 byte data has been fragmented into four packets: two with a payload of 1492 bytes and two with a payload of 8 bytes. This is obviously inefficient, we really only need three packets to send this data. Had your computer been configured with the correct MTU for the network, it would have sent this as three packets in the first place (two 1492 byte

VPN server setup

References: https://askubuntu.com/questions/119534/easiest-way-to-setup-ubuntu-as-a-vpn-server https://pimylifeup.com/raspberry-pi-vpn-server/ OpenVPN https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 In server conf, use dev tap  and server-bridge 192.168.0.104 255.255.255.0 192.168.0.201 192.168.0.210 if you are doing ethernet-bridging, use dev tun, server 10.8.0.0 255.255.255.0 for  IP tunneling In client conf, use dev tap if you are doing ethernet-bridging, use dev tun for Port forwarding from home router to a server in your private network NoIP for dynamic DNS. Integration with common switches Set up proxy server with squid Ubuntu uses UFW to manage the firewall https://help.ubuntu.com/community/UFW

Building a Windows XP machine after its EOL

Reimage the machine with a Windows XP CD. Install Service Pack 2 and then Service Pack 3. If you wish to change the system language, it is a good chance to do it. See below: http://tylau0.blogspot.com/2017/05/download-location-of-essential-windows.html http://tylau0.blogspot.com/2017/05/change-windows-xp-language.html To maintain updates from Microsoft, you may change the system to POSReady2009. See below: http://tylau0.blogspot.com/2017/05/turn-windows-xp-to-windows-posready2009.html If the update KB2686509 fails to get installed, download the patch corresponding to Windows XP from the following site and install it manually. http://www.catalog.update.microsoft.com/Search.aspx?q=KB2686509

Download location of Essential Windows XP updates after EOL

For English version of SP2 and SP3, try out http://www.catalog.update.microsoft.com. Look up "Windows XP Service Pack 2" and "Windows XP Service Park 3". If you need IE8 for Windows XP, try out the following: http://go.microsoft.com/fwlink/?linkid=261544 For Traditional Chinese SP2 and SP3, look at the following locations: http://ftp.dyu.edu.tw/pub/ WindowsXP-KB835935-SP2-CHT. exe.html http://ftp.dyu.edu.tw/pub/ WindowsXP-KB936929-SP3-x86- CHT.exe.html

Change Windows XP language

From the Start Menu, select Run. Type regedit.exe and then Enter. Locate the branch HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Control/NIs/Language. Change the value of the field "Default" and "InstallLanguage" to the number corresponding to the language you wish it to be. 0436 = “af;Afrikaans” 041C = “sq;Albanian” 0001 = “ar;Arabic” 0401 = “ar-sa;Arabic (Saudi Arabia)” 0801 = “ar-iq;Arabic (Iraq)” 0C01 = “ar-eg;Arabic (Egypt)” 1001 = “ar-ly;Arabic (Libya)” 1401 = “ar-dz;Arabic (Algeria)” 1801 = “ar-ma;Arabic (Morocco)” 1C01 = “ar-tn;Arabic (Tunisia)” 2001 = “ar-om;Arabic (Oman)” 2401 = “ar-ye;Arabic (Yemen)” 2801 = “ar-sy;Arabic (Syria)” 2C01 = “ar-jo;Arabic (Jordan)” 3001 = “ar-lb;Arabic (Lebanon)” 3401 = “ar-kw;Arabic (Kuwait)” 3801 = “ar-ae;Arabic (you.A.E.)” 3C01 = “ar-bh;Arabic (Bahrain)” 4001 = “ar-qa;Arabic (Qatar)” 042D = “eu;Basque” 0402 = “bg;Bulgarian” 0423 = “be;Belarusian” 0403 = “ca;Catalan” 0004 = “zh;Chinese” 0404 = “zh-tw

Turn Windows XP to Windows POSReady2009

Log in your computer with an account with admin right. Create a file called conversion.reg with the following content in your local computer. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WindowsEmbedded\ProductVersion] "FeaturePackVersion"="SP3" [HKEY_LOCAL_MACHINE\SYSTEM\WPA\WEPOS] "Installed"=dword:00000000 [HKEY_LOCAL_MACHINE\SYSTEM\WPA\WES] "Installed"=dword:00000000 [HKEY_LOCAL_MACHINE\SYSTEM\WPA\PosReady] "Installed"=dword:00000001 Then double click on the file to apply the registry change. Reboot your machine. Soon your Windows XP machine will receive updates. Reference

Remove unwanted entry in UEFI BIOS boot menu

If your original OS is installed in UEFI mode, the installation of some other OS (e.g Ubuntu) in UEFI mode later on introduces some artifacts to the EFI partition the hard drive, and due to them, in the UEFI BIOS boot menu you see the respective boot menu entry. To remove the entry completely, you need to remove the artifacts to the EFI partition, and then move the respective boot entry. Delete EFI/distro of the EFI partition Linux Locate your EFI partition with sudo fdisk -l and find out the partition with EFI Partition under the Type column. Suppose the EFI partition is /dev/sda2 , do the following to mount it on an empty folder. mkdir /mnt/efipart mount /dev/sda2 /mnt/efipart Next find the directory corresponding to the OS that you have installed. It is mostly under EFI/ distro_name Remove that directory and its contents by sudo rm -r EFI/distro_name . Windows Start cmd.exe as administrator. Run diskpart in it. Microsoft Windows [Version 10.0.14393] (c) 20

My Ubuntu 16.04 install essential

From Ubuntu software center, install synaptic. Then from synaptic, install the following ubuntu-mate-desktop gnome-control-center gcin  From gnome-control-center, open language setting. From there, install Chinese language and set gcin as default input method

Network issue resources

ntpdate[24246]: no server suitable for synchronization found http://askubuntu.com/questions/429306/ntpdate-no-server-suitable-for-synchronization-found http://serverfault.com/questions/277375/ntpdate-d-server-dropped-strata-too-high Juniper specific issues With Juniper: https://kb.juniper.net/InfoCenter/index?page=content&id=KB15756&actp=search Set date/time in Juniper: http://www.juniper.net/documentation/en_US/junos/topics/task/operational/junos-time-date-setting.html NTP setup in Juniper: http://www.juniper.net/documentation/en_US/junos/topics/task/configuration/network-time-protocol-configuring.html NTP debugging with Juniper: https://kb.juniper.net/InfoCenter/index?page=content&id=KB15756&actp=search Juniper LAG creation error: xSTP configuration disallowed on interface http://www.juniperforum.com/index.php?topic=27731.0