FAQ Database Discussion Community


How to get latest repository for WkHTMLtoPDF on Ubuntu 12.04.5 via SSH

git,ssh,ubuntu-12.04
I figured out grab a version of WkHTMLtoPDF on my server using my own answer: add-apt-repository ppa:pov/wkhtmltopdf But this is giving me version 0.12.1 and as of Jan. 19, 2015 version 0.12.2.1 has been released. How do you specifically indicate the version of the repository you want to add-apt-repository?...

unable to send email on my Exim-Dovecot-Afterlogic webmail setup

email,amazon-ec2,ubuntu-12.04,exim,dovecot
I am working on ec2 ubuntu 12.04 hvm client. I have setup an MTA i-e Exim and IMAP/POP Server i-e dovecot and a webmail client afterlogic. IMAP server is working well but SMTP gives error. While sending email afterlogic fails. I have checked logs and got connection fails connecting to...

How to run iostat/vmstat/top/sar till all the background processes are completed?

linux,bash,scripting,ubuntu-12.04,benchmarking
#!/bin/bash # Start.sh if [[ $# -ne 1 ]] ; then echo 'Usage :<./Start N# >' exit 1 fi if [[ $1 -ge 1 ]] ; then for (( c=1; c<=$1; c++ )) do virsh start VM$c /usr/bin/time -f "%E" ./test-online.sh VM$c & done else echo 'Give some positive number...

Controlling Vagrant plugin dependencies via Ansible

ruby,vagrant,ubuntu-12.04,nokogiri,ansible
I have an Ansible playbook that installs Vagrant, and then instructs Vagrant to install a specific plugin. Vagrant has trouble installing a gem it needs, and says: An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue. Make sure that `sudo gem install nokogiri -v '1.6.6.2'` succeeds before bundling....

Can't access RabbitMQ Management plugin

apache,rabbitmq,ubuntu-12.04
I am attempting to access the RabbitMQ Management plugin on my Ubuntu 12.04 server. I have a reverse proxy setup to route port 15627 to "/messages", and I've verified with Rackspace that port 15627 is open. However when I navigate to mydomain.com/messages, all I see is a blank page -...

Drawing network in Caffe causes pydot to throw End of Line errors

python,ubuntu-12.04,pydot,caffe
So I just pulled the latest revision of Caffe from the master branch, and went through all the initialization steps. As a quick test, I was trying to run the python/draw_net.py script provided, in order to visualize the MNIST Autoencoder example network. On executing the following command: ./python/draw_net.py examples/mnist/mnist_autoencoder.prototxt trial_viz.png...

Frozen ssh when pulling changes from remote GIT repo

git,debugging,ssh,timeout,ubuntu-12.04
I have problems with pulling changes from remote git repo, already tried bitbucket and github. I am able to clone repo and also to pull when no commits are pending to download, in case of new commits git/ssh get stuck until connection is closed by remote host, see the attachement...

java.net.BindException: Cannot assign requested address

java,tomcat7,ubuntu-12.04,snmp
I want to use low port in my application (SNMP Trap Receiver on Spring web + Tomcat7). As I told in this thread Binding Low Port to Java Program on Ubuntu Server, before, I got error Permission denied. Then I change tomcat7 user group be root. But after that, I...

proper indentation of bash script

linux,bash,ubuntu-12.04,indentation
I have written a bash script which uses cases and functions for university but no matter where I move the scripts, she says that they are not indented properly. What is the correct indentation of this sample of the script? clear echo "Start A Process" echo "*************************" echo "1. Oxygen...

Error to install insights ( install bower ) { OpenEdX , Ubuntu Server 12.04 }

linux,git,ubuntu-12.04,bower,openedx
I'm trying to install OpenEdX on my own SERVER (OS : Linux Ubuntu Server 12.04 ) , and i got same errors . Can anyone help me? TASK: [ insights | install bower dependencies]************************** failed: [localhost] => {"changed"; true, "cmd"; "./edx/app/insights/nodeenvs/insights/bin/activate && /edx/app/insights/edx_analystics_dashboard/node_modules/.bin/bower install --production --config.interactive=false", "delta": "0:02:32.056040", "ende"; "2015-05-01...

node-inspector failing to start

node.js,ubuntu,ubuntu-12.04,node-inspector
Command ran: $ node-debug --web-port=8090 myfile.js This returned following: Node Inspector is now available from http://127.0.0.1:8090/debug?port=5858 Debugging myfile.js debugger listening on port 5858 Command failed: [971:971:0223/200200:ERROR:browser_main_loop.cc(210)] Gtk: cannot open display: :0 Error: cannot open display: :0 /usr/bin/xdg-open: 461: /usr/bin/xdg-open: mozilla: not found /usr/bin/xdg-open: 461: /usr/bin/xdg-open: epiphany: not found /usr/bin/xdg-open: 461:...

Why git clone from remote machine says it is not a git repository?

git,ubuntu,ubuntu-12.04
On the remote machine (ubuntu 12.04 ) I created a test/ folder in my repo folder and inside the folder I used: git init Running command ll inside the test folder will show me that there's .git folder inside test. Now I want to clone remotely from this machine on...

How to check if there are multiple versions of PHP installed on Ubuntu 12.04 LTS?

php,ubuntu-12.04
How to know if I have both php5.3 and php5.5 installed in my system? How to delete php5.3 if it is there and configuring Apache2 to work with php5.5?

Error in getting to mysql prompt

mysql,ubuntu-12.04
I installed MySQL and now I am trying to get into the prompt of MySQL with this command mysql -host localhost -p but I am getting this error: ERROR 2005 (HY000): Unknown MySQL server host 'ost' (2) Does anyone of you know why I get this error? ...

Percent sign in bash is not typeable

linux,bash,settings,ubuntu-12.04
I have a strange problem: I cannot type or copy the percent sign in my bash... I tried to read ~/.bashrc, /etc/profile (and stuff in /etc/profile.d). I also tried "sudo bash", but still not possible to type "%". Percent sign in "sh" works... Any suggestions? uname -a Linux 3.2.0-65-generic #99-Ubuntu...

No Option for New->Web application on Intellij Idea 14.1.2

java,rest,web-applications,intellij-idea,ubuntu-12.04
I have IntellijIdea14.1.2 (Community version) on Ubuntu 12.04LTS I am trying to create a web application project from scratch and I chose to follow this guide https://www.jetbrains.com/idea/help/enabling-web-application-support.html#new But I am not getting the option mentioned in Step 3 "Under Additional Libraries and Frameworks, select the Web Application check box. Select...

How To Achieve Python3.4 Virtualenv For Precise64 VirtualBox

django,virtual-machine,ubuntu-12.04,ansible,python-3.4
I'm trying to create virtualbox using precise64, Vagrant, and Ansible. I am able to get python2.7 virtualenv setup, but would like to use python3.4 instead. I cloned the ansible-django-stack repository and everything works, but it is using version 2.7. What should I change in order to get a python3.4 Virtualenv...

unresolved host / Upgrade 12 to 14 Ubuntu/ Net Connection fine through browser

dns,terminal,ubuntu-12.04,ping,ubuntu-14.04
I recently upgraded to 'Trusty' i.e. Ubuntu 14.04. I tried pinging google.com through the terminal. ping google.com ping: unknown host google.com I tried the following: sudo apt-get remove --purge resolvconf && sudo apt-get install --reinstall resolvconf to remove and reinstall the resolv config, but to no avail. Then I found...

how to install pecl_http ubuntu [closed]

linux,ubuntu,ubuntu-12.04,pecl
I'm trying to install pecl_http i have installed sudo apt-get install php-pear sudo apt-get install php5-dev sudo apt-get install libcurl3-openssl-dev sudo apt-get install libcurl4-openssl-dev But when i try this sudo apt-get install pecl_http I got this downloading pecl_http-2.2.0.tgz ... Starting to download pecl_http-2.2.0.tgz (172,406 bytes) .....................................done: 172,406 bytes 65 source...

egrep to list devices in /dev directory

grep,ubuntu-12.04,tty
I am using following command in my Python code to list devices available in /dev directory: devices = ["/dev/" + x for x in os.popen("ls /dev/ | egrep -i 'ttyUSB|ttyS'").read().strip().split('\n')] How can I modify it to find only ttyS0 and ttyS1? Currently it returns all ttyS s : ttyS0,ttyS1, ttyS11,...

How to install mysql 5.6 in ubuntu 12.04

mysql,ubuntu-12.04,upgrade,mysql-5.6,mysql-5.5
I was needed to upgrade mysql 5.5 to 5.6, to avoid some issues on importing sql files. ERROR 1293 (HY000) at line 231: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause How do you upgrade it?...

How To Install Laravel On Linux Ubuntu 12.04

linux,ubuntu,laravel,apache2,ubuntu-12.04
I am trying to install Laravel on my Ubuntu 12.04 . I have been following a lot of tutorials usually , it is just the same steps. I managed to download and setting all requirements but I cannot figure out why when I want to excute laravel.example.com on the browser...

Missing information while migrating SVN repo from one server to another

svn,apache2,ubuntu-12.04
I want to migrate data from old SVN server to new server. I need a SVN location with 2 folders trunk and branch. I also want to be able to add new folders at a later point in time so that i can just move the source code to new...

How do I ensure accurate results of stress tests?

linux,bash,ubuntu-12.04,performance-testing,stress-testing
I have written a script for a project that stress tests the cpu, the vm and the i/o whilst running vmstat, iostat and sar. The scripts all run for 30 seconds. My tutor has asked me however to ensure that the results are accurate? How can I ever be sure?...

I use os.system to run executable file, but it need a .so file, it can't find library

python,ubuntu-12.04,dynamic-library
When I call a executable in python using os.system("./mydemo") in Ubuntu, it can't find the .so file (libmsc.so) needed for mydemo. I used os.system("export LD_LIBRARY_PATH=pwd:$LD_LIBRARY_PATH;"), but it still can't find libmsc.so. The libmsc.so is in the current directory. and shouldn't be global....

using tar command to create a compressed directory with date

shell,command,ubuntu-12.04,tar
I need to run this command in ubuntu 12.04 32bit tar -zcvf $ BACKUP_DIR/backup_`date "+% d-% m-% Y"`.tgz $HOME/tmp but I can't obtain the directory with date. When I execute the command the shell returns date +%d -%m -%y: the order is not found tar: Eliminating the `/ 'initial of...

restore permission of /etc in Ubuntu 12.04

ubuntu-12.04
I gave 777 permission accidentally to /etc in Ubuntu 12.04. How to restore it to previous state? I din't even run any of service due to that. What I did is fire below command in root directory. sudo chmod 777 -R * Please help me..! Thanks in advance.!...

In Azure while assigning ip to the instance i'm getting error

powershell,azure,ubuntu-12.04
In Azure How to configure reserve ip to the instance? While configuring with powershell I'm seeing the below error New-AzureVMConfig -Name "ubuntu" -InstanceSize "Small" -ImageName "Ubuntu*"| Add-AzureProvisioningConfig -Window s -AdminUsername "ubuntu" -Password "dangerous09"| New-AzureVM -ServiceName "newinstance.localdomain" -ReservedIPName "MyReserv edIP" -Location "South Central US" Error: WARNING: The specified DNS name is...

SSL issue with apache 2.2/Ubuntu 12.04

apache,ubuntu-12.04,mod-ssl
We use apache 2.2, PHP 5.3 for a app running on Ubuntu 12.04 LTS. Currently we face a issue with ssltest. "This server supports weak Diffie-Hellman (DH) key exchange parameters. Grade capped to B" http://security.stackexchange.com/questions/53537/how-to-get-an-a-on-qualys-ssl-labs-with-apache-2-2 This problem can be resolved if we upgrade to apache 2.4 or if we upgrade...

get standard output and error output in different files in C

c,pipe,output,ubuntu-12.04
I'm trying to solve a problem because I'm learning to use system calls in C. I used a Ubuntu 12.04 64bit. I have this statement: Implement a code that allows to redirect the standard out of the two commands deferred into a file (standard output) and all error output into...

Laravel 4 to Microsoft SQL server remote

sql-server-2008,ubuntu,laravel-4,ubuntu-12.04
I'm trying to connect Laravel (Server: Ubuntu 12.04 x64) to remote Microsoft SQL server 2008 R2. I'm using sqlsrv. 'sqlsrv' => array( 'driver' => 'sqlsrv', 'host' => 'localhost', 'database' => 'test', 'username' => 'sa', 'password' => 'pass', 'prefix' => '', ), how can I do it?...