Planet

SELinux and apache (httpd)

I’ve just built a new web server vm, basically identical to my mariadb one, and the fedora cloud image. This is documentation on how I configured it, as well as the ttrss update daemon. To get nfs to work, install nfs-utils. I need some packages also for ttrss. $ yum install nfs-utils httpd php php-mysql php-mbstring php-xml I’m putting the web root on an nfs mount from my nas. I have multiple virtualhosts.

SELinux and mariadb (mysql)

I’ve just built a new mysql server vm, using the instructions I posted previously. This is documentation on how I configured it. To get nfs to work, install nfs-utils. $ yum install nfs-utils httpd mariadb mariadb-server I’m putting the database on an nfs mount from my nas. Socket files can’t exist on nfs. It’s easier to move the data than the socket file (I think I hit an selinux issue with socket access).

Fedora cloud for mere mortals

I’ve come across a post by Marek Goldmann detailing the basics of running Fedora cloud images on kvm. I found it was a massive help, but only got me part-way toward what I wanted. The documentation for cloud-init is sub-par from what I can find, so I thought I’d post this with my own modifications. My requirements were: Easy scriptable deployment (Marek’s script got me 100% of this goal) Static (sequential) IP assignments instead of DHCP hostname !

Offlineimap repeatedly deleting All Mail

or “That’s why you read changelogs” I was having some significant difficulties with offlineimap after upgrading to 6.5.4 (I’m using Ubuntu currently, so I upgraded straight from 6.3.4). The original issue was a FolderValidity error, which is covered by the offlineimap FAQ. This affected my “All Mail” folder (It also affected my “Sent Mail”, but it got lost in the noise of the 67964 messages in All Mail). The recovery process is simply to remove that folder (and it’s sync history), and start over.

Workaround for conflict between gnome-shell and vmware-player

I recently got a new machine for work, with lots of fancy memory and everything. First thing to do was install a friendly operating system with gnome-shell, and set up a VM for my windows/office requirements at work. Normally I would favour Virt-Manager+kvm, but since we’re now using vmware-server (and soon vsphere hypervisor) I thought it would be better to keep compatible. Luckilly, vmware has a free player that works pretty well for my basic needs.

Review: Logitech Trackman Wheel Optical

As well as my previously mentioned Unicomp keyboard, I also decided to purchase a Logitech Trackman Wheel Optical. It’s basically a thumb-oriented trackball that resembles a standard mouse (with regards to clicking, scrolling, etc). Adjusting to using the trackball was extremely easy. I have one at work and one at home. I haven’t been able to use it for games yet, so I’ve still got a second mouse around for that (more on that in a bit…)

Using devtodo with multiple projects

I’ve tried (and failed) to use many different pieces of software designed to manage todo lists. The main reasons I’ve failed is because the software either has a high learning curve, bad documentation, or it is cumbersome to use. I’ve finally struck gold with devtodo. Out of the box, it is almost perfect, but there are a few little issues: It expects .todo in the current directory It has no ability to track what you are working on.

Reverse Find

I recently had need to do a reverse find, and couldn’t discover any programs that offer this functionality. I decided to work around the issue using a bash function, loops, and find. This function can be stuffed into your ~/.bash_profile, and referenced wherever you need it. rfind() { rfind_path="${PWD}" while [[ "${rfind_path}" != "/" ]]; do rfind_search_paths="${rfind_search_paths} ${rfind_path}" rfind_path=$(dirname "${rfind_path}") done find ${rfind_search_paths} / -maxdepth 1 $@ -print -quit } As an example, let’s say I’m in /home/user/docs, and I execute rfind somefile.