Posts

Showing posts from May, 2019

How to install NoIP DDNS client on Rasberry Pi

This article is for anyone who needs to install https://www.noip.com Dynamic DNS Update Client on Raspberry Pi. 1. Connect to Raspbian using PuTTY or other SSH client (i.e. ConnectBot on Android) 2. Download and install the client as follows: cd /usr/local/src sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz sudo tar xzf noip-duc-linux.tar.gz cd noip-2.1.9-1 sudo make (if you encounter error make not found, try installing it with  sudo apt-get install build-essential  then retry sudo make ) sudo make install 3. Configure the client as follows: sudo /usr/local/bin/ noip2 -C 4. Start the client manually as follows: sudo /usr/local/bin/ noip2 5. If all successful, the IP address shown on https://www.google.com/search?q= myipaddress should match the IP address updated on https://www.noip.com 6. To automatically start the client on Raspbian reboot: 6.1. Edit rc.local file: sudo nano /etc/rc.local 6.2. Type the followings before exit

How to install OpenVPN server on Raspberry Pi

Image
Download Raspberry Pi Imager . Install Raspberry Pi OS Lite on 16GB microSD card. Remember to click the Setting icon to enter your Wifi SSID and password as well as enabling SSH and default username: pi and password: raspberry   Insert the microSD card onto the Raspberry Pi  and power it up via USB power supply. Get the IP address of the Raspberry Pi (via HDMI or wifi-router web-console) then configure port forwarding on the router WAN interface for  TCP 443  to the IP address of the Raspberry Pi. Download PuTTY and run it to connect to Raspbian via SSH ( Host Name: IP Address of the Raspberry Pi then click Open  and if prompted by Putty alert, click Yes ) then  login as: pi and password: raspberry . To change default password and timezone use the following command: sudo raspi-config Run  curl -L https://install.pivpn.io | bash  and follow the wizard to install OpenVPN server. When prompted: Protocol , select TCP  443 then Ok Custom search domain , select  No DNS provide

PowerShell to backup SPWeb and its children

Problem In line with previous article I wrote about restoring SPWeb backup using PowerShell script, I've written another one to perform backup of SPWeb and children. Solution # Created by Ben - 7 March 2019 # PowerShell script to export SPWeb and nested SPWebs ($webUrlPattern) to $exportToFolder # -IncludeVersions 4 = All versions for files and list items # 3 = Last major and last minor version for files and list items # 2 = The current version, either the last major version or the last minor version # 1 = Last major version for files and list items (default) # Supported by SharePoint 2010, 2013, 2016, 2019 # Note: this script can be adjusted to support SPSite or SPList Start-Transcript clear $startTime = ( Get-Date ) $exportToFolder = 'Exported' + $startTime .ToString("yyyyMMdd-HHmmss") $webUrl = "http://your-site-url/cases" $webUrlPattern = $webUrl +'/..../' $currentPs1F