At work we’re in the middle of the development of a new Tomcat powered bioinformatics application, and have reached the stage were you have to show it to some peers but not make it publicly available. I do have an ubuntu 12.04 LTS server, so I took the most out of this Randeep’s post:
Here it is how to do it in few steps:
- Add user, password and role in conf/tomcat-users.xml
- In the webapps/examples/WEB-INF/web.xml specify role, method and urls.
- Restart Tomcat and check the result
The other day, after a do-release-update on an Ubuntu box I had some issues with a package which told me:
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
here’s how I solved:
mv /var/lib/dpkg/info/BROKEN-PACKAGE.* /tmp/ dpkg --remove --force-remove-reinstreq BROKEN-PACKAGE
The accepted rule for backup best practices is the three-two-one rule. It can be summarized as: if you’re backing something up, you should have:
- At least three copies,
- In two different formats,
- with one of those copies off-site.
It may occur to some to have a bunch of old disks laying in closets and them suddenly having the need to attach them to a running machine to restore some old data. Or you could have the need to boot up it’s System.
How to know which OS X operating system is installed on that drive? Well, all you have to do is a simple:
over the Terminal.app. I’m writing this as a reminder for an eventual future need.
VBoxManage setproperty machinefolder /Volumes/kooldata/VBOx-Machines/
Since I’ve got two hard drives on my MacBook Pro, a smaller System SSD one and a large – and slower – mechanical drive as ‘data storage, I wanted to move all the VM created with Virtualbox on the second drive. I gave on my Terminal.app the command before quoted, successfully achieving my attempt…