Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-02-2024, 07:25 PM
|
#16
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
Yes understand what a program is and why you cannot just write a program and it magically is for a distro. I specifically said can't do snap store. Using flatpak, it fills all like my needs. X E.
|
|
|
06-02-2024, 07:28 PM
|
#17
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
Oops, meant developer not developer expert in tags, sorry. X E.
|
|
|
06-02-2024, 07:47 PM
|
#18
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,448
|
Quote:
Originally Posted by maybeJosiah
Nice, anyway, I found flatpak is much easier and it has wider support and is "agnostic" when it comes to programming languages. It can still be installed though so close enough to native. Problem solved sort of. Flatpak does require some install steps but hey, native app, solved. X E.
|
I don't think flatpaks can actaully be distributed outside a repo tho? Usually people who offer flatpaks on their on provide a "ref" file that still requires connection to some flatpak repository. Of course you can get your app on flathub, but it sounded like you didn't want to use an existing appstore, so that means you'll have to setup your own flatpak repo. It's not a simple thing like a tarball or deb package.
Last edited by enigma9o7; 06-02-2024 at 07:48 PM.
|
|
1 members found this post helpful.
|
06-02-2024, 07:54 PM
|
#19
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
So how do I make a .deb in say Rust or Java? All I have seen is in Python or C for official tutorials. Locally now, no push to some external repo I will probably be paying for later. X E.
|
|
|
06-02-2024, 08:00 PM
|
#20
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
According to like my research flatpak is not exactly native but close enough and I should not need a flatpakref file and can just distribute as a .flatpak file. Also no repo needed seemingly. X E.
Last edited by maybeJosiah; 06-02-2024 at 08:01 PM.
|
|
|
06-02-2024, 08:05 PM
|
#21
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
Actually yeah, flatpak may require a repo. X E.
|
|
|
06-02-2024, 08:19 PM
|
#22
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
https://crates.io/crates/cargo-deb
Okay found Rust deb maker, solved. X E.
|
|
|
06-03-2024, 12:40 AM
|
#23
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,924
|
TL;DR creating a .deb, .rpm, .snap, .lslpp etc. file is not programming, that's why languages like Rust, Python, Snobol or Focal have nothing to do with it.
|
|
|
06-03-2024, 07:24 AM
|
#24
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
Well technically programming languages do have a part but are not everything. To program you must use some language almost irrelevant which it is though it may be. Also, .deb's are like only native solution for Debian based. That Rust thing was only for Ubuntu. X E.
Last edited by maybeJosiah; 06-03-2024 at 07:27 AM.
|
|
|
06-03-2024, 07:36 AM
|
#25
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
I am still unclear how to know how to connect to native hardware stuff in Rust. Do not even know what libraries less how to connect to them. Not needed but how to use sensing hardware in Rust? Can it be like made .deb can just be installed with little dependencies? This I have not done much research on, too occupied what to program in how. Okay, I did research, bunches of libraries and dependencies to install, is there a direct way? More research, I found this library for making .deb files can use dependencies in Rust. Now just which to use, no help needed or wanted. X E.
Last edited by maybeJosiah; 06-03-2024 at 08:26 AM.
|
|
|
06-03-2024, 09:33 AM
|
#26
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,145
|
Quote:
Originally Posted by maybeJosiah
So how do I make a .deb in say Rust or Java? All I have seen is in Python or C for official tutorials. Locally now, no push to some external repo I will probably be paying for later. X E.
|
You *DO NOT MAKE A PACKAGE IN ANY LANGUAGE* Again, did you not read/understand what was spoon-fed to you???? AGAIN, it is well documented, and NO PACAKGES (either .deb or .rpm) need rust/python/c/whatever to work. Apparently, simple how-tos are too much for you to read or understand.
You specify what files are in the package; the package utility creates it. You are NOW DONE...it is a local package. Install it, upload it to a github, do whatever. The control file is (if you bothered to read or understand things) a text file. There are even utilities to help you create these things...again, you didn't read what you were given or do anything on your own as far as research. You are STILL harping on this/rust/python thing for .deb files, when **IT DOES NOT RELATE** to it. You have been told this many times now....is there a particular word you're having trouble with???
|
|
|
06-03-2024, 09:48 AM
|
#27
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
Read it, understood and hey, do you not understand that an app needs logic e.g. a programming language? Are you struggling to understand that I do not just want static text? If you want logic and reactions you MUST use some programming language. Where did pick a language and write in it go? Out a window and over a hill? Also there are ALWAYS specific ways things must be structured so just throw in a few random files that do stuff on their own or in another system is wrong. Have you ever programmed TB0ne? If this persists I might just report you. Thanks for trying to help but it is not helping. Any programmers want to help? X E.
|
|
|
06-03-2024, 10:12 AM
|
#28
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,924
|
TL;DR you wish to package your program into a .deb or .snap or something else; the first problem is that you haven't started writing the program yet.
|
|
|
06-03-2024, 10:13 AM
|
#29
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
I think we may have had a misunderstanding, by native I meant like can be installed and by download to user it was like user gets package and can install, anyway, with that nearly saying same stuff. We do seem to disagree about whether any programming language CAN be used at all with apps, I think it can, you think it should not. X E.
|
|
|
06-03-2024, 10:14 AM
|
#30
|
Member
Registered: Jan 2024
Location: USA
Distribution: Ubuntu, Android, Ubuntu Touch, Jolla Sailfish X E.
Posts: 365
Original Poster
Rep:
|
Quote:
Originally Posted by NevemTeve
TL;DR you wish to package your program into a .deb or .snap or something else; the first problem is that you haven't started writing the program yet.
|
I know, I need to know what programming stuff I can or should use and Rust seems like a good option. X E.
|
|
|
All times are GMT -5. The time now is 04:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|