Tag - linux - liczba wpisów 14

Easy Bash PS1 Generator Kategoria: Windows | Tagi: powershell, windows, bash, linux | Autor: Franciszek Musiel

http://ezprompt.net/

Linux CMDCHALLANGE Kategoria: Linux | Tagi: funny, learn, shell, bash, cmd, linux | Autor: Franciszek Musiel

https://cmdchallenge.com/#/hello_world

Terminal recursive search history Kategoria: Linux | Tagi: recursive, TERMINAL, linux, search, ssh | Autor: Franciszek Musiel

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
cd .fzf/
./install
source ~/.bashrc

Simple Screen Recorder

http://www.maartenbaert.be/simplescreenrecorder/#download

sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder

sudo apt-get update

sudo apt-get install simplescreenrecorder

 

 

 

 

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

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

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

Instalacja JBOSS i JDK w CentOS6 Kategoria: Linux | Tagi: centos, linux | Autor: Wojciech Gazda

wyłączenie SElinux w CentOS6 Kategoria: | Tagi: centos, linux | Autor: Wojciech Gazda

mkdir /root/backup
cp /etc/selinux/config /root/backup
sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

 

"hurtowa" zmiana umask'a userom Kategoria: Linux | Tagi: centos, linux | Autor: Wojciech Gazda

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

wyłączenie ipv6 w CentOS 6 Kategoria: Linux | Tagi: centos, linux | Autor: Wojciech Gazda

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

ACL'ki na plikach/katalogach Kategoria: Linux | Tagi: linux | Autor: Wojciech Gazda

dodanie rekursywnie ACL'ki (rwx) na katalog

# setfacl -R -m "u:username:rwx" /jakis/katalog

sprawdzenie ACL'ki na pliku/katalogu

# getfacl /jakis/katalog

 

Wyszukaj

Zapisz się do newsletera