DEV Community

Your Old Laptop Is Your New Database Server

Alejandro Duarte on July 26, 2022

A couple of weeks ago I almost accidentally found in my apartment an old laptop that was only gathering dust: a Lenovo Thinkpad T440s that I bought...
Collapse
 
hardikjogadia profile image
hardikjogadia

I have only 1 doubt. How can somebody forgot such a good configuration laptop? I m using my laptop from 2013, that is having core i3, 512 hdd and 4gb DDR3. But still I don't forget.🤔

Collapse
 
alejandro_du profile image
Alejandro Duarte

I happen to have a much newer and powerful laptop. Also, it had a keyboard layout I don’t use anymore. Plus the battery was in really bad shape. I get your point, though, and of course you can use a more modest laptop. I even run MariaDB on Raspberry Pi’s sometimes.

Collapse
 
fyodorio profile image
Fyodor

Agreed, FWIW this machine is too good for a utility server

for things such as experiments or development/test environments

Collapse
 
tohasull profile image
Tom Sullivan

Great article. I saw lots of tips I want to explore.

I use an old Mac Mini to host a MInecraft server and to run an opensim Region on OSGrid. It uses Ubuntu 20.04. Ubuntu server would be a better choice.

A lot of old machines dropped out of service as Windows requirements kept going up and up. They still have a lot to offer and linux with its modest requirements gives them new life.

Collapse
 
alejandro_du profile image
Alejandro Duarte

Good to hear! One more tip:

Install avahi-daemon to make the computer visible by its hostname without having to configure a static IP address if you prefer. This also makes the hostname visible to all other devices in the network without having to add an entry to each /etc/hosts file. Simply run the following in the server:

sudo apt-get install avahi-daemon

Collapse
 
onedamianocoder profile image
onedamianocoder

that laptop appear to me brand new XDD

Collapse
 
alejandro_du profile image
Alejandro Duarte

I took really good care of it, but it's almost 10 years old. It's still a good machine I think.

Collapse
 
andrewbaisden profile image
Andrew Baisden

Nice tutorial I would like to give this a go.

Collapse
 
alejandro_du profile image
Alejandro Duarte

Go for it!

Collapse
 
cednore profile image
cednore

Always good to find something on dust but yet useful!

Collapse
 
alejandro_du profile image
Alejandro Duarte

Right? Why didn't I do this before?-kind of feeling.

Collapse
 
samuelrivaldo profile image
Samuelrivaldo

Thanks 🙏