$ mkdir build
$ cd build
$ sudo apt-get source foo
$ sudo apt-get build-dep foo
$ cd foo
$ dpkg-buildpackage -rfakeroot -b -us -uc -nc
-nc does not clean, usefull if you change something and rebuild
http://www.cyberciti.biz/faq/rebuilding ... y-package/
[ view entry ] ( 1288 views ) | print article
dpkg-query --show --showformat='${Installed-Size}\t${Package}\t${Status}\n' | grep -v deinstall | sort -nr | less
adapted from Martins Blog
Clear dpkg status file
dpkg-Status sorted:
grep Status /var/lib/dpkg/status|sort|uniq -c
purge rc packages:
dpkg -P $(dpkg -l \*|grep ^rc|awk '{print $2}')
purge for other status:
grep -B 2 'deinstall ok config-files' /var/lib/dpkg/status|sed /^$/d |grep Package|awk '{print $2}'
[ view entry ] ( 1058 views ) | print article
Clusterssh opens for each connection a xterm and sends a keystroke to each window.
You can also work in only one xterm.
#> apt-get install clusterssh
I use approxd for caching .deb's using port 9999. This port is not reachable by all my hosts,
therefore i use remote port forwarding from ssh.
I can type
#> cssh -o "-R9999:approxy:9999" host1 host2 host3
or create a default config
#> cssh -u > $HOME/.csshrc
You can define different clusters aliases. Each alias consists of some hosts:
clusters = apt monnow i only type
apt = host1 host2 host3
ssh_args= -x -o ConnectTimeout=10 -R9999:approxy:9999
#> cssh apt
a small patch makes "retile windows" working for me:
--- ClusterSSH.pm.orig 2010-09-27 13:23:02.561375883 +0200
+++ /usr/share/perl5/App/ClusterSSH.pm 2010-09-27 13:09:27.011375882 +0200
@@ -1319,7 +1319,7 @@
logmsg( 3,
"x:$current_x y:$current_y, r:$current_row c:$current_col" );
- $xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );
+# $xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );
if ( $config{unmap_on_redraw} =~ /yes/i ) {
$xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );
[ view entry ] ( 926 views ) | print article
First get ubuntu-vm-builder from http://packages.ubuntu.com/intrepid/ubuntu-vm-builder
#> dpkg -i ubuntu-vm-builder_0.6_all.deb
I suggest to use approx for caching packages
#> sudo apt-get kvm libvirt-bin
#> sudo adduser `id -un` libvirtd (and relogin)
To have a working virio inside the guest i patched:
--- /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl.orig
+++ /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl
@@ -18,13 +18,14 @@
<interface type='network'>
<mac address='%MAC%'/>
<source network='default'/>
+ <model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' listen='127.0.0.1'/>
%loop%
<disk type='file' device='disk'>
<source file='%img%'/>
- <target dev='hd%curdisk%'/>
+ <target dev='hd%curdisk%' bus='virtio'/>
</disk>
%/loop%
</devices>
#> ubuntu-vm-builder
Read More...
[ view entry ] ( 2286 views ) | print article
* enable port tcp 80 forwarding on your firewall
because adept_manager connects directly to http://changelogs.ubuntu.com/
https://bugs.launchpad.net/ubuntu/+source/adept/+bug/153016/comments/13
* kdesu "adept_manager --dist-upgrade-devel"
if you use a proxy like approx stop adept_manager after changing /etc/apt/sources.lists and rewrite to
deb http://proxy:9999/ubuntu/ hardy-security universe main multiverse restricted
deb http://proxy:9999/ubuntu/ hardy-updates universe main multiverse restricted
deb http://proxy:9999/ubuntu/ hardy main universe multiverse restricted
and start it again.
after upgrade done add
deb http://proxy:9999/medibuntu hardy free non-free
to /etc/apt/sources.lists
on my proxy /etc/approx/approx.conf:
ubuntu http://ubuntu.inode.at/ubuntu
medibuntu http://de.packages.medibuntu.org
[ view entry ] ( 758 views ) | print article
<<First <Back | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Next> Last>>