ubuntu-14.04

Installing tkinter on ubuntu 14.04

别说谁变了你拦得住时间么 提交于 2019-11-30 07:52:28
I want to run python code on Ubuntu 14.04, but when I execute it, it gives me the following error message Traceback (most recent call last): File "main.py", line 2, in <module> from tkinter import * ImportError: No module named tkinter the_dude Try writing the following in the terminal: sudo apt-get install python-tk Don't forget to actually import Tkinter module at the beginning of your program: import Tkinter If you're using Python 3 then you must install as follows: sudo apt-get update sudo apt-get install python3-tk Tkinter for Python 2 ( python-tk ) is different from Python 3 's ( python3

Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?

和自甴很熟 提交于 2019-11-30 06:13:23
问题 I have applied every solution available on internet but still I cannot run Docker. I want to use Scrapy Splash on my server. Here is history of commands I ran. docker run -p 8050:8050 scrapinghub/splash sudo docker run -p 8050:8050 scrapinghub/splash sudo usermod -aG docker $(whoami) sudo docker run -p 8050:8050 scrapinghub/splash newgrp docker sudo docker run -p 8050:8050 scrapinghub/splash reboot sudo docker run -p 8050:8050 scrapinghub/splash docker run -p 8050:8050 scrapinghub/splash You

How to mount HDFS on Ubuntu 14.04

谁说我不能喝 提交于 2019-11-30 05:14:34
So,I can't mount HDFS on Ubuntu 14.04. Mucommander not working, fuse not working, can somebody explain me with images or make me some tutorial. Thanks, best regards. Alex Dvoretsky I successfuly did it today using instructions on Cloudera site wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/cdh5-repository_1.0_all.deb sudo dpkg -i cdh5-repository_1.0_all.deb sudo apt-get update sudo apt-get install hadoop-hdfs-fuse sudo mkdir -p <mount_point> hadoop-fuse-dfs dfs://<name_node_hostname>:<namenode_port> <mount_point> What OS and version of HDFS do you use? thSoft You have to

Tomcat behind Apache using ajp for Spring Boot application

时光毁灭记忆、已成空白 提交于 2019-11-30 05:12:05
I've been trying to configure Apache web server with a Spring Boot app that uses embedded Tomcat. Before Spring Boot I used to create an ajp.conf file like: <VirtualHost *:80> ServerName localhost <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> ProxyPass /app ajp://localhost:8009/app ProxyPassReverse /app ajp://localhost:8009/app </VirtualHost> And include in the httpd.conf file like Include /opt/lampp/apache2/conf/ajp.conf And in the Tomcat's server.xml file, I used to configure it to listen to port 8009 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"

org.hibernate.internal.util.config.ConfigurationException: Could not locate cfg.xml resource [/HibernateTest/src/hibernate.cfg.xml]

我们两清 提交于 2019-11-30 04:03:51
I am trying to connect to Postgresql9.1 in ubuntu with pgadmin3. My Pgadmin3 GUI tool does not give any option to create tables by right clicking the database, but it is available in some videos I saw. Therefore, I used terminal to create the database and it showed up in pgadmin3. my file structure My Userdetails file package org.nitish.hiber; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class UserDetails { @Id private int userId; private String userName; public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public

Unable to access Webmin through browser

☆樱花仙子☆ 提交于 2019-11-30 02:01:15
I followed DigitalOcean's tutorials on how to set up your server with SSH, creating a new user, firewalls etc. The first tutorial in the series is linked under: https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh I've also installed Webmin on my server, but I still can't get a connection to the server by using the web-browser. It just loads for a long time and then says it can't establish a connection. The URL's I've been using are: "Just-my-IP-adress" and " https://Just-my-IP-adress:10000 " The last one to open the Webmin administrator. I'm not sure what

PHP Startup: Unable to load dynamic library `curl.so` Ubuntu

折月煮酒 提交于 2019-11-30 01:08:45
问题 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/curl.so' - /usr/lib/php/20131226/curl.so: undefined symbol: zend_unset_property in Unknown on line 0 I am using Ubuntu 14.04 LTS and PHP v5.6 There are other versions in same machine php5 and php7 but php5.6 has been enabled. I tried to install cURL by sudo apt-get install php5.6-curl Now I am getting Unable to load dynamic library curl.so After running php -i | grep ini I get the following root@ubuntu:/etc/php/5

error starting docker daemon on ubuntu 14.04 (Devices cgroup isn't mounted)

点点圈 提交于 2019-11-29 23:52:35
I followed docker instructions to install and verify the docker installation (from http://docs.docker.com/linux/step_one/ ). I tried on 2 Ubuntu 14.04 machines and on both I got following error when starting docker daemon: $ sudo docker daemon INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) INFO[0000] [graphdriver] using prior storage driver "aufs" INFO[0000] Option DefaultDriver: bridge INFO[0000] Option DefaultNetwork: bridge WARN[0000] Running modprobe bridge nf_nat br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found. , error: exit status 1 INFO

Docker Error bind: address already in use

蹲街弑〆低调 提交于 2019-11-29 23:37:28
When I run docker-compose up in my Docker project it failes with the following message: Error starting userland proxy: listen tcp 0.0.0.0:3000: bind: address already in use netstat -pna | grep 3000 shows this: tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN - I've already tried docker-compose down , but it doesn't help. In your case it was some other process that was using the port and as indicated in the comments, sudo netstat -pna | grep 3000 helped you in solving the problem. While in other cases (I myself encountered it many times) it mostly is the same container running at some other instance. In

Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED

心不动则不痛 提交于 2019-11-29 22:17:36
问题 I recently upgraded my ubuntu 13.10 64-bit to 14.04 64-bit. Android Studio always worked well on 13.10. On 14.04 I had a problem with gradle (this one), which was a problem with missing libz.so.1. Following this link, I had to install the 32-bit version of this package, and it fixed my problem. Now (I thought it was related), when trying to launch a device emulator, I have this message : ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one