Posts
May 26, 2007 • 2 min read • Technology
VNC (Virtual Network Computing) via ssh
I am sitting at home and want to use the GUI of my Linux at work.
May 26, 2007 • 1 min read • Technology
The ls command
I have been using is for years, but hardly have used its "advanced" options.
May 26, 2007 • 3 min read • Technology
Some partition rearrangements under Linux
The Linux installation is as follows:/dev/hdb1 100 MB /boot/dev/hdb2 8 MB /home/dev/hdb3 8 MB //dev/hdb4 Extended partition/dev/hdb5 1 GB Linux swap/dev/hdb6 100 GB NTFSThe idea was to use the 100 GB partition (/dev/hdb6), which has been formatted with the NTFS (= Windows 2000) file system to store large files under Linux.
May 26, 2007 • 1 min read • Technology
rio500-0.7-1.i386.rpm works under RedHat 9
I again tried to compile rio500-0.8.1, but without success.
May 26, 2007 • 2 min read • Technology
Mounting disk image files and encrypted filesystems/partitions
To dump a disk (or a partition) into a file, you use the following command:dd if=/dev/hda3 of=file.binThis command writes the complete data on the hda3 partition into the file file.bin.To mount the filesystem that is in the file, you need to create a loopback device:losetup /dev/loop0 file.binNow you can mount the filesystem as usual:mount -r -t filesystemtype /dev/loop0 /mnt/mountpointApparently, one can combine the last two commands into one:mount -t filesystemtype -o loop ./file.bin /mnt/mountpointIf you want to encrypt the data on a file, that contains a whole filesystem, it is getting a bit more complicated:sudo mkdir /mnt/secure (create mount point for the filesystem)dd if=/dev/zero of=path/to/file bs=1k count=409600 (create an empty file with 400 MB size) sudo /sbin/losetup -e xor /dev/loop0 path/to/file/sbin/mkfs -t ext2 /dev/loop0 409600 (format the device as ext2)sudo mount -t ext2 /dev/loop0 /mnt/secure (mount the device file)cd /mnt/securechown username .