Posts

Install Package in User Space in Linux

1. Downlaod the package (Source): If it is an apt package download using this command    apt-get source PACKAGE 2. Use the following command to build configuration file: ./configure --prefix=$HOME/<app name> If it is not taking the --prefix argument then edit the prefix variable in configure file  3. Then use make command: make 4. Then use this command to install: make install

Fixing Snapd issue in Ubuntu

Comment out snapd pre/post installation/removal files from  /var/lib/dpkg/info/< package files>. For further details visit: https://askubuntu.com/ questions/438345/how-to- remove-install-a-package-that- is-not-fully-installed/632523

Pyhton-Lucene installation steps in Ubuntu(tested in 16.04):

Pyhton-Lucene installation steps in Ubuntu(Follow the order): 1. Update apt: sudo apt-get update 2. Install Java: sudo apt-get install openjdk-8-jre-headless openjdk-8-jre openjdk-8-jdk 3. Install Python: sudo apt-get install python 4. Install python-lucene(optional): sudo apt-get install python-lucene 5. Install anaconda2(full python): For 32 bit download and install from: https://repo.continuum.io/archive/Anaconda2-5.0.1-Linux-x86.sh For 64 bit download and install from: https://repo.continuum.io/archive/Anaconda2-5.0.1-Linux-x86_64.sh 6. Then go to <anaconda2 install dir>/bin. 7. Open a terminal in that directory. 8. Now run the following command: ./conda install -c kalefranz pylucene 9. Then run (each time when open a terminal to use pylucene): (if your anaconda installed in your home folder. Otherwise change the path accordingly): export LD_LIBRARY_PATH=/home/$USER/anaconda2/lib:/home/$USER/anaconda2/jre/lib:/home/$USER/anaconda

Ubuntu (family) OS proxy setting

System Wide: Step 1:     Open " /etc/environment " file in edit mode     or     Run the following command in terminal     sudo gedit /etc/environment Step 2:     Add the following lines in that file and then Save & Close         http_proxy="http://username:password@proxyserver:port/"          https_proxy="http://username:password@proxyserver:port/"          ftp_proxy="http://username:password@proxyserver:port/"          all_proxy="http://username:password@proxyserver:port/"     If proxy server does not require any username and password, then the format will be:         http_proxy="http://proxyserver:port/"         https_proxy="http://proxyserver:port/"         ftp_proxy="http://proxyserver:port/"        all_proxy="http://proxyserver:port/" User Specific: Step 1:     Open " ~/.profile " file in edit mode     or     Run the following command in terminal