Users of all levels are welcome to ask questions about GNU/Linux and share their experiences.
*** Please be civil, notice the "Friendly" in every Friendly GNU/Linux Thread ***
Before asking for help, please check our list of resources.
If you would like to try out GNU/Linux you can do one of the following: 0) Install a GNU/Linux distribution of your choice in a Virtual Machine. 1) Use a live image and to boot directly into the GNU/Linux distribution without installing anything. 2) Dual boot the GNU/Linux distribution of your choice along with Windows or macOS. 3) Go balls deep and replace everything with GNU/Linux.
Resources: Please spend at least a minute to check a web search engine with your question. *Many free software projects have active mailing lists.
$ man %command% $ info %command% $ help %command% $ %command% -h $ %command% --help
Don't know what to look for? $ apropos %something%
>Bought second hand workstation >USB drives take forever to read/write (strangely enough not for installing the OS)
dmesg shows [ 10.336087] usb usb4-port3: Cannot enable. Maybe the USB cable is bad? [ 10.336094] xhci_hcd 0000:07:00.0: Cannot set link state. [ 10.336097] usb usb4-port3: cannot disable (err = -32)
Does this mean I need replace the front panel assembly/cables or could it be motherboard related?
Thomas Price
Linux is best kernel.
Cooper Williams
Does it work on any another OS? Just to help tell if it's linux or hardware related.
Only tested windows when I bought it, with a keyboard and mouse.
Nicholas Rogers
How slow are we talking? USB2 slow? I have a script that shows sync progress if you're interested.
That error message does make it seem like a hardware error though, how many USB ports does it have and does it apply to all of them?
Tyler Parker
Expanding more on the behavior >Four devices on the test 1 External 3TB HDD USB 3.0, USB 3.1 32GB Flashdrive, USB 2.0 Flashdrives (4 & 8GB) >32GB and 8GB flashdrives work ok >HDD and 4GB don't even mount after 5 minutes though they are detected OK (serial numbers, manufacturer etc)
>Bonus: Phone only works on one of two USB ports without a problem (USB3)
I tought this could be power related, maybe not enough current for device? But I don't know how to check for that
Jaxson Lewis
are you using a hub?
Justin Bell
nope
John Reed
What's Jow Forums's experience with Alpine?
I'm looking for a lightweight distro to run some VMs.
I use Slackware as daily driver but setting up a minimal install takes more work than I'd like.
Devuan turned out to be almost what I'm looking for, but their packages are even more outdated than Slackware.
It could be power related, I've had pretty erratic behavior before from that before. Are you plugging all this shit in at once?
Check your PSU wattage, how much you CPU at full load uses and add any other PCI card.
Blake Hall
>(strangely enough not for installing the OS)
I'm guessing it's fucking up when it tries to run those ports at full speed. Double check that the front panel cable is properly seated into the board and the sockets haven't become filled with shit.
Jace Gomez
GKSU
So with this now missing, how does one give Filezilla the rights it needs to download to a mounted drive/folder.
Jeremiah Powell
Stupid question coming through. Is it possible for an "infected" flash drive to do anything on linux, without anything being done by user? Like, in windows we have autoplay, are there any equivalents for linux that might be harmful for the system?
Kevin Ramirez
Here's a smart answer. Blacklist uas and usb_storage.
Camden Ward
Depends on what's mounting your drive. If you're not doing manually, there's usually some software managing mounted drives(e.g. gnome, kde).
It could happen that some shitty software used to automount would execute something in autorun.inf, but I don't think anything that's commonly used does.
They usually just ask you what you want to do with an option to remember your decision.
Adrian Foster
Give me one (1) good reason not to use Linux as your daily driver if all you do is send emails, watch youtube and browse the internet
"Supposedly" only root / wheel should be able to mount "Supposedly" binaries need to be marked executable If you are paranoid sudo echo -e "blacklist uas\nblacklist usb_storage" > /etc/modprobe.d/blacklist_usbdrive.conf
Jonathan Watson
>sudo echo ... > file wrong, which process is opening the file?
David Davis
Stop using Ubuntu. Switch to KDE and you can use kdesu. Also there's pkexec, or you can run it from the terminal as root.
Charles Stewart
Broadcom WiFi drivers/firmware
Gabriel Sullivan
Your meme is 10 years old. Broadcom works fine if you dont use shitty distros that limit you to software from 20 years ago
Jaxson Mitchell
Enjoy a smoother web experience on Microsoft(R) Edge™
Works on my machine :^)
Matthew Clark
Well I was switching to Xubuntu because Linux Mint Debian decided to shit the bed and not work properly with SMB making it useless for me.
Everything on that front was working in Xubuntu but without the ability launch Filezilla with a decent level of permission it can't write to anywhere useful.
I like KDE but its in a VM so that is a bit heavy.
Adrian Harris
>BCM4312
So in mine, just not out of the box without extracting the firmare from binary drivers.
Ryan Barnes
I am looking into this but disabling all usb storage in my personal laptop feels a bit too much.
Right now it's set up so nothing automounts. Or well, supposedly nothing should automount. All flash drives I've ever used I had to mount using the file browser or gnome-disks. I'm not really looking for any ultra hardcore solutions, I just don't want anyone possibly messing with my shit while it's locked or something.
Are they just checking for updates to things that are already installed on the system?
Anthony Smith
Switching to root is an option, or su -c 'sh ...'. Although with just sudo, use tee.
echo ... | sudo tee file
Use tee -a for >>.
Brayden Martinez
disabling automount should be fine 99% of the time the only thing i can think of is is if the flash drive controller was designed in such a way as to crash or exploit the driver that is loaded for it as it's plugged in. i haven't heard of this being done before or how feasable such a thing is you could disable your usb ports if you're really paranoid about it
Jonathan Torres
>Give me one (1) good reason not to use Linux as your daily driver if all you do is send emails, watch youtube and browse the internet >if all you do is send emails, watch youtube and browse the internet >send emails, watch youtube and browse the internet
Ryan Thomas
You said broadcom had no support, i proved it does even in the most baby distros. You're not making any point to not use it.
Gabriel Rodriguez
I'll make a note of it. Thanks guy.
Gavin Wilson
Not out of the box, which is not enough for the type of user that was described. Good luck trying to get it to work if you're not tech savvy enought to know what a terminal is.
Mason Gomez
I could google and fix things when I was 8 years old t. 1997 zoomer
Gavin Bennett
Good for you, want a cookie?
Cameron Reed
no but I want you to pull your head out of your ass thinking that it's impossible for normies to install broadcom drivers
Camden Price
And I want you to get outside your tiny bubble, and realize that not everyone is able to do that.
Camden Cruz
Sounds like the chipset might be getting senile or there's a mechanical problem with the USB ports. > I tought this could be power related, maybe not enough current for device? For the hard drive maybe. None of that other stuff should care. USB Y-cables are a thing if you want to rule out power.
>Check your PSU wattage, That's under 20W worth of stuff altogether unless you somehow trick it into quick charging the phone.
Adrian Jenkins
I honestly don't think its folder permissions exactly since those end up changed when mounting the share as a folder. I think I need to be adding something to my mount command to give it read/write by default, just working on what exactly so I can test it.
Cooper James
A possible but unlikely scenario where automount could exploit your system without auto executing any file on the drive would be an exploit targetting programs that map the drive. Like a filename or file metadata exploiting a file search indexer, or a media file exploiting an image thumbnailer or ffmpeg for video thumbnails. It would be equivalent to a .jpg exploiting the image renderer in your web browser (it's happened before), keep in mind that thumbnailers aren't audited as much as the software in your browser and have been exploited before.
Even without mounting, a usb drive could possibly have a malicious controller that exploits a bug in the usb driver in the linux kernel.
This is all paranoid security but if you're paranoid and want to be sure, don't plug in any random device into your computer.
Nathan Stewart
I have some external media with linux installed, debian I think; anyways I forgot the root password and need to change it. It's not encrypted. Can I plug it in to another computer and just edit the root directory or something?
Colton Carter
Reinstall Debian.
Julian Thomas
Yeah, just plug it into another linux system(if linux isn't installed on the system, use a livecd).
Mount the system, chroot into it and run the 'passwd' command as root. You could also just modify the /etc /shadow file manually but I would recommend the chroot method.
Liam Hill
If I mount the thing in ~/mount, would I use chroot ~/mount? And then su and psswd?
Caleb Brooks
Okay ya adding in permission to the mounting command fixed the issue.
I'm still sad about LMDE shitting itself though. I've been using Mint Debian for years now and really liked it. Only went back to the buntu family because I needed something to work while I find something else.
Anyone got another distro worth using? (and no not arch or gentoo been there but i'm lazy and like to use it regularly)
Lincoln Lewis
mount /dev/sdX /mnt chroot /mnt /bin/bash su passwd
Austin Morris
chroot I think requires root, and you'll be chrooted into root of the mounted system. Try
$ su # mount foo /mnt # chroot /mnt /bin/bash # passwd ... # exit # reboot
Then boot from the drive
Thomas Torres
chroot: failed to run command ‘/bin/bash’: Exec format error
Alright, but it shot me an error
Jonathan Cruz
'ls' your mounted system, a debian system should probably have /bin/bash
# ls /mnt/bin
If it's there, run the 'file' command on /mnt/bin/bash. How old is this drive? It might be 32-bit x86 and your current x64 system doesn't support it.
Actually if you're on a linux system now, even if you don't support the target architecture you can passwd it.
Confirm that your mount point contains a linux filesystem, and run on the host system(non chroot)
$ sudo passwd -R /mnt
Jayden Carter
Is there a cli tool that will monitor the system processes and report the network activity of them? Preferably without a web server based reporting/monitoring interface
I'm just interested in what processes are using the network and how much bandwidth they used.
Caleb Ward
I've looked before and can't find it. They all fucking suck. All the tools just poll the entire /proc directory and can barely give you a pid.
You can find which process has an active connection at the time(netstat, ss), but monitoring changes not as easy.
Even fucking iptables can't even tell you which process triggered a firewall rule.
Robert Hill
passwd: Cannot determine your user name.
I got this error Should just be root, I don't think it has a user account. Can it change the root password?
Ayden Wood
I found nethogs but it dosent seem to record the data, and i've found vnstat, which monitors total bandwidth used, but i've yet to find one that records based on processes
James Wilson
Fuck it, do it manually. Open the /etc shadow file of your mounted drive with a text editor, find the line(probably) the first one that starts with root.
root:$?$hash:...
remove the password hash in the second field, between the two ':'
root::...
Now there's no root password on the system, run 'passwd' once you login on it.
Honestly I think it's way easier to just change your root password through grub. Google it, it's very easy.
James Torres
I dont have systemd installed
Levi Gonzalez
It's still worth looking into, systemd just provides an interface to a kernel feature that allows you to monitor the bandwidth used by each processes.
Joshua Sanchez
I really dont want that cancer on my system nor do i want to give it access to all my network usage.
Mason Anderson
I'm not telling you to use systemd, retard, I'm telling you it's not an exclusive systemd thing.
Chase Adams
Bought a Dell Laptop (Inspiron 15) Which has been a pain in the arse. Got it running now with firmware/driver warnings that don't seem overly critical. Had to get the wireless card replaced under warranty. Currently the issue I have is with the lid switch. If I close the laptop lid, the system suspends, but I can't get it to wake up. Only way to get the machine working again is to hold the power button for a few seconds to force shutdown and then power on from an off state. Any ideas on fixing this in Debian? Unrelated Annoying dmesg warnings: [ 0.017470] [Firmware Bug]: cpu 0, invalid threshold interrupt offset 1 for bank 4, block 0 (MSR00000413=0xd000000001000000) [ 2.052687] sp5100_tco: I/O address 0x0cd6 already in use [ 2.077239] iwlwifi 0000:16:00.0: firmware: failed to load iwlwifi-8265-26.uc [ 2.077288] iwlwifi 0000:16:00.0: firmware: failed to load iwlwifi-8265-25.uc [ 2.077327] iwlwifi 0000:16:00.0: firmware: failed to load iwlwifi-8265-24.uc [ 2.077365] iwlwifi 0000:16:00.0: firmware: failed to load iwlwifi-8265-23.uc [ 6.417069] r8169 0000:14:00.0: firmware: failed to load rtl_nic/rtl8106e-1.fw (-2) [ 7.004659] [drm:amdgpu_vce_ring_test_ib [amdgpu]] *ERROR* amdgpu: IB test timed out. [ 7.004775] [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* amdgpu: failed testing IB on ring 11 (-110). [ 7.004875] [drm:amdgpu_device_init [amdgpu]] *ERROR* ib ring test failed (-110).[FAILED] Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0. See 'systemctl status systemd-backlight@backlight:acpi_video0.service' for details. [ OK ] Started Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0. Debian GNU/Linux 9 Marengo tty1 Marengo login:
Cameron Nelson
I tired but it still is asking for a password when I ssh in to it
you are having trouble chroot'ing into your system, and you need to run passwd on a chrooted system right? so do the steps in Mounting the necessary filesystems and Entering the new environment then run passwd.
Eli Sanchez
I think the problem i that he is chrooting across architectures. If you deleted the root passwd you should be able to hit enter at password prompt for no password.
Ethan Fisher
root:&6&[...]:17500:0:99999:7::: into root::17500:0:99999:7::: and ssh root@blah blah didn't work with no password entered I tried the chroot method again but now I'm getting permission denied even with sudo chroot
Is root login enabled in openssh on your system? openssh will still prompt you for a password even if root login is disabled.
On that system in /etc /ssh/sshd_config PermitRootLogin yes, restart sshd.
Jose Murphy
Also in your case, set PermitEmptyPasswords to yes.
ssh has these defaults because in almost all cases allowing somebody on the network login to a no password root account on the system is an extremely bad idea.
Jacob King
He is going straight to hell if he doesn't accept Christ.
Jonathan Anderson
he is trying to chroot into an external (usb) hard drive.. right? what is all the ssh fuckery about?
Jayden Watson
I don't know, maybe a VM. He mentioned SSH in
I just thought that openssh probably wouldn't allow what he's trying to do by default.
Asher Garcia
I've contemplated what you said for like a good 5 minutes now and I still don't understand how the fuck is an ssh daemon going to be running on a usb hard drive that has yet to be chroot'd into
Whaaaat fucking rad turning this shit on right now.
Ryan Lewis
>yet to be chroot'd he already manually erased the root password in shadow, he doesn't need to chroot anymore.
From my understanding he's now trying to SSH into the drive. I'm not really sure why either, I mentioned the VM because it seemed like a possible explanation. He's booting the drive in VM and trying to SSH into it instead of loging into the tty for some reason
Lucas Rivera
Man I didn't know systemd had this kind of functionality, you can limit a service so that it can only talk to one IP address, this shit is super useful for preventing proxy leaks.
David Brown
This was always available but awkward to use sometimes.
iptables can't act on processes but it can do it with uids. So every service needs to have their own user, which is usually the case.
The pain in the ass comes with programs that weren't made with this in mind.
Wyatt Mitchell
Yeah systemd just makes it usable.
Landon Adams
lol wtf I love poettering shitware now
Joseph Phillips
Actually doesn't this just use cgroups? I don't think the services need unique UID.
Austin Collins
I'm not sure how systemd does it and I already have a configuration I don't feel like touching.
Just saying that it is possible without it.
William Cooper
I checked this and it was correct, but I still couldn't log in over the network with root access Here's the shadow root entry root::17500:0:99999:7:::
I did root #mount --types proc /proc /mnt/proc root #mount --rbind /sys /mnt/sys root #mount --make-rslave /mnt//sys root #mount --rbind /dev /mnt/dev root #mount --make-rslave /mnt/dev and then
It's not a vm just an external hard drive The forward slashes in the reply are incorrect, the 3rd entry doesn't have two of them. I'm up to almost any options for changing the password