GPG key error updating aptitude, Debian upgrade
I had an old Debian Etch machine which I did not upgrade for some time, and when I attempted to install ghostscript by using Synaptic, I've got some unmet dependencies errors with libc6 and libc6-dev. Any attempt to reinstall or upgrade these packages failed, so I decided to try to upgrade the whole system to Lenny:
And then I've been able to install ghostscript.
etch
with lenny
in /etc/apt/sources.list
#sudo aptitude update
But I've got this error:
The error can be solved downloading the GPG signatures with these commands:
#gpg --keyserver keyserver.ubuntu.com --recv xxxxxxxxxxxxxxxx
#gpg --export --armor xxxxxxxxxxxxxxxx | apt-key add -
I've tried a few servers (subkeys.pgp.net, keyserver.pgp.com, wwwkeys.eu.pgp.net) but they could not find the "right" keys...
Then I did the #sudo aptitude update
again.#sudo aptitude install apt dpkg aptitude
#sudo aptitude full-upgrade
[/linux]
permanent link
Running Windows XP in Xen from its own partition
Some months ago I made some experiments with Xen and I succeeded to install and run Windows XP as a guest using Xen 3.0. In that case Windows was located in a single file and was installed through Xen.
My purpose now is to make Xen running an already installed Windows from its own partition. Just to be more specific, this is my machine configuration:
I want to log into linux and run my existing Windows XP from its own partition on the EIDE disk.
[/linux]
permanent link
Ubuntu Dapper Drake 6.06 amd64 and Windows XP in Xen 3.0 I am coming from a bloody week of wrestling against packages, bugs and "make world"s trying to run Xen in Ubuntu 6.06 amd64 on an AM2 3800+ and to make a Windows XP Pro domU.
I searched on the web some resources that would explain how to run Windows on Xen and I found some very good tutorial that unfortunately don't fit exactly my configuration and my purpose. These are the sites I took as a basis for my setup:
These are all the steps I did and the problems I encountered during this Calvary :-) (I come from Windows with a little linux/unix background):
[/linux]
permanent link
How to mount an image file and access image content
To get access to the content of a virtual machine image or a ISO file, follow these steps:
# losetup /dev/loop0 /var/otheros.img
# fdisk -l /dev/loop0
Disk /dev/loop0: 21.4 GB, 21474837504 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/loop0p1 * 1 2609 20956761 7 HPFS/NTFS
kpartx
is part of multipath-tools
package on Ubuntu):
# kpartx -a /dev/loop0
# ls -l /dev/mapper/
total 0
crw-rw---- 1 root root 10, 62 Jul 6 2008 control
brw-rw---- 1 root disk 253, 0 Jul 5 23:18 loop0p1
# mount /dev/mapper/loop0p1 /mnt
[/linux]
permanent link
Pausing a command
How to pause / suspend / sleep a running command in a terminal?
Press Ctrl+S
How to resume the paused command?
Press Ctrl+Q
[/linux]
permanent link
How to rename multiple files from bash
Rename all *html files to *test:
for x in `ls *html`; do mv $x `echo $x | sed -e "s/html/test/"`; done
Bash for:
for var in some-list ; do command ; done
[/linux]
permanent link
Execute a command at shutdown
To dismount TrueCrypt volumes at shutdown and reboot time, I created a script, put it in/etc/init.d/
and symlinked it into the needed /etc/rc?.d/
directories using update-rc.d
.
Here is the detail:
Powered by Blosxom.