Tag Archive for 'Linux'

Serial console with VMWare

In your config file of virtual machine you need the following:

# grep serial openwrt.vmx
serial0.present = "TRUE"
serial0.fileType = "pipe"
serial0.fileName = "./serial1"
serial0.pipe.endPoint = "server"
serial0.hardwareFlowControl = "TRUE"

Redirect output to stdio or a port:

# socat <path_to_virtual_machine_dir>/serial1 <stdio |tcp4-listen:<port>>

Remove (obliterate) trees from subversion repository

If you need to wipe all traces for some objects in your svn repository, you can do something like this:

# svnadmin dump REPOS_PATH | svndumpfilter \
<include|exclude> $string | \
svnadmin load REPOS_PATH_NEW
# mv REPOS_PATH REPOS_PATH_backup && REPOS_PATH_NEW \
REPOS_PATH

Backup and restore a Windows partition

Today I discovered ‘ntfsclone’ which is included in debian in the ‘ntfsprogs’ package.

For example if you wonna try to backup your ‘/dev/hda3′ to a remote host:

foobar:~ # ntfsclone –save-image –output - /edv/hda3 | \
ssh $remotehost ‘( cat > xp.img )’

remotehost:~ # cat xp.img | ssh $foobar \
‘(ntfsclone –restore-image –overwrite /dev/hda3 - )’

Maybe you you also will have a look into ‘ntfsresize’! ;-)

LVM and Quota with Vserver on Debian

This article is based on the excellent article on 5dollarwhitebox.org.

At first install nessesary packages:

# aptitude -t sarge-backports install lvm2\
util-vserver coreutils linux-image-2.6-vserver-686

Continue reading ‘LVM and Quota with Vserver on Debian’




Too Cool for Internet Explorer