<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gionn-book &#187; Debian</title>
	<atom:link href="http://blog.scorpionworld.it/tag/debian/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.scorpionworld.it</link>
	<description>Powered by caffeine</description>
	<lastBuildDate>Sun, 25 Jul 2010 10:32:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Some notes about configuring RAID10, LVM, KVM and virt-manager on a Debian Lenny server</title>
		<link>http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server</link>
		<comments>http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html#comments</comments>
		<pubDate>Sat, 13 Mar 2010 15:16:51 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[virt-manager]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=370</guid>
		<description><![CDATA[Recently I&#8217;ve achieved a good setup for a virtualized environment, using Debian Lenny as host, with a RAID10, and LVM for managing VM disk images. The server was a: CPU Intel Xeon X3430 RAM 4GB HD 4x500GB During the installation, &#8230; <a href="http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve achieved a good setup for a virtualized environment, using Debian Lenny as host, with a RAID10, and LVM for managing VM disk images.</p>
<p>The server was a:<br />
CPU Intel Xeon X3430<br />
RAM 4GB<br />
HD 4x500GB</p>
<p>During the installation, on each of the 4 disks, I created:<br />
- a small /boot partition (~300Mb)<br />
- 10 Gb RAID1 for /<br />
- 1 Gb RAID10 for swap<br />
- remaining space as RAID10, with a big LVM volume on top of it.</p>
<p>Please note: at the end of the installation, you should manually install grub on every disk, because if the first disk get destroyed, you cannot boot your system.</p>
<pre lang="bash">mkdir /boot2 /boot3 /boot4
mount /dev/sdb1 /boot2
mount /dev/sdc1 /boot3
mount /dev/sdd1 /boot4
rsync -av /boot/ /boot2/
rsync -av /boot/ /boot3/
rsync -av /boot/ /boot4/
umount /boot2/ /boot3/ /boot4/
dd if=/dev/sda of=/dev/sdb count=1 bs=512
dd if=/dev/sda of=/dev/sdc count=1 bs=512
dd if=/dev/sda of=/dev/sdd count=1 bs=512</pre>
<p>At this point, installing kvm plus virt-manager is straightway:</p>
<pre lang="bash">aptitude install kvm libvirt-bin virt-manager</pre>
<p>Remember that Lenny is getting pretty old, so for getting more from your server, you should use the <a href="http://backports.org/dokuwiki/doku.php?id=instructions">backports.org</a> packages.</p>
<p>Now add your user to the libvirt and kvm system groups (/etc/groups):</p>
<pre lang="bash">[..]
kvm:x:112:bob
libvirt:x:115:bob
[..]</pre>
<p>At this point, you should connect to virt-manager GUI. As far as I understood, virt-manager support connections from remote hosts, but the TLS configuration is not so well documented, so you can simply do X11 forwarding or install a VNC server, or NX server, on the host to get the local virt-manager.</p>
<p>What I usually do on my lan from my laptop is:</p>
<pre lang="bash">
ssh -X -l myuser myserver.local
virt-manager
</pre>
<p>And the virt-manager window will popup.</p>
<p><strong>LVM Configuration</strong><br />
Edit->Host Details->Storage<br />
Add your LVM Volume Group defined during the first setup: from this window, you can create virtual disks for your machines.<br />
Using LVM instead of simple disk images give great benefits: less overhead, and the ability to expands images (and filesystems on it) without even rebooting the VM.<br />
<a href="http://tech.libersoft.it/wp-content/uploads/2010/03/Schermata-ph1-Dettagli-host.png"><img src="http://tech.libersoft.it/wp-content/uploads/2010/03/Schermata-ph1-Dettagli-host-300x208.png" alt="" title="Virt-manager: LVM based storage management" width="300" height="208" class="aligncenter size-medium wp-image-372" /></a></p>
<p><strong>Network Configuration</strong><br />
You can use both <strong>bridged networks</strong> and <strong>private networks</strong>. Bridged networks are used when a VM should have the same subnet address of the other hosts on the local networks.</p>
<p><strong>Bridged networks</strong> requires additional configuration on the host to work:</p>
<pre lang="bash">cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#allow-hotplug eth0
#iface eth0 inet static
#        address 192.168.0.4
#         netmask 255.255.255.0
#         gateway 192.168.0.1

auto br0
allow-hotplug br0
iface br0 inet static
         address 192.168.0.4
         netmask 255.255.255.0
         gateway 192.168.0.1
         bridge_ports eth0
         bridge_stp off
         bridge_maxwait 15
</pre>
<p><strong>Private networks</strong> should be use to isolate the virtual machine from the physical networks. You can create a DMZ using strict iptables rules for allowing clients to reach VM inside a private network. You can take a look on the iptables scripts I am using on the host, that use both bridged and private networks.</p>
<pre lang="bash">cat firewall.sh
#! /bin/bash
# By Giovanni Toraldo

LAN='br0'
VLAN='virbr0'
SUBNET='192.168.0.0/24'
VSUBNET='192.168.122.0/24'

## FLUSH
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X

## Default Policy
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

# Basic Routing/Forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A FORWARD -i lo -j ACCEPT

## Local Inbound Services
iptables -A INPUT -p tcp --dport 22 -j ACCEPT # ssh
iptables -A INPUT -p tcp --dport 25 -j ACCEPT # mail
iptables -A INPUT -p udp --dport 123 -j ACCEPT # ntp
iptables -A INPUT -p tcp --dport 80 -s $SUBNET -j ACCEPT # nginx

# VLAN - I accept and route all traffic
iptables -A INPUT -i $VLAN -j ACCEPT
iptables -A INPUT -i $LAN -j ACCEPT
iptables -A FORWARD -i $VLAN -j ACCEPT
iptables -A FORWARD -i $LAN -o $VLAN -j ACCEPT
# Masquerading packets from private networks only!!
iptables -t nat -A POSTROUTING -s $VSUBNET -o $LAN -j MASQUERADE
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS-323</title>
		<link>http://blog.scorpionworld.it/dns-323.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dns-323</link>
		<comments>http://blog.scorpionworld.it/dns-323.html#comments</comments>
		<pubDate>Sun, 21 Feb 2010 11:03:50 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[it_IT]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dns-323]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[telnet]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=611</guid>
		<description><![CDATA[Il DNS-323 è un NAS (disco di rete) di fascia bassa (170 euro senza dischi) con due slot SATA, l&#8217;ideale per mettere al sicuro (sempre relativamente parlando) i propri dati. Purtroppo dispositivi del genere (ma anche router/modem/acess-point), nonostante siano dei &#8230; <a href="http://blog.scorpionworld.it/dns-323.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.scorpionworld.it/wp-content/uploads/2010/02/logo.png"><img src="http://blog.scorpionworld.it/wp-content/uploads/2010/02/logo.png" alt="" title="D-Link DNS-323 NAS" width="140" height="140" class="alignleft size-full wp-image-612" /></a> Il <strong>DNS-323</strong> è un <strong>NAS</strong> (disco di rete) di fascia bassa (170 euro senza dischi) con due slot SATA, l&#8217;ideale per mettere al sicuro (sempre relativamente parlando) i propri dati.</p>
<p>Purtroppo dispositivi del genere (ma anche router/modem/acess-point), nonostante siano dei bei pezzi d&#8217;hardware, nonostante siano basati su software <strong>GNU/Linux</strong>, nonostante sulla carta abbiano tantissime feature (SMB, NFS, FTP, UPNP, DAAP, Torrent), spesso si scopre che il software è una mezza <em>ciofeca</em>.</p>
<p><strong>Perchè?</strong> Non lo so, non conosco nessuno che lavora in questo campo, ma mi piacerebbe approfondire. Il male più grosso, da quel che riesco a capire, è che i produttori usano sà¬ software libero, ma sembra che siano totalmente <strong>incapaci a gestirlo</strong>: ogni nuovo dispositivo che sfornano, spesso significa un nuovo linux embedded ricostruito <strong>da zero</strong> (from scratch).</p>
<p><strong>Il risultato?</strong> Passano l&#8217;80% del loro tempo a risolvere problemi che il resto del mondo ha affrontato una volta sola: ti ritrovi a combattere con l&#8217;interfaccia web che scombina la configurazione di samba e non funziona più, niente da fare per agganciare NFS su mac, ventole che girano a palla nonostante temperature sotto quella ambientale e infine, ciliegina sulla torna, non c&#8217;è versi di avere un cacchio di accesso shell per capire cosa diamine stia succedendo.</p>
<p>E questo è quello in cui sono incappato in un solo fine settimana di utilizzo approfondito.</p>
<p><strong>Che fare?</strong> Opensource non è solo &#8216;software aggratis&#8217;, opensource è comunità , competenze e testardaggine. Questo <a href="http://wiki.dns323.info/">dns323 wiki</a> è un ottimo punto di partenza. Per i primi passi da muovere, consiglio questa paginetta <a href="http://nas-tweaks.net/CH3SNAS:Tutorials/fun_plug#Steps_for_installing_fun_plug">Installare Telnet/Fun_Plug</a>.</p>
<p>Quello che avrete (e che ho io in questo momento) è accesso <strong>ssh</strong> e un <strong>chroot</strong> con una serie di pacchetti di base pronti all&#8217;uso e altri già  installati.<br />
Il prossimo passo per me è agganciare direttamente una bel chroot <strong>Debian ARM</strong> =D</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/dns-323.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacBook Pro 15&#8221; Debian</title>
		<link>http://blog.scorpionworld.it/macbook-pro-15-debian.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=macbook-pro-15-debian</link>
		<comments>http://blog.scorpionworld.it/macbook-pro-15-debian.html#comments</comments>
		<pubDate>Sun, 12 Jul 2009 18:06:51 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[macbook pro 5.1]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=513</guid>
		<description><![CDATA[Il vecchio Asus F3Jc stava esalando gli ultimi respiri, quindi onde evitare di rimanere senza pc (anche perchè lo usavo a lavoro), ho ben pensato di accattarmi un nuovo portatile. Lavorando con due mac luser (ndr: malteo e orontobate) con &#8230; <a href="http://blog.scorpionworld.it/macbook-pro-15-debian.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Il vecchio Asus F3Jc stava esalando gli ultimi respiri, quindi onde evitare di rimanere senza pc (anche perchè lo usavo a lavoro), ho ben pensato di accattarmi un nuovo portatile.<br />
Lavorando con due mac luser (ndr: <a href="http://twitter.com/malteo">malteo</a> e <a href="http://twitter.com/orontobate">orontobate</a>) con diversi anni in attivo di militanza in territorio Apple, son riusciti a convincermi a prendermene uno.</p>
<p>La scelta è ricaduta su un MacBook Pro da 15 pollici con processore 2.66GHz (che ho preso da Essedi scontato di 200 euro).<br />
<span id="more-513"></span><br />
<code>00:00.0 Host bridge: nVidia Corporation MCP79 Host Bridge (rev b1)
00:00.1 RAM memory: nVidia Corporation MCP79 Memory Controller (rev b1)
00:03.0 ISA bridge: nVidia Corporation MCP79 LPC Bridge (rev b3)
00:03.1 RAM memory: nVidia Corporation MCP79 Memory Controller (rev b1)
00:03.2 SMBus: nVidia Corporation MCP79 SMBus (rev b1)
00:03.3 RAM memory: nVidia Corporation MCP79 Memory Controller (rev b1)
00:03.4 RAM memory: nVidia Corporation Device 0a98 (rev b1)
00:03.5 Co-processor: nVidia Corporation MCP79 Co-processor (rev b1)
00:04.0 USB Controller: nVidia Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:04.1 USB Controller: nVidia Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:06.0 USB Controller: nVidia Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:06.1 USB Controller: nVidia Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:08.0 Audio device: nVidia Corporation MCP79 High Definition Audio (rev b1)
00:09.0 PCI bridge: nVidia Corporation MCP79 PCI Bridge (rev b1)
00:0a.0 Ethernet controller: nVidia Corporation MCP79 Ethernet (rev b1)
00:0b.0 IDE interface: nVidia Corporation MCP79 SATA Controller (rev b1)
00:0c.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:15.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:16.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:17.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
02:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9600M GT] (rev a1)
04:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)
05:00.0 FireWire (IEEE 1394): Agere Systems FW643 PCI Express1394b Controller (PHY/Link) (rev 07)
</code></p>
<p>Praticamente tutto fatto da nvidia =P</p>
<p>Con una Lenny amd64 il grosso funziona, manca solo il wireless che non è supportato dal modulo bcm43xx opensource ma tocca usare il driver AP WL STA proprietario (aptitude install broadcom-sta-source &#038;&#038; module-assistant a-i broadcom-sta &#038;&#038; modprobe wl), e l&#8217;audio, nonostante venga rilevata correttamente la scheda audio e i controlli paiono esserci tutti, non son riuscito a far funzionare nè gli speaker interni nè il jack delle cuffie [<a href="https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4521">bug report</a>]</p>
<p>Per il controllo delle ventole (fornito dal modulo applesmc di Linux) ho trovato uno script carino:<br />
<a href="http://files.getdropbox.com/u/630394/macbookpro51/setfan.sh">setfan.sh</a><br />
(l&#8217;autore originale non me ne vorrà , ma non ricordo proprio da dove l&#8217;ho pescato)</p>
<p>Non dimenticate di installare pommed per la gestione dei tasti funzione (luminosità  e retroilluminazione dei tasti).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/macbook-pro-15-debian.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dropbox Debian &#8211; Backup, Sync, Share your files!</title>
		<link>http://blog.scorpionworld.it/dropbox-debian-backup-sync-share-your-files.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dropbox-debian-backup-sync-share-your-files</link>
		<comments>http://blog.scorpionworld.it/dropbox-debian-backup-sync-share-your-files.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 20:35:54 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=238</guid>
		<description><![CDATA[As described on his site: Once installed, any file you drop into your Dropbox folder will synchronize and be available on any other computer you&#8217;ve installed Dropbox on, as well as from the web. Also, any changes you make to &#8230; <a href="http://blog.scorpionworld.it/dropbox-debian-backup-sync-share-your-files.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As described on his <a href="https://www.getdropbox.com">site</a>:</p>
<blockquote><p>Once installed, any file you drop into your Dropbox folder will synchronize and be available on any other computer you&#8217;ve installed Dropbox on, as well as from the web. Also, any changes you make to files in your Dropbox will sync to your other computers, instantly.</p></blockquote>
<p>NB: this is not FREE software. Dropbox give you a free client (GPL2), but you should use their server for hosting your files. They also give a free 2 Gb account (others plan <a href="https://www.getdropbox.com/plans">here</a>).</p>
<p>Unfortunately, only .deb for ubuntu were available. I made you a package for Debian Lenny.</p>
<p>And, of course, the .deb package is hosted on Dropbox =P<br />
<a href="http://files.getdropbox.com/u/630394/nautilus-dropbox_0.6.1_i386.deb">http://files.getdropbox.com/u/630394/nautilus-dropbox_0.6.1_i386.deb</a></p>
<p>Additional link:  how to setup a <a href="http://wiki.getdropbox.com/TipsAndTricks/TextBasedLinuxInstall">command line client for dropbox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/dropbox-debian-backup-sync-share-your-files.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recover Linux Xandros on Eee-Box, without CDROM, without USB (the manual way)</title>
		<link>http://blog.scorpionworld.it/recover-linux-xandros-on-eee-box-without-cdrom-usb.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=recover-linux-xandros-on-eee-box-without-cdrom-usb</link>
		<comments>http://blog.scorpionworld.it/recover-linux-xandros-on-eee-box-without-cdrom-usb.html#comments</comments>
		<pubDate>Tue, 16 Jun 2009 20:23:52 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ebox]]></category>
		<category><![CDATA[eeebox]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[xandros]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=233</guid>
		<description><![CDATA[I don&#8217;t have an external USB CD-ROM drive, nor a live Xandros installation to build an usb recovery image. The prerequisites are: - the file named system_image.gz that is on the Recovery CD. - a live linux system (knoppix? SysRescueCD? &#8230; <a href="http://blog.scorpionworld.it/recover-linux-xandros-on-eee-box-without-cdrom-usb.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t have an external USB CD-ROM drive, nor a live Xandros installation to build an usb recovery image.</p>
<p>The prerequisites are:<br />
- the file named system_image.gz that is on the Recovery CD.<br />
- a live linux system (<a href="http://www.knoppix.net/">knoppix</a>? <a href="http://tech.libersoft.it/2008/booting-sysrescuecd-from-usb/">SysRescueCD</a>? I&#8217;ve used my <a href="http://tech.libersoft.it/2008/booting-diskless-system-via-pxe-netboot/">debian on nfs</a>.)<br />
- basic knowledge of a partition tool editor (like cfdisk).</p>
<p>system_image.gz is the compressed image of the root system. Copy it on a usb pen, samba share, public_html, where you want!<br />
Start the eee-box with the live system of your choice, and unpack the compressed root on the internal drive of EEE-Box with:</p>
<p><code>zcat system_image.gz &gt; /dev/sdb</code><br />
(nb: my debian recognized the harddisk as sdb, on other live system can be sda, check the dmesg for being sure)</p>
<p>Now we need to add a second ext3 partition that will be used as /home directory with cfdisk: remember to create it as Primary Partition, so it will be called sdb2.<br />
After, create a swap partition in a Extended Partition, so it will be named sdb5.</p>
<p>Format the newly crated partition with:<br />
<code>mkfs.ext3 /dev/sdb2
mkswap /dev/sdb5</code></p>
<p>Reboot, and you are ready to use a brand new Asus Xandros.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/recover-linux-xandros-on-eee-box-without-cdrom-usb.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Git repository hosting in 5 minutes with Gitosis in Debian Lenny</title>
		<link>http://blog.scorpionworld.it/git-repository-hosting-in-5-minutes-with-gitosis-in-debian-lenny.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=git-repository-hosting-in-5-minutes-with-gitosis-in-debian-lenny</link>
		<comments>http://blog.scorpionworld.it/git-repository-hosting-in-5-minutes-with-gitosis-in-debian-lenny.html#comments</comments>
		<pubDate>Tue, 21 Apr 2009 10:55:56 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=217</guid>
		<description><![CDATA[After many months experiencing with SVN, we want to try to shoot with GIT. We will use a great tool for manage our git repositories: gitosis. aptitude install gitosis sudo -H -u gitosis gitosis-init &#60; SSH_KEY.pub where ssh_key.pub is a &#8230; <a href="http://blog.scorpionworld.it/git-repository-hosting-in-5-minutes-with-gitosis-in-debian-lenny.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After many months experiencing with SVN, we want to try to shoot with GIT.</p>
<p>We will use a great tool for manage our git repositories: <strong>gitosis</strong>.</p>
<p><span id="more-217"></span></p>
<p><code>aptitude install gitosis
sudo -H -u gitosis gitosis-init &lt; SSH_KEY.pub</code><br />
where ssh_key.pub is a file that contains a public rsa key generated with ssh-keygen (as default is saved on ~/.ssh/id_rsa.pub).<br />
The key is used to authenticate the repositories admin, so can even be on another host with ssh access.</p>
<p>Now on your local machine (even different where gitosis was installed, but you need the private rsa key on it):<br />
</code><code>git clone gitosis@YOUR_SERVER_IP:gitosis-admin.git</code><br />
This repository contains configuration data for gitosis, you will modify it, commit and push, and gitosis automatically reload itself.</p>
<p>Modify gitosis.conf:<br />
<code>[gitosis]
[group gitosis-admin]
writable = gitosis-admin
members = scorp@antani
[group developers]
writable = sandbox
members = scorp@antani</code></p>
<p>The group gitosis-admin is the one that can manage the gitosis configuration (we are doing it now).<br />
The group developers i've added it's the one with all developers will use to access our repositories. You can even create many different groups for many different repositories.<br />
Sandbox is the name of a testing git repository i am going to create (not exists yet, i've only specified that the user scorp@antani can push commits into).</p>
<p>To render effetive changes, do:<br />
<code>git commit -a -m "Allow scorp write access to sandbox"
git push</code></p>
<p>Now let's try the new toy, we should initialize the sandbox repository:<br />
<code>mkdir sandbox
cd sandbox
git init
git remote add origin gitosis@YOUR_SERVER_IP:sandbox.git
touch helloworld.txt
git add helloworld.txt
git commit -m 'first test commit'
git push origin master:refs/heads/master
</code></p>
<p>Happy now? Good Coding.</p>
<p>Common errors</p>
<p><code>~/sandbox$ git push origin master:refs/heads/master
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'gitosis@192.168.1.1:sandbox.git'</code></p>
<p>You should remember to commit changes before to push it ;)</p>
<p>References: <a href="http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way">http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/git-repository-hosting-in-5-minutes-with-gitosis-in-debian-lenny.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PLAIN Smtpd Auth with Postfix (faster than light)</title>
		<link>http://blog.scorpionworld.it/plain-smtpd-auth-with-postfix-faster-than-light.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=plain-smtpd-auth-with-postfix-faster-than-light</link>
		<comments>http://blog.scorpionworld.it/plain-smtpd-auth-with-postfix-faster-than-light.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 16:43:42 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[smtpd auth]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=169</guid>
		<description><![CDATA[Ok, you have a small postfix deployed, and you need a fast but effective protection from third people using your server as a rocket-delivering-spam. The first thing to do, is to configure the variable mynetworks to allow only certain netblocks &#8230; <a href="http://blog.scorpionworld.it/plain-smtpd-auth-with-postfix-faster-than-light.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, you have a small postfix deployed, and you need a fast but effective protection from third people using your server as a rocket-delivering-spam.</p>
<p>The first thing to do, is to configure the variable mynetworks to allow only certain netblocks to use postfix to send email all over the world:<br />
<code>mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 X.X.X.X/XX</code><br />
Look out: the ips should be in <a href="http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing">CIDR</a> notation, so you probably need to <strong>apt-get install ipcalc</strong>.</p>
<p>Using ipcalc is straight-forward. For example, think our servers are located on the netblock from 188.57.33.80 to 188.57.33.87:<br />
<code>$ ipcalc 188.57.33.80 - 188.57.33.87
deaggregate 188.57.33.80 - 188.57.33.87
188.57.33.80/29</code><br />
Here it is.</p>
<p>Next level is to configure smtp login, if you don&#8217;t have a subnet for your clients.<br />
<code>aptitude install sasl2-bin libsasl2-modules libsasl2-2</code><br />
Now enable daemon and configure it for being accessed by postfix, editing /etc/default/saslauthd:<br />
<code>START=yes
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"</code></p>
<p>Now tell to postfix to use saslauth in <em>/etc/postfix/sasl/smtpd.conf</em>:<br />
<code>pwcheck_method: saslauthd
mech_list: PLAIN LOGIN</code></p>
<p>And enable it in <em>/etc/postfix/main.cf</em>:<br />
<code>smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination</code></p>
<p>In case of:</p>
<blockquote><p>postfix/smtpd[638]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied</p></blockquote>
<p><strong>Hint</strong>: add postfix to sasl group:<br />
<code>$ adduser postfix sasl</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/plain-smtpd-auth-with-postfix-faster-than-light.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gambas 2.10 for Debian Lenny</title>
		<link>http://blog.scorpionworld.it/gambas-210-for-debian-lenny.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gambas-210-for-debian-lenny</link>
		<comments>http://blog.scorpionworld.it/gambas-210-for-debian-lenny.html#comments</comments>
		<pubDate>Mon, 29 Dec 2008 21:47:58 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[gambas2]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=120</guid>
		<description><![CDATA[From the gambas main site No real new features in this release. But some of the fixed bugs were nasty: * Possible crashes in the IDE property sheet and while saving forms. * Crash in the debugger when selecting the &#8230; <a href="http://blog.scorpionworld.it/gambas-210-for-debian-lenny.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>From the <a href="http://gambas.sourceforge.net/">gambas main site</a></p>
<blockquote><p>No real new features in this release. But some of the fixed bugs were nasty:</p>
<p>    * Possible crashes in the IDE property sheet and while saving forms.<br />
    * Crash in the debugger when selecting the &#8220;Collection&#8221; identifier.<br />
    * Automatic completion now works correctly on lines having non-ASCII characters.<br />
    * Dir() and RDir() now work correctly on relative paths.<br />
    * Enumerating something inside a _next() enumerator method now is safe.<br />
    * SUPER now works inside overriden static methods.<br />
    * Fix string and blob quoting in the PostgreSQL component.<br />
    * Sockets will not take 100% CPU anymore.<br />
    * Startup forms hidden at design time are not shown automatically anymore.<br />
    * The XSLT component works again.<br />
    * A lot of fixes in the GTK+ component too.<br />
    * &#8230;</p>
<p>Read the ChangeLog to see all of thems. </p></blockquote>
<p><a href="http://tech.libersoft.it/wp-content/uploads/2008/12/gambas2_2.10.0-1_i386.deb">Gambas 2.10 i386 deb</a></p>
<p>Istruction for the installation:<br />
<code>aptitude remove ~ngambas
dpkg -i gambas2_2.10.0-1_i386.deb</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/gambas-210-for-debian-lenny.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asus eeepc 900A/901 optimized kernel 2.6.28</title>
		<link>http://blog.scorpionworld.it/asus-eeepc-900a-optimized-kernel-2628.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=asus-eeepc-900a-optimized-kernel-2628</link>
		<comments>http://blog.scorpionworld.it/asus-eeepc-900a-optimized-kernel-2628.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 17:19:31 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[optimized]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=117</guid>
		<description><![CDATA[I&#8217;ve decided to make a stripped vanilla kernel for debian/ubuntu after seeing that the lean kernel from array.org has practically nothing stripped out. For gaining performances, I compiled the kernel with the Core 2/Newer Xeon as Processor Family, removed every &#8230; <a href="http://blog.scorpionworld.it/asus-eeepc-900a-optimized-kernel-2628.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to make a stripped vanilla kernel for debian/ubuntu after seeing that the lean kernel from array.org has practically nothing stripped out.</p>
<p>For gaining performances, I compiled the kernel with the Core 2/Newer Xeon as Processor Family, removed every generic optimization, compiled statically some driver and change the IO scheduler to no-op (fifo is the best on flash based memory, because they haven&#8217;t any seek time).<br />
<span id="more-1418"></span><br />
I am attaching here the config, the kernel image, the headers required to compile other modules and the madwifi module that I use for the wireless card.</p>
<p><del datetime="2008-12-31T14:20:26+00:00"><a href='http://tech.libersoft.it/wp-content/uploads/2008/12/linux-image-2.6.28-eeegt-1_2.6.28-eeegt-1-10.00.Custom_i386.deb' >linux-image 2.6.28-eeegt-1</a><br />
<a href='http://tech.libersoft.it/wp-content/uploads/2008/12/linux-headers-2.6.28-eeegt-1_2.6.28-eeegt-1-10.00.Custom_i386.deb' >linux-headers 2.6.28-eeegt-1</a><br />
<a href='http://tech.libersoft.it/wp-content/uploads/2008/12/madwifi-modules-2.6.28-eeegt-1_0.9.4+r3772.20080716-1+2.6.28-eeegt-1-10.00.Custom_i386.deb' >madwifi-modules 2.6.28-eeegt-1</a><br />
<a href='http://tech.libersoft.it/wp-content/uploads/2008/12/config-2.6.28-eeegt-1' >.config 2.6.28 900a</a></del></p>
<p>With the recent kernel, there is no need to use the madwifi driver, the ath5k module works great. I also reintroduced the right atl1e for the ethernet device and the atl2 module necessary for the other eeepc model.</p>
<p><a href='http://tech.libersoft.it/wp-content/uploads/2008/12/linux-image-2.6.28-eeegt-3_2.6.28-eeegt-3-10.00.Custom_i386.deb' >linux-image 2.6.28-eeegt-3</a><br />
<a href='http://tech.libersoft.it/wp-content/uploads/2008/12/linux-headers-2.6.28-eeegt-3_2.6.28-eeegt-3-10.00.Custom_i386.deb' >linux-headers 2.6.28-eeegt-3</a><br />
<a href='http://tech.libersoft.it/wp-content/uploads/2008/12/config-2.6.28-eeegt-3' >.config 2.6.28 eeepc 900a/901</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/asus-eeepc-900a-optimized-kernel-2628.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Instructing APT to not consider recommends packages as strict dependecies</title>
		<link>http://blog.scorpionworld.it/instructing-apt-to-not-consider-recommends-packages-as-strict-dependecies.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=instructing-apt-to-not-consider-recommends-packages-as-strict-dependecies</link>
		<comments>http://blog.scorpionworld.it/instructing-apt-to-not-consider-recommends-packages-as-strict-dependecies.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 10:36:52 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[embedded]]></category>
		<category><![CDATA[recommends]]></category>
		<category><![CDATA[suggests]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=114</guid>
		<description><![CDATA[On apt systems, there are three type of dependencies: Dependant packages Recommended packages Suggested packages The first are packages strictly needed for an application to work correctly (eg: for amsn, the tls library needed to login). The recommended packages are &#8230; <a href="http://blog.scorpionworld.it/instructing-apt-to-not-consider-recommends-packages-as-strict-dependecies.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On apt systems, there are three type of dependencies:</p>
<ul>
<li>Dependant packages</li>
<li>Recommended packages</li>
<li>Suggested packages</li>
</ul>
<p>The first are packages strictly needed for an application to work correctly (eg: for amsn, the tls library needed to login). The recommended packages are not needed, but they usually add features to the main application (eg: for gimp, the gimp-gnomevfs used to drag and drop files from nautilus). Finally, the suggested packages that&#8217;s not add feature to the main package but that are in somehow manner related to the main package.</p>
<p>As default, apt-get/aptitude <strong>always install recommends packages</strong>, and this is a great thing for who is using a desktop, or don&#8217;t want to spend time selecting the right packages but want that everything works as best it can.</p>
<p>Unfortunately, this is not a right choice when we are configuring a server system or an embedded system.</p>
<p>So, the first thing to do, when you gain the shell on a fresh installation, is to instruct apt to install only needed dependencies.</p>
<p>Insert in /etc/apt/apt.conf these two lines:</p>
<p><code>APT::Install-Recommends "false";
APT::Install-Suggests "false";</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/instructing-apt-to-not-consider-recommends-packages-as-strict-dependecies.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
