Created
December 4, 2017 21:22
-
-
Save jhrcz/405a90681d04c88e59afa3eaecbdbc57 to your computer and use it in GitHub Desktop.
initial-bash-history-on-wedos-vm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim /etc/ssh/sshd_config | |
vi /etc/ssh/sshd_config | |
getenforce | |
vim /etc/selinux/config | |
vi /etc/selinux/config | |
sed '/^SELINUX=/ s/=.*/=disabled/' /etc/selinux/config | |
sed -i '/^SELINUX=/ s/=.*/=disabled/' /etc/selinux/config | |
yum updae | |
yum update | |
.%%...%%..%%%%%%..%%%%%....%%%%....%%%%.. | |
.%%...%%..%%......%%..%%..%%..%%..%%..... | |
.%%.%.%%..%%%%....%%..%%..%%..%%...%%%%.. | |
.%%%%%%%..%%......%%..%%..%%..%%......%%. | |
..%%.%%...%%%%%%..%%%%%....%%%%....%%%%.. | |
tune2fs -i 0 -c 0 /dev/vda1 | |
systemctl disable firewalld | |
systemctl | grep activ | |
echo 'net.ipv6.conf.all.autoconf = 0' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.all.accept_ra = 0' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.default.autoconf = 0' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.default.accept_ra = 0' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.eth0.autoconf = 0' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.eth0.accept_ra = 0' >> /etc/sysctl.conf | |
vim /etc/fstab | |
vi /etc/fstab | |
ip link | |
vim /etc/default/grub | |
vi /etc/default/grub | |
grub-mkconfig -o /boot/grub/grub.cfg | |
grub2-mkconfig /boot/grub2/grub.cfg | |
grub2-mkconfig -o /boot/grub2/grub.cfg | |
cd /tmp/ | |
wget https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.3/one-context_5.0.3.rpm | |
curl -o https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.3/one-context_5.0.3.rpm | |
curl -O https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.3/one-context_5.0.3.rpm | |
rpm -Uvh one-context*rpm | |
curl -OL https://github.com/OpenNebula/addon-context-linux/releases/download/v5.0.3/one-context_5.0.3.rpm | |
rpm -Uvh one-context*rpm | |
yum install -y epel-release | |
yum install ruby | |
yum install -i dracut-modules-growroot | |
yum install dracut-modules-growroot | |
yum install -y cloud-utils-growpart | |
yum install -y ntp | |
vi /etc/ntp.conf | |
systemctl enable ntp | |
systemctl enable ntpd | |
yum clean all | |
systemctl enable vmcontext | |
cat /etc/resolv.conf | |
sed -i '/^ *[^#]/d' /etc/resolv.conf | |
vim /etc/sysconfig/network-scripts/ifcfg-lo | |
vi /etc/sysconfig/network-scripts/ifcfg-lo | |
vim /etc/networks | |
vi /etc/networks | |
grep -r "89.221" /etc/NetworkManager/ | |
grep -r "89.221" /etc | |
grep -r "89.221" /etc/ | |
ip addr | |
grep -r "89.221" /var/lib/NetworkManager/ | |
vim /etc/NetworkManager/NetworkManager.conf | |
vi /etc/NetworkManager/NetworkManager.conf | |
ls /etc/NetworkManager/system-connections/ | |
ip addr | |
grep -r '89.221' / | |
grep -r '89.221' /etc/ | |
grep -r '89.221' /var/lib/ | |
nmcli --help | |
nmcli g | |
nmcli n | |
nmcli con list | |
nmcli dev | |
nmcli dev eth0 | |
nmcli dev status | |
/etc/sysconfig/network-scripts/ | |
vim /etc/sysconfig/network-scripts/ifup-eth | |
vi /etc/sysconfig/network-scripts/ifup-eth | |
nmcli con show | |
nmcli con show eth0 | |
nmcli con del eth0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment