Boot up with an Fedora Live USB stick.
- Run
vgs
to check if there's any space:
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
fedora 1 3 0 wz--n- <237.28g 0
// INITIAL VARIABLES \\ | |
var matrix_ip = '127.0.0.1';// Local Device IP | |
var matrix_wakeword_base_port = 60001; // Wakeword base port | |
var matrix_io = require('matrix-protos').matrix_io;// MATRIX Protocol Buffers | |
var zmq = require('zeromq');// Asynchronous Messaging Framework | |
// ASSETS FOLDER \\ | |
// Pocket Spinx Language Modeling Files (obtained from http://www.speech.cs.cmu.edu/tools/lmtool-new.html) | |
const LM_PATH = '/home/pi/assets/9854.lm';// CHANGE THIS NAME TO YOUR FILE NAME | |
const DIC_PATH = '/home/pi/assets/9854.dic';// CHANGE THIS NAME TO YOUR FILE NAME |
///////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Set Initial Variables \\ | |
var fs = require('fs');// File system library | |
var zmq = require('zeromq');// Asynchronous Messaging Framework | |
var matrix_io = require('matrix-protos').matrix_io;// Protocol Buffers for MATRIX function | |
var matrix_ip = '127.0.0.1';// Local IP | |
var matrix_zigbee_base_port = 40001;// Port for Zigbee driver | |
var networkCommands = matrix_io.malos.v1.comm.ZigBeeMsg.NetworkMgmtCmd.NetworkMgmtCmdTypes;// Network Command Types | |
var networkStatuses = matrix_io.malos.v1.comm.ZigBeeMsg.NetworkMgmtCmd.NetworkStatus// Network Status | |
var joinTimer = 60// Amount of time for Zigbee devices to join |
// grab array | |
v8::Local<v8::Array> jsArray = v8::Local<v8::Array>::Cast(info[0]); | |
// array length | |
int arraySize = jsArray->Length(); | |
// grab first array element & converto to proper type | |
int indexOne = jsArray->Get(0)->Int32Value(); | |
// return element | |
info.GetReturnValue().Set(indexOne); |
SERVICE_NAME=minecraft2 | |
ZONE_NAME=FedoraServer | |
# create service | |
sudo firewall-cmd --permanent --new-service=$SERVICE_NAME | |
sudo firewall-cmd --permanent --service=$SERVICE_NAME --add-port=9026/udp | |
sudo firewall-cmd --permanent --service=$SERVICE_NAME --add-port=9026/tcp | |
sudo firewall-cmd --reload | |
# view all existing services |