
18
SNAPconnect E12 User Guide — 116-081614-030-B001
Common Linux Operations
The E12 uses Ubuntu 14.04 as its operating system, so you will need to have some Linux knowledge to use the
gateway. The internet provides ample documentation for all operations within the capability of the E12, and “Linux
Manual” is beyond the scope of this document.
However there are a few operations that are likely to be popular, based on the nature of a gateway. The following
information may save you some time (and frustration) from searching the internet.
Editing Linux Files
Many of the configuration suggestions below instruct you to create new files on your E12 or edit existing files. There
are several ways to go about this, depending on your choice of methods and tools.
The method that old-school Linux gurus might mock you for not using is the classic Vim (Vi IMproved) text editor. If
you are already comfortable in vi or Vim, kindly skip to the next section.
3
For people who prefer a little more help on screen, the popular nano text editor is included in the basic E12
distribution. You can edit a file directly by typing
nano /path/to/filename
, or open nano and then open the file
directly from within the editor. Remember that if you are attempting to edit a file that your user does not own (e.g.,
files in
/etc
that are owned by
root
) you should preface your nano command with the
sudo
command in order to
open the editor with escalated privileges.
The third option for creating or editing files for the E12 is to create the files on another system completely and then
move them into place on the E12. You can move them over an SSH connection or by “sneaker net” using a USB
drive. This is the most cumbersome editing option for files changes, but for more elaborate software suites it may be
appropriate to install your package this way. If you use this method, remember that Windows and Linux use different
line endings. You may need to update your file’s line endings to the Linux standard using a command like this:
sed -i -e 's/\r//' file
Making Your Software Run at Startup
There are two main types of things you might want to invoke at startup:
l
Scripts that run to completion, such as configuration or logging scripts.
l
Applications that you want to start as a service that can be started, stopped, and restarted.
As with many things in the Linux world, both of these are easy once you know how.
Running a Script to Completion
Like many Linux distributions, Ubuntu does not follow all the standards. One such place is that by default, Ubuntu
boots to runlevel 2, which allows for multiuser connectivity (per the standards) and networking (which the standards
3
Emacs is not included in the base Linux distribution on the E12. You can get it using sudo apt-get install emacs
Содержание SNAPconnect E12
Страница 30: ...26 SNAPconnect E12 User Guide 116 081614 030 B001 E12 Dimensions ...
Страница 34: ......
Страница 35: ......