2010/08/05, 18:57
this is based on redmine-1.0.0
we need a more recent version of rails and rubygems than those shipped with lenny, so first add the backports-repository to your sources.list:
deb http://www.backports.org/debian lenny-backports main contrib non-free
then, update your package list:
and install the above mentioned packages Continue reading ‘installing redmine on debian/lenny using mod_passenger’ »
2010/05/03, 19:29
aptitude has a specific list-category to display those when using the curses-GUI, but I do not like it. fortunately, you can use the search-command from the cli-interface with the appropriate search-pattern:
aptitude search "?obsolete" |
or as a shorthand:
See the aptitude Reference Guide for more information.
2010/04/09, 13:54
to restore a dump from a MySQL database created on a debianish Linux system, just feed the dumped SQL to the command-line mysql client like this:
mysql -u root -p < mysql-all-2010-03-28-0515.sql |
since the whole content of all MySQL databases are overwritten with that stored in the dump, credentials are affected as well. that’s the reason why debian’s system tools won’t work any more after restoring the old dump, since debian creates a maintenance-user called “debian-sys-maint” during the installation and stores the randomly generated credentials in “/etc/mysql/debian.cnf” so it’s sufficient to just copy the “password” values from the old file into the new one and restart mysql. otherwise, you will run into an error like this:
/etc/mysql/debian-start[3181]: Running 'mysqlcheck'...
/etc/mysql/debian-start[3181]: /usr/bin/mysqlcheck: Got error: 1045: Access denied for user 'debian-sys-maint'@'localhost' (using password: YES) when trying to connect
/etc/mysql/debian-start[3181]: FATAL ERROR: Upgrade failed |
2010/02/18, 21:10
“schroot” is a secure chroot tool that allows a non-privileged user on a system to switch to a chroot in a secure manner. This can be used to set up automated builds etc. that don’t have to run as root.
Unfortunately, RedHat Enterprise doesn’t ship with schroot-packages, so here’s a way to build them:
Continue reading ‘building “schroot” on RHEL-5.4’ »
2010/02/11, 17:56
want to know which files in /etc have been changed on your debian-like Linux system?
one part can be done with the package debsums, which compares the md5sums delivered with a debian-package with those of the current files:
$ sudo debsums -a -s
.
.
debsums: checksum mismatch apache2.2-common file /etc/apache2/sites-available/default
debsums: checksum mismatch apache2.2-common file /etc/apache2/ports.conf
.
. |
Note 1: this does NOT cover configuration files that are not part of the .deb-package itself, e.g. those manually created by a user AND as well those built by a package’s configuration/post-install scripts. You have been warned!
Note 2: debsums can give hints about a compromised system, but it’s absolutely no guarantee that a non-suspicious output comes from a clean system – if the system’s compromised, an attacker could as well change the md5sums-database of a package (residing in /var/lib/dpkg/info/PKGNAME.md5sums)
2010/01/21, 20:25
just to remember how to test if a certain directory and its files are included in the backup using the TSM commandline interface:
./dsmc preview backup -console /path/to/dir/ |
delete one or more files from your backup (NOTE: the quotes in the second command are important, otherwise bash will expand the pattern and produce a list of files, which will confuse the TSM-client):
./dsmc delete backup /backups/mysql/mysqldump-complete-2010-01-20-1823.sql.gz
./dsmc delete backup '/backups/mysql/*.gz' |
2010/01/11, 19:07
required packages: qemu-arm-static
see: binfmt
sudo debootstrap --foreign --verbose \
--variant=buildd --arch arm \
lenny `pwd`/lenny_arm \
http://ftp.de.debian.org/debian/ |
2009/07/13, 17:37
create or edit /etc/schroot/schroot.conf:
#################################################
[hardy_i386]
description=Ubuntu Hardy Heron 8.04 (LTS) 32-bit
location=/scratch/md0/chroot/hardy_i386/
# type is required for setup-scripts to mount /proc etc. correctly
type=directory
run-setup-scripts=true
priority=3
users=<<FILL_IN_DESIRED_USERS_HERE>>
personality=linux32
aliases=hardy32,LTS32
#################################################
[hardy_amd64]
# type is required for setup-scripts to mount /proc etc. correctly
type=directory
description=Ubuntu Hardy Heron 8.04 (LTS) 64-bit
location=/scratch/md0/chroot/hardy_amd64/
priority=3
users=<<FILL_IN_DESIRED_USERS_HERE>>
# run-exec-scripts=true
run-setup-scripts=true
aliases=hardy64,LTS64 |
then bootstrap your desired variant:
debootstrap --verbose --variant=buildd --arch i386 hardy \
/scratch/md0/ne704/chroot/ubuntu-hardy-32/ \
http://de.archive.ubuntu.com/ubuntu/ |
2009/03/24, 12:26
list packages owning a file:
rpm -qf /bin/vi
dpkg -S /bin/vi |