Skip to main content

Posts

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_CURRENT_USER\SOFTWARE\ej-technologies\install4j\RebootCheckFile
HKEY_LOCAL_MACHINE\SOFTWARE\ej-technologies\install4j\RebootCheckFile
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations 

elasticsearch installation cheatsheet

ElasticSearch is great software. Here is my cheatsheet regarding installation (in table view):


PortWhatDefault portREST port9200Node communication9300
Talking to Elasticsearch
ConfigurationWhatHowConfigurationelasticsearch.ymlDefault installation folder/usr/share/elasticsearchDefault configuration folder/etc/elasticsearch
/etc/default/elasticsearch
/etc/sysconfig/elasticsearch Default log folder/var/log/elasticsearchDefault data folder/var/lib/elasticsearch
/var/lib/elasticsearch/dataAsk ekastic for its installation foldercurl "HOSTNAME:9200/_nodes/settings?pretty=true"
curl "HOSTNAME:9200/_cluster/nodes?settings=true&pretty=true" Test elasticsearchcurl -X GET 'http://HOSTNAME:9200'
Directory Layout
ManagementWhatHowView Cluster Healthcurl -X GET 'http://localhost:9200/_cluster/health?pretty=true' List all indicescurl -X GET 'http://localhost:9200/_cat/indices?pretty=true'Get cluster settingcurl -X GET 'http://localhost:9200/_cluster/…

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

[Service]
Environment="HTTP_PROXY=http://proxy.il.hpecorp.net:8080/“

sudo systemctl daemon-reload
sud…

Linux user management cheatsheet

RPM is the Linux deployment tool. Short commands list (in table view):

GroupsWhatHowList groupscat /etc/groupAdd groupgroupadd adminSee group of usergroups Groups of current usergroupsGet ids of user and groupid USERNAME UsersWhatHowAdd useruseradd USERAdd user with groupuseradd -G GROUP USERChange passwordpasswd USERAdd existing to groupusermod -a G GROUP USERDelete useruserdel USERList userscat /etc/passwd | sort

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