Ubuntu Linux: Turning an Old Laptop into an Automation Server
If you are tired of monthly cloud bills and unreliable free plans, this guide will help you transform your forgotten old laptop into a cost-effective personal server. After struggling with the persistent memory issues of Google Cloud’s free tier, I decided to install Ubuntu 24.04 LTS on a Lenovo S145 laptop I had gathering dust in my drawer. I’ve compiled everything you need: from creating a bootable USB using Rufus and choosing the English installation to prevent terminal character encoding errors, to essential optimizations like preventing battery swelling. Follow these steps, and you can reliably run your own 24/7 data automation factory controlled remotely.
Why Use an Old Laptop Instead of the Cloud?
The end of free n8n cloud usage—only workflow downloads remain.
While using the workflow automation tool n8n, I felt the clear limitations of cloud services. The process of migrating carefully crafted workflows to a new account every two weeks to match the expiration of free Pro trials was exhausting.
Current Google Cloud Console, configuring a free compute instance.
I tried building an Ubuntu Virtual Machine (VM) on Google Cloud as an alternative, but the system would frequently hang due to the stingy memory allocation the moment my automation nodes became even slightly complex. I concluded that virtual spaces dependent on third-party platforms are difficult to control as I wish.
That’s when I spotted my 6-year-old Lenovo S145 laptop, powered by a Ryzen 3-3200U processor. Compared to typical desktops, laptops have powerful advantages as home servers:
- The Thermal Design Power (TDP) is as low as 15W, so electricity costs are negligible even when left on 24/7.
- The battery acts as a built-in UPS (Uninterruptible Power Supply), so you don’t have to worry about data corruption or server crashes during a power outage.
Downloading Ubuntu and Creating a Bootable USB
The first step in building a server is creating an installation medium using a USB drive with at least 8GB of capacity. Run the latest version of Rufus on a Windows PC and load the Ubuntu Server 24.04 LTS ISO image downloaded from the official website. For Rufus partition settings, choose ‘GPT’ and for the target system, choose ‘UEFI (non-CSM)’, which is the current standard. Keep the file system as the default FAT32 and start the flashing process.
Insert the completed USB into your Lenovo S145 and turn it on. When the logo appears, repeatedly press F2 to enter the BIOS settings screen. (Some manufacturers use F10 or Delete).
In the ‘Boot Priority’ menu, set the installation USB as the top priority. Additionally, turning off the ‘Hotkey Mode’ option is convenient, as it allows you to use shortcut keys in the terminal environment immediately without needing the Fn key. Save your changes and reboot to start the Ubuntu installation process.
3 Key Tips for a Smooth Laptop Server Setup
Here is the general installation process. Be sure to pay attention to these three points, as they are hard to reverse once set incorrectly!
- Language: Choose English. (Korean can cause character encoding issues in the terminal later).
- Network Connections: Ensure an IP is displayed. If not, set up ‘USB tethering’ or Wi-Fi.
- Configure Proxy: Leave blank and select ‘Done’ (not needed unless it’s a corporate server).
- Configure Ubuntu Archive Mirror: Keep the defaults and select ‘Done’.
- Storage Configuration: Select ‘Use an entire disk’ and choose your main drive.
- Storage Configuration: Uncheck [ ] Set up this disk as an LVM group.
- Profile Setup: Set your username and password (keep these safe!).
- Upgrade to Ubuntu Pro: Skip for now.
- SSH Setup: Check [X] Install OpenSSH server (Must do!).
- Once installation finishes, select [ Reboot Now ] at the bottom.
- When the screen says “Please remove the installation medium…”, remove the USB and press Enter.
- After rebooting, enter your username and password to log in.
Essential Post-Installation Optimizations
Once you have confirmed a successful login to the terminal, you need to perform power and system optimizations for a laptop environment.
Battery Overcharge Protection
Since a laptop server stays plugged in 24/7, you must prevent battery swelling. On the Lenovo S145, run the following command in the terminal to enable conservation mode, which limits charging to 60%:
echo 1 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
Laptop Lid Control
To keep the laptop closed in a corner for space efficiency, you must prevent the system from entering sleep mode when the lid is closed.
- Edit the
/etc/systemd/logind.conffile, uncommentHandleLidSwitch=ignore, and change the value. - Apply the changes with
systemctl restart systemd-logind.
Preventing Wi-Fi Disconnection
If you are using Wi-Fi instead of an Ethernet cable, you should disable the power-saving feature that puts the network card to sleep.
- Edit
/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf. - Change the
wifi.powersavevalue from 3 to 2 (disabled).
Preventing Disk Full Errors
Ubuntu accumulates logs indefinitely. If you run an n8n container on a small 128GB SSD, the log data will fill up the disk in a few months, crashing the server.
- In
/etc/systemd/journald.conf, find theSystemMaxUseoption and set it to100M.
Owning Your Digital Territory
While the convenience of cloud subscription services is nice, there is a unique sense of accomplishment in giving a new purpose to discarded hardware and exercising full control over it. No more worrying about capacity limits or payment deadlines. This weekend, wake up that sleeping laptop in your drawer and build your own robust digital territory.
🔗 Original Post :
우분투 리눅스 설치 방법과 주의점: 6년 된 노트북을 자동화 서버로 만드는 법
https://blog.naver.com/PostView.naver?blogId=k5kun&logNo=224321639148