»
S
I
D
E
B
A
R
«
Kernel Upgrade For Debian >= Etch
Mar 4th, 2010 by Evan

Upgrading the kernel to 2.6.31(couldn get 2.6.33 to work at all)  on Etch, I stumbled over this:

cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE lguest.c -o lguest
lguest.c:21:25: error: sys/eventfd.h: No such file or directory
lguest.c: In function ‘create_thread’:
lguest.c:1021: warning: implicit declaration of function ‘eventfd’
make: *** [lguest] Error 1

This is apparenty due to the old libc-dev package that Lenny comes with. Since libc isn’t exactly a good candidate for a selective upgrade I helped myself with simply editing Documentation/lguest/Makefile and changing:

all: lguest

to

all:

OR

So lguest wont be build anymore. After that make-kpkg binary-arch worked as usual.

The tip below didn’t work for me but is another option:

“Below “Virtualization” unselect “Linux hypervisor example code” or if
you need lguest you can also fix the compilation error by removing
“#include <sys /eventfd.h>” (line 21) from lguest.c.”

via 2.6.31 for Debian 5/Lenny | Nagilum’s Cookie Jar.

Connlimit Patch + Smoothwall
Mar 3rd, 2010 by Evan

community.smoothwall.org • View topic – How do i patch the kernel in smoothwall express Degu III?.

First, i svn’d the tree for expresscore (i had to find/install an SVN client first)

cd /usr/src
svn co https://smoothwall.svn.sourceforge.net/svnroot/smoothwall/trunk expresscore

Next i “predownloaded” all of the sources.

cd /usr/src/expresscore/distrib/build
make predownload
Blocking Torrents and Connection Limiting
Mar 2nd, 2010 by Evan

Here’s the sample lines for connection limiting, where br0 is the internal LAN:

# only allow 25 connections per host total, only 5
# of which can be above port 1024

/usr/sbin/iptables -I FORWARD -i br0 -p tcp –syn –dport 1: -m connlimit –connlimit-above 25 -j REJECT
/usr/sbin/iptables -I FORWARD -i br0 -p tcp –syn –dport 1024: -m connlimit –connlimit-above 5 -j REJECT
/usr/sbin/iptables -I FORWARD -i br0 -p udp –dport 1: -m connlimit –connlimit-above 25 -j REJECT
/usr/sbin/iptables -I FORWARD -i br0 -p udp –dport 1024: -m connlimit –connlimit-above 5 -j REJECT

OR

/usr/sbin/iptables -A FORWARD -s 192.168.1.2 -p tcp -m connlimit –connlimit-above 10 -j DROP

Read the rest of this entry »

IPTV – Tuning and Recording
Feb 10th, 2010 by Evan

Listing of Digital Channels in Australia can be found here.

bash-3.1$ tzap -c /etc/channels.conf -r “ABC2″
using ‘/dev/dvb/adapter0/frontend0′ and ‘/dev/dvb/adapter0/demux0′
reading channels from file ‘/etc/channels.conf’
tuning to 226500000 Hz
video pid 0×0905, audio pid 0×0906
status 00 | signal 00ff | snr 8000 | ber 00003fff | unc 00000000 |
status 1f | signal 002c | snr ffff | ber 00000000 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 002c | snr ffff | ber 00000000 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 002c | snr ffff | ber 00000000 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 002c | snr ffff | ber 00000000 | unc 00000000 | FE_HAS_LOCK

bash-3.1$ cat /dev/dvb/adapter0/dvr0 > /videos/sunday-07-04-29.ts

Read the rest of this entry »

TV Tuning on Linux
Feb 10th, 2010 by Evan

Introduction

Installing a TV tuner in Linux is quite simple. All you really need to do is activate the correct kernel parameters and emerge some software and it should “just work”.

Read the rest of this entry »

How to install vmware server 2.0.x on 2.6.30 Kernels
Feb 9th, 2010 by Evan

VMware Server is a free virtualization product for Windows and Linux servers with enterprise-class support and VirtualCenter management. VMware Server is a robust yet easy to use server virtualization product and is based on proven virtualization technology, which has been used by thousands of customers for many years.
First you need to download vmware server 2.0.x from vmware website and get the vmware server installation key.

Read the rest of this entry »

Upgrading Iptables to 1.4 on Debian Etch
Feb 3rd, 2010 by Evan

I required the module connlimit to limit the number of connections on one of our Debian firewall boxes. First download the iptables-1.4.2.tar.bz2version from Netfilter.

Unpack the tarball

tar -xjvf iptables-1.4.2.tar.bz2

Change directory

cd iptables-1.4.2

configure iptables

./configure –prefix=/

if you just use ./configure then everything will be installed to /usr/local

make and install iptables

make install

After that you can check your new iptables version

iptables -v

The only problem i encountered is apps which need iptables as dependency beacuse aptitude will try and install the old version of iptables again as a dependency. Either you install those apps from source as well. Or you can install two versions of iptables one under /usr/local and one under /sbin which can be confusing.

via Gentoo Blog » Upgrading Iptables to 1.4 on Debian Etch.

How To Compile A Kernel – Debian Etch | HowtoForge – Linux Howtos and Tutorials
Feb 3rd, 2010 by Evan

How To Compile A Kernel – Debian Etch | HowtoForge – Linux Howtos and Tutorials.

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.21.3.tar.bz2
tar xjf linux-2.6.21.3.tar.bz2
ln -s linux-2.6.21.3 linux
cd /usr/src/linux
make clean && make mrproper
cp /boot/config-`uname -r` ./.config
make menuconfig.

Go to Load an Alternate Configuration File and choose .config

make-kpkg clean
fakeroot make-kpkg –initrd –append-to-version=-custom kernel_image kernel_headers
dpkg -i linux-image-2.6.21.3-custom_2.6.21.3-custom-10.00.Custom_i386.deb
dpkg -i linux-headers-2.6.21.3-custom_2.6.21.3-custom-10.00.Custom_i386.deb
shutdown -r now
uname -r

Watching Freeview (DVB-T) TV with VLC Player on Ubuntu – david winter
Jan 28th, 2010 by Evan

Setting it all up

Assuming that you have your TV card drivers installed, you can start off with:

sudo apt-get install dvb-utils vlc

That installs VLC and the DVB programs needed to scan for your channels.

Now, find the digital transmitter nearest to you by visiting DigitalUK. Enter in your postcode, and the result you get back will tell you which transmitter you’re feeding off of. If you’re not in the UK, I’m not sure how you can find your closest one–Google is your friend.

You can see a list of the UK transmitters by doing:

ls /usr/share/doc/dvb-utils/examples/scan/dvb-t/ | grep uk-

Now find the filename that matches your transmitter, and substitute uk-CrystalPalace for it.

scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/uk-CrystalPalace -o zap | tee ~/channels.conf

The above command will scan for channels that your TV card can pick-up, and store the configuration in a file. This file VLC then uses to tune in.

Now open up VLC. File > Quick Open File. Browse to channels.conf and open. Live TV should now start playing. To see a list of channels to switch between, go to View > Playlist.

VLC Player

To speed things up when wanting to launch the TV each time, you can create a launcher. I’ll create it on the Desktop for examples sake. Right click, and select Create Launcher. Give it a name, like TV, and in the Command text box, enter vlc /path/to/channels.conf. Hit ok, and you’re done. Now double click on the launcher and VLC will launch, and you’ll have the TV back on.

via Watching Freeview (DVB-T) TV with VLC Player on Ubuntu – david winter.

Recovering data from Lacie Big Disk | Snorri Páll
Jan 28th, 2010 by Evan

I’ve had a Lacie Big Disk Ethernet 1TB for some time now. I used it as a mediaserver but since it’s not built to handle so many files (20.000 + mp3) the boot disk got filled up and didnt have any space left leaving it unable to boot, leaving me fucked and unable to access 700GB of data and backups.

Since Lacie didn’t have a solution I decided to find my own to recover my data. And here it is.

Read the rest of this entry »

»  Substance: WordPress   »  Style: Ahren Ahimsa