Automated scripts for installing dedicated wptagent agents.
For the debian.sh script, environment variables control the options. For example:
WPT_SERVER="webpagetest.mycompany.com" \
WPT_LOCATION="Location Name" \
WPT_KEY="xxxSomeSecretKeyxxx" \
DISABLE_IPV6=y \
WPT_OPERA=y \
WPT_VIVALDI=y \
bash <(curl -s https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/debian.sh)These will prompt if not specified and not installing for cloud.
WPT_SERVER- WebPageTest server. i.e.WPT_SERVER="webpagetest.mycompany.com"WPT_LOCATION- Location ID for the agent. i.e.WPT_LOCATION="Location Name".WPT_KEY- API Key for the location.
WPT_CLOUD- blank (default) for no cloud,ec2orgce: get config dynamically from user data in Google or Amazon cloud.AGENT_MODE-desktop(default),iosorandroid.WPT_UPDATE_AGENT-y(default) orn: Automatically update the agent from GitHub’s release branch hourly and Lighthouse daily.WPT_BRANCH-release(default) : Specify GitHub branch to sync.
DISABLE_IPV6-yorn(default) : Disable IPv6 networking (recommended for systems without IPv6 connectivity).WPT_UPDATE_OS-y(default) orn: Automaticallyapt dist-upgradeall packages daily after reboot.WPT_UPDATE_OS_NOW-y(default) orn:apt dist-upgradeall packages as part of the initial agent setup.
WPT_UPDATE_BROWSERS-y(default) orn: Reinstall certificates for browser installers daily, so they can auto-update the browsers daily.WPT_CHROME-y(default) orn: Install Google Chrome (Stable, Beta, and Dev channels).WPT_FIREFOX-y(default) orn: Install Mozilla Firefox (Stable, ESR, and Nightly).WPT_EDGE-y(default) orn: Install Microsoft Edge (Dev).WPT_BRAVE-y(default) orn: Install The Brave Browser (Stable, Beta, and Dev channels).WPT_EPIPHANY-y(default) orn: Install Epiphany for WebKit testing (requires Ubuntu 20.04+).WPT_OPERA-yorn(default) : Install Opera (Stable, Beta, and Dev channels).WPT_VIVALDI-yorn(default) : Install Vivaldi.
WPT_INTERACTIVE-yorn(default) : Install in a shared OS environment.ywill expect to take over the whole machine, configure watchdog, cron, etc.ncan be used for development installs and will default to themasterbranch.
WPT_SERVER="webpagetest.mycompany.com" \
WPT_LOCATION="Location Name" \
WPT_KEY="xxxSomeSecretKeyxxx" \
DISABLE_IPV6=y \
WPT_OPERA=y \
WPT_VIVALDI=y \
bash <(curl -sL https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/debian.sh)Tested on 20.04 LTS.
bash <(curl -s https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/debian.sh)WPT_CLOUD=gce bash <(curl -s https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/debian.sh)WPT_CLOUD=ec2 bash <(curl -s https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/debian.sh)Requires editing ~/agent.sh after install to configure tethering and traffic shaping. Desktop testing works best with Raspbian Buster or later.
bash <(curl -s https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/debian.sh)Tested on MacOS 11 (x86 and ARM).
- Configure MacOS to log in automatically. (System Preferences→Users→Groups→Login Options)
- Turn off the screen saver, and configure power management to never put the display to sleep.
- Install Xcode manually from the app store. Launch it and accept the license.
- If running on an M1 device, install rosetta when prompted (after accepting the license).
- Run the agent install script from Terminal:
bash <(curl -s https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/macos.sh)- The install script should install all browsers and prompt for the necessary system permissions.
- Configure the agent and watchdog to start automatically at startup:
- Navigate to System Preferences→Users→Groups→Login Items
- Add
~/wptagent-install/macos/Agentand Watchdog
- Reboot.
Will not configure X, watchdog, cron, or a startup script. There will be a master branch checkout in ~/wptagent/ and a script to run the agent at ~/agent.sh.
WPT_INTERACTIVE=y bash <(curl -sL https://raw.githubusercontent.com/catchpoint/WebPageTest.agent-install/master/debian.sh)