Do you want to make your own biodiesel? Here’s an article. Basically, biodiesel is vegetable oil either mixed with regular diesel or processed to change its properties so it can fuel a diesel engine or generator. If you try this please don’t poison, burn or blow yourself up. If you poison, burn or blow yourself up don’t say I didn’t warn you.
This is interesting on a small scale but I don’t think it’s the answer to civilization’s energy problems for a few reasons. The obvious one is that it takes a lot of vegetable oil, vegetable oil crops/trees take a lot of land to grow, and if you do it on a huge scale you will not have that land available for anything else, like growing food. We should be diversifying our economy away from our reliance on oil specifically, and liquid fuels more generally. Still, there are applications like air travel where liquid fuels seem to be the best technical solution, and it might make sense to reserve biofuels for those. If you need an emergency generator for some reason, like at a hospital, and battery or fuel cell technology are not up to the job or cost-effective enough yet, a tank of biodiesel certainly seems like a safer and less toxic alternative to a tank of regular old diesel.