General TC > Programming & Scripting - Unofficial
Script to download extensions+dependencies on other Linux distros
Rich:
Hi GNUser
I really appreciate your help. The goal of this update was to make the script as painless to use as possible. Thanks to
your efforts, I think we may have accomplished that.
zharr:
So I didn't know this script existed and made my own script, including flashing and other setup, essentially so I can use one command to set up a repeatable image including all dependencies, wifi & ssh, custom program sources, etc.
It is less a ready-to-use script and more of a setup-once-and-forget kinda thing if you expect to distribute something that uses a tinyCore image or just want your setup to be repeatable.
Note: It's made for piCore, so you HAVE to edit your sources/kernel versions and extensions beforehand, and remove some custom RaspberryPi-specific config.
I posted the script here:
http://forum.tinycorelinux.net/index.php/topic,25760.0.html
Includes a custom wifi script so it connects to the best available known wifi.
With this I can set up a new SD card with everything I need and work on it over SSH within a minute, no matter where I am (office, home, etc.), without needing a keyboard and monitor.
tacpilot:
I had to split this across multiple posts because of the server error issue plaguing us all.
Though sed supports using most anything as a separator, unless you have some instance that
requires using something different, I would stick to using "/". This will keep your coding habits
inline with standard REGEX syntax across languages, and makes code easier to read when
used in a long line of command piping.
tacpilot:
Because of the extended features of bash, I so much prefer coding in bash over sh. However,
portability with shared scripts becomes and issue. With /bin/sh being linked to numerous shell
interpreter ie.. ash,dash, busybox , ... , the conformity guidelines revolve around being POSIX
compliant.
Coding habits become most important in collaborative environments, and accepted standards
become demanded. Its just good habits to get into.
tacpilot:
There are numerous tools out there to help check for such things. Some you can run locally
and some sites you can post to.
Here is one such site that will check your code...
https://www.shellcheck.net/
Hope This Helps
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version