The Greek thinker who lived in a barrel was Diogenes of Sinope. He chose to live a simple and ascetic lifestyle to reject the materialistic values of society and promote self-sufficiency. Diogenes was known for his philosophical teachings, particularly on the virtues of self-control and living in harmony with nature.