Equally, you could try booting your distro from CDROM (if you have one) and take options similar to 'recover system', then change whatever you need to change in X