ubuntu-14.04

Howto ban IP with Fail2Ban manually by command line?

半世苍凉 提交于 2019-12-03 05:40:03
问题 How do I ban an attacker IP with Fail2Ban manually by command line? 回答1: You ban him manually by adding his IP to the firewall. If you are using UFW, then you write something like this in your command line: ufw insert 1 deny from <ip> to any But you do not want to do that manually - the purpose of Fail2Ban is to ban someone automatically. Use this tutorial to configure Fail2Ban to automatically update your UFW rules. The importan part is to add banaction = ufw-SOMETHING to your jail.conf ,

Cannot run program “mvn” error=2, No such file or directory

可紊 提交于 2019-12-03 05:38:39
问题 I'm doing a build on my Ubuntu 14.04 LTS but I'm getting the following: Started by user anonymous Building in workspace /var/lib/jenkins/workspace/videovixx > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url https://bitbucket.org/mdennis10/videovixx.git # timeout=10 Fetching upstream changes from https://bitbucket.org/mdennis10/videovixx.git > /usr/bin/git --version # timeout=10 using

yo angular generates files in wrong path ( home directory )

与世无争的帅哥 提交于 2019-12-03 05:10:30
yo angular generates the files in my home directory and I don't know why. I did the following: ppa for node curl -sL https://deb.nodesource.com/setup | sudo bash - then install node sudo apt-get install -y nodejs create a symlink sudo ln -s "$(which nodejs)" /usr/bin/node install yeoman sudo npm install -g yo sudo npm install -g generator-angular next steps from the instruction from https://github.com/yeoman/generator-angular mkdir my-new-project && cd $_ now I run yo angular test1 now all the files will be created in my home directory instead of the my-new-project directory where I am

Sublime Text on Ubuntu 14.04 - Keeps attempting to remove it

白昼怎懂夜的黑 提交于 2019-12-03 03:30:52
问题 Sublime & from Terminal, opens a Sublime Text window, but keep getting this message: (sublime: 6476): GLib-CRITICAL **; Source ID 1982 was not found when attempting to remove it. The Source ID keeps changing. Using Ubuntu 14.04. Any ideas what could be going on? Thanks! 回答1: This page in Ubuntu's bug tracker describes this particular situation. Apparently this is a known bug with 14.04, possibly because of a regression with GLib, or a mismatch between GLib and GTK (so says one of the

How to remove docker completely from ubuntu 14.04

强颜欢笑 提交于 2019-12-03 03:06:39
问题 I installed Docker in Ubuntu while back but when I tried to remove the Docker still exist in the system. I followed this https://stackoverflow.com/a/31313851/2340159 but didn't work. 回答1: Probably your problem is that for Docker that has been installed from default Ubuntu repository, the package name is docker.io Or package name may be something like docker-ce . Try running dpkg -l | grep -i docker to identify what installed package you have So you need to change package name in commands from

Deleted database accidentally by a bash script, rescue please

对着背影说爱祢 提交于 2019-12-03 02:22:22
问题 My developer committed a huge mistake and we cannot find our mongo database anyone in the server. Rescue please!!! He logged into the server, and saved the following shell under ~/crontab/mongod_back.sh : And then he run ./mongod_back.sh , then there were lots of permission denied , then he did Ctrl+C . Then the server shut down automatically. He tried to restart the server, then he got an grub error: He then contacted AliCloud, the engineer connected the disk to another working server, so

How to install docker specific version

。_饼干妹妹 提交于 2019-12-03 02:20:36
问题 How to install specific version of Docker(like 1.3.2 )? I am unable to find any documentation in docker official docs. Referring this link for Ubuntu. Following instructions install docker version 1.0.1 : $ sudo apt-get update $ sudo apt-get install docker.io Also, following instructions install latest version of docker 1.4.1 : $ sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list" $ sudo apt-get update $ sudo apt-get install lxc-docker How can

Where's docker's daemon.json? (missing)

不羁的心 提交于 2019-12-03 01:11:07
From docs : The default location of the configuration file on Linux is /etc/docker/daemon.json But I don't have it on my fresh docker installation: # docker --version Docker version 17.03.1-ce, build c6d412e # ls -la /etc/docker/ total 12 drwx------ 2 root root 4096 Apr 28 17:58 . drwxr-xr-x 96 root root 4096 Apr 28 17:58 .. -rw------- 1 root root 244 Apr 28 17:58 key.json # lsb_release -cs trusty The default config file path on Linux is /etc/docker/daemon.json like you said, but it doesn't exist by default. You can write one yourself and put additional docker daemon configuration stuff in

Tomcat7 bind to port 80 fails in Ubuntu 14.04LTS

主宰稳场 提交于 2019-12-03 01:02:40
问题 I've got a problem with my tomcat7 installation on a newly updated Ubuntu system. Ever since the update to 14.04 LTS, tomcat refuses to start on port 80 with an error that I cannot solve, nor find anything on how to fix it: Information: Initializing ProtocolHandler ["http-bio-80"] Apr 24, 2014 4:39:37 PM org.apache.coyote.AbstractProtocol init Schwerwiegend: Failed to initialize end point associated with ProtocolHandler ["http-bio-80"] java.net.SocketException: Datei oder Verzeichnis nicht

ImportError: No module named datetime

余生颓废 提交于 2019-12-03 01:01:39
When I upgrade my Ubuntu into 14.04 from 12.04, this time I get this error: ImportError: No module named datetime This happened to me when I created a virtualenv and then upgraded from 12.04 to 14.04. I had to delete my virtualenv and recreate it, and after doing that, everything worked again. artisare Just run this command. It worked like a charm! $ cp /usr/bin/python2.7 $(which python2.7) This just happened to me after the 14.10 update, and it seems to be because my virtual environments have old copies of /usr/bin/python2.7 that — unlike the new binary — do not include datetime built-in, and