Website of Marko Merl
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 ( 137 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
3D support with Intel i810 and kernel 2.6.22.6 
Wednesday, September 19, 2007, 09:47 AM - Linux
I wanted to set up my 3D support on my notebook. My graphic card chip is an Intel 855GM. For this chip is no additional or external driver necessary.
I'm using the following packages and kernel version:
distribution debian-4.0 etch
kernel 2.6.22.6
xorg 7.1.0
kde 3.5.5


You have to change or add the following steps in the kernel:
Linux Kernel Configuration
Device Drivers
Character Devices
(*)/div/agpgart...
(M)Intel 440LX/BX/GX,...
(M)Direct Rendering Manager...
(M)Intel I810
(M)Intel 830M, 845, 852GM, 855GM, 865G
(M)i830 driver
(M)i915 driver
Graphics Support
(*)Support for frame buffer devices
(M)Intel 810/815 support
(M)Intel 830M/845G/...

After this changes build your kernel and reboot your system in the new kernel configuration.

Install the package
libgl1-mesa-dri
to use the DRI correctly.

After this installation open the configuration file of xorg
/etc/X11/xorg.conf
and change or add the following lines in the correct sections:
Section "Device"
Identifier "Generic Video Card"
Driver "i810"
Option "DRI" "true"
Option "XAANoOffscreenPixmaps" "true"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
Option "AIGLX" "true"
EndSection

Restart the Xserver now and your 3D support should work perfectly.

Please have also a look at the following forum thread at debianforum.de
view entry ( 103 views )   |  permalink
unison - folder snapshots 
Monday, September 17, 2007, 04:44 PM - Linux
I needed a useful syncing tool for synchronize contents of folders and also folders in both direction via ssh as a cronjob.

One tool was 'rsync' but this tool can just synchronize in one direction. The next tool was 'unison' and this is a very good tool for synchronizing in both direction also via ssh and specify port.

Here is a example how I use this application
unison (/path/to/local/folder/) (ssh://hostname:port) (/path/to/remote/folder/) -group -owner -killServer -times

-group: synchronize group settings
-owner: synchronize owner settings
-killServer: stop unison server after synchronizing
-times: synchronize last change informations

Links:
debianforum.de
view entry ( 135 views )   |  permalink

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