Before I start, I just wanna say I've looked for over an hour for an answer but can't find anything.
Basically I use Ubuntu through VirtualBox which works fine. I installed NetKit because that's what I'm using in Uni and it also works fine, however, everytime I restart Ubuntu, I have to keep entering these 3 commands in order to make NetKit work again (idk why), so I thought I'd make a script to automatically do this everytime I start up Ubuntu.
I know it opens a sub-shell to run the commands and then closes itself, which is why it doesn't work. I was just hoping someone could tell me a workaround for this and make it run in the main terminal:
#!/bin/bash
#Set the Netkit home
export NETKIT_HOME=/home/yusuf/Desktop/NetKit/netkit
export MANPATH=:$NETKIT_HOME/man
export PATH=$NETKIT_HOME/bin:$PATH
I tried adding . netkit_start.sh
but it just has an error which says Segmentation fault (core dumped)
Thanks for the help