You are not logged in.

#1 2023-04-05 06:30:58

Carlos Manicardi
Member
Registered: 2023-04-05
Posts: 6

Making SecureCRT the default

Goodnight

I'm using eve-ng a tool to emulate networking equipment. But I would like to put the Secure CRT as the Default terminal to open the application.
On the site itself there is a tutorial asking to insert the following line ( echo 'PATH="$HOME/bin:$HOME/.local/bin:$PATH"' >> ~/.profile). already able to perform in ubuntu but in Arch linux
I don't have the .profile file, I created it but without success. I would like to know if there is any way to accomplish this.

I already tried ~/.bashrc and ~/.bash_profile.

Grateful

Offline

#2 2023-04-05 08:19:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Making SecureCRT the default

What tutorial on what site?

Do you understand what that line does?
What does your ~/.profile now actually look like?
Also

echo $PATH
ls -lh ~/bin

Offline

#3 2023-04-05 09:52:08

Carlos Manicardi
Member
Registered: 2023-04-05
Posts: 6

Re: Making SecureCRT the default

Good morning,

Yes, he inserted the path in the ~/.profile file to fetch the executable command. In my case that create in .local/bin.
It is currently like this. follows from this tutorial site (https://github.com/SmartFinn/eve-ng-int … /issues/19)


carlos@NManicardi bin]$ ls
SecureCRTx

[carlos@NManicardi bin]$ cat SecureCRTx
#!/bin/sh
SecureCRT /T /TELNET "$@"

[carlos@NManicardi ~]$ echo $PATH
/home/carlos/bin:/home/carlos/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

[carlos@NManicardi ~]$ cat .profile
PATH="$HOME/bin:$HOME/.local/bin:$PATH"

Last edited by Carlos Manicardi (2023-04-05 15:30:17)

Offline

#4 2023-04-05 10:52:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Making SecureCRT the default

Please use code tags, https://bbs.archlinux.org/help.php#bbcode

The cat doesn't reveal whether that script is exectable and in any event the github issue suggests to shadow/emulate telnet this way - what's the suppsoed point of ~/bin/SecureCRTx

https://github.com/SmartFinn/eve-ng-int … -375947312 relies on further edits, lost behind some 404 images of text.
I suppose they're reflected in https://github.com/SmartFinn/eve-ng-int … -425656696

Offline

#5 2023-04-05 15:26:13

Carlos Manicardi
Member
Registered: 2023-04-05
Posts: 6

Re: Making SecureCRT the default

I also changed in /usr/bin/eve-ng-integration:


elif self._is_command('SecureCRTx'):
            return ['SecureCRTx']


I already tried to add in

.bash_profile and .bashrc

but all unsuccessful

Offline

#6 2023-04-05 16:13:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Making SecureCRT the default

1st off all: what is "unsuccessful" how?
2nd: the comment has two changes (unfortunately w/o any context, because why post a diff if one can post an image of text roll)
3rd Why not go w/ the telinit shadow?

Offline

#7 2023-04-05 16:22:34

Carlos Manicardi
Member
Registered: 2023-04-05
Posts: 6

Re: Making SecureCRT the default

I would just like to put Securecrt as Eve-Ng's default terminal according to the link, but make the changes according to the tutorial link and it didn't work. instead insert:
echo 'PATH="$HOME/bin:$HOME/.local/bin:$PATH"' >> ~/.profile can only be inserted in .bash_profile and .bashrc but it didn't work either

Offline

#8 2023-04-05 16:59:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Making SecureCRT the default

Yeah, just extending your PATH won't do jack squat, no matter how you go about that.
The approaches there all discuss ways to introduce a script that wraps SecureCRT (and in one case extends Eve-Ng), the location of that script is not wrong, but a completely irrelevant detail.

Try to shadow telinit (because that won't require an alteration of Eve-Ng) and post the script you created, its permissions, your $PATH, the output of "type telinit" and elaborate on "didn't work"
https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#9 2023-04-05 17:58:10

Carlos Manicardi
Member
Registered: 2023-04-05
Posts: 6

Re: Making SecureCRT the default

I'm using the Eve-NG Network application As shown in the image below, it has this (https://github.com/SmartFinn/eve-ng-integration) Linux Client integration pack to interact with it.
I installed the Linux Client integration pack according to the link above and I can open the equipment with roxterm according to the image link.

https://ibb.co/tc3br5Q/

However, I would like that when opening the equipment, instead of opening roxterm, it opens SecureCRT.
I found something related to this on github (https://github.com/SmartFinn/eve-ng-int … /issues/19) so I tried to apply it here in my Arch.


1. I created the SecureCRTx file inside the ~/.local/bin/SecureCRTx directory with the following content:

#!/bin/sh
SecureCRT /T /TELNET "$@"

2. I applied permission for the same with:

chmod +x ~/.local/bin/SecureCRTx

3.Create the ~/.profile file and add the PATH:

PATH="$HOME/bin:$HOME/.local/bin:$PATH"


Then I went to usr/bin/eve-ng-integration and added the following lines as shown in the image.

https://ibb.co/bz3v1Fp/

But when I make these changes I click on the equipment and it does not open any terminal or roxterm or SecureCRT.

https://ibb.co/M8yFKFN/

So I did a test to add the

PATH="$HOME/bin:$HOME/.local/bin:$PATH"

  in .bash_profile and .bashrc but the scenario remained the same.

I would like to know if when opening the equipment it opens SecureCRT and not Roxterm, I don't know if there is this possibility.

Last edited by Carlos Manicardi (2023-04-05 18:05:12)

Offline

#10 2023-04-05 18:04:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Making SecureCRT the default

Do you actually speak English?

seth wrote:

2nd: the comment has two changes (unfortunately w/o any context, because why post a diff if one can post an image of text roll)

seth wrote:

Why not go w/ the telinit shadow?

seth wrote:

Try to shadow telinit (because that won't require an alteration of Eve-Ng)

Offline

#11 2023-04-05 18:10:34

Carlos Manicardi
Member
Registered: 2023-04-05
Posts: 6

Re: Making SecureCRT the default

Ok thanks for your help.

Last edited by Carlos Manicardi (2023-04-05 18:11:08)

Offline

Board footer

Powered by FluxBB