Autor - Franciszek Musiel - liczba wpisów 27

Cockpit Monitor Kategoria: Linux | Tagi: monitoring, performance, linux | Autor: Franciszek Musiel

http://www.tecmint.com/cockpit-monitor-multiple-linux-servers-via-web-browser/

"Cockpit is an easy-to-use, lightweight and simple yet powerful remote manager for GNU/Linux servers, it’s an interactive server administration user interface that offers a live Linux session via a web browser.

It can run on several Linux distributions including Debian, Ubuntu, Fedora, CentOS, RHEL, Arch Linux among others.

Cockpit makes Linux discoverable thereby enabling system administrators to easily and reliably carry out tasks such as starting containers, managing storage, network configurations, log inspections coupled with several others."

CENTOS

yum install cockpit sos -y
systemctl enable --now cockpit.socket
firewall-cmd --add-service=cockpit
firewall-cmd --add-service=cockpit --permanent

REDHAT

subscription-manager repos --enable rhel-7-server-extras-rpms
yum install cockpit sos -y
systemctl enable --now cockpit.socket
firewall-cmd --add-service=cockpit
firewall-cmd --add-service=cockpit --permanent

https://server.domain.com:9090

QRadar SIEM - recovery admin password Kategoria: Linux | Tagi: PASSWORD, QRADAR, SIEM | Autor: Franciszek Musiel

To recover the Admin password (eg. the password for the web interface) on a v7.7.2.x Siem installation, you can use the command:

# /opt/qradar/support/changePasswd.sh -a

# /etc/init.d/tomcat restart

 

ex: 0602-108 screen is not a recognized terminal type. 

# export TERM=xterm
# vi file.conf

Firewalld NFS rule Kategoria: Linux | Tagi: firewalld, linux | Autor: Franciszek Musiel

### NFS

firewall-cmd --permanent --add-service=nfs

firewall-cmd --permanent --add-service=mountd

firewall-cmd --permanent --add-service=rpc-bind

firewall-cmd --reload

CentOS7 Installing nmon on Linux Kategoria: Linux | Tagi: monitoring, NMON, stats, linux | Autor: Franciszek Musiel

http://www.cyberciti.biz/faq/nmon-performance-analyzer-linux-server-tool/

 

# Get Root
sudo su

# Download NMON archive
cd /tmp
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip

# Install unzip if you don't have
yum install unzip

# Unzip archive
unzip MPG_nmon_for_Linux_14a_binaries.zip

# Copy nmon file
cp nmon_x86_64_centos5 /usr/local/bin/
chmod a+x /usr/local/bin/nmon_x86_64_centos5

# Create symbolic link
ln -s /usr/local/bin/nmon_x86_64_centos5 /usr/local/bin/nmon

# vim ~/.bashrc
   alias nmon='. ~/.bashrc'

# . ~/.bashrc

AIX TSM6 restart scheduler Kategoria: AIX | Tagi: DSMCAD, TSM, TSM SCHED, AIX | Autor: Franciszek Musiel

https://www.ibm.com/support/knowledgecenter/SSTG2D_6.3.0/com.ibm.itsm.tshoot.doc/r_pdg_strtstopcli.html

#!/bin/ksh

# Use the following script to kill the currently running instance
# of the TSM scheduler, and restart the scheduler in nohup mode.
#
# This script will not work properly if more than one scheduler
# process is running.
# If necessary, the following variables can be customized to allow an
# alternate options file to be used.
# export DSM_DIR=
# export DSM_CONFIG=
# export PATH=$PATH:$DSM_DIR
# Extract the PID for the running TSM Scheduler

PID=$(ps -ef | grep "dsmc sched" | grep -v "grep" | awk {'print $2'});
print "Original TSM scheduler process using PID=$PID"

# Kill the scheduler
kill -9 $PID

# Restart the scheduler with nohup, redirecting all output to NULL
# Output will still be logged in the dsmsched.log
nohup dsmc sched 2>&1 > /dev/null &

# Extract the PID for the running TSM Scheduler
PID=$(ps -ef | grep "dsmc sched" | grep -v "grep" | awk {'print $2'});
print "New TSM scheduler process using PID=$PID"

Wine - całkowite odinstalowanie i wyczyszczenie Kategoria: Linux | Tagi: linux, ubuntu, Wine | Autor: Franciszek Musiel

Całkowite usunięcie i wyczyszczenie systemu po  WINE


sudo apt-get remove wine rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm
sudo apt-get remove –purge wine
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove