sudo apt-get install xserver-xorg-video-dummy
Create / Edit xorg.conf file Rename file if already exists for backup
| #!/bin/bash | |
| # | |
| # Compare two versions in bash script | |
| # Originally get from http://stackoverflow.com/a/4025065 | |
| # | |
| vercomp() { | |
| if [[ $1 == $2 ]]; then | |
| return 0 |
| --- | |
| version: '3' | |
| services: | |
| vaultwarden: | |
| image: vaultwarden/server:1.29.2 | |
| container_name: vaultwarden | |
| restart: always | |
| environment: | |
| WEBSOCKET_ENABLED: true # Enable WebSocket notifications. |
| [Unit] | |
| Description=Jenkins Slave | |
| Wants=network.target | |
| After=network.target | |
| [Service] | |
| ExecStart=/usr/bin/java -Xms512m -Xmx512m -jar /opt/jenkins/slave.jar -jnlpUrl http://${JENKINS_SERVER}/slave-agent.jnlp -secret ${SECRET} | |
| User=jenkins | |
| Restart=always | |
| RestartSec=10 |
| log_format custom '$remote_addr - $remote_user [$time_local] ' | |
| '"$request" $status $bytes_sent ' | |
| '"$http_referer" "$http_user_agent" ' | |
| '"$host" "$uri" "$args" "$sent_http_location" ' | |
| '"$proxy_host" "$upstream_addr" "$upstream_cache_status" ' | |
| '[$request_time] [$upstream_response_time]'; |
| #!/bin/bash | |
| # Taken from http://rustyautopsy.github.io/rabbitholes/2014/10/21/vmcreate/ | |
| # Original author: Travis Dolan | |
| DEFAULT_DISK_SIZE=32 | |
| DEFAULT_MEMORY=2048 | |
| DEFAULT_SOCKETS=1 | |
| DEFAULT_CORES=2 | |
| DEFAULT_ISO='ubuntu-14.04-server-amd64.iso' |
For running openvpn server (or client) in CT you need to create tun (tap?) device.
In lxc config of container add line above. In proxmox we can find configs in /etc/pve/local/lxc/
lxc.cgroup.devices.allow: c 10:200 rwm
Then [re]start container and create tun device inside it. You can login into container or use proxmox tool pct:
| [global] | |
| workgroup = WORKGROUP | |
| min protocol = SMB3_00 | |
| server string = %h server (Samba, Ubuntu) | |
| server role = standalone server | |
| log file = /var/log/samba/log.%m |