I’ve been going through intense program/package installation recently, so I can’t tell for sure which of the newly installed programs (or old programs) caused the appearance of a core file in my home folder. It’s a server, so I better find out any possible sources of instability on the machi…
Tag: linux
Bash command to check if the variable name is valid
and so on the variable name can have only letters , numbers (but not on the beginning),.. and like all the rules for java… Is there any function that I can use ? I do not want to reinvent the wheel… Answer Match the variable name against a regex, like this:
How to get started writing a compositing WM?
I would like to write a basic hardware-accelerated window manager, so I’ve been looking for some documentation on how to get started, but I’ve only managed to find this tutorial, which uses an outdated version of Clutter and won’t build with any version currently available. Are there any oth…
g++ custom dynamic library linking error undefined symbol
Ok, I’m looking for a solution for 2 days now. I didn’t find anything to solve my problems. What is currently going on? So, I tried creating a dynamic library (.so) on Linux Mint Maya 13 with g++. foolib.h: foolib.cpp: main.cpp: I compiled these files with these instructions: libfoo.so: foo: Creat…
Change file owner group under Linux with java.nio.Files
I have a Linux server and I’m running an image resize job in Java for multiple websites on my server. The website files are owned by different OS users/groups. Newly created thumbnails/previews are owned by the user running the resize job. Now I was googleing around how to change the file owner of newly…
How can I use the Perl debugger’s *supported* editor?
The Perl debugger always says: “Editor support available”. I believe every one can see this, but how can I use it? By the way, I got the above prompt on a Linux/Ubuntu 11.04 (Natty Narwhal) machine. Answer The message is a little confusing. It’s telling you it can support running inside an e…
Clear screen in a Linux terminal using assembly?
Is there a way to clear the screen in a terminal window with nasm? By clear the screen, I mean emulate the Ctrl-L hotkey. Remove all text from the window. Answer In Bash: In C: How do I find the string:
Shell script for remote SSH
I’m new to shell scripts, and I have centos running. I want to write a shell script that ssh a remote machine and execute a bunch of commands. The problem I’m facing is how to provide the username, the password, the remote machine address, and the private access key to a command that shall connect…
How to get errno when epoll_wait returns EPOLLERR?
Is there a way to find out the errno when epoll_wait returns EPOLLERR for a particular fd? Is there any further information about the nature of the error? Edit: Adding more information to prevent ambiguity epoll_wait waits on a number of file descriptors. When you call epoll_wait you pass it an array of epoll…
How to install a Kerberos server on Debian
I’m trying to build up a Kerberos Server on a Debian computer but I’m kind of lost with all the configuration files. Can anyone tell me any good step by step tutorial of how to install and configure a kerberos Server? Or what’s the best distriburion where I can install Kerberos? Answer Debia…