Wednesday, July 28, 2010

Emacs on Centos 5

Attempting to follow my install directions on a centos VM I found I was missing a bunch of things.  So here's a quick brain dump of packages you can install to make emacs compile without too much trouble.
  • yum -y groupinstall "Development Tools"
  • yum -y install gtk+-devel gtk2-devel
  • yum -y install libXpm-devel
  • yum -y install libpng-devel
  • yum -y install giflib-devel
  • yum -y install libtiff-devel libjpeg-devel
  • yum -y install ncurses-devel
  • yum -y install gpm-devel dbus-devel dbus-glib-devel dbus-python
  • yum -y install GConf2-devel pkgconfig
  • yum -y install libXft-devel
  • cd ~/Emacs/emacs-build
  • ~/Emacs/emacs-bzr/configure --prefix=/usr/local --without-selinux --with-x-toolkit=gtk
You may not need to build without selinux, YMMV.

Monday, July 26, 2010

Centos VM and Parallels Tools

I'm currently installing a Centos 5.5 VM for work purposes and I recently ran into the following error:

"Required GNU/Linux Components Missing: Some Components needed for Parallels Tools installation are missing in your system.  Do you want to download these components automatically?"

The following packages can be installed first to avoid having parallels do it for you:
  • kernel-headers
  • kernel-devel
  • gcc
$ sudo su -
$ yum install
$ yum install kernel-headers kernel-devel gcc

And then of course, you still get the error message....   But if you click through it after installing those packages it seems to go a hell of a lot faster, so I think I might have accomplished something.

The other weird thing is the permissions on the files when mounted automatically (for instance, while logged into gnome).  If you get permission denied errors running the installer script you can copy the contents of the cdrom to ~/parallels, chmod -R +x ~/parallels, and then run "sudo bash ~/parallels/install".


Changing Passwords on Mac OS X (Single User Mode)

Say you have a new macbook and you don't know the password for a user account you can do the following to reset the password:

1. Reboot
2. After the apple boot beep, hold down Command-S
3. Wait for command prompt
4. $ mount -uaw
5. $ passwd <yourusername>