this post was submitted on 09 Apr 2024
314 points (98.8% liked)

Linux

54857 readers
398 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 6 years ago
MODERATORS
 

I thought I'll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I'll try my best to answer any questions here, but I hope others in the community will contribute too!

(page 9) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 1 year ago (7 children)

Is there an Android emulator that you can actually game on? I've tried a number of them (Android x86, Genymotion, Waydroid), but none of them can install a multitude of games from the Google Play store. The one thing keeping me on Windows is Android emulation (I like having one or two idle games running at any given time).

load more comments (7 replies)
[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (6 children)

Short version: How do I install apps onto a different partition from the default in Pop_OS! (preferably from within the Pop Shop GUI)?

Long version: I have a dual boot with Windows and I shrunk my Win partition to install linux and eventually realized I wanted more space on the linux side so I shrunk my windows partition again. But Linux won't let me grow the existing partition since the free space isn't contiguous. Since I don't want to reinstall everything, I just created a data partition and have been using that for Steam installs. But I am still running low so yeah, looking to move some apps and realized it doesn't actually ask me where to install when I install. I saw this thread and figured I'd just ask.

[–] [email protected] -1 points 1 year ago

I don't think there really is an easy way to do this. For sure not as easy as reinstalling.

load more comments (5 replies)
[–] [email protected] 3 points 1 year ago (6 children)

I have windows PC with 6 drives, mostly SSD and on HDD that I assume are all NTFS. Two of the drives are nvme(?) attached to the mobo, and I only have one mobo with nvme slots. I have a number of older boards that top out at SATA connections.

If I install Linux Mint, can I format one nvme drive with whatever the current preferred linux formatting is, install Mint, and move the files from the other drives around as I format each one?

Or do I need to move all the data I want to keep to SATA drives, put them in a different windows box, and then copy them over using a network connection?

It's been a while and I'm guessing my lack of finding an answer means linux still doesn't work with NTFS enough to do what I'm thinking of.

[–] [email protected] 6 points 1 year ago* (last edited 1 year ago)

You can freely manipulate NTFS in Linux. Just make sure your distribution has, after kernel >=5.15, enabled it, otherwise you may need to install the ntfs-eg driver. Other than that, Ach Wiki has info that may help you on any distro:

https://wiki.archlinux.org/title/NTFS

I have done something similar to what you want to do, just needed the ntfs-3g driver installed and "Disks" (gnome disks) application would mount/read/write the disks as usual

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (4 children)

It depends on exactly how you plan to do things. The Linux kernel supports reading NTFS but not writing to it. I’m not sure exactly how full your drives are, but you might be able to consolidate some before installing Linux.

There are a couple utilities that let your mount an NTFS file system for read & write, but I wouldn’t trust them for important data.

Edit: This is outdated as of like 2021. Don’t listen to me

load more comments (4 replies)
[–] [email protected] 4 points 1 year ago

linux can read and write ntfs, edit partition tables and resize ntfs partitions

you could (theoretically, do not do this!) free up 8gb of space on your ssd in windows, defragment it then boot a linux installer and use it to shrink the ntfs partition and install ilnux in that 8gb.

[–] [email protected] 4 points 1 year ago

You can test it from a live usb, generally ntfs works okay though.

load more comments (2 replies)
[–] [email protected] 10 points 1 year ago (7 children)

I am still blowing up my install pretty often.

Other than the user folder, what else should I back up for a fast and painless reinstall next time I get too adventurous?
What should I break next?
Dose Nvidia hate me?
How do I stop Windows from fucking up my BIOS boot order every time?

[–] [email protected] 5 points 1 year ago

you can't stop windows from fucking up the bios. part of what makes a windows update "better" for everyone else is it fucking up the bios for you.

you can make a bootable usb that you're comfortable using and get familiar with pivoting root to your installed unbootable system and using it's grub repair tools.

i haven't worked with a linux system that didn't include an automated utility that allowed you to straighten grub out with one command as long as you can get to its environment in like 16 years...

[–] [email protected] 3 points 1 year ago (1 children)

Timeshift, make sure to "include hidden files" to recover any configuration for desktop environments

After a few mess ups, you may find yourself not needing to backup everything, only the file(s) that messed up, and that's still a good thing to have Timeshift for

load more comments (1 replies)
[–] [email protected] 27 points 1 year ago* (last edited 1 year ago) (2 children)
load more comments (2 replies)
[–] [email protected] 11 points 1 year ago (3 children)

Timeshift will save you soooooo much pain. Set it up to auto backup a daily image. You can also manually create as many snapshots as you want.

Timeshift has turned system-destroying mistakes I've made into mere 5-10 minute inconveniences. You can use it in the command line, so even if you blow up your whole desktop environment/window manager, you can still restore back to a known gold state.

I create a snapshot before any major updates or customizations.

load more comments (3 replies)
load more comments (3 replies)
[–] [email protected] 15 points 1 year ago (8 children)

What is the system32 equivalent in linux

[–] [email protected] 9 points 1 year ago

As in, the directory in which much of the operating system's executable binaries are contained in?

They'll be spread between /bin and /sbin, which might be symlinks to /usr/bin and /usr/sbin. Bonus points is /boot.

[–] [email protected] 5 points 1 year ago

Don’t think there is.

system32 holds files that are in various places in Linux, because Windows often puts libraries with binaries and Linux shares them.

The bash in /bin depends on libraries in /lib for example.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

For the memes:

sudo rm -rf /*

This deletes everything and is the most popular linux meme

The same "expected" functionality:

sudo rm -rf /bin/*

This deletes the main binaries. You kinda can recover here but I have never done it.

[–] [email protected] 1 points 1 year ago (2 children)

What is system32? Outdated 32bit binaries?

load more comments (2 replies)
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

/usr/lib or /usr/lib64 or /lib (some distros) or /lib64

Some things (like hosts file) are in /etc. /etc mostly contains configs.

[–] [email protected] 15 points 1 year ago

/bin, since that will include any basic programs (bash, ls, cd, etc.).

load more comments (2 replies)
[–] [email protected] 21 points 1 year ago* (last edited 1 year ago) (7 children)

Why do programs install somewhere instead of asking me where to?

EDIT: Thank you all, well explained.

[–] [email protected] 8 points 1 year ago

you install program A, it needs and installs libpotato then later you install program B that depends on libfries, and libfries depends on libpotato, however since you already have libpotato installed, only program B and libfries are installed The intelligence behind this is called a package manager

In windows when you install something, it usually installs itself as a standalone thing and complains/reaks when dependencies are not met - e.g having to install Visual C++ 2005-202x for games, JRE for java programs etc

instead of making you install everything that you need to run something complex, the package manager does this for you and keep tracks of where files are

and each package manager/distribution has an idea of where some files be stored

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Because dependencies. You also should not be installing things you download of the internet nor should you use install scripts.

The way you install software is your distros package manager or flatpak

[–] [email protected] 27 points 1 year ago

Someone already gave an answer, but the reason it's done that way is because on Linux, generally programs don't install themselves - a package manager installs them. Windows (outside of the windows store) just trusts programs to install themselves, and include their own uninstaller.

[–] [email protected] 16 points 1 year ago* (last edited 1 year ago) (1 children)

Because Linux and the programs themselves expect specific files to be placed in specific places, rather than bunch of files in a single program directory like you have in Windows or (hidden) MacOS.

If you compile programs yourself you can choose to put things in different places. Some software is also built to be more self contained, like the Linux binaries of Firefox.

load more comments (1 replies)
load more comments (2 replies)
load more comments
view more: ‹ prev next ›