tomcat install

Tomcat requires JRE. wget jre-8uversion-linux-x64.tar.gz # or apt-get install default-jdk Install Tomcat 8 on Linux. wget https://mirrors.gigenet.com/apache/tomcat/tomcat-8/v8.5.66/bin/apache-tomcat-8.5.66.tar.gz tar zxpvf apache-tomcat-8.5.66.tar.gz cd /opt/tomcat/apache-tomcat-8.5.66/bin/ ./startup.sh Status|Start|Stop|Restart Tomcat. systemctl status tomcat8 systemctl start tomcat8 systemctl stop tomcat8 systemctl restart tomcat8

June 4, 2021 · 1 min · ulysses

install syslog

How to install syslog-np on Centos 7. cd /tmp wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y reinstall ./epel-release-latest-7.noarch.rpm chattr +i /etc/yum.repos.d/epel* yum -y install syslog-ng Enable syslog-np. Disable rsyslog. systemctl enable syslog-ng systemctl start syslog-ng yum -y erase rsyslog

June 2, 2021 · 1 min · ulysses

gcp instance scheduler

GCP recently added Instance Schedule to its console. To configure, perform the following. – Create an instance schedule. – Add instance(s) to a schedule. – If no errors, the service account has the correct permissions. The service account used by Instance Schedule is owned by GCP and is not visible in the GCP console. If service account has no permissions, the you must perform the following. – Create a custom role with compute.instances.start and compute.instances.stop permissions. – Add custom role to the service account. ...

May 28, 2021 · 1 min · ulysses

gcp compute enable os login

If you have trouble logging in (SSH) to your GCP instance, you may have to enable OS Login. gcloud compute instances add-metadata server-name \ --metadata enable-oslogin=TRUE \ --zone us-central1-c \ --project project-id When done, you can set it back to FALSE.

May 27, 2021 · 1 min · ulysses

generated by networkmanager

If your /etc/resolv.conf keeps getting overwritten, take a look at /etc/NetworkManager/NetworkManager.conf. Set DNS to none. [main] dns=none

May 27, 2021 · 1 min · ulysses

gcp display serial port in shell

How to display serial port in GCP Cloud Shell. gcloud compute instances get-serial-port-output instance-name \ --zone=us-central1-a \ --project=your-project-id

May 26, 2021 · 1 min · ulysses

remove sssd package

How to remove SSSD package. #!/bin/bash service sssd stop chkconfig sssd off rm -rf /var/lib/sss/db/* rm -f /etc/sssd/sssd.conf rm -f /etc/krb5.conf rm -f /etc/krb5.keytab yum remove -y adcli sssd authconfig pam_krb5 samba4-common realmd

May 24, 2021 · 1 min · ulysses

sssd report

Generate a SSSD report. #!/bin/bash log="log" > $log sep () { echo "--------------------------------" >> $log; } sep echo "SSSD Status" >> $log sep systemctl status sssd >> $log sep echo "Contents of /etc/resolv.conf" >> $log sep cat /etc/resolv.conf >> $log sep echo "Contents of /etc/sssd/sssd.conf" >> $log sep cat /etc/sssd/sssd.conf >> $log sep echo "Versions of /etc/resolv.conf" >> $log sep ls -l /etc/resolv.conf* >> $log sep echo "Versions of /etc/sssd/sssd.conf" >> $log sep ls -l /etc/sssd/sssd.conf* >> $log sep echo "Contents of /var/log/sssd-rollout.log" >> $log sep cat /var/log/sssd-rollout.log >> $log sep echo "Contents of /var/log/sssd-rollout3.log" >> $log sep cat /var/log/sssd-rollout3.log >> $log sep

May 24, 2021 · 1 min · ulysses

winbind fix

Here’s the process to restore Winbind. Restore old config. cp /etc/sssd/sssd.conf-xxxxxxx /etc/sssd/sssd.conf cp /etc/krb5.conf-xxxxxxx /etc/krb5.conf Disable SSSD. Authconfig creates /etc/nswitch.conf. authconfig --disablesssd --disablesssdauth --updateall Start Winbind. service winbind start; service smb start; service nmb start

May 24, 2021 · 1 min · ulysses

rpmdb open failed

If you get this error, something happened to the rpm database. To fix. rm -f /var/lib/rpm/__db* db_verify /var/lib/rpm/Packages rpm --rebuilddb yum clean all Run yum again.

May 22, 2021 · 1 min · ulysses