Category: gnu linux
-
bootstrap CentOS from Gentoo (or any linux distribution)
To bootstrap CentOS in Gentoo, I did the following. It basically installs the essential CentOS components into the specified directory, and from there on, chroot into that directory and perform tests, etc. First off, you’ll need to unmask a few packages(replace ~amd64 with ~x86 if your on the x86 architecture), and enable the flag sqlite…
-
/usr/local/bin/waitpid
A quick script to wait for a certain pid, then once that quits, execute a command. You may ask, why not just do command1 && command2 ? Well, if command1 exits with a non-zero exit status value, command2 will not get executed. Hence, I’ve brewed a quick script for this purpose. File: /usr/local/bin/waitpid #!/bin/sh #…
-
QEMU | Quick Networking for TCP/UDP
Networking with a guest in QEMU is often a headache, TUN/TAP, seriously? Too hectic, let’s stick to the basics, TCP/UDP based. Instead of setting up a really complex set of configuration files, wouldn’t it be easy to just emulate the network card, DHCP the guest, and let it work right out of the box? Well…
-
visual basic 6 revisited – linux – wine
Earlier this year, I had written an article on running Visual Basic 6 on linux under wine, this is an update for it, the prior one is deprecated Getting Visual Basic 6 to work on linux is pretty easy, not much trouble, all the basic things work, as of what I’ve tested. Here’s how you…
-
CPU scaling governors and you
What is your CPU being governed by? Should it be governed by it? Why? How? Here’s an outlook on the various CPU frequency governors, namely conservative, ondemand, powersave, userspace, and performance, that steps up and steps down the CPU: conservative Pros: very much alike the ondemand governor gracefully increases the stepping, unlike ondemand which sets…
-
Restore Broken Package DB on Sabayon
System database not found or corrupted, running in safe mode using temporary, empty repository phoenix jude # equo rescue resurrect >> ####### ATTENTION: The installed package database will be resurrected, this will take a LOT of time. >> ####### ATTENTION: Please use this function ONLY if you are using an Entropy-aware distribution. Can I continue…
-
Defining Two Different System Gateways
Situation above ground forces: You have two modems, or two ethernet connections, and want part of your connections to go through ppp0, and the rest through ppp1 Quick Fix: Quite easy, get both your connections live, and ppp0 will by default be the default gateway. Now, use a proxy for all other connections, so if…
-
Fedora Constantine, SYSRQ and needless swapping
By default, fedora disables the SYSRQ functionality of the kernel, for some reason. To enable it, either add sysrq_always_enabled at the end of your kernel line in /boot/grub/menu.conf, or edit /etc/sysctl.conf, changing kernel.sysrq = 0 to kernel.sysrq = 1 Some kernel updates on fedora also have the tendency to write to swap needlessly, even though…
-
Visual Basic drinking Wine
This tutorial is depreciated, please follow my new tutorial: visual basic 6 revisited – linux – wine Get past with your life on Windows, install Microsoft Visual Basic 6 on GNU/Linux with some good old wine… Install the required libs, etc. $ winetricks ddr=gdi vb6run gecko gdiplus fontfix d3dx9 corefonts mdac_typ dcom98 From a working…
-
[HOWTO] Create a hidden loopback device in a .jpg file
Well, I’m sure that you are definitely curious about how do you do this. Let me tell you this, it’s really simple. Pre-requisites: Image File(any format will do or even any file will do) Linux(I’ve only tested it on this platform but I guess Mac would also do) Let’s get started, shall we? First create…
-
EyeCandy for your VIA Unichrome
Not until recently, did I find out about the EXA acceleration method of xorg. It’s the new acceleration architecture. Well, I tried it out, read that it had chances of decreasing the responsiveness of my computer, but hey, there’ no harm in trying it. So, got to their documentation, followed through the steps, and wow!!!…
-
Sabayon fOuR oH
Based on Gentoo, Sabayon 4.1, tells me: Great performance with less RAM(though you need like 1GB RAM for it to work well enough). Package Management System is absolutely fantastic, with it’s new “Entropy”. Totally the perfect distribution. A fine distribution for the newbie or the expert. This is what a critic would say: Definitely better…
-
Simple Steganography
Wanna hide that information and private things you don’t want your buddies to see? Here is what is called simple steganography. Steganography is the master of black arts. Nobody can ever suspect that there is a simple, easy-to-find drawer in one of your pictures. This works with .png files as I didn’t try it with…