Skip to content

Tag: linux

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 …

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…

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…

sed – Piping a string before the last line in a file

I have a command that prints a single line. I want to add/pipe this line to a file, just above its last line. I just find an empty line in the correct place, above the last line. I notice that when I add any string as ‘$i foo’, the “foo” gets printed in the correct place, but I want th…

Is it possible to break out of a restricted (custom) shell?

Not sure if this is the right place to ask. Say I write a shell that takes stdin input, filters this input so let’s say only certain commands like ls (list contents of binary directory and subdirectory) update (git clone) build (go build) test (go test) start (systemctl start this.service only) stop (sy…