FAQ Database Discussion Community


Unable to deploy through capistrano after ubuntu upgrade

ruby-on-rails,ubuntu,ruby-on-rails-4,deployment,capistrano
I recently upgraded my development machine to Ubuntu 15.04 (was 14.04LTS) and ran into a problem when trying to deploy changes to my server. The interesting bit is, that I can ssh into my server without any issues (hence, the key file is setup correct), but when I try to...

phpinfo() not working in apache2

php,apache,ubuntu
I wanted to install php5.3 on ubuntu 14.04(its not natively available as ubuntu pkg), so I installed each apache2, mysql5.6 and php5.3 separately. PHP5.3 is utmost important for my project. Now i wanted to test if each of them was working fine together. I created a info.php file in /var/www/html/...

Pylucene 4.9.0 Ubuntu 14.04 Installation ImportError

python,ubuntu,lucene,pylucene
I've been trying to install Pylucene on my Mac for a little over a week, and have given up on that in favor of trying to install it with Ubuntu through a virtual machine. I thought the installation process had gone well, so I fired up Python in the terminal...

c++ expected template-name before ‘<’ token error [closed]

c++,templates,ubuntu,inheritance,g++
I´ve browser other similar topics and did not find answer for my problem... Here are my classes, a base one and a derived one: Base.hpp namespace test { template<class T> class Base { public: Base(); virtual ~Base(); }; } Base.cpp #include "Base.hpp" namespace test { template<class T> Base<T>::Base() { //...

Has anyone successfully used codedeploy on Ubuntu?

ubuntu,aws-code-deploy
I'm trying to to use AWS codedeploy on ubuntu. The Agent does not start. Here's what the Userdata looks like: "UserData" : { "Fn::Base64" : { ... "# Install the AWS CodeDeploy Agent.\n", "aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . \n", "apt-get install alien", "alien /root/codedeploy-agent.noarch.rpm", "dpkg -i codedeploy-agent_1.0-2.727_all.deb > codedeploy-agent.log"**** ...

Anyone successfully used jonnyw's “php phantomjs” with laravel, in a ubuntu envirement?

php,ubuntu,laravel,phantomjs
Anyone sucessfully used jonnyw's "php phantomjs" with laravel, in a ubuntu envirement? I do not know if I am doing anything wrong, but I am questioning if it would be possible that it is not possible to use it with laravel in linux... I get all the time "Error when...

Trouble Connecting to MySQL via SSH

javascript,node.js,ubuntu,ssh,node-mysql
I am running a node Express website on my OS X machine locally. I need to ssh to a remote mysql database so I can start writing queries against it. Now I'm able to ssh to our remote server (running the mysql database) in the cloud when I do it...

Installing mod_wsgi for Python3 on Ubuntu

ubuntu,python-3.x,pip,virtualenv,mod-wsgi
Could anyone give me a clear set of instructions for installing mod_wsgi on Ubuntu for Python 3? I did get Flask & mod_wsgi successfully using Python3, and for a brief moment felt happy. ...until I looked at Apache's log and realised that I've run into this problem: https://askubuntu.com/questions/569550/assertionerror-using-apache2-and-libapache2-mod-wsgi-py3-on-ubuntu-14-04-python apt-get is...

Nginx redirect http subdomains to https

ubuntu,redirect,ssl,nginx,rewrite
I have one domain with 3 subdomains: - example.com (main domain) - api.example.com - blog.example.com - support.example.com (just a cname to point to zendesk) And I have this 3 configuration on my Nginx: api # HTTP server server { listen 80; server_name api.example.com; return 301 https://api.example.com$request_uri; } # HTTPS server...

Icecast on virtualbox ubuntu through router

ubuntu,router,icecast
I'm using icecast2 server on my virtual ubuntu machine and i want it to become available to connect by entering myIP:port, but i have router. I made port forwarding settings on my router to connect to inner IP if asking for outerIP:port. What settings i should do in virtualbox to...

Can not increase max_open_files for Mysql max-connections in Ubuntu 15

php,mysql,performance,ubuntu
I am running this version of Mysql Ver 14.14 Distrib 5.6.24, for debian-linux-gnu (x86_64) On this version of Ubuntu Distributor ID: Ubuntu Description: Ubuntu 15.04 Release: 15.04 Codename: vivid This is the config I set for Mysql: key_buffer_size = 16M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 innodb_buffer_pool_size=20G...

How to attach several files in mail using unix command?

mysql,email,ubuntu,sendmail,ubuntu-14.04
I'm implementing a script to backup my MySQL database. All process is OK and I send an email when it finish. But I want to attach the file in that email and I don't know how to do it. My command line is: mail -s "$1" -a "MIME-Version: 1.0;" -a...

The reduce task is stopped by Too Many Fetch Failure message in Hadoop multi node (10x) cluster

java,linux,ubuntu,hadoop,distributed
I am using Hadoop 1.0.3 for a 10 Desktop cluster system each having Ubuntu 12.04LTS 32 bit OS. The JDK is 7 u 75. Each machine has 2 GB RAM with core 2-duo processor. For a research project, I need to run a hadoop job similar to "Word Count". And...

How to redirect standard output to a file — what's wrong with this code?

c,linux,ubuntu
I'm using a C program on my raspberry pi2 with a 433mhz receiver to read codes that are transmitted. This program sniffing 433mhz codes. To run it, I use the following command: sudo ./RFSniffer and if a code is found, the program displays in the console something like : Received...

Keyboard issues with Android Studio on Ubuntu

android,ubuntu,android-studio,ubuntu-14.04
While using Android Studio on Ubuntu there are scenarios where the IDE will stop responding to keyboard input or start inputting random characters? How to fix this? Or possible workarounds. ...

Installing findbugs on Ubuntu

maven,ubuntu,hadoop,findbugs
For the purpose of building hadoop, I need to install findbugs. I tried to install it by following the link. I see that findbugs had installed properly. But when I run the maven build command for hadoop I still see the same error at hadoop-common: [ERROR] Failed to execute goal...

Sublime Text build system on Ubuntu: Cannot chain pkill command regardless of success

linux,bash,ubuntu,sublimetext,build-system
I'm trying to first kill a running process pkill -f "java.*MySketch" then run it again processing-java --sketch="~/MySketch" --output="~/MySketch/build-tmp" --run --force However on first build the process isn't running so pkill finds nothing. I want the build system to skip this error and move on to executing processing-java. Processing.sublime-build "linux": {...

Can't install Composer on Ubuntu behind proxy

php,ubuntu,proxy,composer-php
I'm trying to install Composer, in order to use Laravel, but I'm behind the company proxy. The proxy is already configured in the system, so wget --proxy-user=<my_user_name> --proxy-password=<my_password> https://getcomposer.org/installer works (curl doesn't!), and I get the 270kB "installer" file. Next, I'm trying to run php installer as the manual says,...

How to get a list of all installed applications in client's computer?

javascript,html,windows,ubuntu,web
I want to know the html code which can list all applications installed in client's PC ?? Does any one know the way ?? Thanks for response in advance.

Unable to get system thread id from python thread id in python 2.7

python,ubuntu
Python 2.6 used to have undocumented function called tmap. This function is not there in python 2.7. This tmap function was there in threading package. I tried to search for any function in 2.7 that can provide similar functionality without luck. I tried to port the tmap from python 2.6.7...

JFrame wrong location with Ubuntu (Unity ?)

java,swing,ubuntu,jframe,location
It seems that there is a bug with Ubuntu (maybe only unity). The decoration of the JFrame is taken into account for getLocation() and getSize(), but not for setLocation() and setSize(). This leads to weird behaviour. For instance, if you use pack() after the frame is displayed and the dimensions...

What's the proper way of running a mongos client for a sharded cluster?

mongodb,ubuntu,sharding
I have a mongodb cluster up and running. I want to setup a client (mongos) to connect to the config servers from ubuntu. Most instructions just say to run this command: mongos --configdb cfg0.example.net:27019,cfg1.example.net:27019,cfg2.example.net:27019 Is this command running as a service? Will the process still be running when I exit...

Not able to format namenode in hadoop-2.6.0 multi node installation

ubuntu,hadoop,installation,yarn
I am trying to install Hadoop-2.6.0 in ubuntu 14-04 machine. 5 node cluster. But when I format the namenode, it gives me the following error No command 'hdfs' found, did you mean: Command 'hfs' from package 'hfsutils-tcltk' (universe) Command 'hdfls' from package 'hdf4-tools' (universe) hdfs: command not found And in...

valgrind improper output location

c++,ubuntu,valgrind
I have a program that is supposed to run valgind on another program and direct the valgrind output to another file. The code I'm using is: char* args[] = {"sudo", //(This is inside a fork) "valgrind", "--leak-check=full", "--show-leak-kinds=definite", "--errors-for-leak-kinds=definite", "<path to executable>", //placeholders "&><path to output file>", //placeholders "\0"}; execvp("sudo",args);...

Summing numbers after string

linux,ubuntu
I have the following data stored in a file: number1:0 number2=1 minnumber2number3:1 minnumber3:0 minnumber4:0 maxnumber2number3:1 maxnumber3:0 maxnumber4:0 no. of number5 per bucket:35 num: number1:0 number2=0 minnumber2number3:3 minnumber3:3 minnumber4:11577215 maxnumber2number3:3 maxnumber3:3 maxnumber4:14707215 no. of number5 per bucket:6 num: number1:0 number2=1 minnumber2number3:1 minnumber3:0 minnumber4:0 maxnumber2number3:3 maxnumber3:1 maxnumber4:1882188 no. of number5 per bucket:8...

Fail to build Mono.Addins with the latest Mono 4.3.0 and GTK# on Ubuntu 14.04

ubuntu,mono
Trying to build the latest Monodevelop with latest Mono. I have successfully installed Mono 4.3.0 and GTK#. As I can see, Monodevelop needs Mono.Addins installed, but when I trying to install latest Mono.Addins, it fails with next errors: Mono.Addins.Gui/AddinManagerDialog.cs(189,24): error CS0506: `Mono.Addins.Gui.AddinManagerDialog.Dispose()': cannot override inherited member `GLib.Object.Dispose()' because it is...

Android with outside database [closed]

java,mysql,ubuntu
Hy, Can you help me, i am new in Android databases. I want create database on server, and connect android to server. Can you give me some advice.. I don't want stuck, i need your advice,..

Building CUDA-aware openMPI on Ubuntu 12.04 cannot find cuda.h

ubuntu,cuda,mpi
I am building openMPI 1.8.5 on Ubuntu 12.04 with CUDA 6.5 installed and tested with default samples. I intend to run it on a single node with following configuration: Dell Precision T7400 Dual Xeon X5450 Nvidia GT730/Tesla C1060 The configure command issued was $ ./configure --prefix=/usr --with-cuda=/usr/local/cuda In the generated...

Move git configuration from Windows to Ubuntu

git,ubuntu,github,ssh-keys
I recently started using git on windows 7 and configured everything to access Github, Bitbucket and a private server over ssh. Now I am switching to Ubuntu OS and I am not sure how to copy the keys and configuration settings over to Ubuntu. Will you please help me out...

Bash: Loop through file and read substring as argument, execute multiple instances

linux,bash,ubuntu,lftp
How it is now I currently have a script running under windows that frequently invokes recursive file trees from a list of servers. I use an AutoIt (job manager) script to execute 30 parallel instances of lftp (still windows), doing this: lftp -e "find .; exit" <serveraddr> The file used...

Unable to connect to mariadb database server with qt 4.8.5 and Ubuntu 12.04

mysql,qt,ubuntu,mariadb
I use the following code to connect to a MySQL server database. QSqlDatabase db_Server = QSqlDatabase::database("Test"); //find mysql driver db_Server = QSqlDatabase::addDatabase("QMYSQL","Test"); db_Server.setHostName("188.**.***.***"); db_Server.setPort(3306); db_Server.setDatabaseName("Test"); db_Server.setUserName("Test"); db_Server.setPassword("*********"); bool ret = db_Server.open(); if(ret) qDebug() << "Database open" else qDebug() << db_Server.lastError().text(); Lately they changed the server to mariadb and I assumed...

Error in installing newspaper3k package via pip

python,ubuntu
I am trying to install newspaper3k. I am doing all accordingly to the installation guide sudo apt-get install python-dev sudo apt-get install libxml2-dev libxslt-dev sudo apt-get install libjpeg-dev zlib1g-dev libpng12-dev pip3 install newspaper While running pip install newspaper I am getting: Traceback (most recent call last): File "<string>", line 17,...

Write Access for user on all repos on Gitolite

git,ubuntu,gitolite
I'm trying to add access to read, write and create new repos from my local to a gitolite server. I have the following config on my gitolite server, but it doesn't want to let me push to a new repo: repo @all RW+ = git repo gitolite-admin RW+ = git...

Docker error : no space left on device

ubuntu,memory,docker,temp
I installed docker on a Debian 7 machine in the following way echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list sudo apt-get update curl -sSL https://get.docker.com/ubuntu/ | sudo sh After that when I first tried creating an Image it failed with the following error time="2015-06-02T14:26:37-04:00" level=info msg="[8] System error: write /sys/fs/cgroup/docker/01f5670fbee1f6687f58f3a943b1e1bdaec2630197fa4da1b19cc3db7e3d3883/cgroup.procs:...

pyreport LaTeX formulae not working

python,ubuntu,latex,pyreport
I'm trying to create a HTML report using pyreport and it works up to the single point, that the LaTeX formulae are not generated. Here is the input file I use for testing: #$ This is \LaTeX : $c = 2\cdot(a+b)$ Than I run pyreport -l -t html --verbose file.py,...

PNG image is not created with imagepng even inside a 0777 directory

php,linux,ubuntu
From an Android app I post a photo into a webserver. Inside the PHP script I want to save the file inside a directory : $name = "parcelle_" . $photo->lireBienPhotoSeq() . ".png"; if ( ! file_exists (RP_PHOTO_PARCELLE) ) { mkdir(RP_PHOTO_PARCELLE, 0777, true); chmod(RP_PHOTO_PARCELLE, 0777); } $dest = DIR_MAIN . '/data/photo_parcelle/'...

cuMemcpyDtoH yields CUDA_ERROR_INVALID_VALUE

java,scala,ubuntu,cuda,jcuda
I have a very simple scala jcuda program that adds a very large array. Everything compiles and runs just fine until I want to copy more than 4 bytes from my device to host. I am getting CUDA_ERROR_INVALID_VALUE when I try to copy more than 4 bytes. // This does...

Executing a Linux command in Terminal from Java

java,eclipse,ubuntu,terminal,virtuoso
I am currently using a command called "curl" from Terminal in Ubuntu, tu upload my .RDF files to a Virtuoso RDF Store. curl -T FILE URL -u USER:PASSWORD I want to automatize these process, so that I create a Java function in eclipse. This code is not working. String[] command...

shell script to start conky and plank

bash,shell,ubuntu,conky
I have just started to learn shell scripting on Ubuntu and thought of writing a basic script which starts conky and plank and placing it in /usr/bin so that I can run it as a command.I did make it an executable too. #!/bin/bash echo `conky -q &` echo `plank &`...

Ubuntu down load a package and all of its dependencies without installing them

ubuntu,download,package
I need to download a package and all of its dependencies without installing any of them. I'm looking for a command like apt-get -R --download-only install package-name Or any solution that would produce the same result. Based on my research I could not find a solution that produces this and...

Redirect all requests, to Base URL without, using .htaccess

ubuntu,redirect,apache2
When I browse example.com/img it shows all the directory contents. This leads to security problem . How to redirect these kind of url requests to example.com but without using htaccess

Zombie process - Finding it

c,ubuntu
I used inotify() function in my program to monitor /proc directory. Now my job is to find when a process become zombie. Then i need output a warning that zombie process was found. At the moment program is recording some of the changes but i don't know how to find...

How can I run a libGDX application on a non-GUI server environment?

java,linux,ubuntu,libgdx,server
I built a libGDX application that runs well on my PC desktop but when I try to run it on my Ubuntu server, it raises the following error: "LwjglApplication: Couldn't initialize audio, disabling audio java.lang.UnsatisfiedLinkError: /tmp/libgdxroot/31ce78a2/liblwjgl64.so: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/../lib/amd64/libjawt.so: symbol awt_Unlock, version SUNWprivate_1.1 not defined in file libmawt.so with link time reference"....

Error installing gem twitter on Ubuntu 15.04

ruby-on-rails,ruby,ubuntu,twitter
Am trying to install twitter gem on Ubuntu 15.04 and this error keeps popping up gem install twitter Building native extensions. This could take a while... ERROR: Error installing twitter: ERROR: Failed to build gem native extension. /usr/bin/ruby2.1 extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed,...

Phantom Mercurial, How to remove?

ubuntu,installation,mercurial,tortoisehg
I'm trying to install TortoiseHg on Ubuntu 14.04. It went fine, but trying to open it complains about having an unsuported Mercurial version (3.4.1). I removed via: sudo apt-get remove mercurial sudo apt-get purge mercurial sudo dpkg -r mercurial sudo dpkg --purge mercurial It comes out as successful, but if...

How to share home directory for different users of GUI desktop application?

python,user-interface,ubuntu,permissions
I am developing notebook GUI application for field support people (i.e. there is only one user logged into system at any one time). There is only one user application program running started in User Defined Session (i.e. there is only one desktop format file in /usr/share/xsession/ starting GUI application on...

How to deal with libraries like Boost when cross compiling for arm?

ubuntu,cmake,g++,cross-compiling,beagleboneblack
I'd like to cross compile from my AMD64 desktop to ARM7 for Beagleboard Black. So I started with this to get the cross compilers installed: sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf I also created a cmake toolchain file: set (CMAKE_SYSTEM_NAME Linux) set (CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) set (CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) When I run cmake,...

Elasticsearch 1.6 reboot on ubuntu pid-file

linux,ubuntu,elasticsearch,pid
Has anyone here installed the latest version of Elasticsearch on a Ubuntu? If so you might have encountered the elasticsearch PID_DIR issue when rebooting the Ubuntu server. The file PID file is written to this directory: /var/run/elasticsearch but it's not actually there on Linux reboot because it gets deleted by...

Delay packets using Netem on Virtual Machine

ubuntu,networking,terminal,virtualbox
I'm trying to delay packets using Ubuntu on a virtual machine, but when I type in the terminal: tc qdisc add dev eth0 root netem delay 100ms I get: RTNETLINK answers: Operation not permitted. I'm working as an intern and I got assigned to a clock synchronization project on a...

Chrome all of a sudden zoomed in on ubuntu

linux,google-chrome,ubuntu
My chrome browser is all of a sudden really zoomed in on my ubuntu system. Not not page content where I can easy control the zoom - but the actual browser! Does anyone know what is going on? I am on the normal 1920x1080 resolution - but my browser must...

Python3 input() error: can't initialize sys standard streams

ubuntu,python-3.x
I'm running Python 3.4.3 on Ubuntu 15.04 and just encountered a very strange problem when trying to use the input() function. To isolate the problem Iv'e created a file called test.py contaning: print(input()) When running it, I receive this error: $ python3 test.py Fatal Python error: Py_Initialize: can't initialize sys...

Error installing nokogiri in ubuntu 14.0.4 (Ruby 1.8.7)

ruby,ubuntu,gem,install,nokogiri
I'm trying to install the bundle(bundle install) in Ubuntu 14.0.4 installed Ruby 1.8.7.And it fails to install the bundle and displayed the error: An error occurred while installing nokogiri (1.4.7), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.4.7'` succeeds before bundling. so now I tried to...

Ubuntu Server TFTP on vitualbox

linux,ubuntu,tftp
I know there are loads of similar questions and I have tried so many solutions none of which work! I have my first Ubuntu Server virtual machine (12.04) to practice my PHP skills on. I however can't get my php files from my host machine (windows 7) to the server!...

@font-face for icons not working in Chrome-Ubuntu

css,google-chrome,ubuntu,fonts
I've recently started using Ubuntu. I installed Chrome from the installer provided on Google's website. When I started working on my sites, I noticed the icons didn't show. They work fine on Windows and on Firefox (both Windows and Ubuntu). I used Fontastic to generate the webfonts from SVG files....

How do I respond to a prompt for password in a shell script?

bash,ubuntu,vnc
I'm writing a shell script to set a VNC password using vncpasswd. The only way to use vncpasswd is in interactive mode (enter password, return, confirm password, return). How can I respond to the prompts in my shell script so I can set the password automatically? (i.e. non-interactive). Thanks! Chris....

In ubuntu unable to write file in specified directory using java

java,ubuntu,io
While trying to write file in specified directory i am getting exception. Java code :- public void jsonToYaml(JSONObject json, String studioName) throws JSONException, org.codehaus.jettison.json.JSONException, IOException { Yaml.dump(Yaml.dump(JsonToMap.jsonToMap(json)), new File("config.yml")); BufferedReader br = new BufferedReader(new FileReader("config.yml")); String line; studioName = studioName.toLowerCase(); File writeFile = new File("sudo /var/iprotecs/idns2.0","" + studioName + ".yaml");...

ImportError: No module named opencv after installing python-opencv in Ubuntu 14.04

python,opencv,ubuntu,install,ubuntu-14.04
I install opencv in python with running $ sudo apt-get install python-opencv and installed successfully. but when run this code import opencv import opencv.highgui import time import commands def get_image(): image = opencv.highgui.cvQueryFrame(camera) return opencv.adaptors.Ipl2PIL(image) camera = opencv.highgui.cvCreateCameraCapture(-1) while 1: image = get_image() image.thumbnail((32, 24, )) image = tuple(ord(i) for...

access external HDD to all user ubuntu [on hold]

ubuntu,mount,hdd
I have a machine running on ubuntu 14.04 Desktop version. I need to connect a external HDD to the machine and have it setup such a way that all the available users -standard/administrator- could have access to the HDD while they are ssh ing to this machine. Is it possible?...

Run simple Java class file with crontab

java,ubuntu,cron,crontab
I'm trying to run a simple java helloworld program with crontab. I made the following java code: helloworld.java: class HelloWorld { public static void main (String args[]) { System.out.println("Hello world"); } } I then try to run this from a crontab in the following sequence: crontab -e At the end...

Would using Vagrant be overkill? [on hold]

python,windows,ubuntu,vagrant,virtualbox
I'm a developer-hobbyist running Windows 8.1 on a Yoga 2 Pro. I mostly do Python/Django work but I think I'm gonna pick up Ruby soon. The thing is, Windows always seems to be the limiting factor for any project I want to pick up. Last time I tried to install...

Send alert for 80% threshold comparing two values from Disk partition

linux,unix,ubuntu,storage,diskspace
Need send a alert comparing two values of disk space for all partition It should check for SIZE and USED values and compare values makesure not more than 80% Filesystem Size Used Avail Mounted /dev/sda1 9,9G 3,3G 6,1G / none 17G 213k 17G /dev none 17G 0 17G /dev/shm none...

PHP cannot assign rights on directory

php,linux,ubuntu
I want to create a directory in the script of my page : $critere = array(); $critere["bien_code"] = read_post_int("pk"); $name = "parcelle_". $photo->lireBienPhotoSeq().".png"; if ( ! file_exists (RP_PHOTO_PARCELLE) ) mkdir(RP_PHOTO_PARCELLE, 0777, true); $dest = RP_PHOTO_PARCELLE . $name; The problem is that the rights of the directory is just 755 when...

how to ssh run a tail and then send data to a mysql database

linux,bash,unix,ubuntu,ssh
This code SSH's and then runs a tail command on a remote hots. I would now like to pass that tailed data into a mysql database using a local script called insertPerfmon.sh. How do I pass data generated in a ssh session into the local shell script insertPerfmon.sh. The local...

connect to mysql database which is in ubuntu server

php,mysql,ubuntu,azure,virtual-machine
I am using below code to connect MySQL database in PHP. try { shell_exec("ssh -f -L 3307:127.0.0.1:3306 [email protected]_ip sleep 60 >> logfile"); $this->_conn = $this->dbh = new PDO('mysql:host=127.0.0.1;dbname=my_db', DB_USER, DB_PASS); $this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { die("Couldn't connect to database. Please try again!"); } I want to direct connect...

terminal command for running sublime text 3 from on ubuntu

linux,ubuntu,terminal
I've installed a new dev machine using Ubuntu 14.02. I have also installed all the relevant software. php/apache2/sublime/composer etc. I'd like to be able to open files with a sublime or subl command in the terminal, but can't seem to find the command to point things correctly. My sublime executable...

Cannot set PHP include_path

php,ubuntu,path,include-path
I have uploaded all my files in var/www/html and in one of my php files I have this line : require_once('libraries/stripe/init.php'); the structure of my folders are list this: www -html/ -libraries -> Stripe -> init.php -register.php I keep getting this error message: Warning: require_once(libraries/Stripe/init.php): failed to open stream: No...

How do I switch between different versions of Julia (specifically between v0.3 and v0.4 on Ubuntu)?

linux,ubuntu,ubuntu-14.04,julia-lang
I am working on some projects using Julia v0.3. However, I'd like to test my code in both v0.3 and v0.4 (since some of the people that are going to be using it are already using v0.4). I'm running Ubuntu 14.04 and have installed Julia using apt-get. I know v0.4...

PHP Autoloader doesn't work on Ubuntu production server

php,ubuntu,composer-php
I have to environments i'm working developing my API (PHP based): Local development: Mac OS Yosemite - running PHP 5.5.20 Production server: Ubuntu server - running PHP 5.5.9 My code uses composer for auto loading as followed: { "require": { "facebook/php-sdk": "@stable", "everyman/neo4jphp": "dev-master", "predis/predis": "1.0.1", "aws/aws-sdk-php": "2.*" }, "autoload":...

set up Apache2 virtual hosts and now MongoDB connection refused

mongodb,ubuntu,amazon-web-services,apache2
I'm running Ubuntu 14.04 on an AWS EC2 instance with Apache2. This morning I upgraded my Apache2 settings to allow multiple virtual servers following these instructions: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts Just now I tried to access my MongoDB instance, but I cannot do it either through the PHP MongoDB driver or through the...

How do I make all files executable that have the file extension .cgi?

ubuntu,file-permissions
My server downloads its files from git hub to make sure they are up to date and make it easier for me to edit the files. I have set up a cron job that will update the files every few minutes. However I am having a problem as the CGI...

Ubuntu 14.04 - An error occurred while installing pg (0.18.2), and Bundler cannot continue

ruby-on-rails,postgresql,ubuntu,heroku,sqlite3
This issue doesn't let me go ahead and I don't know whether it's possible for me to deploy my Rails App ever on Heroku. When I try bundle install by having gem 'pg' in my Gemfile it gives following error. An error occurred while installing pg (0.18.2), and Bundler cannot...

Block devices is not visible from aws console

ubuntu,amazon-web-services
there is an block device (xvdb) whic is 30GB. it is not existing in aws console so i cannot get image (copy) of this block. is there anyway to get copy of this block with aws management console? ...

Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py

python,django,apache,ubuntu,nltk
To elaborate a little more from the title, I'm having issues importing nltk to use in a django web app. I've deployed the web app on an apache2 server. When I import nltk in views.py, the web page refuses to load and eventually times out after a few minutes of...

No space left on device [closed]

ruby-on-rails,apache,ubuntu,amazon-web-services,storage
I can no longer generate new columns in my database. My stack is below. I am new to managing my own server and am unfamiliar with Apache, Ubuntu and AWS. Currently I am receiving an error saying that I have no space left. It looks like my folder /dev/xvda1 is...

The box 'laravel/homestead' could not be found

php,ubuntu,laravel,vagrant,laravel-5
Trying to configure laravel 5.1. Cloned the laravel/homestead After cloning it to Home directory. Throwing error when tried to run the vagrant up command as below: [email protected]:~/laravel/homestead$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... There are errors in the configuration of this machine. Please fix the following errors...

Access binaries inside docker

ubuntu,meteor,docker
I am using Meteor and Meteur Up package to push a bundle to server. It uses docker. The problem is that I cannot access graphicsmagick or imagemagick from inside a docker to use it in my app. However it is installed on the server and I can access it when...

Is it possible to dump the core but not exit the process?

c++,c,ubuntu,core
I want to be able to generate a core dump but not exit the process afterwards. I don't need it to continue execution, just not die. This is a C++ Ubuntu process. I believe I'm dumping the core in a pretty standard way: I catch the offending signal via setting...

Zip all subdirectories using python

python,linux,unix,ubuntu
I am attempting to create a script that zips all of the subdirectories of a folder, then deletes the folders which have now been zipped import shutil import os loc = "foldertzipfilesin" path = "/whereparentis/" + loc + "/" dirs = os.listdir( path ) for file in dirs: name =...

Pretty URLs aren't working after upgrade to Mediawiki 1.24.2

.htaccess,ubuntu,mediawiki
So I am moving a Mediawiki site of mine to a new server. The version 1.20.3 worked fine on the old server running Ubuntu 12.04. However, when I copied everything over to my new server running Ubuntu 14.04 it didn't. So after messing with it for a while I decided...

Error in reading Ubuntu 14.04 mouse event file (/dev/input/event3) with java programmig

java,events,ubuntu,terminal,mouse
I want to handle mouse event in Linux terminal via java programming. I wrote two program via c++ and java that they do same process. when i use c++ programming to open and read file ("/dev/input/event3"-mouse event file), there is no problem while running executable file. (Ubuntu 14.04 terminal and...

What is version of cuda for nvidia 304.125

ubuntu,cuda,ubuntu-14.04,nvidia
I am using ubuntu 14.04. I want to install CUDA. But I don't know which version is good for my laptop. I trace my drive that is $cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 304.125 Mon Dec 1 19:58:28 PST 2014 GCC version: gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)...

How does using -L affect the linker?

linux,ubuntu,gcc,linker,ld
I'm rather new on Linux, so maybe this is a simple question. The question is: How does adding a -L/path affect the linker when there are no libraries attached? my issue: I'm trying to set up a cross-compilation toolchain featuring two pieces of third-party libraries¹. I'm using the linaro arm-linux-gnueabihf-raspbian...

Building RethinkDb server in Ubuntu 14.10 results in an error

ubuntu,rethinkdb
I tried to compile RethinkDb from source code following this official link. But running this command sudo make install results in an error at step 7: [7/13] M4 build/release/assets/rethinkdb.1 bin/bash: m4: command was not found ...

Installing python 32 bit on 64 bit Kubuntu

python,linux,ubuntu,virtualenv
I would like to switch form Windows to Linux for python development. Since I want to use pyside I need a 32 Bit python under my 64 Bit Kubuntu. Running 32 Bit python under 64 Bit Windows is peace of cake. Under Linux it seems to be a lot of...

qpid_messaging ruby gem compilation fails (Apache Qpid messaging api)

ubuntu,compilation,rubygems,qpid
I have tried many things but, no luck, im on Ubuntu 14.04.2 LTS. So Here it is the problem: http://pastebin.com/eYftQcaP

Creating a docker swarm cluster in Vagrant

ubuntu,vagrant,virtual-machine,docker-swarm
I'm trying to create a swarm cluster of diffferent ubuntu VMs running in Vagrant. These have docker enabled via the vagrant file that boots them. Of the three VM's I started the swarm cluster on one machine in the following way docker pull swarm docker run --rm swarm create This...

Error execute studio.sh unrecognized vm option 'MaxPermSize=350m' on Ubuntu 14.04

ubuntu,android-studio,ubuntu-14.04
Error to Execute/Install studio.sh on Ubuntu: [email protected]:~$ cd android-studio/bin [email protected]:~/android-studio/bin$ ./studio.sh Unrecognized VM option 'MaxPermSize=350m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. And with some knowledge after searching on search engines, I open the studio.vmoptions file in edit mode and...

Trouble running C++ through terminal in Ubuntu

c++,linux,ubuntu,gcc,terminal
Hello Stack Community, My lack of reputation didn't allow me to post the picture of my problem. SO here it is in words- I wrote the following code after using "gedit take_input.cpp". #include <iostream> int main() { cout<<"please enter your name (followed by 'enter')\n"; string file; cin >> file; cout<<"hello"...

WalkingDead Program - Finding zombies and orphans

c,ubuntu
For my school paper i need to write a program that monitors all the processes in /proc directory and recording notices when processes become zombie or orphan. I know some commands which i need to use but i don't know how to implement in program. There is code that finds...

How does one install MarkLogic 8 on Ubuntu 14.04?

ubuntu,install,marklogic
What are the steps to install MarkLogic 8 on Ubuntu 14.04?

netstat: parse (awk?) output to return “Program name” not “PID/Program name”

bash,ubuntu,awk,netstat
UBUNTU 14.04 netstat -p outputs both "PID/Program name" in the same column. I just want "Program name" in that column. What's the easiest way to do this? Actual Output [email protected]:~# netstat -tlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0...

sdl linking prolem ubuntu

c,ubuntu,sdl
I have Ubuntu 14 LTs I'm trying to compile a simple code using SDL library.but i get the answer: game.c: In function ‘main’: game.c:11:3: warning: format ‘%s’ expects argument of type ‘char'but argument 3 has type ‘int’ [-Wformat=] fprintf (stderr, "could not initialize SDL: %s\n", SDL_Get_Error()); ^ /tmp/ccMGHXqV.o: In function...

Kill command in UNIX

linux,bash,shell,unix,ubuntu
If I execute the Following command all the process will be killed and the account is logged out. Command: kill -9 -1 It is similar to the logout command. In Unix, no such process having the pid as "-1". So, what is the reason for this result?...

Protobuf cannot be linked on ubuntu

c++,ubuntu,linker,cmake,protocol-buffers
I try to use protobuf but somehow the linking fails (here just snippet): Linking CXX executable app CMakeFiles/app.dir/msg.pb.cc.o: In function `evoswarm::protobuf_AssignDesc_a_5fto_5fb_2eproto()': msg.pb.cc:(.text+0x133): undefined reference to `google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(google::protobuf::Descriptor const*, google::protobuf::Message const*, int const*, int, int, int, int, int, int)' msg.pb.cc:(.text+0x190): undefined reference to...

Boost unit test dynamic linking on Ubuntu

c++,ubuntu,singleton,dynamic-linking,boost-unit-test-framework
I am trying to build a unit test using Boost's unit test framework. I would like to dynamically link test suite libraries with the auto generated test module that Boost provides. Here is the basic construction I've been using: test_main.cpp: #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MAIN #include <boost/test/unit_test.hpp> lib_case.cpp: #define BOOST_TEST_DYN_LINK #include...

“We're sorry, but something went wrong.” Rails app on Ubuntu, Apache, Passenger on DigitalOcean

ruby-on-rails,ruby,apache,ubuntu
This is my first time trying to deploy a Rails app on Digitalocean. I'm using Apache server and PostgreSQL for my DBM. I already have a domain which I'm trying to use for my app. Whenever I try to access my website with the domain I get: We're sorry, but...

Can't run django-admin startproject mysite (ubuntu, django.core.exceptions.ImproperlyConfigured)

python,django,ubuntu,django-admin
When I try to run "django-admin startproject mysite" an error appears: django-admin startprojekt mysite Traceback (most recent call last): File "/usr/local/bin/django-admin", line 11, in <module> sys.exit(execute_from_command_line()) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 338, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 330, in execute self.fetch_command(subcommand).run_from_argv(self.argv)...

C++ Ubuntu select() if serial interface has data on asynchronous read

c++,multithreading,ubuntu,asynchronous,serial-port
I´m writing an asynchronous serial data reader class for Ubuntu using C++ and termios and I´m facing difficulties checking is there is data available. Here is my code: #include <iostream> #include <string> #include <sstream> #include <vector> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <termios.h> class MySerialClass { public: MySerialClass(std::string port);...

JApplet does not receive mouse-events

java,ubuntu,mouselistener
I'm trying to listen to MouseEvents in Java on a JApplet in a JFrame. My program is actually doing more stuff, but I've simplified it for you to this: import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import javax.swing.*; public class mouse extends JApplet implements MouseListener, MouseMotionListener { static final private int...

issues with installing newer cabal version for haskell vim now

ubuntu,haskell,vim,ubuntu-14.04,cabal
I would like to install this vim plugin: https://github.com/begriffs/haskell-vim-now When trying to run the suggested installation script: curl -o - https://raw.githubusercontent.com/begriffs/haskell-vim-now/master/install.sh | bash I get: --- Cabal version 1.18 or later is required. Aborting. I then try to install a newer version of cabal: [email protected]:~/Downloads/cabal-install-1.22.6.0$ ./bootstrap.sh The response I get:...