[ 一日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 :

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

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/

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
» [ 一日30分 인생승리의 학습법] Visual Basic application on linux 졸리운_곰 2022.02.22 16
1074 [ 一日30分 인생승리의 학습법] Truffle을 이용한 DApp 개발환경 구성 file 졸리운_곰 2022.02.20 86
1073 [ 一日30分 인생승리의 학습법]LaTeX 활용해서 논문쓰장 file 졸리운_곰 2022.02.17 20
1072 [ 一日30分 인생승리의 학습법] LaTeX 초보자가 감을 잡는 것을 돕는 몇가지 팁 졸리운_곰 2022.02.17 279
1071 [ 一日30分 인생승리의 학습법] 수식 입력이 가능한 마인드맵 프로그램, 프리플레인(freeplane) file 졸리운_곰 2022.02.16 37
1070 [ 一日30分 인생승리의 학습법] Awesome Metaverse Awesome 짱!~ 메티버스 오픈소스 file 졸리운_곰 2022.02.13 11
1069 [ 一日30分 인생승리의 학습법] 제 NAS의 Docker 목록 file 졸리운_곰 2022.01.31 105
1068 [ 一日30分 인생승리의 학습법] gw basic 튜터리얼, 메뉴얼, A GW-BASIC Tutorial 졸리운_곰 2022.01.22 21
1067 [ 一日30分 인생승리의 학습법] Web Search Engine : 웹 검색 엔진 google/ naver 만들기 file 졸리운_곰 2022.01.17 28
1066 [ 一日30分 인생승리의 학습법] AILog 2 A logic programming language with probabilities and logical explanation and debugging faculities file 졸리운_곰 2022.01.16 12
1065 [ 一日30分 인생승리의 학습법] 소스 인사이트( source insight ) 사용법 file 졸리운_곰 2022.01.13 19
1064 [ 一日30分 인생승리의 학습법][메타버스란 무엇인가?] The Metaverse Has Already Arrived. Here’s What That Actually Means file 졸리운_곰 2021.12.29 22
1063 [ 一日30分 인생승리의 학습법] English to Logic, Truth-Functional Propositional Logic 졸리운_곰 2021.12.15 16
1062 [ 一日30分 인생승리의 학습법][실무행정] 기안문 공문서 기안문 작성법, 행정안전부 지침 및 시행 file 졸리운_곰 2021.12.11 42
1061 [ 一日30分 인생승리의 학습법][실무행정] 기안문 작성하기 졸리운_곰 2021.12.11 17
1060 [ 一日30分 인생승리의 학습법] 셀레니움 헤드리스 테스트를 위한 HTMLUnitDriver 및 PhantomJS file 졸리운_곰 2021.11.26 24
1059 [ 一日30分 인생승리의 학습법] 메타버스로 날개 단 오픈소스 프로젝트 file 졸리운_곰 2021.11.23 230
1058 [ 一日30分 인생승리의 학습법] Best JavaScript machine learning libraries in 2021 file 졸리운_곰 2021.11.20 8
1057 [ 一日30分 인생승리의 학습법] 프로그래밍 언어별 딥러닝 라이브러리 정리 file 졸리운_곰 2021.11.19 30
1056 [오픈소스 라이센스 상용화 라이센스 검토] [Software] 공개 SW 라이센스(GPL, LGPL, BSD) 졸리운_곰 2021.11.18 10
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED