http://www.yellow-bricks.com/esxtop/#esxtop-thresholds has some guidance on thresholds for different metrics.
Run esxtop, hit the “c” key to view CPU info and compare the usage with the thresholds.
Here are few from the above link.
Note: if your in esxtop you can hit the “f” key and it’ll give you a menu to specify more fields to display.
Ran into an issue where esxtop was basically displaying a bunch of CSV data that was hard to make sense of in a terminal.
From reading here https://kb.vmware.com/s/article/2001448
It appears that the issue is that the environment TERM variable is not specified.
To fix, specify the terminal to use
To get a list of terminals available, run the following
find /usr/share/terminfo -type f
Login to MySQL
mysql -u root -p
Show Active processes SHOW PROCESSLIST;
or to list all the processes use “FULL”
SHOW FULL PROCESSLIST;
Run MySQL optimizer wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl
MySQL tuner should give some recommendations on settings to tweak.
sudo apt-get install build-essential make gcc g++
Other things to install
sudo apt-get install p7zip bzip2
Should be able to get all the dependencies for MXE in one go by running
sudo apt-get install -y autoconf automake bison make build-essential gcc g++ python intltool libgdk-pixbuf2.0-0 libtool-bin p7zip-full
Full requirements are listed at the following url.
Posted in Debian, Linux, Ubuntu |
Tagged build, Compile, debian, g++, gcc, linux, make, mxe, ubuntu |
Create tmpfs ramdisk. Note if your Linux user is something other than steve you’ll need to change where appropriate.
In etc/fstab add the following
tmpfs /home/steve/mcdisk tmpfs defaults,size=4096m 0 0
This creates a 4GB ram disk at /home/steve/mcdisk
To mount it you can either reboot, or run
Copy your current Minecraft directory to the ram disk
cp -R /home/steve/Current_MC_Server/ /home/steve/mcdisk
Create a Bash script in “/home/steve” named “ramdisk_save.sh”
Paste the following in. You may need to install rsync if you do not have it installed
rsync -r -t $RAMDISK/ $MCDIR/
rsync -r -t $MCSTORE/ $MCPATH/
Now add the script to crontab
*/5 * * * * /home/steve/ramdisk_save.sh
This will now run every 5 minutes and sync any changes on the ram disk to the original directory.
Start the Minecraft server
java -Xmx3072M -Xms3072M -jar server.jar nogui
It looks like the Windows Defender Real-time protection can cause issues when trying to copy files on a local drive even if the drive is an SSD. Typically a copy seems to start out great, but then slows down to a crawl less then 1MB/s copy rate. Probably has to do with Defender having to scan every file as it is copied.
To fix/increase the copy speeds you can turn off Real-time protection.
To turn off Windows Defender Real-time protection, open up Settings > Update and Security > Windows Security > Virus & threat protection “That should open up the Windows Defender Security Center” > Virus & threat protection settings
Now Turn Real-time protection off.
sudo apt-get install python-certbot
Generate certificate. Change unifi.yourdomain.com to the domain name you have pointing to your UniFi-Video controller.
sudo certbot certonly -d unifi.yourdomain.com
Certbot will create the files in “/etc/letsencrypt/live/unifi.yourdomain.com/”
Now you should stop the unifi service.
systemctl stop unifi
The following two commands create and install the keystore for the UniFi-Video application. These commands were copied from
here. Thanks scobber! echo ubiquiti | openssl pkcs12 -export -inkey /etc/letsencrypt/live/unifi.yourdomain.com/privkey.pem -in /etc/letsencrypt/live/unifi.yourdomain.com/cert.pem -name airvision -out /usr/lib/unifi-video/data/keys.p12 -password stdin
echo y | keytool -importkeystore -srckeystore /etc/letsencrypt/live/unifi.yourdomain.com/keys.p12 -srcstoretype pkcs12 -destkeystore /usr/lib/unifi-video/data/keystore -storepass ubiquiti -srcstorepass ubiquiti
Remove or rename the Trusted Store. If you don’t, the cameras will connect, but will not record. The controller will rebuild the ufv-truststore when it starts up and the cameras will be able to record.
Start the UniFi-Video service
systemctl start unifi-video
Now you can check it by going to https://unifi.yourdomain.com:8443
Posted in Ubiquiti, UniFi Video |
Tagged cert, certbot, lets encrypt, letsencrypt, ssl, ssl cert, ubiquiti, ubnt, unifi, unifi-video |
Install the open vm tools from the distros repos
if your on Fedora you’ll need to use dnf instead of yum.
yum install open-vm-tools
Enable tools on boot up
systemctl enable vmtoolsd
systemctl enable vmtoolsd
The following command allows Winbox from the 192.168.0.0/16, and 10.0.10.0/24 network ranges. You can change winbox to ssh or any of the other services in ip services.
ip service set address="192.168.0.0/16, 10.0.10.0/24" winbox