Website of Marko Merl
treesize for CLI users and servers 
Saturday, October 13, 2007, 02:33 PM - Linux
I was searching for a tool like treesize for GUI users.
After some searching time I found one, it's called 'gt5' and it's quiet simple.

You can download it here.

This application generate automatically a HTML page which will be opened over a console browser like 'elinks' and there you can click in the subfolder and see the size and also the percents of the files and folders.
Perfect for server.
view entry ( 132 views )   |  permalink
gallery update - photos about me 
Tuesday, October 2, 2007, 10:45 AM - Private
Dear all,

Today I updated my photos. I added some photos about me from the last months.
There were a lot of events....


Have fun,
view entry ( 164 views )   |  permalink
global aliases in a Linux system 
Saturday, September 29, 2007, 07:04 PM - Linux
There exists more than one chance to set up global aliases in a Linux system.
But this way works on all Linux systems, I tried it with the following distributions
Debian
Gentoo
Suse

How-To:
Open the file
/etc/profile
and add the aliases at the bottom of the lines.
For an example, I will use the aliase 'll' for 'ls -l'.
Add
alias ll='ls -l'
at the bottom and relogin with your account.
view entry ( 128 views )   |  permalink
DIfStaDent 1.1 - dhcp interface status dependent 
Tuesday, September 25, 2007, 01:51 PM - Linux
Since months, it makes me hapless when the boot time of a linux system takes a long time.
The problem is if you have dhcp client enabled at your interface(s), the system will try to get a IP address every time. So it's indepented on a connected LAN cable or nor. I took care of this and wrote a little script for solving this issue.
This script checks the status of the default interface (eth0 - you can change the interface how ever you want) if a LAN cable is connected or not. If not it will print a message - 'eth0 has no link' - and otherwise it will start the dhcp client and print also a message at the end.

This script is currently just for LAN cards. In the future it also support WLAN cards.

Source:
#!/bin/sh

#####################################
# #
# DIfStaDent 1.1 #
# Copyright (C) 2007 by #
# Marko Merl #
# office@linux-tux.at #
# #
#####################################

iface="eth0"
iface_link="no"
checklink=`/sbin/mii-tool $iface | awk {'print $2'}`
nolink=$checklink

if [ "$iface_link" == "$nolink" ]
then
echo "$iface has no link"
else
/sbin/dhclient $iface
echo "$iface has link"
fi


Binary:
difstadent 1.1

For troubles, issues or problems, please let me know!
view entry ( 138 views )   |  permalink
vmware workstation 5/6 and kernel 2.6.21 and higher 
Tuesday, September 25, 2007, 01:20 PM - VMware
Dear vmware workstation users,

I had a problem to get my usb devices (like mobile phones) running in vmware workstations.
Used versions of VMware and kernel:
VMware Workstation 6
kernel 2.6.22.6

The problem is that in the last changelog of kernel 2.6.21 (I guess it was at 2.6.21) the usb devices are located in other directories.
So, for resolving this issue you have to add '1' in a specify file (see below).

When your usb device is connected, start a konsole and run the command 'lsusb'. The output should be look like as following:
zesiro:~# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 007: ID 0bb4:0bce High Tech Computer Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Here you can see that my usb device is connected to the bus 2.
Go into the directory
/sys/bus/usb/devices/2-1
and add the number '1' into the file 'bConfigurationValue with the following command'
echo 1 > bConfigurationValue

Now try to reactivate your usb device in the wmvare workstation and you will see, it will work.

Links:
http://communities.vmware.com
view entry ( 117 views )   |  permalink

<<First <Back | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Next> Last>>