run docker compose

Here’s how to run docker-compose. I have an Icecast docker-compose.yml file. Icecast is an audio streaming server. version: "2" services: icecast: image: moul/icecast environment: - ICECAST_SOURCE_PASSWORD=secret - ICECAST_ADMIN_PASSWORD=secret - ICECAST_PASSWORD=secret - ICECAST_RELAY_PASSWORD=secret ports: - "8000:8000" restart: always To run Icecast in a container , I run docker-compose in the background. docker-compose up -d Check to see if Icecast is running on your browser. http://localhost:8000 To stop the Icecast container, I simply stop the docker-compose. ...

February 27, 2020 · 1 min · ulysses

gcp sdk firewall rule ah and esp

Here’s how to add a GCP firewall rule with the AH (authentication header) and ESP (Encapsulating Security Payload) protocols. gcloud compute firewall-rules update "firewall-name" \ --description="firewall description" \ --priority "1000" \ --target-service-accounts="service-account@gserviceaccount.com" \ --destination-ranges="10.0.0.0/8" \ --rules 50,51,tcp:80,udp:1000 There is no need to add protocols for AH and ESP. Just the port numbers.

February 26, 2020 · 1 min · ulysses

wheel group

Here’s an alternate way to give Linux users sudo access by adding them to the wheel group. Most Linux systems come with the wheel group already predefined. By adding users to the wheel group, they now have the ability to sudo and run root commands. The wheel group is in the sudoers file for Redhat, Centos, Debian and Ubuntu. usermod -aG wheel username

February 25, 2020 · 1 min · ulysses

splunk search for tanium clients

Here’s the Splunk search for Tanium clients reporting to the Tanium server. "data.jsonPayload.rule_details.direction"=EGRESS "data.jsonPayload.connection.src_ip"="10.0.0.1" "data.jsonPayload.connection.dest_port"=17472

February 24, 2020 · 1 min · ulysses

gcp sdk firewall update

Here’s how to update an existing GCP firewall. Ingress gcloud compute firewall-rules update "firewall-rule-name" \ --description="firewall description" \ --priority="1000" --target-service-accounts="service-account@gserviceaccount.com" \ --source-ranges="10.0.0.0/8" --rules tcp:80,tcp:443,udp:1000-1100 Egress gcloud compute firewall-rules update "firewall-rule-name" \ --description="firewall description" \ --priority="1000" --target-service-accounts="service-account@gserviceaccount.com" \ --destination-ranges="10.0.0.0/8" --rules tcp:80,tcp:443,udp:1000-1100

February 23, 2020 · 1 min · ulysses

wowza 4.8.0 scripts

Here are the start and stop scripts for the lastest Wowza version 4.8.0. Start scripts sudo service WowzaStreamingEngine start # or /etc/init.d/WowzaStreamingEngine start Stop scripts sudo service WowzaStreamingEngine stop # or /etc/init.d/WowzaStreamingEngine stop

February 22, 2020 · 1 min · ulysses

aws register instances with load balancer

Here’s the AWS CLI to register instances to a load balancer. aws elb register-instances-with-load-balancer \ --load-balancer-name my-load-balancer \ --instances i-xxxxxxxxxxx i-xxxxxxxxxxx i-xxxxxxxxxxx

February 19, 2020 · 1 min · ulysses

redhat needs restarting

Here’s the command to determine if a host needs rebooting after system updates in Redhat. $ needs-restarting

February 19, 2020 · 1 min · ulysses

chroot shortcut

Here’s a quick way to setup a chrooted environment. mkdir /helper for i in proc sys dev; do mount o bind /$i /helper/$i; done chroot /helper

February 15, 2020 · 1 min · ulysses

grub fixes

This are grub fixes to servers that are not booting up due to improper entries in the grub menu. grub --batch The fix includes replacing (hd0) with (hd0,0) and /dev/sda with /dev/hda.

February 15, 2020 · 1 min · ulysses