14
submitted 15 hours ago by WhiteOakBayou@lemmy.world to c/linux@lemmy.ml

I've installed debian on an old laptop and am wondering if the 10 gig base system size can be slimmed down by deleting unneeded files.

I ran the commands to look for any runaway logs or other obviously large files and nothing popped out.

Is there a group of folders full of stuff I don't need or is this just the size of modern distros?

top 18 comments
sorted by: hot top controversial new old
[-] eugenia@lemmy.ml 1 points 51 minutes ago

I've tried several distros to fit on my repurposed Chromebooks that came with 16 GB emmc storage. Debian was the smallest one, using by default about 5.5 GB of data, plus 1 GB for swap, plus the boot partition. I had about 9 GB left after installing, with XFCE. After I installed a few apps and games, I ended up with 6 GB free space. It works fine and it updates fine.

[-] WhiteOakBayou@lemmy.world 1 points 35 minutes ago

i'm also using a chromebook with 16 gb emmc storage. my installs keep being about 10 gigs with xfce. i was thinking i would end up with just about your numbers but there is almost 5 gigs of other stuff i ended up with from the live disk installer.

[-] 0x0@programming.dev 1 points 56 minutes ago

Install the headless version, no GUI:

${EDITOR} /etc/apt/apt.conf.d/99noRecommends
APT::Install-Recommends "0";
APT::Install-Suggests "0";

and then run apt update.

Then install fluxbox session manager, oughta be enough.

[-] ouch@lemmy.world 2 points 6 hours ago

You can start with dpigs. Then start marking packages automatically installed with apt-mark. aptitude may be a good frontend when removing a lot of packages, you can mark entire categories, like libraries, as automatically installed.

Pay attention to the package headers when removing packages. You don't want to remove essential packages.

[-] nanook@friendica.eskimo.com 1 points 6 hours ago

@ouch @WhiteOakBayou If you try to remove essential packages, it will not allow you without an extra flag, even as root.

[-] schizo@forum.uncomfortable.business 30 points 15 hours ago

Why not save time and do it the other way?

Install the minimal/netinstall image, and then add what you need.

You'll probably spend less time adding than trying to figure out what's installed that you do or don't need and trying to remove random packages without breaking anything.

[-] WhiteOakBayou@lemmy.world 0 points 15 hours ago

i have broken the install a few times just deleting stuff. The live disk won't find my wifi card so i can't net install unless I buy an ethernet adapter.

[-] MajorHavoc@programming.dev 4 points 14 hours ago* (last edited 14 hours ago)

the live disk won't find my Wifi

Oof.

I'm case it helps: I have solved that problem for myself using a $9.00 USB Wifi dongle.

For whatever reason (other contributors facing the same issue?), I have found that every cheapo USB Wifi dongle I have tried has worked perfectly with the minimal Linux images.

I realize I might have just gotten really lucky a bunch of times, but it could be worth a try.

[-] shertson@lemmy.world 3 points 15 hours ago

If you have another USB drive, I think you should be able to load the wifi drivers from that when using the netinstall. I am pretty sure I remember doing that 15 years ago.

[-] WhiteOakBayou@lemmy.world 2 points 14 hours ago

That's a good idea. I can probably scrounge one up

[-] nanook@friendica.eskimo.com 4 points 13 hours ago

To be sure, the base install of debian is a everything and the kitchen sink install. There are MANY package the average person is not going to need.

[-] MajorHavoc@programming.dev 3 points 14 hours ago* (last edited 14 hours ago)

The first thing I do to, if I need to get the size down, is swap out Gnome for one of the X11 Windows managers, usually XFCE.

I usually do this by starting from the minimal install and building up, as schizo already suggested.

That said, I guess I would be remiss if I didn't point out that Linux Mint is an easy way to get Debian's core with the XFCE window manager.

Looks like Mint starts at 3GB - 8GB, depending on options chosen?

Disclaimer: It's honestly been awhile since I really paid attention to my own Linux install size, as long as it's below 40GB.

[-] WhiteOakBayou@lemmy.world 4 points 14 hours ago

I am using xfce atm. I might just have to fix my driver problems and do a netinstall

[-] adarza@lemmy.ca 1 points 11 hours ago* (last edited 11 hours ago)

if xfce is what you want, try a custom install (using dvd1) and just pick xfce instead of the gnome default during tasksel. you will get a few desktop applications like libreoffice and firefox esr, but those are easily removed if you don't want or want to replace them. using dvd1 as my install source, wired and wireless drivers were set up during install, were available during install, and were ready to go on first boot to xfce (on an am3 pavilion desktop test system).

[-] eldavi@lemmy.ml 4 points 15 hours ago

a quick place to start would be the systemd services that get automatically started when you boot your system. when i did this in the past, i would google each service that was running to determine if i needed it and remove the associated software if i decided that i didn't.

(since you're using debian): if it's a fresh install, it would make more sense to start with a minimal install first like the netinstall image and then pick and chose what you want to put on top of it.

if your issue is that the distro is too bloated: there are other minimalist distro's out there (some are based on debian) and they've already gone through the hassle of figuring out what the bare bones minimum is for fully functional distribution that can serve a viable daily driver.

[-] gi1242@lemmy.world 4 points 14 hours ago

for instance alpine has a small footprint. its designed for containers ... but I think it has a DE as well

[-] Magister@lemmy.world 1 points 12 hours ago

Install MX Linux (not the AHS version) it is Debian based and pretty nice

[-] nanook@friendica.eskimo.com 2 points 12 hours ago

@Magister @WhiteOakBayou There are a lot of things to like about MX, nice interface, I really like that you can boot up using either systemd or sys-V, since systemd tends to be a lot faster but also tends to break it makes it really nice to have a sys-v fallback when things do break. Support has been excellent, I've yet to have it take them more than three days to fix anything broken I've reported, contrast that with Ubuntu where if it happens within the next three major releases you're doing good.

this post was submitted on 14 Nov 2024
14 points (100.0% liked)

Linux

48179 readers
955 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS