Welcome to the Linux Foundation Forum!
help wrinting universal bash script to install
miesnerd
Posts: 3
in Command Line
Hello all-
It has become painfully clear to me that while I am able to convert my fellow social scientists and friends to linux, a disconnect exists.
i once made a remastered version of my ubuntu with all sorts of social psych goodies (Referencer, pybibliographer, bibus, pspp, R, Rkward, etc) all in a distro and distributed it to a few who were interested.
However, I use more than 1 distro.
I also love arch/gentoo, etc.
What I'd love to learn is how to write a script that can be executed on any (or at least a debian, arch,and gentoo based) distro and install programs.
All of the programs I'd like to install come from the ubuntu science lists in the sections of statistics, bibliography, and word processing.
0
Comments
-
I hardly suppose such a script exists till now. However, the idea is exciting - so I shall not be surprised if I am proved wrong and someone has already done this.0
-
Since every distro is somewhat different, you could only use a bash script (that supposedly runs on any distro), which determines the current distro name, version, and so on. Such things like "it runs on everything" is almost non-existent on linux, so you better not hope too much.
Its possible to write an application what runs on everything IF that install got the necessary libs. Like you write your app in python, everyone can run it IF they got the right version of python... Not easy..
Install.. the universal method is the "./configure .... && make && make install" as you may know it, that *should* work everywhere. But you meant in packages , so yeah.. that is the first part of my post.
(There are many utilities for every distro to modify the default iso, and so on, so you can make your own flavor, thats not the problem.)
So in a nutshell:
(The script shall be written in bash, should detect the distro name, version, and be aware of those stuff, and then install the application in the correct way)
(Of course, all of this are my personal opinion, others should correct me, etc... anyway, good luck.)0 -
Well here's my question:
how do .bin binary install files that you see with proprietary software get around this?
To my knowledge, in the past when I've used a .bin, its not been distro specific, and its been a breeze to get it to work.
Nevertheless, I feel that I could (and would) do a lot of people in my area (and my new linux converts NOT in the social sciences) if I could provide something like this.
Any guidance would be appreciated.
Obviously, it should first and foremost work on ubuntu, since that's what most people use anyways.0 -
Also, as it is pertinent to our conversation, I feel I should point out this project:
http://nixstaller.berlios.de/news.php
Perhaps my social science/statistics experiment should be their guinea pig, as well.0
Categories
- All Categories
- 178 LFX Mentorship
- 178 LFX Mentorship: Linux Kernel
- 775 Linux Foundation IT Professional Programs
- 384 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 103 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 12 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 32 Cloud & Containers Training
- 3 Cybersecurity Training
- 3 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 5 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 798 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 772 Linux Distributions
- 81 Debian
- 68 Fedora
- 24 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 470 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 101 Linux Security
- 79 Network Management
- 102 System Management
- 46 Web Management
- 166 Mobile Computing
- 32 Android
- 119 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 407 Off Topic
- 128 Introductions
- 35 Study Material
- 1K Programming and Development
- 310 Kernel Development
- 720 Software Development
- 1K Software
- 418 Applications
- 182 Command Line
- 5 Compiling/Installing
- 71 Games
- 320 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)