Updates at bottom

I am Total Newb using Linux Mint, the Official Linage OS instructions here only specify how to do it on Windows.

Ok, I say newb I REALLY mean newb, I only started using Linux Mint 6 months ago, I never used Terminal ever before then, on Windows or otherwise, and have only used it lightly since I started installing Lineage on devices 3 months ago following guides to the letter. The Lineage guides are VERY firm about following them exactly, so I trying my best with my limited skill.

I have added solutions to the issues as I fumble my way through.

This is NOT A GUIDE for Beginners (or anyone)!! Follow this and you are taking a risk with your device and install. This is my own learning process as a Beginner myself.

A great big Thank you for everyone who are helping me out, and to the Lineage developers for making a really good OS. (though I would LOVE a linux guide to the Tab S7 install, just saying.)


Issue 1. Solved.

While I have installed Lineage on a Tab S6 lite (as the guide includes Linux instructions) I hit my first roadblock with the Tab S7 install right out of the gate with the instruction to TAR the vbmeta.img file. This includes some pretty commom knowledge Terminal commands which I didn’t know.

Steps 3 + 4 found here

  1. Download vbmeta.img from here.
  2. Open a Command Prompt in the folder where the file was downloaded and TAR the file by running tar --format=ustar -cvf vbmeta.tar vbmeta.img

I was getting an error in my terminal.

tar: vbmeta.img: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

I didn’t how to put the command and the file together

Solution 1:

The file (vbmeta.img) I wanted to TAR is in my Downloads folder

This command in terminal puts you there.

$ cd Downloads

Now I’m hanging out in Downloads I can run the command I got from the instructions.

/Downloads$ tar --format=ustar -cvf vbmeta.tar vbmeta.img

This was my output vbmeta.img

And viola! Checked Downloads folder and there it was, vbmeta.tar.


Issue 2. Solved.

Downloading Samsung drivers

The instructions state:

  1. Download and install the necessary drivers. Download the newest Samsung drivers from here. Install SAMSUNG_USB_Driver_for_Mobile_Phones.exe.

It states on the linked page, the following:

"You need the driver only if you are developing on Windows and want to connect a Samsung Android device to your development environment over USB. "

Solution 2:

I felt I was safe to skip this step as I am not using Windows.


Issue 3. I am currently still working on this, if you fancy helping please start reply with “Issue 3”

Odin vs Heimdall

So instructions call for Odin, which is for Windows, it’s Linux counterpart is Heimdall, which I got via the software manager on Mint.

Ok, no trouble, I’m wondering if I can use the instructions from the Tab S6 page to try and flash the VBMeta Image??

Solution 3:

So I discovered that Issue 1 (to TAR the vbmeta.img file) may have been totally unnecessary to do on Linux.

In this article (scrolling down to Using Heimdall in place of Odin section) it states that Odin wants a TAR file with the .img inside it. For example, we have to create vbmeta.tar which contains vbmeta.img.

However, Heimdall takes the image file directly e.g. vbmeta.img

And since I am using Heimdall and want to flash the vbmeta.img, I can use this command.

heimdall flash --VBMETA vbmeta.img

I still have more research to do but I feel like I am getting somewhere…

Update: I just rewrote the instructions…A Lineage Developer over on Reddit confirmed this SHOULD work, but I will not be held responsible for whether it will work for you. It worked for me.

https://cryptpad.fr/doc/#/2/doc/view/HT- SUR86Ui8bFu Gs NLanA8W94K8cOumPZ8MJFDO4/

  • Clocks [She/They]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 months ago

    The tar command is taking in a file (input) and writing it into an output as compressed.

    If you’re not running the command while your current directory in terminal is in your downloads folder, you need to choose.

    1. Run the command while your terminal is in your downloads directory.
    2. Use a relative path to select the image file.
    3. Use an absolute path to select the image file.
  • SeEaldaEoh@cupoftea.social
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    @Snowballfighter Ignore this if you are OK with prev,. answers. Depending what OS you are using, an alternative to changing directory via command line cd etc is to go to the downloads folder via your file manager, as you would when opening a file in that folder, then r click and select ‘open in terminal’. You should then see ~/Downloads$ in your terminal … which confirms you are in the ‘right place’ then you can paste in the commands as per the instructions. Good luck.

    • Snowballfighter@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      Oh brother! I was trying to r-click on Downloads from the left side menu and getting no option. Thanks for the shortcut!

      • SeEaldaEoh@cupoftea.social
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        @Snowballfighter You are doing well. Speaking for myself, I think its hard learning how to do this stuff, and if I don’t have to do it regularly then I forget. I have managed to load Lineage to a phone and it took me … a while. But in the end it worked. Keep going and you will find a way to get there.

      • Kurt@chaos.social
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 months ago

        @Snowballfighter so you should cd to that folder. Or copy the file to your current folder or write the path in the tar command.
        That’s not lineageOS or linux specific. That’s basic command line usage.

        • Snowballfighter@lemmy.caOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          I figured my issue is I wanted to find out where I write the path in the Tar command. (though responses I’m getting are showing I may be completely out of my depth with this)

          But for example:

          The base command tar --format=ustar -cvf vbmeta.tar vbmeta.img

          Do I do this:

          tar --format=ustar -cvf vbmeta.tar /home/mcready/Downloads/vgmeta.img

          Or this?

          tar --/home/mcready/Downloads/vgmeta.img -cvf vbmeta.tar vbmeta.img

          Apologies if I wasn’t clear in my post, I edited it to show I am a TOTAL newb 😅

            • Snowballfighter@lemmy.caOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 months ago

              Dang. No dice

              tar --format=ustar -cvf vbmeta.tar /home/mcready/Downloads/vgmeta.img
              
              

              Output:

              tar: Removing leading `/' from member names
              tar: /home/mcready/Downloads/vgmeta.img: Cannot stat: No such file or directory
              tar: Exiting with failure status due to previous errors
              
              
                • Snowballfighter@lemmy.caOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  2 months ago

                  Yeah I may just have to back away for now and learn what Is and cd are from the tutorial @Clocks [She/They] posted. But thanks for taking the time, I do appreciate it.

  • Hiro8811@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Dunno what you’re using but if you can install dolphin (file manager) and konsole you can open a terminal from dolphins with f4 and it’ll change paths when you change directories. Also dolphin can extract archives if you have the tools installed. Also obligatory don’t copy and paste random commands from the internet.

  • Zazen@mastodon.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    @Snowballfighter ??? Get the latest android platform tools and do: fastboot flash vbmeta vbmeta.img the same for dtbo and boot then enter recovery and do an adb push lineage.zip

    • Snowballfighter@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      😬 I’ve only done installs by the book with detailed instructions, I don’t know how to go about all those steps.