Wednesday, December 11, 2019
Command line access to esxi server info, networking config
vim-cmd hostsvc/net/info | grep "mac ="
https://communities.vmware.com/thread/187557
esxcfg-info
esxcfg-scsidevs -l
esxcfg-nas -l
Tuesday, November 26, 2019
Raspbian upgrade process and notes
Upgrade Raspbian releases
https://www.raspberrypi.org/documentation/raspbian/updating.md
sudo apt update
sudo apt full-upgrade
Check Raspberry pi release
https://www.meccanismocomplesso.org/en/how-to-for-raspberry-checking-the-raspbian-version-update-upgrade/
cat /etc/os-release
make sure lsb_release is installed
sudo apt-get -y install lsb_release
lsb_release -a
--30--
Sunday, November 3, 2019
Find directories of certain (744) permissions and change them to 755
For some reason some directories are set to 744 permission from when saved from some systems.
They need to be 755 for the system to properly back them up.
This will change the permissions with a chmod after showing them.
find . -type d -perm 744 -print -exec ls -ld {} \;
find . -type d -perm 744 -exec chmod 755 {} \;
Nice page of examples of chmod is here
https://www.tecmint.com/35-practical-examples-of-linux-find-command/
--30--
Wednesday, October 23, 2019
setting python version on Ubuntu
Adapted from this link
https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
annoying note #1. Pip install is fskced up on Ubuntu. It installs a wrapper for python-pip, but doesn't install the underlying python 3 main version.
so do this:
sudo apt-get -y install python3-pip
if ubuntu unattended upgrade is running, kill it by editing
/etc/apt/apt.conf.d/10periodic APT::Periodic::Update-Package-Lists "1";
change the 1 to 0, and reboot (easiest). If update is in progress
killing the scripts is a big PITA.
https://linoxide.com/ubuntu-how-to/enable-disable-unattended-upgrades-ubuntu-16-04/
if you have to remove pip to start over use:
sudo apt-get purge python-pip
upgrade pip with
pip3 install --user --upgrade pip
Install mongo db
https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-18-04
--30--
Thursday, September 26, 2019
shell in a box centos 8
still not found in epel release
help on this page
https://www.centos.org/forums/viewtopic.php?t=61994
--30--
change hostname centos 8
edit /etc/hostname and /etc/hosts
https://www.cyberciti.biz/faq/centos-8-change-hostname-computer-name-command/
--30--
xrdp on centos 8
centos 8 xrdp
https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html
centos source (iso list)
http://isoredirect.centos.org/centos/8/isos/x86_64/
direct iso link
http://isoredirect.centos.org/centos/8/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso
--30--
Labels:
centos,
linux,
linux firewall,
remote access,
selinux,
xrdp
Subscribe to:
Posts (Atom)