Posted on
of 41
  • Yeah, I use it a fair bit, although I do have admin rights. Don't think they should be necessary after install though.

  • Cheers. Maybe I'll test it out on a home machine before trying to get someone in IT who doesn't know anything about it to set it up.

  • I'm not sure how to ask my question (which is why I've struggled to solve it), but I think I am asking how to edit the boot sequence to load a previous kernel due to an issue with my current one.

    Laptop won't boot directly to the OS/fails, so it tells me to hit enter to go into grub(?), where it presents a list of kernels(?) - ie

    • Ubuntu 18.04.2 LTS, kernel 4.15.0-52-generic
    • Ubuntu 18.04.2 LTS, kernel 4.15.0-52-generic (recovery mode)
    • Ubuntu 18.04.2 LTS, kernel 4.15.0-51-generic
    • Ubuntu 18.04.2 LTS, kernel 4.15.0-51-generic (recovery mode)
      -...and so on

    If I select …0-52 or …0-52 recovery it fails.
    If I select …0-51 it loads.
    What do I do to revert back to 0-51 / or boot directly to it ?


  • When I had this issue I deleted the newer kernel and it seemed to fall back to the previous kernel and that worked fine.

    I probably followed something along these lines­ow-to-delete-a-non-working-kernel-after-­update but I'm no expert so you may want to wait for someone else who doesn't just do stuff by trial and error to weigh in.

  • You should be able to remove the defunct entries with GRUB Customizer. I've used it to change the default boot order and it works well

  • Cheers folks!

    Will give those a try.

  • What's wrong with this command

    for f in $(adb shell "ls /sdcard/DCIM/"); do ls /home/TW/Pictures/$f; done

    It returns the following

    ls: cannot access '/home/TW/Pictures/IMG_123.jpg'$'\r': No such file or directory

    Where this file does exist


    My guess is it's something to do with single / double quotes missing

    (I'm trying a one line command to copy new files from my phone

     $ for f in $(adb shell "ls /sdcard/DCIM/"); do  if [ ! -f "/home/TW/Pictures/$f" ]; then ls "/home/TW/Pictures/$f" ; fi; done


  • This might help you. Haven't used it myself though.

  • In bash you need double quotes to concatenate two strings

     for f in $(adb shell "ls /sdcard/DCIM/"); do ls "/home/TW/Pictures/$f"; done
  • My guess is adb shell is returning some weird shit along with the regular file names

  • I think the combination of adb shell & my clunge of a bashrc have got things twisted.

    For a start, the if [ ! -f $f ] is working backwards, and echo $f doesn't return any weirdness

    e.g. the filename is


    The error seems to return /home/TW/Pictures/image1.jpg'$'\r

    Annoyingly, I'm sure it worked last week

  • Isn't \r a Windows new line char?

  • Bingo.

    I added this to tell bash what the line delimeter is

    do IFS=$'\r\n'; 


  • Not true. Quoting in bash is all sorts of complex through

  • I'd pipe the output to xargs personally. You are opening yourself up to security issues if filenames in the ADB target are not trusted

  • been using linux kodachi live for the past few years and v happy with it seems v stable just needs a restart every month or so due to ram being eaten up, anyone else using it?what do you think etc

  • Sorry - missed this.

    It's no doubt good advice - It's just that I don't really understand it. I know just about enough to get me into trouble, but not why.

  • If filenames contain spaces or quotes or dollar signs etc it can lead to behaviour you don't want. There are tools which help avoid some of those pitfalls but they're not always easy to use

  • havent used desktop linux in years.. whats the go to distro for stability on an intel nuc?

    i want to run roon core, download, convert and backup my music library. and then web browsing.

    itll be left on 24/7.

  • I have Ubuntu LTS (18 I think) on my plex server which has been running 24/7 for the past four years. Seems fine.

  • Ubuntu is probably the most easy one for finding info about quickly online. Otherwise Debian is always a very safe and boring bet. Also MX Linux is solid af.

  • For debian you'd probably want "unofficial non-free images including firmware packages" to avoid extra hassle during installation. In my experience debian testing is also very stable, and might even be a safer bet than debian stable for new hardware.

  • Roon downloads page seems a bit out of date, but they suggest it's tested on Ubuntu and Arch. Ubuntu would be the easy/lazy option. Probably stick to 18.04 LTS for now.

    I'm running 20.04 at the moment, but they're fucking about trying to get people using snaps and other bullshit and I'm sick of it.

  • Arch looks like up my street will give that a go

  • I am trying and failing to make a very simple reverse proxy in nginx.

    Can anyone offer advice?

    I have a Raspberry Pi with various different web apps on, on different ports:


    I want them all to be accessed in the form http://pi-nas/cups or http://pi-nas/transmission

    How the hell do I do it?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview


Posted by Avatar for hael @hael