I’ve been searching all over the place for a solution to this. How can I show/hide (or minimize/unminimize if you rather) Linux windows. I’m interested in any solution in any language. I use Debian, Gnome, Metacity and Compton composite manager if they’re relevant Note: I tried using wmctrl …
Tag: linux
linux uinput: simple example?
I’m having some problems getting both sides of code using uinput working. Based on Getting started with uinput: the user level input subsystem[dead link; archived] I put together the following writer (minus error handling): That seems to work, at least the full input_event structure seems to be written.…
Process management code behaves different on Linux and Windows – Why?
(Context) I’m developing a cross-platform (Windows and Linux) application for distributing files among computers, based on BitTorrent Sync. I’ve made it in C# already, and am now porting to C++ as an exercise. BTSync can be started in API mode, and for such, one must start the ‘btsync’…
Unable to boot after shrinking an Amazon EBS volume
I have followed several links on Google and on this forums to reduce EBS Volumes on Amazon AWS, including these links too: http://wiki.jokeru.ro/shrink-amazon-ebs-root-volume and http://www.lantean.co/shrinking-ebs-volume/ I have a 254 GB EBS Volume which needs to be resized to 150 GB. Here are the steps what…
Create a Debian imaging server for windows 7
Issue I have been tasked with creating a Debian imaging server for our company. Unfortunately my knowledge with, both Linux and servers is very limited, (this is part of an up-skilling program). Steps Currently I have tried to follow the below tutorials on creating a PXEBoot server and a ProxyDHCP: ProxyDHCP:…
Execute a JAR file in a specific JRE
I have been looking at this question and although it shows how you can execute a jar in Windows, it does not show how this can be done in Linux (preferably CentOS). How can I execute the .jar file I made in Linux? Here is what I have on the command line: UPDATE: I have tried this: I ran: Answer
What does `OBJECTS = $(SOURCES:.cpp=.o)` mean in a makefile
I am going over this tutorial and it has something like this I am not sure if I understand the document and would appreciate it if someone could explain the last two statements. Here are my three questions regarding Makefile Question 1 : Whats the difference between and It says that the second case only works…
Difference between spi_driver.id_table and spi_driver.driver.of_match_table
I’m currently trying to understand how linux drivers work. As far as I know, A driver’s probe/init function is called when the kernel parses the corresponding .compatible string in the device tree. However, in the arizona-spi driver it looks like there are multiple compatible strings referenced in…
How to make a ~/public_html in WHM/cPanel symlink
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…