Table of Contents

Supplemental linux information

(work in progress)

GNS3

GNS3 is an open source software for network layout. A bit like cisco stuff. you have to be registered. Here is the link: https://www.gns3.com/software/download

Wireshark

Wireshark is a usefull packet capturing program that is like tcpdump, but has a graphical interface. It is very complex and has many uses. Here are some:

TR069

https://en.wikipedia.org/wiki/TR-069

Network Advanced Concepts

OSI Model

TCP/IP Model

Not as often used, important to understand OSI

Encapsulation Process

Componets of LAN

Ehternet principles of operation

Local are network needs to support Shared network access. Components are:

Ethernet Frame Types

Hardware Based, Mac Based, Layer 2 based addressing

Ethernet Addressing

LAN Layer 1 standards

LACP

Bonding links can be done to increase throughput: https://en.wikipedia.org/wiki/Link_aggregation#Link_Aggregation_Control_Protocol

FreeRadius

Tuturial Found at: https://wiki.freeradius.org/guide/Getting-Started

Install

Typical install:

Running

After install you need to test run it and show debugging info

OpenFire XMPP

Openfire and Go Daddy:

Certificates are fun!

Some Paremiters:

Openfire initial successful configuration. NOTE: This setting is not very secure and is meant to allow pidgen and android Xabber to work

Pidgen
Xabber
Security

The above method is very un secure so you may need to read more about generating SSL certs: http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/ssl-guide.html

Nagios

Nagios is a network monitor daemon and webpage server. It monitor radios and send notifications. Here is a basic install instructions: https://www.howtoforge.com/installing-nagios-on-debian-lenny-and-monitoring-a-debian-lenny-server
If you really want to have fun, here is the Nagios Objects Definition page: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/objectdefinitions.html

Nagios Add and edit objects Radio

First login with ssh, or putty

# does comments and semicolins are for comments after a line
define host { ; general container
use [template] 
host_name [host name]
alias [descriptive name]
address [ip address]
hostgroups [host group]
}

Notes about syntax for these parameters

Host groups

Host service

Verify

When done need restart, but you should verify that the configuration is proper with an internal nagios verify tool:

Restart

Then to restart:

Nagios Users

This link wil lbe very helpful:https://wiki.centos.org/HowTos/Nagios#head-82c2d0a041d294354a44a743b9fe150fd63c7bf6
To add users:

It is important to understand what htpasswd does. So see above, or this link: some sources may say htpasswd2, so you will just have to figure out which one you are using (just run -h on each to see which is installed)

Remove users

Change user permissions

It is easy enough to add users but these users will have very limited permissison without adding them to the cgi file located at:

In this file there are a list of options. here is what option means and which ones you may want to add:

Network UPS tools

AKA NUT. For UPS monitoring. Mostly universal for linux though not included as defualt

Nut is installed as a package

Dropbox

Dropbox is a simple cross platform cloud storage program with free 2gb. on linux it works good, but soemtiems the tray icon does not work in certain versions. But you can still use the CLI to do a lot of things.

Onedrive

https://www.maketecheasier.com/sync-onedrive-linux/

Observium

Observe is a monitoring daemon for seeing network device information such as data, processor, etc.

Adding a device

You need to first have the local host (the server observe is running on) be appended to have the host name.

sendmail

Send mail is a package that lets you use an external SMTP server and send mail via command line. It is a simpme MTA (Mail Trasnfer Agent)
Here are some good instructions, but missing a few things
https://docs.oracle.com/cd/E52668_01/E54669/html/ol7-s7-emailsvc.html
Missing:
step 2: If your config does not have that line, go ahead and add it Also some good info at: http://www.pettingers.org/code/sendmail-mods3.html

Basics:

Make a file for your auth server, and create a db for that server info, change permissions:

Edit or add to sendmail.mc line that reads:

define('SMART_host', '[smtp.isp.com]')dnl

you may have to change a similar line, here is the stock line you would change: dnl define('SMART_host', 'smtp.isp.com')dnl
Likewise, you should modify or add these lines if you use ssl:

define('RELAY_MAILER_ARGS', 'TCP $h port')dnl
define('confAUTH_MECHANISMS', 'EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE('authinfo','hash /etc/mail/auth/smtp-auth.db')dnl
define(`confAUTH_OPTIONS', `A p y')dnl

Turn off Daemon:

DAEMON_MODE="none";

Save config. Run through process pressing yes. Then restart the service

Packages Media

Below are essential and good media packages. This is not really a tuturial, but more of a list.

VLC

VLC is one of the best video viewing software and will view many different file formats

VLC CLI interface

To start VLC command line do:

Convert

Convert is a simple imaging conversion program that can be run from the command line. it is part of many main distributions. here is the page for it and how to use it:http://www.imagemagick.org/script/convert.php

tesseract-ocr

A very powerfull OCR application, run from command line. Use “convert” (read above) to convert pdfs to pngs for easy results.

A tuturial on how to use convert and tesseract together is here. It is very easy to follow: http://www.joyofdata.de/blog/a-guide-on-ocr-with-tesseract-3-03/

Packages Web hosting

Code Igniter

Code igniter is a framework for websites. It does not have a typical Content Management system like wordpress. instead it is built using the Model View Controller (MVC Wiki page.) Here are some of the aspects of Code Igniter and some MVC functions.

Installing Code igniter is about downloading the package and putting it on the server. It uses and requires PHP

======Packages Server ======

Samba

(this section is incomplete)
Samba is typically used for linux systems to have a server that can be read by windows easily

mediatomb

Operations via command line

There a number of services that can be passed via command line. go to: http://mediatomb.cc/pages/documentation#id2855840 but here are some good ones:

Config file

located in /etc/mediatomb/config.xml and can be edited with vi
here are some options you may want to change:

Config file - auto scan

There is a way to set autoscan in the config file. Here is an example, but not absolute.
for details on what each mean, you can view the media tomb config page, here is the specific location:
http://mediatomb.cc/pages/documentation#id2858022

<import>
<autoscan use-inotify="auto">
<directory location="/media" mode="timed" interval="3600"
    level="full" recursive="no" hidden-files="no"/>
<directory location="/audio" mode="inotify" 
    recursive="yes" hidden-files="no"/>
    </autoscan>
    </import>

Note: this NEEDS to be under master tag of <import></import> but the first tag of import will have an option about importing hidden files (files start with a period, ex: .config) which is not reletive to overall import child settings. Also, there are other settings in import.

service operations

Also, if you want to remove it from auto start you can do:

Once the service is removed, you may run MediaTomb using the following command in the terminal.

SSHFS

This tool is somewhat obsolete if you know how to use sftp, or scp (or pscp) (a previous Section from this page), which generally requires none or little additional software. Anywho, here is my write up on it.

This allows you to mount a remote location to a local mount point. sshfs uses sftp of ssh. The server/host only needs ssh(sshd) but the client needs sshfs. Though not default, many modern linux systems can be installed with

SSHFS uses fuse, which is a kernal modual and uses libraries, often already installed. It is important to know that there is a fuse permission needed for a user to access it. So the first thing to do is:

Now here is how to use sshfs:

Sometimes it can be a bit slow to use so be patient.

Ubiquiti Air Control

To install on linux you:

Once installed you can find the client main file at:

Parted Magic

Lock screen password:partedmagic

android on linux

MD5 Checksum

This is copied mostly from:https://help.ubuntu.com/community/HowToMD5SUM

Dual Boot

IF you are doing dual boot, there is a lot of info. here are some tips.

Windows Time issue

If you do windows and linux dual boot you might have a probelm with the Time NTP time. Here is the best solution: http://askubuntu.com/questions/169376/clock-time-is-off-on-dual-boot

Distro - Debian

Raspberian

When installing various verison of raspberian you may want to install them like this:

Mint

Speed up Mint:

System tweaks

Here are some system tweaks you can do to speed up your system: https://opensource.com/article/17/8/customize-linux?utm_medium=Email&utm_campaign=weekly&sc_cid=701f20000019T6HAAU

Distro - EdgeOS/VyOS

Notes for Edge OS

Configure

When in CLI/SSH you can type $configure to enter configure mode. This is like entering settings but not executing them. Some commands are:

set
edit

In configure mode you can do set and the entire command, but if you are doing a lot of the same set commands in a specific place such as “set interfaces ethernet eth0 [args]” then you can use edit. Here is how:

[edit interfaces ethernet eth0]
user@server$
show

Here are some helpful shows:

Console and recovery

Here are the links on how to use the console port, and how to recover if resetting does not work:

Vyos command

Here are some basic commands that may not be regular or typical to other linux systems.

Distro - Other

Cisco IOS

There is now a different page for cisco: cisco

wraped shells

For some network devices, when you ssh into them you are in a wrapped shell around the main distro shell (bash). A good example is the netwonix wisp swtiches. To get into main commaind line you can do another command such as:

Knoppix Cheat codes

Puppy startup

http://puppylinux.org/wikka/AddCommandsStartupShutdown
Just put scripts in /root/Startup.