Posted by: Buzz in Linux
The default install of VI is very basic, and being as I spend a lot of my time in there I find syntax highlighting invaluable, to get this however you will need the vim-enhanced package.
So run the following to install this package and setup an alias for vi.
1 2 3 4
| yum install vim-enhanced
echo "alias vi='/usr/bin/vim'" >> ~/.bashrc
echo "syntax on" >> ~/.vimrc
alias vi='/usr/bin/vim' |
And you’re done:
Tags:
CentOS,
highlight,
rhel,
syntax,
vi,
vim-enhanced
No Comments »
Posted by: Buzz in python
In order to get pyinotify working on CentOS 5 x64 a few workarounds need to take place.
(Thanks to Matthew Ife at ukFast for help with this)
First off you are going to need the python-ctypes RPM, available from DAG here: python-ctypes-1.0.0-2.el5.rf.x86_64.rpm
Once installed you are going to need the Fedora 8 python-inotify SOURCE rpm available from here: python-inotify-0.8.0-3.r.fc8.src.rpm
The easiest way I found to extract the required packages was using the following:
1 2 3 4 5 6 7
| mkdir ./python-inotify
cd ./python-inotify
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/8/SRPMS.newkey/python-inotify-0.8.0-3.r.fc8.src.rpm
rpm2cpio ./python-inotify-0.8.0-3.r.fc8.src.rpm | cpio -idv
tar -zxvf ./pyinotify-0.8.0r.tar.gz
cd ./pyinotify
./setup.py install |
Tags:
CentOS,
pyinotify
No Comments »