/r/linux4noobs

Photograph via snooOG

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

Linux introductions, tips and tutorials. Any distro, any platform! Explicitly noob-friendly.

If you're posting for help, please include the following details, so that we can help you more efficiently:

  • your operating system and version
  • the hardware you're using
  • a description of the problem
  • output that was displayed (if any)
  • the things you tried to fix it
Smokey says: switch off all aesthetic lighting to fight climate change! [see more tips]

Questions are encouraged. If you fix the problem yourself, please post your solution, so that others can also learn.

Note: ensure to redact or obfuscate all confidential or identifying information (eg. public IP addresses or hostnames, account numbers, email addresses) before posting!

Resources:

Sort posts by flair:

Other subreddits you may like:

/r/linux /r/linuxquestions
/r/ubuntu /r/linux_devices
/r/fedora /r/linuxaudio
/r/debian /r/linux_gaming
/r/gentoo /r/linuxhardware
/r/linuxmint /r/unix
/r/archlinux /r/BSD
/r/opensuse /r/24hoursupport
/r/slackware /r/techsupport
/r/crunchbang /r/buildapc
/r/manjarolinux /r/minipcs
/r/kubuntu /r/unixprotips
/r/lubuntu /r/linuxprojects
/r/xubuntu /r/distrohopping
/r/pop_os /r/FindMeADistro
/r/zorinos /r/AskLinuxUsers
/r/coreos /r/embeddedlinux
/r/solusproject /r/virtualbox
/r/mxlinux /r/linux_discussion
/r/arcolinux /r/wine_gaming
/r/parrotos /r/VFIO
/r/puppylinux /r/homenetworking
/r/elementaryos /r/homelab
/r/ubuntuserver /r/homeserver
/r/alpinelinux /r/bash
/r/openwrt /r/commandline
/r/linuxfromscratch /r/linux_programming
/r/redhat /r/linuxdev
/r/centos /r/linuxadmin
/r/gnome /r/sysadmin
/r/kde /r/netsec
/r/lxqt /r/gnu
/r/lxde /r/libredesign
/r/xfce /r/freeculture
/r/cinnamonDE /r/opensource

Does this sidebar need an addition or correction? Tell me here

/r/linux4noobs

233,619 Subscribers

1

SSH + Xephyr

Hi everyone! I have this script "test.sh" and works on my laptop:

#!/bin/bash

xephyr_window(){

Xephyr :2 -screen 800x600 -ac -bc &> /dev/null &

sleep 1

DISPLAY=:2 dbus-run-session gnome-shell &> /dev/null &

}

xephyr_window

But when I try ssh (with termux, and using -X), and run that script.sh , dont open the xephyr window, that's because I'm using termux? How can I ssh into the xephyr window? Or how to access that xephyr window with x11vnc ? Thanks in advance!

0 Comments
2024/04/30
20:07 UTC

1

SMALL SIZE Fix ISSUE DEBIAN

2 Comments
2024/04/30
19:18 UTC

0

Protip: Solve any problem or do any thing without knowing how using open interpreter

Need to fix a thing or do a thing in linux and not sure how?

Open Interpreter is an AI-powered shell that works in linux and can do pretty much anything or solve many problems you throw at it.

So here's an example. Say you're using Arch and you want to install Docker and get it up and running. How do you do that? Do you go to the Docker documentation and read a tutorial on all the commands you need to run like a grandpa from January 2024? No! This is April 2024 and we can do things with natural language now!

> Install and configure Docker. We use Arch, btw.

And then interpreter is like:

https://preview.redd.it/0wy2xxmumhxc1.png?width=1387&format=png&auto=webp&s=56823b1c125a6210e1aaac0092ab2f24f4d38f4d

In the normal mode, it will ask you to confirm before it runs any code. It will make a plan and then run through it step by step, monitoring the output to make sure everything is working. If it runs into a problem, it will explain and attempt to fix the issue before proceeding.

Open interpreter has its own shell and its own python environment where it can write and execute code.

Examples

There are lots of ways to use this. Here are some things I've done recently:

> I'm having trouble installing the xyz kernel module. Can you fix it? 

> Clone this repo xyz and install it according to its readme

> Help me free up some space

> Convert all these wave files to mp3

> Write a readme for this project

> I don't know what I'm doing and I messed up this merge and now there are so many conflicts can you fix it please?

> Start a new project xyz and write boilerplate code that does abc

> Make this or that modification to my bash config

etc.

Installing

Pretty much run

pip install open-interpreter

then run

interpreter

You will need to supply an OpenAI API key. More info here: https://github.com/OpenInterpreter/open-interpreter

I like to run it with the arguments -dt -y to disable telemetry and disable confirmation for executing code (I live on the edge).

And if you made if this far, also be sure to check out the open interpreter 01 demo video to see where they are going with this: https://twitter.com/OpenInterpreter/status/1770821439458840846

0 Comments
2024/04/29
21:51 UTC

1

MacOS-Like Window Manager (not aesthetically)

Hello, I've used Windows all my life, but switched to MacOS after being gifted a MacBook. I used Mac for a year or so, and I absolutely love how it manages windows. It seems like many are put off by how MacOS puts fullscreen applications into separate workspaces, but the three-finger gestures with a touchpad make it phenomenal for multitasking and switching fullscreen windows is a breeze. It's like having multiple monitors but in some ways better, honestly.

I've been using Linux for about four months now and I'm loving it. I wasn't intending on switching to it, but here I am. Started out on Majaro + XFCE and after a couple weeks I moved to EndeavourOS + i3WM. Tiling is pretty cool, but the problem you start to run into is that one workspace isn't enough to hold more than a few windows on it's own. Of course, that's why i3 has workspaces. i3WM also solves the problem of MacOS not being very good at tiling, as, last I checked, MacOS can only handle two windows side-by-side.

However, EOS + i3WM doesn't have those MacOS-like touch gestures. I've tried setting them up long ago (I think with Fusuma and bindsym), but couldn't quite get it right.

Can anyone recommend a solution? I do usually use multiple monitors btw. I'd appreciate suggestions for i3WM and within the Arch User Repository, but solutions for other distros are absolutely welcome and appreciated!

Another cool feature was three-finger swiping downwards to reveal a sort of preview bar of the workspaces, but that's probably asking a lot, lol.

Thanks!

0 Comments
2024/04/29
20:21 UTC

1

Linux Fedora installation/set up problems

Hello, I'm setting up Linux Fedora on 2 of my machines - Macbook Air M1 and Windows 10 pc, it already works alright on my Mac there but there is newly this "error" whenever i try to do just about anything in the CLI, whenever i try to update, install or remove something it spits out something like this:
Last metadata expiration check: (some datum)
allow_vendor_change is disabled. This option is currently not supported for downgrade and distro-sync commands
<file name>
no match for argument:
error: unable to find a match

when i for example try to update something, the message is very similar and looks like this:

Last metadata expiration check: (some datum)
allow_vendor_change is disabled. This option is currently not supported for downgrade and distro-sync commands

Dependencies resolved. Nothing to do. Complete!

As for my windows PC, i can't install it there. I downloaded the iso image from Fedora's website, i used rufus to make a bootable but i always get an error message /EFI/BOOT not recognised, then i get into the menu but my pc freezes. I also tried Fedora's mediawriter but it's the same, and if i try to use NFTS instead of FAT32 my USB drive is not recognised (i think).

Thank you for any advice you can offer

2 Comments
2024/04/30
18:01 UTC

0

Question

Guys i studying linux command prompt. I currently studying about permission. When i studied about the topic i came across the command su. The problem is when i tried to switch to user by using command:

su -

It asked password and i gave it the right password that i know. But it show authentication failure.

But when use the command:

Sudo su -

I can switch to root user.the problem is can i know the password that su- command asked before . Is there any ways find it.

Or can anyone show or say where i gave the root user password.

When i login i give two authentication password. If its one of those two , i tried it.

2 Comments
2024/04/30
17:58 UTC

1

i think i accidentally deleted all my directories

okay so yes i'm really dumb but i was trying to delete empty directories bc i had removed many applications and didnt want the cache left so i searched the command for it and as far as i remember i used this one:

find . -depth -type d -empty -delete

and then alright i thought ok but when i saw my homescreen there were two directories, the documents and downloads. i tried to delete them but they kept appearing there, which was weird bc i never had directories on my homescreen.

and when i try to access any directory via files interface they seem to not work, as well as when i type ls on my terminal, no directory is shown.

please if there's a way to fix that without rebooting

0 Comments
2024/04/30
17:31 UTC

1

Only 32 bit isos booting up on amd sempron 145

I have tried to install arch and mint on the system and all that would be shown on screen was "error failed to load ldlinux.c32". Just on whim I got a 32 version of arch which booted. But I did checked beforehand that the cpu is based on 64 bit architecture. What is happening?

3 Comments
2024/04/30
17:23 UTC

1

Brightness Issue

This happened on both Fedora and Ubuntu, both X11 and Wayland on Ubuntu. I'm not sure under what conditions it happens, but it has something to do with my laptop's screen waking up after going black. Brightness would set itself to max without the brightness slider displaying this. Interacting with the slider partially fixes it, but the left half of the slider stops working, effectively setting minimum brightness to around 50%. Restarting fixes it. Does anyone have a solution or good workaround for this? If not, where should I ask for help?

0 Comments
2024/04/30
16:31 UTC

13

Snaps are slow, laggy garbage

I finally found the cause of a long-standing problem on my system. After restarting, Firefox and Telegram would be extremely laggy - not registering clicks for several seconds, Firefox not opening tabs, generally being non-performant. The issue? SNAPS.

Technical details: Running Ubuntu 22.04.4 LTS, Gnome desktop. Intel(R) Core(TM) i7-12700KF CPU, 32 GB of RAM, fast SSDs. Nothing about this system should be slow.

For the first 30 minutes after restarting, whenever I would click any conversation in Telegram, it would lag - hard. To the point that it would pop up the window about the program being non-responsive for a couple minutes. Typing in a chat was also completely unresponsive.

In Firefox, the first window would work with a few seconds of lag, but attempting to open a link in a new tab would likewise lag out the browser.

The solution: Uninstall the snaps, install the deb files from the apt repositories. Now my programs work like programs from the very start!

The post I found about the issue stated, 'Oh, this is a known issue with snaps, and the Ubuntu teams are hard at work resolving it.' That was a couple years ago. Are they hard at work with it? Are they really? Or are they working hard at advertising Ubuntu Pro to force me to register with their system for security updates?

Next step, installing a distro other than Ubuntu.

22 Comments
2024/04/30
15:43 UTC

1

Distro for a 20 yo laptop

Hello everyone. I've got a 20 years old laptop designed for Win XP, proudly sporting an Intel Pentium M 730 (1.6 GHz) CPU, a 1 GB RAM and a grand 40 GB HDD.
Since I've recently studied the basics of Linux, I'd like to use this machine to practice a bit what I've learned and possibly go on learning more advanced skills.
What distro would you recommend?
Please note that upgrading my laptop's hardware is not an option at the moment.
Thanks in advance!

7 Comments
2024/04/30
15:26 UTC

1

Laggy and sluggish mouse movement after installing linux

I have a rather old hp laptop that I installed debian with kde on. Ive heard that linux is suposed to give you a performance increase, but after installing it, the laptop feels terrible to use. Moving the curser feels weird and when scrolling it lags so much that its hard to stop where I want to on a webpage.

Any ideas as to how to fix?

Edit:

Solved by swithing to x11

2 Comments
2024/04/30
13:43 UTC

1

autofs mount non existent until cd

I'm looking to automate some server build type things. I want to configure autofs, copy files from the autofs mounts, then be on my way.

Once I've configured the /etc/auto.xx files, I reload and restart the autofs service, but the path of the mount still doesn't populate for a good length of time 10-15 minutes.

Is there anyway to expedite this mount point being available? Or a better way to always have an NFS mount available?

1 Comment
2024/04/30
13:20 UTC

1

Migrate to FF Flatpak

I am running Fedora 40 and the FF that came built in. Looking to install FF Flatpak and migrate a couple existing profiles from the built in version to the Flatpak install. Is there an easy way to do this without losing any data? Thanks

3 Comments
2024/04/30
13:18 UTC

2

Music Programs?

5 Comments
2024/04/30
13:07 UTC

1

Ubuntu 24.04 doesn't want MOK on Setup, Why?

I installed Ubuntu 24.04 LTS with TPM and Secure Boot on and its fine but it doesnt wants MOK why? Back in Ubuntu 22.04 it wanted MOK but this time there is nothing about MOK in Ubuntu 24.04, i installed Nvidia driver still nothing. Why? Did they changed something?

0 Comments
2024/04/30
12:49 UTC

1

Roundcube WebMail

I'm a beginner.

I need:

  • RoundCube working on boot
  • No server stuff (IMAP, POP3) (I have that already externally)
  • Just basic config that I can log into with my external web email

I'm not sure how to set it up, and I don't know how to configure the databases nescessary.

Any advice on how to start?

1 Comment
2024/04/30
12:48 UTC

1

Touchpad Right Click on Debian

I am running Linux Mint Debian Edition on my Chromebook laptop. ChromeOS has an amazing feature where if you hold ALT, then click, a right click will register. I did some quick searches online and I was unable to find anything on enabling the feature in Debian. Any clues?

1 Comment
2024/04/30
12:44 UTC

1

Using symlinks for home directories vs modifying user-dirs?

Hello, fresh linux noob here (on fedora40 kde spin),

I'm wanting to point the media directories in my user's home (Documents, Music, Pictures, Videos etc.) at dedicated folders I have on a secondary hard drive. I currently have deleted the actual directories and used symlinks with the same name to point to these folders on my 2nd drive.

Haven't had any issues so far, but I have only just found this user-dirs.dirs config in my home and I'm wondering what the differences are between setting something like 'XDG_VIDEOS_DIR="/mnt/Storage/Videos"' for each library, and simply symlinking the folder on the other drive - and also any potential issues I could run into with either option?

Coming from Windows, I could simply add extra locations to Libraries on my PC, I liked doing it this way because programs tend to fill up the user's Documents folder under C:\ with settings and junk that should really be in AppData.

4 Comments
2024/04/30
11:33 UTC

2

Can't remove game from applications menu

Hello, I'm on Vanilla OS2 Beta (Debian Sid, Gnome, Applications menu extension).

I installed pipewalker with terminal because the Software center version was broken. Now I can't get rid of the entry in the Applications menu 'Games' tab. It appears as 'Pipewalker on vso-pico', stemming from the type of terminal used in this distribution.

I tried sudo apt remove pipewalker, installing it again and uninstalling it again, and installing/uninstalling from the Software center again. Nothing worked.

Any ideas? Thanks!

3 Comments
2024/04/30
09:46 UTC

2

Distro recommendations for 2in1 convertibles with touch focus

Hi, Im looking for a distro for my 2in1 x86 based convertible device. I want to use it 70% of the time in tablet mode so I need something that handles touch navigation well. I havent been happy with GNOME fedora 39/40 as auto rotate only works with xorg and the "open apps screen" doesnt have the X close element permanently visible. So I need to drag the preview window slightly to take it appear and then try to quickly hit it. Many other annoying issues, those are just the most frequently experienced ones.

Are there distros or Spins etc. that configure KDE with everything needed for touch out of the box? I dont really  care if its "bloated", I mostly want to use it as a kind of terminal for other PCs, Servers and as a Media device. Not any heavy applications. Im fine with wayland and can live without auto rotate, if it works well in the other aspects. Also want to try out waydroid which obv doesnt work with xorg. I mostly use an active touch pen as the touchscreen has a digitizer with some wacom features. Thanks for any suggestions.

1 Comment
2024/04/30
09:18 UTC

11

Advice Needed for changing my os from Windows to LINUX

Yo! I am here seeking advice Needed for changing my os from Windows to LINUX as I like Linux! (Windows 7 lag a lot in my laptop)

My Laptop System Specs: ↓ Processor: Intel(R) Celeron(R) CPU N3060 @1.60GHz 1.60 GHz

Installed memory (RAM): 2.00 GB (1.84 GB usable)

System type: 64-bit Operating System

Approx. Total Memory: 779 MB

Screen Resolution: 1366 x 768 (maximum resolution)

Also I have SSD

As using windows it lags much! Google Chrome takes too much time to load, lags while using any program!!

Point: With those system specs, would some of you suggest me the Linux distro which might run Smoothly without lagging? (as I know Ubuntu would lag a lot)

{Need any other pc specs let me know...}

36 Comments
2024/04/30
09:17 UTC

0

Does ChromeOS support RTX3050?

I have a Lenovo ideapad gaming laptop currently running on Pop OS, but i wanna try Chrome OS, but im not sure if it supports my graphics card. Does someone know?

3 Comments
2024/04/30
09:10 UTC

1

Set webapp permissions

I create discord app via web apps but i cannot turn on microphone or share y screen since I need to allow it each time first. So can I put ability to use microphone in custom parameters or some other overcome?

https://preview.redd.it/9ng6axncqkxc1.png?width=704&format=png&auto=webp&s=90b981ebb75af06e8cd58d29e16625ca0b594519

2 Comments
2024/04/30
08:03 UTC

3

It seems like my PC is working too hard to run Fedora (performance issues on new install)

I recently decided to install Linux (Fedora) on a new SSD and finally switch over full time from Windows 10, but I ran into performance issues and blurry programs. My fans constantly spin up and get really loud and I get dropped frames all throughout. I've been running a 4k monitor since around this time last year back in Windows without performance issues, but now games in Steam that are running in Proton can't seem to detect that I'm running at 4k. I used Gridhead (Github link) to install my GPU drivers (non-free, i think) but performance just about the same before and after. I did enable fractional scaling but I wasn't sure what kind of performance hit it would take because I've always used it on Windows without a hitch.

Also important:

・I didn't use my Steam drive from Windows but instead redownloaded games from the Steam client natively on Linux for the best chances at compatibility.

Any help with this problem would be great and thanks ahead of time!

PC specs:

i5-9400F + 16gb RAM + 1TB Samsung SSD (+2 other drives I had disconnected)

GTX 1650 + LG UltraFine 4k

6 Comments
2024/04/30
07:44 UTC

1

What are cool things to do with UNIX sockets?

0 Comments
2024/04/29
19:34 UTC

1

HELP

How can I install a version of CUDA 10 on Ubuntu 22.04? is there any way?

I tried this because I installed the vmd but when I try to load the application it freezes because it does not recognize a cuda version

1 Comment
2024/04/29
17:00 UTC

2

Nvidia Drivers broke networks and external monitors

After using Ubuntu 20.04 for 5 months, I finally installed nvidia driver to get that sweet sweet cuda support. After enrolling the MOK key, my laptops network driver stopped working.

It works again after I do “sudo service network-manager restart” every time I turn my laptop on. Whatever, I’ll just put it in bashrc I guess. Is there a better solution for a permanent fix?

Also the more annoying part is that it is painfully sluggish using an external monitor with my laptop docked. Like 3 seconds to register a single keypress bad. If I simply open the laptops screen, it’s back to normal, even for the external monitor. This just sucks a little because my monitor has to go way above eye level to fix this. What do I do about this?

Edit: Ubuntu has also lost the ability to tell the system to poweroff, whether done by gui or by “sudo poweroff” This is probably the most pressing issue for me actually

1 Comment
2024/04/30
06:28 UTC

1

multiple grubs installed in esp

hey i install 2 linux oses in hard disk and both oses grub installed in one esp partition so how i manage these grubs like if i want a perticular grub then how can i do and can i repartition or formatt esp and make another and install only one grub for boot mulitple oses. i am noob so please help me. i want to swith one grub menu to another grub menu so how can i do?

2 Comments
2024/04/30
05:37 UTC

Back To Top