Install Docker on Redhat 7
# subscription-manager repos –enable=rhel-7-server-rpms # subscription-manager repos –enable=rhel-7-server-extras-rpms # subscription-manager repos –enable=rhel-7-server-optional-rpms yum install docker reboot the machinedocker yum install podman skopeo buildah -yRead More →
Sharing files between MacOS and Redhat
First , you need to share your files in MacOS Do the following things in redhatyum install samba-client cifs-utils edit this file : /etc/fstabad this line then run: mount -a if you receive the error then change the line to (vers=3.0)Read More →
Redhat7: Apache: AH00035: access to / denied (filesystem path ‘/Users/xxx/Documents/workspace’) because search permissions are missing on a component of the path
I checked all the permission, it looks all good – i “sudo -u apache bash ” then i can go to the directory i want, but it’s still not working Finally this is the fix: sudo setenforce 0Read More →
Splunk: How to hide “Create New Dashboard” button
A colleague just came to me and asked me for a solution to hide “Create New Dashboard” button. The reason behind this is that we have some splunk dashboard, we just want the user to read it, we don’t want them to do any search on our Search Head, we have some roles to hide all search function, but the “Create New Dashboard” is like a backdoor – we want to avoid this. After digging through the source code, we found that this button is generated from this file: /opt/splunk/share/splunk/search_mrsparkle/exposed/build/pages/enterprise/dashboards/dashboards.js The location of this file might be different depending on your Splunk version , myRead More →
Virtualbox: Redhat on Windows 7 Install Guest Addition CD Image
Open your Virtualbox – > Devices -> Insert Guest Additions Image CD Login to your redhat machine mkdir /mnt/cdrom mount /dev/sr0 /mnt/cdrom cd /mnt/cdrom sh ./VBoxLinuxAdditions.runRead More →
Sitespeed – multi docker error : _XSERVTransSocketUNIXCreateListener
When i run multiple sitespeed docker , i faced this error To fix this i have to add 2 parameters to sitespeed command: It turned out that the above fix will kill the video capture. After looking through my change log, the option “–name ” was actually the root cause. It looks like when we use the –name option, docker will reuse the socket. The final fix was to remove that option (–name)Read More →
Deal Alert with bash command
I recently see a good deal from Staples for a Dell monitor – it’s 50% off , unfortunately it’s out of stock very soon. I can’t visit it everyday, so let do some funny stuff , writing a simple command to alert me when it’s in stock again. Here is what it comes withRead More →
Viewing your Apple Mac Pro/Book temperature from terminal?
The most common problem with all Mac machine is overheating. if you are using a Macbook Pro or Imac , you sometime feel it’s too hot. This might result in killing your graphic card. It’s very expensive to replace that card or unable to replace it ( you have to replace the whole mother board). I have experienced this with my Macbook Pro 2011 and IMac 2011, they are all dead after sometimes because the overheat. Since then, i need to find a way to monitor my cpu temperature and adjust the fan speed to cool down the cpu. For a normal user, i suggestRead More →