Toward robust Linux sandbox

Sandboxing means running a program in a closed environment (such as no permission to open new files, no or restricted network access, etc.) in order to protect from malicious or erroneous software. In Fedora Linux there is `policycoreutils` package which contains bin/sandbox based on SELinux. This sandbox is not perfect however. So in this post I will describe some proposed updates and implementation considerations to … Continue reading Toward robust Linux sandbox

Running X sessions and setting the environment

Since the long ago time when I used both XWindows and Linux console using getty program, I’ve setup some files this way: ~/.bash_profile #!/bin/bash source ~/.bashrc source ~/.bash_common ~/.xsession #!/bin/bash source ~/.bash_common numlockx on exec gnome-session In ~/.bash_common I’ve put export Bash statements to set environment variables I use both in console sessions and in XWindows. In ~/.bashrc I’ve put Bash alias statements, Bash function … Continue reading Running X sessions and setting the environment

My experience with Gnome 3 in Debian Linux

Because the latest Skype for Linux was not installable with Debian Linux 6 (Squeeze) I decided to install pre-release (“testing”) of Debian Linux (called “Wheezy” or just Debian 7). The main change which I felt was Gnome 2 -> Gnome 3. Previously I used Sawfish window manager. I liked it for configurability. I especially liked it for vertical window maximization which I used to vertically … Continue reading My experience with Gnome 3 in Debian Linux

Running an XWindow program from a terminal

Suppose you want to to start an XWindow program from a terminal with its input, output, and error output redirected to null (/dev/null). Moreover you want the started program not to be hit with SIGHUP signal and exited when you close the terminal window from which you’ve started it: x glxgears It can be done with the following script: #!/bin/bash cmd=”$1″ if ! { which … Continue reading Running an XWindow program from a terminal

TeXmacs fork – option groups

I added option groups to GNU TeXmacs. This is primarily (well, currently exclusively) used to save options for conversion to LaTeX. For example one can have an option set for inserting LaTeX snippets to a blog and an option set for creating articles for math journals. My patch was not accepted by the main TeXmacs developer, Joris van der Hoeven. So I did a fork … Continue reading TeXmacs fork – option groups

Buggy driver of Lexmark X2670?

I bought a Lexmark X2670 printer/scanner device today. I downloaded their Debian Linux driver from Internet. When trying to install, it was firing an error message that CUPS 1.2 or above is necessary despite I have CUPS 1.4.1. After some magic with the source it was installed. (Don’t ask me, search it in Internet, because I forgot where it was written. If you successfully install … Continue reading Buggy driver of Lexmark X2670?