- VirtualBox
- Vagrant
- Windows 8.1/Server 2008/Server 2012 ISO
- Create VM in VirtualBox manually and install OS
- Create
vagrantuser with passwordvagrant - Turn off firewall
- Disable 'Windows Search' Service (only if u don't need it, i don't need it)
| function RenameComputer($ComputerName) | |
| { | |
| $computer = Get-WmiObject -Class Win32_ComputerSystem | |
| $computer.rename("$ComputerName") | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname" | |
| New-PSDrive -name HKU -PSProvider "Registry" -Root "HKEY_USERS" | |
| #Gets the vagrant status in returns it as a PowerShell Object | |
| function Vagrant-Status | |
| { | |
| $output = vagrant status --machine-readable | Select-String -Pattern "state-human-short" -AllMatches | |
| $output = $output | ? { $_ } | sort -uniq | |
| $status = ConvertFrom-Csv $output -Header TimeStamp,Machine,StatusType,State | |
| return $status | |
| } |
Enable port forwarding on VirtualBox Machine from 2376 on host to 2376 on guest (Settings > Network > Adapter 1 NAT > Advanced > Port Forwarding), and then export the following in a shell. Docker Compose and other docker tools will work as expected.
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://localhost:2376"
For docker-machine users:
| #!/bin/bash | |
| PATH=/usr/bin:/sbin:/bin:/usr/sbin | |
| export PATH | |
| nohup java -jar /mnt/u02/home/username/selenium-server-standalone-2.41.0.jar -role hub -hubConfig /mnt/u02/home/username/hub_config.json > /mnt/u02/home/username/hub_log.log & |
| @echo off | |
| :REM This will install Selenium Server Node as a Windows Service | |
| set SERVICE_NAME=SeleniumServer | |
| set SERVER_VERSION=2.42.2 | |
| set JAVA=%ProgramFiles%\Java\jre7\bin\java.exe | |
| set NSSM=C:\selenium\nssm-2.16\win64\nssm.exe | |
| set SERVER_JAR=C:\selenium\selenium-server-standalone-2.42.2.jar | |
| set CONFIG=C:\selenium\node_config_windows.json |
| import code; code.interact(local=dict(globals(), **locals())) |
Instructions taken from https://forum.proxmox.com/threads/lxc-usb-passthrough-zwave-stick.30058/ and addtional information added for clarity.
root@proxmox01:~# lsusb
Bus 004 Device 005: ID 0658:0200 Sigma Designs, Inc.
Major Number is 4, Minor is 5 for me (Bus and Device). Yours will vary.
| Single: | |
| avconv -acodec libmp3lame -i test.m4b test.mp3 | |
| Batch: | |
| for f in *m4b; do avconv -i "$f" -acodec libmp3lame ${f%.m4b}.mp3"; done | |
| Single: | |
| ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 7 output.mp3 | |
| Batch: |
| FROM some-ubuntu-focal-based-image:latest | |
| USER root | |
| # === INSTALL JDK and Maven === | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| openjdk-11-jdk maven \ | |
| # Install utilities required for downloading browsers |