set permanent script options
Please go to the options page if you are just looking for how to use script options, not set them permanently.
Sometimes you might want to always use a script option, or change some other value in a script. Now you can do this easily, by simply adding an option file, which the script will read.
This feature is available in smxi, svmi, and sgfxi.
ALERT: remember, you cannot override most of these options when you set them sticky. The only ones you can override are the ones that have a value other than 'true', otherwise it will always run, so be sure to only set options you always use.
All items in this file will be logged each time you run the script to assist with debugging (it's guaranteed, of course, that people will make typos or mistakes). Remember, if you don't spell the variable name right, it will get ignored in the script completely.
The first step is to make the script values file, which the script will always test for before running, and it will include automatically any options values you set in there. Remember, this is going to change the default global script values, so try to be careful.
You can either edit the /usr/local/bin/XXXX-values file directly, or simply echo the value to it. I'll use the echo method here to show it here to keep it simple.
For non standard use, advanced testing and development features, look at developer only options and information.
smxi :: sticky option file
First, make the file, which smxi will test for and use if present:
# create the file first, as root in terminal touch /usr/local/bin/smxi-values
Here's a list of supported variables and option hard coding values, nothing else will be officially supported.
-
Unless otherwise noted, the value give is the only accepted value will always show advanced beta kernels in the advanced kernel install section if they are available. Usually there aren't any, so usually you won't see any difference (same as: smxi -K).
echo ADVANCED_KERNEL='true' >> /usr/local/bin/smxi-values
- To change color scheme. 0 is standard, default, single color, the default for your console; 1 is script default colors; 2 is a gray/blue type theme; 3 is a earth type color theme (same as: smxi -j1).
echo SCRIPT_COLORS=1 >> /usr/local/bin/smxi-values
- This bypasses the hit enter to continue questions in script (same as: smxi -e).
echo SKIP_ENTER='true' >> /usr/local/bin/smxi-values
- Never show the graphics install question, largely useless (same as: smxi -g).
echo SKIP_GRAPHICS='true' >> /usr/local/bin/smxi-values
- Never show your system information, last updated, etc, information when script starts (same as: smxi -i).
echo SKIP_INFO='true' >> /usr/local/bin/smxi-values
- Never show the first kernel install question. It's preferred to use the script option in Post Upgrade Options -> Miscelanious Tweaks -> Advanced Tweaks -> default-system-kernel set to: no-kernel instead of hardcoding it here, but you can also use this if you prefer (same as: smxi -k).
echo SKIP_KERNEL='true' >> /usr/local/bin/smxi-values
- Never show the post upgrade options section, skip right to graphics install (same as: smxi -t).
echo SKIP_TWEAKS='true' >> /usr/local/bin/smxi-values
If you picked for example the ADVANCED_KERNEL and SCRIPT_COLORS options, your /usr/local/bin/smxi-values file would look like this:
ADVANCED_KERNEL='true' SCRIPT_COLORS=3
And if you wanted to change that in the future, you can just edit that file, or delete it, and smxi will return to its defaults.
sgfxi :: sticky options
There are a few options you might want to set to always run, but overall, because sgfxi changes so often, I don't recommend making very many options sticky.
First, create the sticky option file:
touch /usr/local/bin/sgfxi-values
-
This one is for nVidia non free driver only (same as: sgfxi -c).
echo COMPOSITE='true' >> /usr/local/bin/sgfxi-values
-
If you have an xorg file that you want to never update or change, you can use this option, but make sure you know why you do this before selecting it. Usually only complex xorg.conf files, like ones that handle one monitor but two cards, for instance, should be left alone (same as: sgfxi -C).
echo SKIP_CONFIG='true' >> /usr/local/bin/sgfxi-values
-
This is for nVidia only. Turns off ignoreDisplayDevices, lets TV be used (same as: sgfxi -d).
echo DISPLAY_DEVICES='true' >> /usr/local/bin/sgfxi-values
- To change color scheme. 0 is standard, default, single color, the default for your console; 1 is script default colors; 2 is a gray/blue type theme; 3 is a earth type color theme (same as: sgfxi -j2).
echo SCRIPT_COLORS=2 >> /usr/local/bin/sgfxi-values
-
If you always want to install the Debian version of the driver, this will do it (same as: sgfxi -s):
echo USE_DEBIAN_DRIVER='true' >> /usr/local/bin/sgfxi-values
svmi :: sticky options
svmi doesn't really have many options you'd want to set routinely, but in case you can think of anything, here's how.
# create the file first, as root in terminal touch /usr/local/bin/svmi-values
In general, there really aren't that many options you'd want to always have on, because the only useful ones override script and run things automatically, which is a pain if you want to do anything else at some point. So I'm not going to recommend anything here.