Thursday, October 6, 2022
How to Install Prometheus Operator Community Kubernetes Helm Charts | Kube-Prometheus Stack
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Friday, September 30, 2022
How to Install Kubernetes Cluster with Kubectl, Kubeadm, Kubelet in Ubuntu 18.04
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Friday, October 29, 2021
How to Install Jenkins with Varies Method | Dockerfile | Image | Compose...
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Monday, November 2, 2020
How to share printer with particular host in cups in RHEL?
1. First Install CUPS
yum install cups
2. Service Start and Stops
systemctl enable cups systemctl start cups
3. Edit the Configuration file
sudo nano /etc/cups/cupsd.conf
Listen localhost:631
to
Listen *:631
grep -v '#' /etc/cups/cupsd.conf
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
RHEL 7 uses system temp files to
Managing temporary files with systemd-tmpfiles on Red Hat
Why the files in /tmp directory gets deleted periodically
For CentOS/RHEL7
cd /usr/lib/tmpfiles.d/tmp.conf
# cat /usr/lib/tmpfiles.d/tmp.conf # Clear tmp directories separately, to make them easier to override v /tmp 1777 root root 10d v /var/tmp 1777 root root 30d # Exclude namespace mountpoints created with PrivateTmp=yes x /tmp/systemd-private-%b-* X /tmp/systemd-private-%b-*/tmp x /var/tmp/systemd-private-%b-* X /var/tmp/systemd-private-%b-*/tmp
For CentOS/RHEL6
cd /etc/cron.daily/tmpwatch
# cat /etc/cron.daily/tmpwatch #! /bin/sh flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' -X '/tmp/.hdb*lock' -X '/tmp/.sapstartsrv*.log' \ -X '/tmp/pymp-*' 10d /tmp
# man tmpwatch
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
How do we access different apps on Ubuntu system?
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
How Ubuntu used in government sector?
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Is 700mb DVD sufficient to burn ubuntu in it?
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Wednesday, September 2, 2020
How to Setup Monitoring for Docker Containers using Prometheus on Ubuntu 18.04
Requirment
1. docker should be installed
2. docker-compose also be installed
Installation of docker
1. sudo apt-get install docker.io or sudo apt install docker.io
2. docker --version
3. sudo apt-get install docker-compose
Creating a Configuration files of prometheus
1. create a new file prometheus.yml and copy paste below
sudo nano ~/ prometheus.yml or sudo nano /etc/prometheus/prometheus.yml
# prometheus.yml
global:
scrape_interval: 5s
external_labels:
monitor: 'my-monitor'
rule_files:
- 'alert.rules'
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['your_server_ip:9090']2. create a new file docker-compose.yml and copy paste below
sudo nano ~/docker-compose.yml or sudo nano /etc/prometheus/docker-compose.yml
# docker-compose.yml
version: '2'
services:
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- '9090:9090'3. Run the docker compose file
cd /etc/prometheus/ or sudo ~/docker-compose up
sudo docker-compose up
4. Open browser
http://your_server_ip:9090
5. Install Node exporter
node-exporter:
image: prom/node-exporter
ports:
- '9100:9100' sudo nano ~/ prometheus.yml or sudo nano /etc/prometheus/prometheus.yml- job_name: 'node-exporter'
static_configs:
- targets: ['node-exporter:9100'] 6. Restart docker-composer
cd /etc/prometheus/ or sudo ~/docker-compose restart
sudo docker-compose restart
7. Install Grafana
sudo nano ~/docker-compose.yml or sudo nano /etc/prometheus/docker-compose.yml
copy paste at last line
grafana:
image: grafana/grafana
user: "0" #[ Execute id -u in terminal to find the user id from where you are invoking docker compose]
volumes:
- ./grafana_db:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=yourpass
depends_on:
- prometheus
ports:
- '3000:3000' 4. Open browser
http://your_server_ip:3000
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Tuesday, September 1, 2020
How to Install Prometheus using Docker on Ubuntu 18.04
1. Create a new file
sudo nano ~/prometheus.yml Add below lines or copy paste into prometheus file # A scrape configuration scraping a Node Exporter and the Prometheus server # itself. scrape_configs: # Scrape Prometheus itself every 5 seconds. - job_name: 'prometheus' scrape_interval: 5sstatic_configs: - targets: ['localhost:9090'] # Scrape the Node Exporter every 5 seconds. - job_name: 'node' scrape_interval: 5sstatic_configs: - targets: ['your_server_ip:9100']
2.docker run -d -p 9090:9090 -v ~/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus
3.docker ps
4. http://your_server_ip:9090/status
ERROR :- state : UNKNOWNSOLUTION :- remove -storage.local.memory-chunks=10000
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Tuesday, June 16, 2020
How to Install and Configure pgAdmin 4 v4.19 on Ubuntu 18.04/20.04, Debi...
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Wednesday, June 10, 2020
How to solve command could not be located because '/bin' is not included in the path environment variable
command could not be located because '/bin' is not included in the path environment variable
SOLUTION 1
cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
ls -l /etc/environment
-rw-r--r-- 1 root root 79 2010-03-16 14:44 /etc/environment
JUST TYPE
SOLUTION 2
sudo nano ~/.bashrc
CP & PST AT LAST LINE OR BOTTOM
export PATH=/usr/bin:$PATH
source ~/.bashrc
==========================================
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Saturday, May 9, 2020
How to Install Virtual Box v(6.1.6) on Ubuntu 20.04 LTS | Install Latest...
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Sunday, April 26, 2020
How to Install New Ubuntu 20.04 LTS (Focal Fossa) in Dell Laptop | Install Ubuntu 20.04 LTS Desktop https://youtu.be/5VWsjJhQkJw
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
How to Install New Ubuntu 20.04 LTS (Focal Fossa) in Dell Laptop | Install Ubuntu 20.04 LTS Desktop https://youtu.be/5VWsjJhQkJw
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
How to Enable Hidden Notification LED Light in Poco X2 | Notification LED in POCO X2 https://youtu.be/MlH-8UOodr0
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
How to Install New Ubuntu 20.04 LTS (Focal Fossa) in Dell Laptop | Insta...
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
Sunday, April 19, 2020
How to Reset Root/User Password on CentOS 8 | Resetting a Forgotten Root Password in CentOS 8 - 2020 https://www.youtube.com/watch?v=Kh3cAX_KzVw
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
How to Reset Root/User Password on CentOS 8 | Resetting a Forgotten Root Password in CentOS 8 - 2020 https://www.youtube.com/watch?v=U1nQaZ
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
How to Reset Root/User Password on CentOS 7 | Resetting a Forgotten Root Password - 2020 https://www.youtube.com/watch?v=x-ISSCyZXo8
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.
