Useful Linux Commands for BluB0X Remote Servers
Overview
This article is intended to help our customers and integrators that are Windows centric understand the commands to run in Linux.
Linux Admin:
- [https://www.geeksforgeeks.org/beginners-guide-to-linux-system-administration/#:~:text=A%20Linux%20System%20Administrator%20manages%20the%20operations%20such,we%20have%20some%20basics%20of%20Linux%20System%20Administration](https://www.geeksforgeeks.org/beginners-guide-to-linux-system-administration/#:~:text=A%20Linux%20System%20Administrator%20manages%20the%20operations%20such,we%20have%20some%20basics%20of%20Linux%20System%20Administration\).
Commands
- Start/Stop services - [https://www.techrepublic.com/article/how-to-start-stop-and-restart-services-in-linux/](https://www.techrepublic.com/article/how-to-start-stop-and-restart-services-in-linux/\\)
- Stop Service: sudo systemctl stop Blub0x_LocalSync.service
- Start Service: sudo systemctl start Blub0x_LocalSync.service
- Start Service: sudo systemctl stop MitsubishiInterface.service
- Stop Service: sudo systemctl start MitsubishiInterface.service
- Start Service: sudo systemctl stop TKEinterface.service
- Stop Service: sudo systemctl start TKEInterface.service
- Status of OtisInterface: sudo systemctl status OtisInterface.service
- Disable Otis Interface: sudo systemctl disable OtisInterface.service
- Look at Local Sync Logs: sudo journalctl -f -u Blub0x_LocalSync.service
- Get status of services: sudo systemctl status Blub0x_LocalSync.service
Example:
blub0x@787-7th-lnx-dds1:~$ !301
sudo systemctl status Blub0x_LocalSync.service
● Blub0x_LocalSync.service - Blub0X LocalSync Service
Loaded: loaded (/etc/systemd/system/Blub0x_LocalSync.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-04-13 07:01:17 EDT; 20min ago
Main PID: 21541 (mono)
Tasks: 16 (limit: 9352)
Memory: 65.9M
CGroup: /system.slice/Blub0x_LocalSync.service
└─21541 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -l:/tmp/localsync-lock /home/blub0x/Desktop/Linux DDE/Blub0x_LocalSync/Blub0x_LocalSync.exe
Apr 13 07:21:42 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:21:42 AM: TaskBase.ExecuteTask(64) -- DataChangesUploadTask -- task execution finished
Apr 13 07:21:47 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:21:47 AM: TaskBase.ExecuteTask(50) -- DataChangesUploadTask -- task execution started
Apr 13 07:21:48 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:21:48 AM: TaskBase.ExecuteTask(64) -- DataChangesUploadTask -- task execution finished
Apr 13 07:21:53 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:21:53 AM: TaskBase.ExecuteTask(50) -- DataChangesUploadTask -- task execution started
Apr 13 07:21:53 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:21:53 AM: TaskBase.ExecuteTask(64) -- DataChangesUploadTask -- task execution finished
Apr 13 07:21:58 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:21:58 AM: TaskBase.ExecuteTask(50) -- DataChangesUploadTask -- task execution started
Apr 13 07:21:58 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:21:58 AM: TaskBase.ExecuteTask(64) -- DataChangesUploadTask -- task execution finished
Apr 13 07:22:03 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:22:03 AM: TaskBase.ExecuteTask(50) -- DataChangesUploadTask -- task execution started
Apr 13 07:22:03 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:22:03 AM: TaskBase.ExecuteTask(64) -- DataChangesUploadTask -- task execution finished
Apr 13 07:22:08 787-7th-lnx-dds1 mono[21541]: INFO: 4/13/2021 7:22:08 AM: TaskBase.ExecuteTask(50) -- DataChangesUploadTask -- task execution started
DDE
Stop Service: sudo systemctl stop Blub0x_LocalSync.service
Check the service to see if there are errors: sudo journalctl -fu TKEInterface.service
Stop TKE Interface: blub0x@tkelnx-dde:~$ sudo systemctl stop TKEInterface.service
DDE Issues:
-
If you see "Mar 14 11:12:17 tkelnx-dde mono[5058]: /home/blub0x/BluB0X_TKEInterface/TKEInterface.exe: Lock file already exists: /tmp/TKEInterface.exe.lock" You will need to stop the service, remove the lock, then start the service.
-
blub0x@tkelnx-dde:~$ cd /tmp
-
blub0x@tkelnx-dde:/tmp$ ls
-
Blub0x_LocalSync.exe.lock
-
$ sudo rm TKEInterface.exe.lock
-
$ sudo systemctl start TKEInterface.service
-
$ sudo journalctl -fu TKEInterface.service - Make sure the service is running without errors.
Instructions
- Log in and navigate to #. Main Menu->
- Use the
button in the lower left side to create a new #.
- When finished use the
button to finish.