Unable to mount SAMSUNG_Android on Ubuntu
Question When I enable USB debugging in an Android phone and connect it to Ubuntu, I get a popup like:
Unable to mount SAMSUNG_Android Error initializing camera: -60: Could not lock the device
How can I disable or ignore the popup?
In Windows it works fine; the problem is just in Ubuntu.
Answer The problem is that Ubuntu is yet to support MTP natively. I hope with the next version, Ubuntu 13.…
Read more ⟶Using setup.py to install python project as a systemd service
Question I have a python project and I want to be able to install it using something like python setup.py install so that the installation automatically creates a systemd service.
I'm having some trouble, most probably setting the paths or imports correctly.
My environment:
Ubuntu 15.04
Python 2.7 (although it would be great to make it work in py3 too).
Project Structure:
+ top-folder
+ super_project
+ folder1
__init__.py
file1.py
+ folder2
__init__.…
Read more ⟶ostgreSql 'PDOException' with message 'could not find driver'
Question pdo is working fine with mysql but with pgsql its giving error 'PDOException' with message 'could not find driver' I've installed php5-pgsql package which also includes pdo_pgsql http://packages.debian.org/sid/php5-pgsql
This package provides a module for PostgreSQL database connections directly from PHP scripts. It also includes the pdo_pgsql module for use with the PHP Data Object extension.
my dsn is pgsql:dbname=DB;host=192.168.0.2
I am using Ubuntu 10.04
Answer This message means you need to install and or activate postgresql extension in PHP…
Read more ⟶brew install node stuck at `make install`
Question I am trying to install node using brew but it gets stuck at make install and does nothing. I am using ubunutu 14.04. Here is the logs from the terminal:
==> Downloading https://nodejs.org/dist/v4.2.1/node-v4.2.1.tar.gz
Already downloaded: /home/tsepak33/.cache/Homebrew/node-4.2.1.tar.gz
==> Downloading https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz
Already downloaded: /home/tsepak33/.cache/Homebrew/node--icu4c-56.1.tgz
==> ./configure --prefix=/home/tsepak33/.linuxbrew/Cellar/node/4.2.1 --without-n
==> make install
I aso tried with brew reinstall node, but nothing works. Answer I had the same problem. Eventually, I understood that I didn't wait enough time.…
Read more ⟶Spring Boot Actuator application won't start on Ubuntu VPS
Question I have a Java backend which uses Spring Boot Actuator but it won't start on Digitalocean Ubuntu VPS.
The same application runs well on my Mac and on an other Ubuntu PC.
szabolcs@SmartUpProd:~/smartup$ java -Xmx1536m -jar build/libs/smartup-backend-0.1.0.jar It starts the initialisation but it stops at the same point every time (no exception, just hangs). If I try to stop it at this point with ^C it won't bring the shell back.…
Read more ⟶ENOTEMPTY: directory not empty, rename ' -> ' (JavaScript + NPM + Ubuntu server)
Question Alright, so I've been making a bot for a popular Teamspeak-like program called discord. I'm running the bot on an Ubuntu server, and use NPM install to install various modules.
Currently, the local version of the bot works fine, but on Ubuntu I can't seem to do "sudo npm install urban" (Urban being the only module I'm having problems with - https://www.npmjs.com/package/urban )
The error I get is
npm ERR!…
Read more ⟶"sed" command in bash
Question Could someone explain this command for me:
cat | sed -e 's,%,$,g' | sudo tee /etc/init.d/dropbox << EOF
echo "Hello World"
EOF
What does the "sed" command do?
Answer sed is the Stream EDitor. It can do a whole pile of really cool things, but the most common is text replacement.
The s,%,$,g part of the command line is the sed command to execute. The s stands for substitute, the , characters are delimiters (other characters can be used; /, : and @ are popular).…
Read more ⟶