The smxi / sgfxi Command Syntax sets
To use the sidux community contributed multi-function administration tool, smxi, which is short for sidux-maintenance, you need to install the script:
To install smxi:
cd /usr/local/bin; wget techpatterns.com/smxi.zip; unzip smxi.zip && smxi follow the prompts
or to just install the 3d driver script
cd /usr/local/bin && wget -Nc http://techpatterns.com/downloads/distro/sgfxi && chmod +x sgfxi && sgfxi To see options: sgfxi -h
Basic smxi script features and functions
The script has many features, many of which will only appear once to users, others of which are always there. After doing the initial system check, and asking a few questions for configurations, these are the main options you will see:
- Script information. This section shows your current kernel, when you last used script to update system, when you last ran script, and some other information. This can be useful especially on systems you don't update that often (recommended: always upgrade at least 1 time per month. Less often is risky.)

- Kernel install. Offers current stable kernel as default, and offers advanced options that let you install other, older versions. If you start smxi with -K option, the first kernel in stable listed will be the current testing kernel, if present.

- dist-upgrade warning section: Offers live warnings of current and past sid problems. After you agree to continue (hint: sid is almost never in the green, trouble free state, it's usually yellow, safe but with fixes).
- pre dist-upgrade fixes: if any, will then run.
- config file alerts: you will see a 'update these configuration files' information piece. Take a quick look at those, and if the upgrade asks if you want to keep or replace your config file for that item, say y instead of the normal n.
- dist-upgrade section: includes error handling to let you know if upgrade went fine or exited with errors.

- post dist-upgrade fixes: will run, if any.
- miscellaneous options including:
- fixfonts - gives you a set of font fixing options. Good for first time installs, rarely needed after that.
- package-install - groups of common package install options, including non-free stuff like flash and googleearth installer, and office installers. Note: the OpenOffice.org installer offers language pack selections and some other goodies you might not be aware of. Also utility and other package install options.
- package-removal - lists of various package groups you might want to remove, like wifi, german components, etc.
- clean-up-stuff - various cleanup options, like kernel remover (note: always leave at least one old kernel installed when you run sidux to avoid possible future problems)
- miscellaneous-tweaks - things like the popular mozilla settings and file hander tweaks, and other things that vary over time, check it out.
- continue - goes on to graphics installer question
- quit - exits smxi at that point if you don't need to do anything more. Note, graphics installer has a start kde/init 5 option, so you can always use that to get back to your desktop
- installer for graphics drivers - this uses the sgfxi to install nvdia, and usually ati fglrx non Open Source drivers (ati has been erratic over the past year, but they usually work). Also offers Xorg driver install, as well as starting your X/desktop

How to use the smxi script options
Options: together:
-deghiIklmrstuwx
or separated:
-giktw -f -x
You can run this script with any combination of these options.
You can put them together, like this: -ik, or separate, like this: -w -x
Each option, or group of options, must begin with a:
-
Example:
smxi -ikw
skips the system info, kernel install, and warning.
smxi script options: skipping parts of script
The following allow you skip parts of the du script:
- -d Skips dist-upgrade if you also select the w option.
- -e Skips some of the 'Please hit enter to continue' questions.
- -g Skips the graphics install question.
- -i Skips the system information section.
- -k Skips the kernel install question.
- -r Skips check for latest, restart, and downloading latest script version. This skips the restart of the script, that is. Not recommended for most users except when they are rebooting from a fresh kernel install and running the script again.
- -s Skips some parts of script that require an internet connection. Avoid using this since it disables almost all script functionality.
- -S Skips the internet connection test. Use this if script fails connection test but you know your connection is fine. (this option is not recommended and may not always work)
- -t Skips the Post dist-upgrade options section.
- -w Skips the du warnings section.
For example:
smxi -kwid
would go directly to the misc options section after the dist-upgrade. smxi -ki would skip the kernel install question and the information section.
smxi advanced options
The following are advanced script options, and are for doing things that aren't common, but can be useful to you:
- -I Sets different Init level for X restart. Requires this syntax: -I 3
Please note, the number is the init level you want the script to start x in. - -K Advanced Kernel Install. If newer test kernels are available, they will show in the kernel install options. Install advanced kernels at your own risk!
- -l Creates time stamped logs of all update and dist-upgrade data. Logfiles are located in /var/log/smxi/
- -m Runs the option to change debian mirrors in /etc/apt/sources.list
- -M Runs the option to change default kernel mirrors for smxi
- -p Runs apt-get update without using pdiffs. Good for fast connections.
- -P Run script with Proxy settings for connection, requires this syntax:
-P http://[<username><:password>@]<server><:port> - -U Forces an update of script before it runs again.
- -x Runs extra script features that are not core to central functionality.
- -h Prints the smxi script Help menu.
- -v Prints version and system information, including distro version, current kernel, apt update and dist-upgrade last used, and last use of smxi.
User set smxi script options
You can also have the script do some other things by editing its configuration file /etc/smxi.conf
Please note that file does not exist until the first time the script runs, so if you want to add any of these and don't have the file, just create it.
- sgfxi=<some normal sgfxi options, not standard in graphics installer>, for example, if you add the line:
sgfxi=b to /etc/smxi.conf,
your nvidia install will automatically use the argument t as well as the standard -c
Note that these are arguments supported by sgfxi, not by smxi, smxi will merely add these to the arguments it sends sgfxi when you do your graphics driver install. This does not support any argument / option that requires extra information, like: -o 8.33.6 for example, just single letter options for sgfxi graphics install. - hold-install=<package list separated by ^> - This option allows you to add packages to the script automatic hold/release function that will help you avoid temporary issues with broken packages, or to keep packages you don't want to upgrade, without forgetting about them. Example:
hold-install=nano^libgtk2.0
Note: Important: no spaces, only use ^ as package name separator!
sgfxi
To install closed source 3d drivers:
cd /usr/local/bin && wget -Nc http://techpatterns.com/downloads/distro/sgfxi && chmod +x sgfxi && sgfxi To see options: sgfxi -h
sgfxi currently supports ATI fglrx and Nvidia drivers. It also supports converting from or to Xorg free drivers like ati, intel, or nv. smxi uses sgfxi as its graphics driver installer engine, but simply adds some option support for users.
The default driver is the driver that is installed if no arguments are used to override it. Unless your card is too old, and requires a legacy driver, in which case the script will it determine for you.
When you run the script, it will stop, and tell you what driver it is going to install. You can accept that, or exit and redo it with an override option if you want something different.
You can also run the sgfxi installer using smxi, which uses sgfxi to install your graphics drivers. First, read the smxi homepage for more information, then run this command:
smxi -kiwdt
sgfxi-h: When you use the -h option you will also see a list of all currently supported drivers, as well as a brief printout of your current system specifications, kernel, Xorg version. Here are some useful sgfxi options:
-c Use composite mode (nVidia cards only). -d Remove IgnoreDisplayDevices, allow TV for example (nVidia cards only). -h View this help menu. -n Automatically installs correct native Xorg nv, intel, or ati driver for your system. Cleans up old binary driver stuff, updates Xorg.conf with new driver information, and cleans nvidia and fgrlx stuff out of xorg.conf -N Force install of specific Xorg driver. Syntax: sgfxi -N <one of the drivers from the list, like -N radeon> Supported Xorg drivers: ati i128 i740 i810 i810-modesetting intel mga neomagic nv radeon sis tdfx vesa vga voodoo Also configures xorg.conf as required. Full radeon Xorg 3d configuration automatically. -o Override default: install a specific driver, this is an absolute override - syntax: -o 9746 (for nVidia, do not use the 1.0- part) or: -o 8.32.5 (for fglrx) -r Remove mode lines from xorg.conf -t Enables dynamic twinview (nVidia only)
Rolling back to open source drivers
Open Source Xorg drivers for nVidia, ATI, Radeon, Intel are pre-installed with sidux. If you have overwitten them with closed source drivers you can revert or roll back to them with sgfxi, first:
cd /usr/local/bin && wget -Nc http://techpatterns.com/downloads/distro/sgfxi && chmod +x sgfxi && sgfxi To see options: sgfxi -h
Then to install or rollback to a native driver
sgfxi -n OR sgfxi -N <Xorg driver>
Key commands are:
-n Automatically installs correct native Xorg nv, intel, or ati driver for your system. Cleans up old binary driver stuff, updates Xorg.conf with new driver information, and cleans nvidia and fgrlx stuff out of xorg.conf -N Force install of specific Xorg driver. Syntax: sgfxi -N <one of the drivers from the list, like -N radeon> Supported Xorg drivers: ati i128 i740 i810 i810-modesetting intel mga neomagic nv radeon sis tdfx vesa vga voodoo Also configures xorg.conf as required. Full radeon Xorg 3d configuration automatically.
Other useful things to know in console
Remember: to scroll up or down in terminal window, use: shift+pageup/pagedown to go up to see something that has scrolled by. This is usually limited to about 6 screens or so back.

Search online - offline