TRY THIS How stop WARNING: Always run Incredible PBX VM behind .. firewall.

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
IncredPBX 11-12.1 for RPi2
Asterisk 11.18 ; IncredGUI 12.0.30
There is no VM on my Pi2b
The HW firewall is at 192.168.1.253 DD-WRT on WRT54G ports forwarded for asterisk.
__________________________

I searched and found a couple of references to WARNING: Always run ... but not found solution.
I noticed a security archive download during the install, but found nothing there some password stuff only.

I have not run IncredFax script yet as I'm not certain it won't fu sendmail ??

I have started to config sendmailmp3 as tutorial tutorial as follows
WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall.
root@pi2:~ $ cd /usr/sbin
WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall.
root@pi2:/usr/sbin $ mv sendmailmp3 sendmailmp3.notrans
WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall.
root@pi2:/usr/sbin $ mv /root/sendmailmp3 sendmailmp3
mv: cannot stat `/root/sendmailmp3': No such file or directory
WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall.
root@pi2:/usr/sbin $ ^C
WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall.
root@pi2:/usr/sbin $ cd ..
WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall.
root@pi2:/usr $ cd /etc
WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall.

that's when I got warned - OK enough is enough - what script is this in, is there a howto turn it off!
I have tried a reboot but its persistent upon root login.
Thanks in advance
Solved -
Solved comment out the line export PS1="WARNING: Alwa ............
Edited in /root/.bash_profile
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
Edit /root/.profile if you're behind a secure hardware-based firewall. :online2long:
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
Thanks Ward for the reply.
Here is my ~/.profile and dependancies
What's wrong? Am I missing something ?
_____________________________________________________
# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi

mesg n
_______________________

root@pi2:~ $ cat ~/.bashrc
# .bashrc

# User specific aliases and functions

alias rm='rm -f'
alias cp='cp -f'
alias mv='mv -f'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
______________________

cat: /etc/bashrc: No such file or directory
____________________________________

root@pi2:~ $ cat /etc/bash.bashrc
# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac

# enable bash completion in interactive shells
#if ! shopt -oq posix; then
# if [ -f /usr/share/bash-completion/bash_completion ]; then
# . /usr/share/bash-completion/bash_completion
# elif [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
# fi
#fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found -- "$1"
return $?
elif [ -x /usr/share/command-not-found/command-not-found ]; then
/usr/bin/python /usr/share/command-not-found/command-not-found -- "$1"
return $?
else
printf "%s: command not found\n" "$1" >&2
return 127
fi
}
fi
____________________________________________________________________________
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
Solved comment out the line export PS1="WARNING: Alwa ............
Edited in /root/.bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
#export PS1="WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall. "
export PS1="\n\[$(tput setaf 2)\]\u@\h:\w $ \[$(tput sgr0)\]"
;/root/update-my-pbx
status -p

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
# export PS1="WARNING: Always run Incredible PBX VM behind a secure hardware-based firewall. \n\[$(tput setaf 2)\]\u@\h:\w $ \[$(tput sgr0)\]"
# /root/update-my-pbx
status -p
 
Last edited:
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top