I’m using Rocketeer for deployment on a server that is powered by WHM/cPanel. I’m having an issue where I’m deploying my app to ~/mysite.com where Rockteer adds a version of the site in ~/mysite.com/releases/GIT-COMMIT-HASH and symlinks ~/mysite.com/current to the latest release. I’m t…
Shared library on Linux and -fPIC error
I am trying to compile a shared library in Linux using a Makefile created with Cmake, but running make I obtain the following error: I provide the following command in the CMakeLists.txt in order to say that I want a shared (.so) library: add_library(cpp-lib SHARED ${CPP_FILES}) What else do I need to specify…
How to install SDL2 library in Fedora 20
There is a question about the SDL package (SDL 1.2) in Fedora in StackOverflow. But I can’t found any about SDL2 in Fedora, and I am having troubles to install the SDL2 package. I search and the command to install SDL2 in Fedora is: sudo yum install SDL2* But still having problems to found the #include …
How to convert multiline file into a string in bash with newline character?
How can I convert a file with multiple lines to a string with n characters in bash? For example – I have a certificate that I need to configure in my configuration JSON file so instead of having I will have Answer One way using awk:
can’t get tslib to work with FT5x06
I have a arm based board with embedded linux on it and I believe it has a FT5x06 touch screen controller but seems like tslib has some problems with multitouch capacitive touch screen controllers. I cross compiled tslib with arm-linux-gcc4.5.1 and when after copying necessary files and setting necassary envir…
How can I look up a variable by name with #!/bin/sh (POSIX sh)?
What shell command should I use so that echo $c returns “filename1” as the output? Answer You can use eval to “nest” variable substitutions.
how to change ownership for files and folder at once
in my plugin folder I’ve uploaded a few plugins true WordPress. /httpdocs/wp-content/plugins I need to change the ownership of every file and folder form 48 48 to 10004 503 to not have any problems with the rights. how can I do that? Answer chown -R 10004:503 /httpdocs/wp-content/plugins
Add JDK in Linux to run IDEA
I’m new in Linux & read a lot solution about add JDK in Ubuntu but not work! :/ I want to install JDK in Ubuntu. I installed Ubuntu 12.04-i386 and downloaded JDK 8 and add “/home/user/Soft/jdk1.8.0_20/bin” to “/etc/enviroment”. I run IntelliJ IDEA 13 (Community Edition) well,…
How does Docker share resources
I’ve been looking into Docker and I understand from this post that running multiple docker containers is meant to be fast because they share kernel level resources through the “LXC Host,” however, I haven’t found any documentation about how this relationship works that is specific to t…
bash command not found when setting a variable
I am writing a shell script where I am setting few variables, whose value is the output of commands. The errors I get are: now, I did read other similar questions and based on it, I tried various things: spliting command into two calls tried using backticks tried using $() But in every case the command output…