Skip to main content


Showing posts from December, 2017

Install4J ERROR: The installation/removal of a previoius program was not completed.

Error that may stop new installation:
The installation/removal of a previoius program was not completed. You will need to restart your computer to complete that installation. After restarting your computer, run Setup again to complete the installation of Program name.
How to solve the issue without restarting:
Remove following keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations 

elasticsearch installation cheatsheet

SystemD cheatsheet: systemd is a system and service manager for Linux, compatible with SysV. 
Overview of systemd for RHEL 7 
Understanding and administering Systemd
WhatCommandservice foobar startsystemctl start foobarsservice foobar stopsystemctl stop foobarservice foobar statussystemctl status foobar.serviceListing dependencies: To see dependencies of a servicesystemctl list-dependencies nfs-server.service

docker cheatsheet

Short docker commands list (in table view):

ImagesWhatHowList local imagesdocker imagesDelete local imagedocker rmi NAMEDownload imagedocker image pull NAMECreate container from image (detached) docker run –d …Display information on imagedocker image inspect hpsoftware/almoctane
ContainersWhatHowList of running docker containersdocker psList all docker containers (running and stopped)docker ps -aStart existing containerdocker start IDStop contianerdocker stop IDCreate container, start it and get a shell inside of itdocker run -it IMAGE bashRun a command inside of an already running containerdocker exec -it ID bashDelete containerdocker rm IDGet logdocker logs ID OtherWhatHowCreate virtual networkdocker create network octane_nwStart docker servicesystemctl start dockerDefine proxymkdir -p /etc/systemd/system/docker.service.d
vi /etc/systemd/system/docker.service.d/http-proxy.conf


sudo systemctl daemon-reload

RPM cheatsheet

RPM is the Linux deployment tool. But how to use it?

WhatHowFiles in RPM package rpm -qpl XX.rpmList scriptsrpm -qp --scripts XX.rpmInstall rpmrpm -ivh XX.rpmUpdate rpmrpm -Uvh XX.rpmInstalled packagesrpm -qaInformation on specific installationrpm -qi PACKAGEUninstall packagerpm -e XX