LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-04-2022, 11:05 AM   #1
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Rep: Reputation: 0
Unhappy Need help installing libs To establish initial Internet connection using USB iPhone tethering for Odroid XU Lite running Debian Bullseye


Hello. I need help setting up the initial Internet connection for my Odroid running Debian Bullseye which was offered by a third party individual in the form of an image. This image appears to be missing basic features and is extremely barebones. This device has no connection to the Internet. I know that it has an ethernet port I just wanted to make it clear that ethernet connectivity is not possible for any reason. I am trying to download the Debian packages to a USB thumb drive connected to my notebook, so I can then connecte it to the Odroid to install the packages using possibly dpkg. since I have no useful libraries installed such as build-essential, or kernel headers, I probably would need to install pre-compiled binaries for this arm architecture. I am a novice Linux user, so I would need step-by-step instructions to make this happen. Once I have succeeded in enabling iPhone USB tethering, I can then proceed installing packages and other libraries directly on the Odroid. I have been performing massive research for over a week now, and I have discovered that several libraries would need to be installed in order to enable USB iPhone tethering such as USBmux. I do have two USB wireless adapters here that I am going to compile drivers for once I have established the initial connection to the Internet via USB iPhone tethering because this appears to be the easiest method in order to accomplish, because several other libraries would need to be installed first, including the aforementioned build-essential and kernel headers. since this image is so barebones because the person who packaged it assumed that everyone has connection to the Internet via ethernet, which I do not, it is impossible, they did not include the libraries necessary to enable Internet access utilising other methods. I do not know how to proceed beyond this point, which is why I am making this post here. Thank you very much for reading my post, and understanding my frustration.
 
Old 12-04-2022, 02:52 PM   #2
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
I have more information to provide to explain the research I have done for this situation. I do apologise for not doing this earlier as I had problems making my first post.

I was referring to this website here for the guide to help me install the libraries to enable USB connection tethering for my iPhone to the odroid here:

https://gist.github.com/antronic/157...0195c2eacb56b8

You may notice it was written for a raspberry pi, but those devices are so similar any, that it would most likely apply to my situation as well.

as I was reading the guide, I noticed that it directed me to download these packages via apt-get install, which was a massive problem because my odroid has no internet connectivity. The good thing is, however, is that it listed the libraries that are needed to enable USB tethering for my iPhone. So I referred to the link here, which had a list of all the packages which are able to be downloaded. Since the website is really weird, I could not search the package mane directly, but google was able provide an accurae hit. As I was scrolling though the architectures, I noticed that there were different arm listings, and though deduction I discovered that armf applied to my situation since my Odroid has an arm7 processor, which is 32-bit. I had never heard o armf before, and arm64 is obvious. I know that packages that are downloaded here could be installed using the dpkg function, but would this apply to my situation if I have no other libraries installed? I am sure that there are going to probably be a ridiculous number of prerequisites . But also since I do not have libs like build-essential nor the kernel headers installed, would any of this even work? I imagine that the biold-essential lib is massive large and I hope it would be available in a separate package for installation to. What I mean to ask is, are these packages available to be installed or are they all source code that would needed to be compiled? This is why I was asking about pre compiled binaries which would be much easier to install with no compilation in between .

https://packages.debian.org/search?keywords=usbmuxd

I am posting this here just so you know that I am not asking to be spoon-fed with no work done. I


I will add more to this message if I find anything else that might help with this current issue.
 
Old 12-04-2022, 07:12 PM   #3
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
I was continuing my research and I read in some articles that they are referring people to the install CD for files and use dpkg to install the packages within. Would that apply to my situation a well? I am more concerned whether or not these packages would even be compatible with my build. I wish I could use apt-get update so I can discover where the compatible packages are maintained so I can go to those address directly and find the packages that I need.
 
Old 12-05-2022, 05:23 AM   #4
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Unhappy

And so according to that website, , here is the list of the libraries that I would need to install on this Odroid to enable USB tethering for my iPhone so I can establish internet connectivity:


gvfs ipheth-utils

libimobiledevice-utils

gvfs-backends

gvfs-bi

n gvfs-fuse

ifuse -y



This is great information, but I am not sure where the compatible sources are for my Odroid. If I could run apt-get update, I could see some errors that would provide a link to the package repository, or whatever it is called, which would give me an idea to ensure that they would work for my build. It seems like only a few packages need to be installed, if I could discover a method of ensuring compatibility and the correct location of the sources, it would put me in the correct direction so that I could download them and attempt to install them using -dpkg
 
Old 12-05-2022, 06:12 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

If you have sufficient package lists already setup, then "apt install --print-uris PACKAGE_NAME" should give you the URLs to download for your current version. (Note the command uses lowercase URI not URL, because people got confused.)

If that results in "E: Unable to locate package PACKAGE_NAME" or "E: Package 'PACKAGE_NAME' has no installation candidate", check in /var/lib/apt/lists - you may have local mirror lists that you need to configure apt to use.


Last edited by boughtonp; 12-05-2022 at 06:16 AM.
 
1 members found this post helpful.
Old 12-05-2022, 07:37 AM   #6
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Talking

thank you so very much for responding to my message! I tried the command that you gave me, but it did not display any useful information except for zero newly installed, zero upgraded, and what not. I do have this information about the operating system and version that I am running that is displayed every time I login with the user and password:

bullseye login: root
roid-bullseye5.18.10-armmp-ipae #exynos SMP PREEMPT Sun Jul 10 16:01:27 UTC 2022 armu71
ams included with the Debian GNU/Linux system are free software:
distribution terms for each program are described in the
files in usr/share/doc/*/copyright
Itnux comes with ABSOLUTELY NO WARRANTY, to the extent
y applicable law.
Fri Jun 17 21:56:24 UTC 2022 on tty1
bullseye:

I do apologise for any typos that you may see, I am using image to text transcribing, since there is no other way to get this information.
 
Old 12-05-2022, 07:50 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by Sabotender View Post
it did not display any useful information except for zero newly installed, zero upgraded, and what not.
That suggests the package you tried is already installed.


Quote:
I do apologise for any typos that you may see, I am using image to text transcribing, since there is no other way to get this information.
Then how are you intending to get the package files onto the device in the first place?

If you have a method to copy data onto the device (USB drive/SD card/etc), you can presumably save files to that and use it to extract the output via "command > /mnt/command-output.txt" or similar.


Last edited by boughtonp; 12-05-2022 at 07:52 AM.
 
Old 12-05-2022, 08:39 AM   #8
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Oh that was my mistake, I typed it exactly as you told me, including package name. I also tried it blank without the packages. I then tried it with the packages that I listed above and they all gave not found. I was expecting to get a uri that would tell me where the compatible package repository was located so I could research those packages there, download them on my laptop, transfer them to my USB drive, then plug the usb drie into my odroid and then install the packages using the dpkg command.
 
Old 12-05-2022, 08:57 AM   #9
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

You need package lists for it to know what URLs to give you.

What is output of "uname -a" and "ls -l /var/lib/apt/lists" ?

 
Old 12-05-2022, 10:40 AM   #10
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
here is the output of all of the commands :

odroid-bullseye:™# uname -a
odroid-bullseye5.18.10-armmp-lpae #exynos SMP PREEMPT Sun Jul 10 16:01:27 IC 2022 armu?I GNU/Linux
odroid-bullseye:* Is -1 var/lib/apt lists
8
_xr-X 2
_apt root 4096 Nou 19 2020 auxfiles
1 root root
O Nov 19
2020 lock
2
_apt root 4096 Jun 17 21:56 partial
odroid-bullseue:~
 
Old 12-05-2022, 10:58 AM   #11
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

You're still using OCR (image to text) and it's not good enough.

Either redirect the command output to text files and copy them via USB/equivalent, or save the image for web (i.e. ensure filesize is under 200KB) and use the forum's attachments feature.

 
Old 12-05-2022, 11:14 AM   #12
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
How do I redirect the output to text files? I had no idea that method was even possible. It would definitely make things easier for me.

My apologies, but I prefer to not upload any photos.
 
Old 12-05-2022, 11:39 AM   #13
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

As in post #6, use redirection, i.e. "command > filename"

More info at https://mywiki.wooledge.org/BashGuide/InputAndOutput

 
Old 12-05-2022, 05:45 PM   #14
Sabotender
LQ Newbie
 
Registered: Dec 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Cool

based on the link you provided, I was able to google for a link that would provide a nice method of getting this knowledge so I could bookmark it for reference e how to output a command to a file. Most appreciated. Here's the answers to the commands you requested earlier, from direct output from the operating system:



Linux odroid-bullseye 5.18.10-armmp-lpae #exynos SMP PREEMPT Sun Jul 10 16:01:27 UTC 2022 armv7l GNU/Linux



total 8
drwxr-xr-x 2 _apt root 4096 Nov 19 2020 auxfiles
-rw-r----- 1 root root 0 Nov 19 2020 lock
drwx------ 2 _apt root 4096 Jun 17 21:56 partial



I am pleased I will b able to give direct and accurate responses to questions that require bash output in the future.

Last edited by Sabotender; 12-05-2022 at 05:48 PM.
 
Old 12-06-2022, 08:25 AM   #15
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

Well that confirms there's no existing lists in there that can be used to get started, so you'll need to download them first.

If you just need to know the filenames for packages (as opposed to setting up a local mirror / offline proxy) you can probably get away with only downloading Packages files and searching manually.

I don't know enough about ARM to be sure, but I think "armmp-lpae" comes under "armhf", so that means the following:

https://deb.debian.org/debian/dists/bullseye/main/binary-armhf/Packages.xz
https://deb.debian.org/debian/dists/bullseye/contrib/binary-armhf/Packages.xz
https://deb.debian.org/debian/dists/bullseye/non-free/binary-armhf/Packages.xz

Download and extract those, but start with the "main" one because that might be the only one needed, and search inside for "Package: PACKAGE_NAME" (where PACKAGE_NAME is "gvfs" or whatever) and then go down about a dozen lines you'll find something like "Filename: pool/main/g/gvfs/gvfs_1.46.2-1_amd64.deb" (except it wont say amd64 on yours).

The download URL is then that filename added to the debian mirror URL - e.g. "https://deb.debian.org/debian/pool/main/g/gvfs/gvfs_1.46.2-1_amd64.deb"

However, on mine there appears to be more gvfs dependencies than you listed, so if those aren't already installed it might be necessary to take the more involved path to get apt to tell you which dependencies it already has and which ones it needs.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help tethering iPhone for initial Internet connectivity on Odroid xU Lite running Debian Bullseye Sabotender Debian 0 12-05-2022 06:48 PM
Run Debian and Android on ODROID-C1/ODROID-C2 Vasant1234 Linux - Embedded & Single-board computer 0 05-09-2017 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration