[ 一日30分 인생승리의 학습법] Visual Basic application on linux 

[Question]

Hello As I'm starting to work with linux more but still new to the whole linux programming. I work with windows base visual basic programming. the application I'm trying to make is for status of the system while in linux. What would be the best to get started to monitoring system status using ubuntu in visual basic?


Joseph

 

[Answer]

Hello,

I'm going to assume we are talking about VB.NET and not VB 6 (the one used for excel macros).

I you want to write some VB code on Linux you can use the IDE you want. From Gedit to Bluefish, VIM or BASH.

In order to compile VB.NET code you will need a vb compiler (vbnc) and in order to run what's been compiled you will need a mono runtime env (mono).

Here is the way to install them on debian, it should work the same on ubuntu:

Code:
# apt install mono-runtime mono-vbnc


Example of usage :

Write this code to a "test.vb" file :

Code:
Module mainModule
    Sub Main()
        MsgBox("The Main procedure is starting the application.")
        ' Insert call to appropriate starting place in your code.
        MsgBox("The application is terminating.")
    End Sub
End Module


Compile it :

Code:
$ vbnc test.vb


Then run it :

Code:
$ mono test.exe

 

What would be the best to get started to monitoring system status using ubuntu in visual basic?


If you want to monitor your system with this you should use the /proc file hierarchy https://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html.
The first thing would be to keep a list of the running processes, the resources they use... Anything you can grab from /proc. Then you compare what you grabbed at some point to what is actually running. For example you can get a notification when a program is run for the first time, or if the executable path changed... You can set any "normal situation" parameter you want and set alarms when things are unusual.

The other place where you can find interesting things is /sys https://github.com/torvalds/linux/blob/master/Documentation/filesystems/sysfs.txt

You can track changes in /dev too.

There are many utilities on linux to monitor specific things. You could use them too with some process calls https://docs.microsoft.com/fr-fr/dotnet/api/system.diagnostics.process?view=netframework-4.8 :
ss (command for network stuff)
smartctl (smartmontools packet, allows you to monitor hard drives health)
lsmod (list loaded kernel modules, allows you to detect crashed or added hardware)
sysctl/journalctl (monitoring things started with systemd)
...

 

[출처] https://www.linux.org/threads/visual-basic-application.25998/

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
1092 [ 一日30分 인생승리의 학습법 ] 극상의 학습 난이도로 입문자 울리는 프로그래밍 언어 Top 10 졸리운_곰 2022.09.03 7
1091 [빅데이터의 활용의 오해] 데이터가 당신을 스마트하게 만들고 있을까? 졸리운_곰 2022.09.01 3
1090  [ 一日30分 인생승리의 학습법 ] [Git] Git 명령어 정리 졸리운_곰 2022.08.16 8
1089 [ 一日30分 인생승리의 학습법 ] LLVM이란 file 졸리운_곰 2022.08.13 7
1088 [ 一日30分 인생승리의 학습법 ] Build Your Own Remote Desktop Application using Javascript, Python & WebRTC — Part 2 file 졸리운_곰 2022.08.05 10
1087 [ 一日30分 인생승리의 학습법 ] Build Your Own Remote Desktop Application using Javascript, Python & WebRTC — Part 1 file 졸리운_곰 2022.08.05 8
1086 [ 一日30分 인생승리의 학습법 ] REST API 규칙 졸리운_곰 2022.08.03 7
1085 [ 一日30分 인생승리의 학습법 ]REST API 설계 (네이밍) 졸리운_곰 2022.08.03 5
1084 [ 一日30分 인생승리의 학습법] [2탄!!] KrakenD Demo 면을 알아보죠! file 졸리운_곰 2022.08.01 5
1083 [ 一日30分 인생승리의 학습법] [1탄!!]KrakenD가 무엇인가? 과연 Api Gateway로 으뜸인가요? file 졸리운_곰 2022.08.01 4
1082 [ 一日30分 인생승리의 학습법] 오픈소스 라이선스 별 의무사항 졸리운_곰 2022.07.29 7
1081 [ 一日30分 인생승리의 학습법] The complete guide to (external) Domain Specific Languages file 졸리운_곰 2022.07.08 6
1080 [ 一日30分 인생승리의 학습법] [Elasticsearch] 기본 개념잡기 file 졸리운_곰 2022.06.02 15
1079 [ 一日30分 인생승리의 학습법]node - pm2로 node.js 프로세스 관리하기 - 기본 명령어, 실행하기 file 졸리운_곰 2022.05.28 7
1078 [ 一日30分 인생승리의 학습법][1탄!!]KrakenD가 무엇인가? 과연 Api Gateway로 으뜸인가요? file 졸리운_곰 2022.04.15 8
1077 [ 一日30分 인생승리의 학습법][API Gateway] Kong Gateway 설치 file 졸리운_곰 2022.04.15 9
1076 [ 一日30分 인생승리의 학습법] TeX_및_LaTeX_수식_문법 file 졸리운_곰 2022.03.19 26
» [ 一日30分 인생승리의 학습법] Visual Basic application on linux 졸리운_곰 2022.02.22 6
1074 [ 一日30分 인생승리의 학습법] Truffle을 이용한 DApp 개발환경 구성 file 졸리운_곰 2022.02.20 79
1073 [ 一日30分 인생승리의 학습법]LaTeX 활용해서 논문쓰장 file 졸리운_곰 2022.02.17 11
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED