.bashrc at ssh login
.bashrc is not sourced when you log in using SSH. You need to source it in your .bash_profile like this: if [ -f ~/.bashrc ]; then . ~/.bashrc fi
.bashrc is not sourced when you log in using SSH. You need to source it in your .bash_profile like this: if [ -f ~/.bashrc ]; then . ~/.bashrc fi
Let’s start with: chmod 777 is great for testing, but absolutely unfit for the real world and you shouldn’t get used to this setting. Rather set the owner/group correctly, before you give world write permissions. Edit: A similar question just came up on the Tomcat mailing list, and Emmanuel Bourg pointed out that Debian Tomcat … Read more
By default, when building OpenCV from source, it will place it’s output in /usr/local/lib and /usr/local/bin. Although, judging from your error messages, it looks like it placed the libraries in /usr/lib and the binaries in /usr/bin, so you might also check in there. You can also use the Linux find command. So, to find all … Read more
Two things worked for me, STEP 1 : stop hadoop and clean temp files from hduser sudo rm -R /tmp/* also, you may need to delete and recreate /app/hadoop/tmp (mostly when I change hadoop version from 2.2.0 to 2.7.0) sudo rm -r /app/hadoop/tmp sudo mkdir -p /app/hadoop/tmp sudo chown hduser:hadoop /app/hadoop/tmp sudo chmod 750 /app/hadoop/tmp … Read more
If sudo apt-get install -f <package-name> doesn’t work, try aptitude: sudo apt-get install aptitude sudo aptitude install <package-name> Aptitude will try to resolve the problem. As an example, in my case, I still receive some error when try to install libcurl4-openssl-dev: sudo apt-get install -f libcurl4-openssl-dev So i try aptitude, it turns out I have … Read more
The plugin vagrant-vbguest solved my problem: $ vagrant plugin install vagrant-vbguest Output: $ vagrant reload ==> default: Attempting graceful shutdown of VM… … ==> default: Machine booted and ready! GuestAdditions 4.3.12 running — OK. ==> default: Checking for guest additions in VM… ==> default: Configuring and enabling network interfaces… ==> default: Exporting NFS shared folders… … Read more
When you typed in sudo sendmailconfig, you should have been prompted to configure sendmail. For reference, the files that are updated during configuration are located at the following (in case you want to update them manually): /etc/mail/sendmail.conf /etc/cron.d/sendmail /etc/mail/sendmail.mc You can test sendmail to see if it is properly configured and setup by typing the … Read more
I fixed this by running: sudo apachectl stop It turns out apache was running in the background and prevented nginx from starting on the desired port. On Ubuntu, run: sudo /etc/init.d/apache2 stop
See the discussion here: https://github.com/docker/docker/issues/4032. In short, setting ENV DEBIAN_FRONTEND noninteractive is not recommended as it persists in the final image, even when running something like docker run -i -t … bash. Therefore it is recommended either to omit DEBIAN_FRONTEND and live with the warning, or specify it explicitly for each command e.g. RUN DEBIAN_FRONTEND=noninteractive … Read more
The task itself is not specific to docker as you would need to add that CA on a normal system too. There is an answer on the askubuntu community on how to do this. So in a Dockerfile you would do the following (don’t forget chmod in case you’re running the container with a user … Read more