http://ezprompt.net/
https://cmdchallenge.com/#/hello_world
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
cd .fzf/
./install
source ~/.bashrc
http://www.maartenbaert.be/simplescreenrecorder/#download
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder
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
### NFS
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=mountd
firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --reload
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
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
mkdir /root/backup cp /etc/selinux/config /root/backup sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
echo "changing umask for users" for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd); do echo "umask 022" >> /home/$user/.bashrc done echo "umask check" for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd); do printf "%-10s" "$user" ; su -c 'umask' -l $user 2>/dev/null done
mkdir /root/backup/etc cp /etc/sysctl.conf /root/backup/etc/ echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf mkdir /root/backup/etc/modprobe.d/ cp /etc/modprobe.d/blacklist.conf /root/backup/etc/modprobe.d/ echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf mkdir /root/backup/etc/sysconfig/ cp /etc/sysconfig/network /root/backup/etc/sysconfig/ echo "NETWORKING_IPV6=no" >> /etc/sysconfig/network #powtorzyć dla każdego interfejsu mkdir /root/backup/etc/sysconfig/network-scripts/ cp /etc/sysconfig/network-scripts/ifcfg-eth* /root/backup/etc/sysconfig/network-scripts/ echo "IPV6INIT=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo "IPV6INIT=no" >> /etc/sysconfig/network-scripts/ifcfg-eth1
dodanie rekursywnie ACL'ki (rwx) na katalog
# setfacl -R -m "u:username:rwx" /jakis/katalog
sprawdzenie ACL'ki na pliku/katalogu
# getfacl /jakis/katalog