ubuntu-14.04

Installing Android Studio in Ubuntu 14.04 64-Bit .android/repositories.cfg could not be loaded

℡╲_俬逩灬. 提交于 2019-12-03 00:03:58
When i'm installing Android Studio 2.1 It shows me error ./studio.sh Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0 log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Looking in classpath from com.intellij.util.lang.UrlClassLoader@28c97a5 for /com/sun/jna/linux-x86-64/libjnidispatch.so Found library resource at jar:file:/usr/local/android-studio

Unable to install vim or nano inside docker container

梦想与她 提交于 2019-12-02 23:55:18
Trying to install inside a docker, either vim or nano but I only get this: 0% [Connecting to archive.ubuntu.com (91.189.88.152)] Exit docker and do ping archive.ubuntu.com and I get reply, do the same time inside docker it does not respond. What could be the problem? First I create the docker: sudo docker run -t -i ubuntu /bin/bash Instead of this you can enter in a running docker with his number or name: sudo docker exec -it be8aa338d656 bash Then inside the docker run this code: apt-get update apt-get install vim nano The solution is to run docker with: docker run --net=host Mangat Rai Modi

Could not select 'OK' in mysql-apt-config [Ubuntu 14.04]

 ̄綄美尐妖づ 提交于 2019-12-02 22:40:10
I am using Ubuntu 14.04. sudo apt-get update always give me this option to configure mysql-apt-config. I am have tried to select the version, press 'tab' -> key highlighted on 'OK', press 'Enter' but nothing happens. It goes back again highlighting the version number. Software Updater also crashes at mysql-apt-config. Any idea on what is causing this problem and how to get rid of it? Thx. When you can't do apt-get purge mysql-apt-config because you're trapped: It won't execute because dpkg is interrupted, and "sudo dpkg --configure -a" backs you to the broken "configuring mysql-apt-config"

VIM: Use python3 interpreter in python-mode

我与影子孤独终老i 提交于 2019-12-02 19:39:42
I have recently switched to vim and configured it for Python-programming using this tutorial. Before, I have made sure that vim supports python3 (vim --version shows +python/dyn and +python3/dyn) using this article. But when executing a file from python-mode , still the python2.7 interpreter is chosen. How can I configure vim (or the python-mode) to run files on the python3 interpreter? My OS is Ubuntu 14.04 x64. Thanks in advance! Try adding this to your .vimrc file let g:pymode_python = 'python3' I found this in the help docs. In vim type: :help python-mode By default, vim is not compiled

Howto ban IP with Fail2Ban manually by command line?

孤人 提交于 2019-12-02 19:00:54
How do I ban an attacker IP with Fail2Ban manually by command line? alesc 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 , and then create ufw-SOMETHING.conf in the /etc/fail2ban/action.d/ folder with the following content:

Sublime Text on Ubuntu 14.04 - Keeps attempting to remove it

妖精的绣舞 提交于 2019-12-02 17:53:48
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! 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 commenters). Nothing is trying to remove Sublime, it's just an error in a programming library. If nothing is

Tomcat7 bind to port 80 fails in Ubuntu 14.04LTS

北慕城南 提交于 2019-12-02 16:22:05
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 gefunden at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind

Deleted database accidentally by a bash script, rescue please

最后都变了- 提交于 2019-12-02 15:55:17
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 that he could check the disk. Then, he realized that some folders have gone, including /data/ where the

How to remove docker completely from ubuntu 14.04

社会主义新天地 提交于 2019-12-02 15:51:46
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. 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 https://stackoverflow.com/a/31313851/2340159 to match package name. For example, for docker.io it would be:

ssh multiple commands appends question mark to file name

笑着哭i 提交于 2019-12-02 14:30:55
问题 I have a database transfer script, which uses bzip2 to minimise locking of large databases on a server. First line is ssh root@server "mysqldump db | bzip2 >/root/db.sql.bz2" This works on many servers, but on a new Ubuntu 14.04 server the file created on the server has a question mark appended: ls -la gt* -rw-r--r-- 1 root root 2364190 Nov 21 00:25 db.sql.bz2? Any idea why this may be happening? 回答1: Does your script have CR+LF line-endings? Make sure to use Unix (LF) line endings. 来源: https