Linux

56484 readers
1873 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
526
 
 

I want to install voidlinux. So I partitioned disk using cfdisk, but void-installer(and lsblk) show me different results. lsblk tells me that I have 4 partition, when cfdisk tells me only about 3. These partitions also have different sizes.

cfdisk

lsblk

527
 
 

Hi!

I'm a new Linux user, so far so good, but one thing that grinds my gears is that if I log in fairly quickly after a boot, I have to wait ~5-10 seconds before I can start using my BT mouse (Logitech MX Master 3S).

Is there a way to speed up the initialisation of Bluetooth on Linux so that it starts immediately, like the USB drivers do?

OS Garuda Linux x86_64
├ Kernel Linux 6.14.4-zen1-1-zen
├ Packages 1382 (pacman)[stable], 5 (flatpak)

DE KDE Plasma 6.3.4
├ Window Manager KWin (Wayland)
├ Login Manager sddm 0.21.0 (Wayland)

Solution

Thanks to /u/floofly on r/linux4noobs for this!

Yup, assuming you're using systemd as you innit system. The following will change it so your bucktooth will initialise before the GUI.

sudo systemctl edit bluetooth.service

change:

[Unit]

Before=graphical.target

And from myself, I'll add this for the other noobs out there: when you run that command you'll see something like this:

### Editing /etc/systemd/system/bluetooth.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file



### Edits below this comment will be discarded


### /usr/lib/systemd/system/bluetooth.service
# [Unit]
# Description=Bluetooth service
# Documentation=man:bluetoothd(8)
# ConditionPathIsDirectory=/sys/class/bluetooth

Make it look like this:

### Editing /etc/systemd/system/bluetooth.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Unit]

Before=graphical.target

### Edits below this comment will be discarded


### /usr/lib/systemd/system/bluetooth.service
# [Unit]
# Description=Bluetooth service
# Documentation=man:bluetoothd(8)
# ConditionPathIsDirectory=/sys/class/bluetooth
528
 
 

A few years ago my wife and I built a computer out of old parts for her friend's then 10 years old son. Last month we were visiting them, and I heard the wife's friend say something funny that I thought I'd share with you.

They live on the other side of the city, this was the kid's first computer, and his mom doesn't have much computer experience either, so our goal was to build something that was easy to use and hard to break from the beginning. Originally I choose ElementaryOS since it seemed to fit the bill, but after a year or two it turned out that it couldn't be upgraded to a new major version without a full reinstall so it got stuck with an older version. We didn't visit that often, and the kid's games still worked so it wasn't a major issue until Factorio broke due to glibc incompatibility.

When his birthday was coming up last month we bought him a SSD to make the computer a little bit zippier without a major upgrade, and I thought I'd give him a brand new Linux experience too, so I asked for advice here and in the end chose Bazzite. While I was helping the kid with the installation, I overheard his mom saying in the other room:

This Linux thing.. We've never had any problems with it, he just clicks something to install it and it works. Unlike normal computers, where you always have to do things and fix them.

Perhaps not the most eloquent, but I consider it a very good review.

529
 
 

I built a home theater PC and now I'm obsessed with getting an xmb ui on there. I know retro arch has a nice implementation, but I couldn't find any support for jellyfin or spotify menu items. Should I forge ahead and create custom ones? Does anyone know a better way? Any advice is appreciated. Thanks!

530
531
29
submitted 2 months ago* (last edited 2 months ago) by Bristlecone@lemmy.world to c/linux@lemmy.ml
 
 

Like the title says I want to install a Linux distro on my old laptop. I am currently looking into installing a SSD, but I want to learn a distro for fun! I haven't been able to find a good current resource aside from the Linux Masters here, so I am actually asking for help on the Internet! What distro is the best!?

https://imgur.com/8zldESD

EDIT: thanks so much everyone for your recommendations and advice! I installed a couple of different systems before deciding that I think the laptop may be able to support Fedora with KDE plasma (my favorite flavor of the installs so far) and I'm finding it really attractive and easy to use. You will see once I get some more disk space used how the performance holds up! If it runs into trouble I might switch the machine back over to mint with, that one seemed to run really well and was pretty familiar seeming from my Windows days, also seem more low end and booted a little faster. I think I might even end up switching to Linux on my desktop I had so much fun with it last night!! I really appreciate all the information and will probably be experimenting with a more lightweight build on this computer in the future! I'm a Linux user and it was easier than I ever thought! ❤️

532
 
 

Hi all, I'm trying to have my rpi5 running raspberry OS communicate with the Internet only through the tun0 interface (vpn). For this I wanted to create a ufw ruleset. Unfortunately, I've hit a roadblock and I can't figure out where I'm going wrong.

Can you help me discover why this ruleset doesn't allow Internet communication over tun0? When I disable ufw I can access the Internet.

The VPN connection is already established, so it should keep working, right?

I hope you can help me out!

This is the script with the ruleset: sudo ufw reset

Set default policies

sudo ufw default deny incoming

sudo ufw default deny outgoing

Allow SSH access

sudo ufw allow ssh

Allow local network traffic

sudo ufw allow from 192.168.0.0/16

sudo ufw allow out to 192.168.0.0/16

Allow traffic through VPN tunnel

sudo ufw allow in on tun0

sudo ufw allow out on tun0

Add routing between interfaces (I read its necessary, not sure why?)

sudo ufw route allow in on tun0 out on wlan0

sudo ufw route allow in on wlan0 out on tun0

sudo ufw enable

533
 
 

https://gitlab.com/christosangel/sausage

sausage is a terminal word forming game, written in Bash.

This game was inspired by https://en.wikipedia.org/wiki/Bookworm_(video_game).

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/word1.png

The aim is to score points by creating words, moving around in six directions in the grid, using consecutive letters.

When the user created longer words, coloured letters appear. The user can score more points by using these coloured letters.

More points can also be scored, when the user manages to create the bonus words.

When smaller words are created, or low point yielding words, red letters appear in the grid. If not used, these red letters will drop one cell in every turn.

When a red letter reaches beyond the bottom of the grid, the game is over.

The user can also reshuffle the letters in the grid, in order to be able to create words. However, there is a price to this action: the existing red letters will drop one cell, all other bonus coloured letters will be lost, and more red letters will appear.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/stats.png

534
 
 

Today i took my first steps into the world of Linux by creating a bookable Mint Cinamon USB stick to fuck around on without wiping or portioning my laptop drive.

I realised windows has the biggest vulnerability for the average user.

While booting off of the usb I could access all the data on my laptop without having to input a password.

After some research it appears drives need to be encrypted to prevent this, so how is this not the default case in Windows?

I'm sure there are people aware but for the laymen this is such a massive vulnerability.

535
 
 

I've seen people advocating for both options, but since I'm still new to Linux I'm not sure what to do. I'm currently installing Mint on my laptop to try it out, and I'm not sure if I should enable secure boot or not.

536
537
538
 
 

I feel like I remember seeing something like this get posted and celebrated in this or some other techie community, and I'm interested in screwing around with other OSes but I can't remember which one it might be. What's your favorite 90s-flavored Linux desktop environment / distribution?

539
 
 

I've just upgraded to Fedora Workstation 42 and am now unable to activate any GNOME extensions. The little switches in the GUI do not respond and it's the same for all extensions. The Extensions and Extensions Manager apps are both installed as flatpaks - do I need to adjust their permissions in Flatseal? Is the problem due to something else? Thanks!

Edit/solution: I totally missed the 'Use Extensions' switch at the very top. All my extensions are working on the current GNOME version (48) now. I am the most silly. Hopefully the other solutions in the comments will be useful to someone else in future :)

540
541
542
34
submitted 2 months ago* (last edited 2 months ago) by phantomwise@lemmy.ml to c/linux@lemmy.ml
 
 

Hi, I tried using an email client over a year ago, and after trying almost all of them in the span of a week I gave up in frustration. Would anyone have a recommendation ? For an email client :

  • That is actively maintained
  • That is not controlled by a company that could pull a Mozilla on it (Thunderbird)
  • That isn't proprietary
  • That doesn't need 77 dependencies and 450 GB (WTF KMail 😭 )
  • That is reasonably fast and light and not too bloated (I just want to read emails, I don't need a full app suite...)
  • That supports POP
  • That supports writing HTML messages (sorry Claws, I really liked you but occasionally I kinda need to write formatted messages to preserve other people's sanity 😅 )
  • That supports reading HTML messages without showing the HTML version as attachments so that every single email has the paperclip icon and I can't tell which messages have real attachments (Sylpheed I think ?)
  • That supports MailDir format for portability (why isn't it the default everywhere already instead of weird non-portable formats ? 😭 )
  • If possible, that doesn't have an interface that's so awful it's a pain to find anything (Thunderbird)

I also tested Geary and another one but I don't remember much about it... I can't find out whether Geary does support POP and maildir, its documentation page is... well it's a list 8 lines long, but on a page called "Documentation" so it's technically counts as documentation I guess ? 😅 https://wiki.gnome.org/Apps/Geary/Documentation

Any recommendation would be greatly appreciated !

543
 
 

I'm planning on changing to Linux eventually, but my PC has a 4060ti. I have heard that Nvidia drivers are a pain to install, and I don't have the means to change to a non-Nvidia GPU. Am I in trouble?

544
 
 

Ich habe eine Linux-Einsteigergruppe auf deutsch erstellt! Das Ziel ist, ohne Sprachbarriere ausschließlich bei Linux zu helfen und darüber auszutauschen.

Fortgeschrittene willkommen, um Wissen zu teilen!

545
 
 

cross-posted from: https://lemmy.ml/post/29133233

The GCC developers are pleased to announce the release of GCC 15.1.

The C frontend now defaults to the GNU C23 dialect. Some code needs porting for this. Some remaining C23 features have been implemented, as well as some new C2Y features.

The C++ frontend now implements several further C++26 features, some missing C++23 bits, and defect report resolutions. The libstdc++ library now notably experimentally supports std and std.compat modules, more algorithms usable in constexpr functions, flat maps and sets, and std::format support for containers and other ranges.

GCC now implements the Clang [[clang::musttail]] and [[clang::flag_enum]] attributes and their GNU counterparts with the same meaning for the C family language frontends. Support for new counted_by and nonnull_if_nonzero attributes has been added too.

The Fortran frontend has experimental support for unsigned integers.

GCC 15.1 has new COBOL frontend, so far supported only on a few 64-bit targets.

OpenMP support now includes metadirectives, tile and unroll constructs, interop construct and dispatch construct.

The vectorizer can now vectorize loops with early exits when array or buffer sizes aren't statically known. At -O2 can now vectorize some cheaply vectorizable loops with unknown tripcount.

Some code that compiled successfully with older GCC versions might require source changes, see Porting to GCC 15 for details.

For details see GCC 15 Release Series Changes, New Features, and Fixes).

546
547
 
 

Hey guys,

I use my laptop with a Windows 11 / Linux Mint dual-boot system.

Since I actually use Linux Mint 98% of the time, I wanted to ask if it is still necessary to do the system and security updates for Windows 11 as long as Windows is not needed?

548
 
 
549
 
 

A thorough examination of the performance effects of using undefined behaviour in compiler optimizations.

Method:

  1. Modifying clang to not use UB where this is possible
  2. Run a large suite of benchmarks on different architectures, compare results for modified and unmodified clang
  3. Do statistics on the results
  4. Examine performance deviations
  5. Discuss factors which could bias results.

Very good science!

Result in short:

Only on ARM and if no link-time optimization is used, a systematic small positive performance effect can be seen. For Intel and AMD CPUs, there are no systematic improvements.

Average effects are typically below 2%, which is the typical effect of system and measurement noise. Often, effects are even negative. In some cases, benchmarks show large differences, and many of these can be fixed by simple modifications to the compiler or program.

550
 
 

It's kind of ironic to me that Linux is all for free and open source, but still uses a proprietary platform, and a horrible one at that. Before the fediverse, I'd understand, but now, there is no excuse whatsoever.

I understand that we can't just get up and leave everything proprietary behind all at once, since we have iPhones and Android phones. We all use proprietary software of some form, but I am of the mindset of using the least amount of proprietary possible.

I will ALWAYS look for FOSS first. I also want to make it as hard as possible for any corporation to track me. They'll probably still be able to track me, but I'm not going without a fight.

I could say the same about the Linux kernel using GitHub, but I understand how massive of an undertaking it would be to move the whole kernel to another platform. I'm sure there are other factors, too. Anyway, I just wanted to start a discussion and hear people's thoughts.
Thank you

view more: ‹ prev next ›