Linux

49110 readers
1002 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
1301
58
Java uses double ram. (sh.itjust.works)
submitted 5 months ago* (last edited 5 months ago) by UnRelatedBurner@sh.itjust.works to c/linux@lemmy.ml
 
 

Let's be honest: I only use Java for Minecraft. So I only debugged with it. But all version, server or client, all launchers. All of them use double (or more) RAM. In the game the correctly allocated amount is used, but on my system double or more is allocated. Thus my other apps don't get enough memory, causing crashes, while the game is suffering as well.

I'm not wise enough to know what logs or versions or whatever I should post here as a cry for help, but I'll update this with anything that'll help, just tell me. I have no idea how to approach the problem. One idea I have is to run a non-Minecraft java application, but who has( or knows about) one of those?

@jrgd@lemm.ee's request:

launch arguments [-Xms512m, -Xmx1096m, -Duser.language=en] (it's this little, so that the difference shows clearly. I have a modpack that I give 8gb to and uses way more as well. iirc around 12)

game version 1.18.2

total system memory 32gb

memory used by the game I'm using KDE's default system monitor, but here's Btop as well:

this test was on max render distance, with 1gb of ram, it crashed ofc, but it crashed at almost 4gbs, what the hell! That's 4 times as much

I'm on arch (btw) (sry)

1302
 
 

Finally got tired of my Windows 11 install, and I considered a Linux move. For years and years, I tried to move over, even all the way back in the Ubuntu 16.04 days, even daily drove for a few months, but there would always be something that would make me move back (including but not limited to HDR, support for my old iPod, Outlook calendars, so on). However, on my most recent attempt (running Arch and KDE) things just... work? Yeah, some command line trickery is needed for stuff like HDR gaming (and turns out the screenshots work now, they just get downsampled to SDR by Steam), but this works so so much better than my previous attempts to move over. In recent years, the experience is just so much more polished than it used to be. The situation is no longer "that won't work", it is "you can do that, with some minor tweaks". All my Steam games work nearly perfectly, with only a few changes like Proton GE needed. There are now even improvements like how text on my QD-OLED monitor (which is notoriously fuzzy on Windows) is crisp and clear, or how my Xbox controller's screenshot button works over Bluetooth on Steam unlike Windows which ignores the button entirely over Bluetooth. Things are really looking up!

1303
 
 

I using sddm and installed awesomeWM. And using /usr/share/sddm/scripts/Xsetup for my dvorak layout(setxkbmap us -v dvorak). But after each pacman update or installation my configuration is not working. I'm new to artix/arch, so can you help me?

1304
 
 

I'm writing a program that wraps around dd to try and warn you if you are doing anything stupid. I have thus been giving the man page a good read. While doing this, I noticed that dd supported all the way up to Quettabytes, a unit orders of magnitude larger than all the data on the entire internet.

This has caused me to wonder what the largest storage operation you guys have done. I've taken a couple images of hard drives that were a single terabyte large, but I was wondering if the sysadmins among you have had to do something with e.g a giant RAID 10 array.

1305
116
submitted 5 months ago* (last edited 5 months ago) by that_leaflet@lemmy.world to c/linux@lemmy.ml
1306
 
 

Hello all, for a few weeks/months now, my computer has stopped going into suspend mode. Here is what happens when putting it to sleep (using GNOME's power menu) or using systemctl suspend:

  1. Display turns off, peripherals turn off (keyboard lights off etc), fans spin up before sleep as usual
  2. Fans go back to idle speed, computer stays on
  3. Have to press the keyboard, wake the display up and go in the power menu again to suspend it (from the lock screen), and it works every time like this.

I have no idea what could be preventing suspend and what I could find online did not really help a lot. I don't think it is a USB device because I tried unplugging most of them except my mouse or my keyboard and it still did not work, and the second time on the lock screen it always suspends like intended


  • Distro: Fedora 40
  • DE: Gnome 46
  • GPU: NVIDIA GTX 1080Ti (Wayland)
  • CPU: Intel 10850K
  • MB: Gigabyte Z590 Gaming X (everything is up to date)

thx !

1307
1308
1309
1310
 
 

Wayland seems ready to me but the main problem that many programs are not configured / compiled to support it. Why is that? I know it's not easy as "Wayland support? Yes" (but in many cases adding a flag is enough but maybe it's not a perfect support). What am I missing? Even Blender says if it fails to use Wayland it will use X11.

When Wayland is detected, it is the preferred system, otherwise X11 will be used

Also XWayland has many limitations as X11 does.

1311
1312
1313
 
 

Many projects ask to share lots of logs when reporting issues. It's difficult to go through all the logs and redact informarion such as usernames, environment variabled etc.

Any ideas on how to anonymize logs before sharing? Change your username to something generic?

1314
 
 

Archinstall 2.8.2 menu-based installer for the Arch Linux distribution is now available with various improvements and bug fixes.

Work continues on the new Curses-based menu with support for text input menu, scrolling functionality for previews, and more.

1315
1316
1317
 
 

I currently have an Unraid server running at home for my personal files as well as some game servers and as a media server.

I have a second machine that I use at a different location that has VPN setup to home so I can work on my projects remotely. I would like to use the second machine to also take backups of my personal files and my docker configs etc.

the second machine is running Pop!OS currently and I have several drives installed. the Issue is I was trying to create a storage pool with ZFS but apparently Pop!OS is like the only distro that doesnt like ZFS.

should I re-image my remote machine to another OS? or should I try and create a pool with something else? I have two 6TB drives and three 2TB drives that I can use, I have some more installed on there but dont really need that much space.

I used to use windows on my second machine and would just connect my shares from unraid as smb and backup with bvckup2 to a windows storage space of all the drives combined. Now I switched to linux and would like to do something similar.

My idea was to combine the similar drives into vdevs and a big pool with ZFS then run luckybackup but that derailed when I tried and failed because of Pop!OS

1318
 
 

I've only ever used desktop Linux and don't have server admin experience (unless you count hosting Minecraft servers on my personal machine lol). Currently using Artix and Void for my desktop computers as I've grown fond of runit.

I'm going to get a VPS for some personal projects and am at the point of deciding what distro I want to use. While I imagine that systemd is generally the best for servers due to the far more widespread support (therefore it's better for the stability needs of a server), I have a somewhat high threat model compared to most people so I was wondering if maybe I should use something like runit instead which is much smaller and less vulnerable. Security needs are also the reason why I'm leaning away from using something like Debian, because how outdated the packages are would likely leave me open to vulnerabilities. Correct me if I'm misunderstanding any of that though.

Other than that I'm not sure what considerations there are to make for my server distro. Maybe a more mainstream distro would be more likely to have the software in its repos that I need to host my various projects. On the other hand, I don't have any experience with, say, Fedora, and it'd probably be a lot easier for me to stick to something I know.

In terms of what I want to do with the VPS, it'll be more general-purpose and hosting a few different projects. Currently thinking of hosting a Matrix instance, a Mastodon instance, a NextCloud instance, an SMTP server, and a light website, but I'm sure I'll want to stick more miscellaneous stuff on there too.

So what distro do you use for your server hosting? What things should I consider when picking a distro?

1319
40
submitted 5 months ago* (last edited 5 months ago) by ALoafOfBread@lemmy.ml to c/linux@lemmy.ml
 
 

I want a NAS solution to back up my PC and host media files, but prebuilt NAS solutions are incredibly expensive and underwhelming and so I'm planning to build one. Does anyone have recommendations for a NAS interface?

I'm brand new to server management and would prefer something user friendly. I have used linux mint, but currently use windows as my daily driver (planning to switch to mint soon). I'd be fine with a dedicated NAS OS or with something I could run on mint since I'm already familiar with that distro.

1320
1321
 
 

Hey this maybe a stupid question. I am considering on buying a GPU. I am in conflict between nvidia and AMD. I know AMD works better on linux in general but I am curious to follow the NVIDIA advancements as they go with the new open source kernel modules and stuff... I don't know if it is worth it to pick team green over team red. Also typically performance will be better with NVIDIA on compute and stuff like that.

P.S.

Yes, this is related to the previous post I made here.

1322
 
 

I installed WireGuard on my host and set this configuration /etc/wireguard/wg0.conf:

[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = [REDACTED]
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE


[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.2/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.3/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.4/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.5/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.6/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.7/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.8/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.9/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.10/32

[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.0.11/32

Nmap scan when wg0 is down:

Starting Nmap 7.93 ( https://nmap.org ) at 2024-08-16 03:26 CDT
Host is up (0.050s latency).
Not shown: 998 closed tcp ports (conn-refused)
PORT    STATE    SERVICE
22/tcp  open     ssh
179/tcp filtered bgp

Nmap done: 1 IP address (1 host up) scanned in 1.93 seconds

Nmap scan when wg0 is up:

Starting Nmap 7.93 ( https://nmap.org ) at 2024-08-16 03:27 CDT
All 1000 scanned ports are in ignored states.
Not shown: 1000 filtered tcp ports (no-response)

Nmap done: 1 IP address (1 host up) scanned in 201.43 seconds

I also cannot connect to host via ssh. How to fix this issue?

Upd. Fixed my changing server WireGuard IP to 10.0.1.1. 10.0.0.1 was already taken

1323
9
submitted 5 months ago* (last edited 5 months ago) by skizzles@lemmy.ml to c/linux@lemmy.ml
 
 

Has anyone gotten 7th Heaven to work with Linux?

I know there are instructions for the Steam Deck floating around so I'm hoping someone here might be able to point me in the direction of some instructions for Linux.

I couldn't find anything relevant from a few searches but I did get Memoria and Moguri working pretty easily for FFIX by just running the exe using protontricks-launch, tried that with the 7th Heaven installer and it crashes out with the following error and output from the terminal.

Internal error: Failed to expand shell folder constant "userpf"

[x@archlinux FFVII]$ protontricks-launch --appid 39140 7thHeaven-v3.9.9.33_Release.exe

pressure-vessel-wrap[12440]: W: Not sharing path --filesystem="/etc" with container because "/etc" is reserved by the container framework

pressure-vessel-wrap[12440]: W: Not sharing path --filesystem="/sbin" with container because "/sbin" is reserved by the container framework

wine: using kernel write watches, use_kernel_writewatch 1.

fsync: up and running.

wine: using kernel write watches, use_kernel_writewatch 1.

002c:fixme:winediag:loader_init wine-staging 9.0 is a testing version containing experimental patches.

002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.

wine: using kernel write watches, use_kernel_writewatch 1. wine: using kernel write watches, use_kernel_writewatch 1. wine: using kernel write watches, use_kernel_writewatch 1.

0070:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0070:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0070:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0070:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005

wine: using kernel write watches, use_kernel_writewatch 1.

0090:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented! 0090:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented! 0090:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented! 0090:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented! wine: using kernel write watches, use_kernel_writewatch 1.

002c:fixme:ver:GetCurrentPackageId (000000000021FEA0 0000000000000000): stub

wine: using kernel write watches, use_kernel_writewatch 1. wine: using kernel write watches, use_kernel_writewatch 1. wine: using kernel write watches, use_kernel_writewatch 1.

0024:fixme:thread:GetThreadUILanguage : stub, returning default language. 0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 005DD99C, 00000000 005DD9C4 0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0x409 005DD99C 00000000 005DD9C4) returning a dummy value (current locale)

0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 005DD99C, 016CA680 005DD9C4 0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0x409 005DD99C 016CA680 005DD9C4) returning a dummy value (current locale)

0114:fixme:oleacc:find_class_data unhandled window class: L"#32769" 0114:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented. 0114:fixme:uiautomation:default_uia_provider_callback Default ProviderType_NonClientArea provider unimplemented.

0114:fixme:oleacc:find_class_data unhandled window class: L"#32769" 0114:fixme:uiautomation:base_hwnd_fragment_get_FragmentRoot 0000000000817EE8, 000000000021F9D0: stub!

0114:fixme:uiautomation:base_hwnd_fragment_GetEmbeddedFragmentRoots 0000000000817EE8, 000000000021F9E0: stub!

wine: using kernel write watches, use_kernel_writewatch 1. 012c:fixme:thread:GetThreadUILanguage : stub, returning default language. 012c:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 00A0D9E8, 00000000 00A0DA10 012c:fixme:nls:get_dummy_preferred_ui_language (0x38 0x409 00A0D9E8 00000000 00A0DA10) returning a dummy value (current locale)

012c:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 00A0D9E8, 019FA680 00A0DA10 012c:fixme:nls:get_dummy_preferred_ui_language (0x38 0x409 00A0D9E8 019FA680 00A0DA10) returning a dummy value (current locale)

012c:fixme:wtsapi:WTSRegisterSessionNotification Stub 000100A8 0x00000000 012c:fixme:uxtheme:BufferedPaintInit Stub () 012c:fixme:win:DisableProcessWindowsGhosting : stub 012c:fixme:graphics:ShutdownBlockReasonDestroy (000100A8): stub 012c:fixme:graphics:ShutdownBlockReasonCreate (000100A8, L"Installing"): stub 012c:fixme:rstrtmgr:RmStartSession 006BFB40, 0, 006BFB44 stub! 012c:fixme:exec:SHELL_execute flags ignored: 0x00000100 wine: using kernel write watches, use_kernel_writewatch 1. wine: using kernel write watches, use_kernel_writewatch 1. 0138:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 007CFEB8 012c:fixme:exec:SHELL_execute flags ignored: 0x00000100 wine: using kernel write watches, use_kernel_writewatch 1. 0148:fixme:ver:GetCurrentPackageId (000000000021FEA0 0000000000000000): stub wine: using kernel write watches, use_kernel_writewatch 1. 0154:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000019FE80 012c:fixme:graphics:ShutdownBlockReasonDestroy (000100A8): stub 012c:fixme:graphics:ShutdownBlockReasonCreate (000100A8, L"Installing 7th Heaven."): stub 012c:fixme:msg:ChangeWindowMessageFilterEx 000300D6 c051 1 00000000 012c:fixme:msg:ChangeWindowMessageFilterEx 000400D6 c051 1 00000000 012c:fixme:msg:ChangeWindowMessageFilterEx 000200DC c051 1 00000000 0164:fixme:ver:GetCurrentPackageId (000000000021FEA0 0000000000000000): stub 012c:fixme:msg:ChangeWindowMessageFilterEx 000300DC c051 1 00000000 012c:fixme:shell:SHAutoComplete stub 0120:fixme:oleacc:find_class_data unhandled window class: L"Button" 0120:fixme:uiautomation:msaa_provider_GetPatternProvider Unimplemented patternId 10002 0120:fixme:uiautomation:base_hwnd_provider_GetPatternProvider 000000000083D0F0, 10002, 000000000181F8A0: stub

0120:fixme:oleacc:find_class_data unhandled window class: L"Button" 0120:fixme:uiautomation:msaa_provider_GetPatternProvider Unimplemented patternId 10002 0120:fixme:uiautomation:base_hwnd_provider_GetPatternProvider 0000000000827610, 10002, 000000000181F8A0: stub

0120:fixme:oleacc:find_class_data unhandled window class: L"#32770" 0120:fixme:oleacc:find_class_data unhandled window class: L"#32769" 0120:fixme:uiautomation:msaa_provider_GetPatternProvider Unimplemented patternId 10002 0120:fixme:uiautomation:base_hwnd_provider_GetPatternProvider 000000000083D0F0, 10002, 000000000181F8A0: stub

0120:fixme:oleacc:find_class_data unhandled window class: L"#32769" 0120:fixme:oleacc:find_class_data unhandled window class: L"#32769" 0120:fixme:uiautomation:msaa_provider_GetPatternProvider Unimplemented patternId 10002 0120:fixme:uiautomation:base_hwnd_provider_GetPatternProvider 0000000000827610, 10002, 000000000181F8A0: stub

0120:fixme:oleacc:find_class_data unhandled window class: L"#32769" 0120:fixme:oleacc:find_class_data unhandled window class: L"Button" 0120:fixme:uiautomation:msaa_provider_GetPatternProvider Unimplemented patternId 10002 0120:fixme:uiautomation:base_hwnd_provider_GetPatternProvider 000000000083C320, 10002, 000000000181F8A0: stub

0120:fixme:oleacc:find_class_data unhandled window class: L"Button" 0120:fixme:uiautomation:msaa_provider_GetPatternProvider Unimplemented patternId 10002 0120:fixme:uiautomation:base_hwnd_provider_GetPatternProvider 000000000083D0F0, 10002, 000000000181F8A0: stub

012c:fixme:rstrtmgr:RmEndSession 3735928559 stub! 012c:fixme:graphics:ShutdownBlockReasonDestroy (000100A8): stub 012c:fixme:wtsapi:WTSUnRegisterSessionNotification Stub 000100A8 012c:fixme:uxtheme:BufferedPaintUnInit Stub ()

1324
 
 

It is against the rules but but what is it exactly?

1325
 
 

Wild isn't it

Edit:

Ok I misread the data but I am leaving this post. I compared Linux desktop share to Firefox all platform share

view more: ‹ prev next ›