Skip to content

Tag: linux

Programmatically hide/show a window in Linux

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 …

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.…

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…

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…