ubuntu,installation,mercurial,tortoisehg , Phantom Mercurial, How to remove?

Phantom Mercurial, How to remove?


Tag: 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:

It comes out as successful, but if I try:

hg --version

I get:

Mercurial Distributed SCM (version 3.4.1)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2015 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO

Any other ideas? TortoiseHG needs 3.1.x or 3.0.x.


You can find out where in your path an application exists using the type command like this (when using bash):

[email protected]:~$ type -a hg
hg is /usr/local/bin/hg

It's possible it was installed as a python package in which case the command would be:

pip uninstall mercurial

but it might just be easier/safer to install a version that is supported somewhere that comes earlier in your path so Tortoise find that one.


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

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...

Pylucene 4.9.0 Ubuntu 14.04 Installation ImportError

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...

Zip all subdirectories using python

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 =...

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

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...

How does one install MarkLogic 8 on Ubuntu 14.04?

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

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

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...

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

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...

Protobuf cannot be linked on ubuntu

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...

Cannot set PHP 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)?

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...

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

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"....

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

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...

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

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...

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

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....

Boost unit test dynamic linking on Ubuntu

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...

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

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...

Pretty URLs aren't working after upgrade to Mediawiki 1.24.2

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 installing gem twitter on Ubuntu 15.04

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,...

What is version of cuda for nvidia 304.125

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)...

Get Offline Installation ID (Windows 8 or similar)

Is it possible to get the Windows Offline Installation ID (OfflineInstallationId was found in slmgr.vbs)? This can be achieved on the command-line with: slmgr.vbs /dti This returns the Installation ID without spaces or dashes, is it possible to retrieve this in C#? I want to eventually have each block of...

install msi with a product code through msiexec

I am a new to msi installations through command prompt.Can anyone show me how to install an application with product code through msiexec. Currently I am using the command : msiexec /i "D:\msiexec\Calculator\CalculatorInstaller\CalculatorInstaller\Express\DVD-5\DiskImages\DISK1\CalculatorInstaller.msi" ProductCode="42F48712-5C2E-41D1-83CC-2D28C91C889A" but though it's getting installed, I am not able to verify that at HKEY_LOCAL_MACHINE>Software>Microsoft>Wow6432nodeMicrosoft>windows>Uninstall . Please...

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

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...

Access binaries inside 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...

shell script to start conky and plank

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 &`...

Error installing nokogiri in ubuntu 14.0.4 (Ruby 1.8.7)

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...

Kill command in UNIX

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?...

JFrame wrong location with Ubuntu (Unity ?)

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...

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

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...

JApplet does not receive mouse-events

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...

Is NSIS 3.0b1 stable for production usage?

I want to try out NSIS install system. On the download page http://nsis.sourceforge.net/Download There are version 2.46 ( last updated in 2009 ) , and the newer 3.0b1 . It seems the newer one is in beta and I worry about stability issues. I wonder if any of you have...

Creating a docker swarm cluster in Vagrant

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...

PHP Autoloader doesn't work on Ubuntu production server

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":...

spark-1.4 with zeppelin installation

After successfully install spark 1.4, I tried to install Apache Zeppelin for note-book like utility. From some other online resources, I download and unzip the zeppelin source and started to compile with Maven via $ mvn clean install -Pspark-1.4 -DskipTests (spark home exported in the environment) I got nice INFO...

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

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...

Error execute studio.sh unrecognized vm option 'MaxPermSize=350m' on 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...

Write Access for user on all repos on 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...

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

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...

PyInstaller output artifacts in different folders

I need to build both executables x32 and x64 and using following commands for it: echo ******************** Starting buiding x32... ****************** c:\Anaconda32\Scripts\pyinstaller.exe src/app.spec echo ******************** Application was built ****************** echo ******************** Starting buiding x64... ****************** pyinstaller src/app.spec echo ******************** Application was built ****************** however binaries of above commands saving to...

issues with installing newer cabal version for haskell vim now

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-$ ./bootstrap.sh The response I get:...

Can't install Composer on Ubuntu behind proxy

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,...

In ubuntu unable to write file in specified directory using java

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");...

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

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...

Not able to update ADT

I get this error while installing the previous version. An error occurred while uninstalling session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.I20120608-1200 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file D:\ADT\android\adt-bundle-windows-x86-20130219\eclipse\eclipse.exe failed. Can not remove :...

How do I install homebrew on mac?

I tried the command ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1 ==> The following directories will be made group writable: /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig ==> The following directories will have their group set to admin: /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig but I have no idea what that...


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...

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

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);...

connect to mysql database which is in ubuntu server

I am using below code to connect MySQL database in PHP. try { shell_exec("ssh -f -L 3307: [email protected]_ip sleep 60 >> logfile"); $this->_conn = $this->dbh = new PDO('mysql:host=;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...

Would using Vagrant be overkill? [on hold]

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...

Different ways of hadoop installation

I'm new to hadoop and trying to install it on my local machine. I see that there are many ways in installing hadoop like install vmware Horton works and install hadoop on top of that or install Oracle virtual box , Cloudera and then Hadoop . My question is that...

pyreport LaTeX formulae not working

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,...