Monthly Archives: May 2005

The actual .bashrc file.

Just in case you loose the file again, this is Grant’s .bashrc file:


PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH"
export PATH
PATH="$PATH:/cygdrive/c/Program Files/Java/jdk1.5.0_03/bin"
export PATH
alias ls='ls --color'
alias ll='ls -lh'
alias la='ls -a'
alias more='less'
PS1="[\u@\h \W]\\$ "
PS2="> "
cd $HOME

Advertisements

Some Cygwin Tips.

Your previous cygwin.bat file had options in it that meant that bash ignored the .bashrc file. This was really annoying as it took me forever to work out why. The new cygwin.bat file is as follows:-


@echo off

C:
chdir C:\cygwin\bin
start rxvt -sr -sl 10000 -fg white -bg black -fn 13x22 -fb 13x22 -tn cygwin -e /bin/bash

Adding --login - to the end of the last line results the config file being ignored. One day I will read the manual.

Logging in remotely.

O.k. I’ve recently really got into logging into computers from other computers. I’m easily impressed but it means that you don’t need to move keyboards or monitors – which is nice when you have limited amount of space. If you had a wireless connection you might not even need wires. I have a feeling that all this is what shrinks call displacement activity….

Anyway to remotely log into a Windows XP Professional box. Right Click on the “My Computer” icon and select the “Remote Tab” from then you follow a tedious list of menus to set the thing up.

Then if that works you can log in remotely….
Screenshot remotely logged in

Adding CDs to a Mandriva linux install

In theory there is a groovy new way of doing this for the limited edition 2005 release but I haven’t actually found out how… yet.

Anyway to save swopping cds all the time you need to add something similar to this to your /etc/fstab file.

/home/grant/downloads/Mandriva-Linux-2005-Limited-Edition-Club-CD1-CD4.i586/
Mandriva-Linux-2005-Limited-Edition-CD4.i586.iso /mnt/localiso/iso4 iso9660 ro,loop,auto 0 0

Then go to the Mandriva Control Centre (curiously still called the Mandrake Control Centre) and then add the new mount point. Add Custom -> Check Local Files is selected -> Click the Browse Button -> Navigate to the Media section in the iso image.

Of course there might be a better way of doing this.

The Caps Lock Key.

O.k. so this is shaping up to be really really boring, but if you want to make the caps lock key do something useful (I like to turn it into a control key) you can use this:


Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "XkbOptions" "ctrl:nocaps"
EndSection

in your XF86config file. Of course if you are not using the X Windowing System then all that might be a bit greek to you. There is also a program for fiddling with registry settings on Windows XP which seems to do the trick but I forget the name.