Posts

Enable MacOS Start Up sound in the new 2016 and 2017 Macbook pro

Disable boot on power source and boot on lid open by running this on terminal: sudo nvram AutoBoot= Enable it again by running sudo nvram AutoBoot=%03 Feature removed by apple on latest firmware, doesn't work anymore. Bonus: Boot chime control sudo nvram BootAudio= sudo nvram BootAudio =%01

Loadbalancer on Premises for Kubernetes

Installing MetalLB 1- Create a metallb.yaml file. $ vim metallb.yaml apiVersion: v1 kind: Namespace metadata: name: metallb-system labels: app: metallb --- apiVersion: v1 kind: ServiceAccount metadata: namespace : metallb-system name: controller labels: app: metallb --- apiVersion: v1 kind: ServiceAccount metadata: namespace : metallb-system name: speaker labels: app: metallb --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: metallb-system:controller labels: app: metallb rules: - apiGroups: [ "" ] resources: [ "services" ] verbs: [ "get" , "list" , "watch" , "update" ] - apiGroups: [ "" ] resources: [ "services/status" ] verbs: [ "update" ] - apiGroups: [ "" ] resources: [ "events" ] verbs: [ "create" , "patch" ] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole me...

Enable Firewalld Rules on Kickstart

To enable firewall rules on kickstart file we need to use the following command FIREWALL-OFFLINE-C(1)                                                                                     firewall-offline-cmd                                                              ...

How do you empty you swap memory on Redhat or Fedora Linux

If you want to clear out your swap you can use the following commands. #free               total        used        free      shared  buff/cache   available Mem:       16266516     5208028     8793132       96412     2265356    10509976 Swap:       8269820           10000    8259820 Then we use this command to disable swap: $ swapoff -a   You can confirm that it's now empty:    #free               total        used        free...

How do you empty the buffers and cache memory on Redhat or Fedora Linux

Emptying the buffers cache We can signal the Linux Kernel to drop various aspects of cached items by changing the numeric argument to the above command. To free pagecache: # echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: # echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: # echo 3 > /proc/sys/vm/drop_caches      If you ever want to empty it you can use this chain of commands.   [root@localhost]#free && sync && echo 1 > /proc/sys/vm/drop_caches && free total used free shared buff/cache available Mem: 16266516 5208028 8793132 96412 2265356 10509976 Swap: 8269820 0 8269820 total used free shared buff/cache available Mem: 16266516 5209212 10645992 96412 411312 10582088 Swap: 8269820 0 8269820   ...

Installing Foreman OpenSCAP

Depending of the version of foreman you need to install the correct plugin in this case we are going to use the latest version 0.6 that is going to match with foreman 1.13 https://www.theforeman.org/plugins/foreman_openscap/0.6/index.html Follow the instruction in the webpage and just make sure the following directories are create in the proxy server to works as expected /var/lib/openscap/content  if not you can create manually mkdir -p /var/lib/openscap/content chown -R foreman-proxy /var/lib/openscap/content   This bug already reported http://projects.theforeman.org/issues/17830     After that the openscap can download the policy from the proxy without issues.

Accepting License of Splunk without ask for yes

Just need to run with the following command service splunk stop yum update splunk su splunk -c "/opt/splunkforwarder/bin/splunk start --accept-license --answer-yes --no-prompt" service splunk start