How do I delete a printer in Linux?

Warning: As always, please exercise caution when performing system maintenance, especially when initiating processes that can potentially delete data.

  • Log into the server as root or become root
  • Delete printer from CUPS
    • NOTE: Replace lp1 with the name of the printer being configured (lp1, lp20, etc.)
lpadmin -x lp1
  • Delete UV driver file:
    • NOTE: Replace lp1 with the name of the printer being configured (lp1, lp20, etc.)
rm /usr/spool/uv/lp1.dvr
  • Delete queue in UV (delete the line starting with LP1):
    • NOTE: Replace lp1 with the name of the printer being deleted (lp1, lp20, etc.)
vi /usr/spool/uv/sp.config
  • Remove the printer hostname (lp1) and IP address from the /etc/hosts file:
    vi /etc/hosts
  • Refresh the UV spooler:
usa -R
  • The printer is now  can be delete from the  Eclipse level

JDK TLS handshake error

The Eclipse PD team has identified JBoss running on RHEL 5.x with Java 7u131 may crash when the Solar Eclpse SSL interface (i.e Connection Pool, Session manager and etc..) is accessed from a browser.

This is an Oracle bug, and it is expected to be fixed with java 7u141 release.

The Work-around is to not use java 7u131. Do not install java update or downgrade to an older version if java 7u131 has already been installed.

To downgrade java to older version, 7u95:

yum downgrade java-1.7.0-openjdk-1.7.0.121-2.6.8.1.el5_11

To exclude java updates when manually installing the RHEL updates:

yum update --exclude=java-1.7.0-openjdk-1.7.0.131*

If your system is setup with RHEL automatic update you may temporarily disable it and run manual updates until a fix is available.

To disable RHEL auto update:

chkconfig yum-updatesd off
service yum-updatesd stop

Reference

How do I restore files from my rsync backup on Linux?

Log in as root to your server

To restore a single file (LEDGER) to a temporary directory (/esupport/restore):

mkdir -p /esupport/restore
rsync -av --progress --inplace --stats /mnt/nas/rsync/u2/backup-20170118.2200/eclipse/LEDGER /esupport/restore/

To restore an entire directory (/u2/eclipse) to it’s original location (/u2/eclipse) for a full system recovery:

Warning: As always, please exercise caution when performing system maintenance, especially when initiating processes that can potentially overwrite data.
rsync -av --progress --inplace --stats /mnt/nas/rsync/backup-20170118.2200/u2/eclipse/ /u2/eclipse/

Best practices for securing the Eclipse database server

  • Don’t allow direct access to the Linux server from the public Internet
  • Don’t use a weak root password
  • Disable root remote Login
  • Don’t allow Eclipse users to use blank passwords – Enforce Stronger Passwords
  • Disable Unwanted Services
  • Enable Firewall
  • Keep your system up-to-date by installing updates (e.g. operating system, software, and firmware updates) and rebooting on a monthly basis.
  • Monitor Server Logs Regularly