How to open ports? - [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

Stupot
Sagely Hen
Posts: 1680
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: How to open ports?

Post by Stupot » Sat Jun 02, 2018 16:20

Look at this link: https://www.thegeekdiary.com/centos-rhe ... ewall-cmd/

Do you have firewalld active? If so, follow that guide.

If not, what about

Code: Select all

# iptables -L

gocool
Growing Hen
Posts: 173
Joined: Wed Aug 06, 2008 13:37

Re: How to open ports?

Post by gocool » Mon Jun 04, 2018 17:34

# systemctl status firewalld
Unit firewalld.service could not be found.
iptables -L gives the below output
# iptables -L

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

gocool
Growing Hen
Posts: 173
Joined: Wed Aug 06, 2008 13:37

Re: How to open ports?

Post by gocool » Mon Jun 04, 2018 17:39

So basically we changed our firewall from ufw then.
Any way thanks for this input, I guess I need to read all about iptables now then.

gocool
Growing Hen
Posts: 173
Joined: Wed Aug 06, 2008 13:37

Re: How to open ports?

Post by gocool » Mon Jun 04, 2018 23:12

I disabled and enabled ufw and it worked for now.
But not sure why I get this message
python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.3

User avatar
sabayonino
Sagely Hen
Posts: 3279
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: How to open ports? - [Solved]

Post by sabayonino » Mon Jun 04, 2018 23:18

python3.3 non è supportato (3.5 e superiori oltre al solito 2.7)

probabilmente c'è qualccosa che lo cerca/richiede
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

gocool
Growing Hen
Posts: 173
Joined: Wed Aug 06, 2008 13:37

Re: How to open ports? - [Solved]

Post by gocool » Tue Jun 05, 2018 23:04

sabayonino wrote:
Mon Jun 04, 2018 23:18
python3.3 non è supportato (3.5 e superiori oltre al solito 2.7)

probabilmente c'è qualccosa che lo cerca/richiede
Quindi dovrei effettuare l'upgrade o il downgrade?

Ryuno-Ki
Old Dear Hen
Posts: 494
Joined: Mon Feb 27, 2012 22:15
Location: Southern Germany
Contact:

Re: How to open ports? - [Solved]

Post by Ryuno-Ki » Wed Jun 06, 2018 6:37

I recently solved this.

Code: Select all

# eselect python list
should show python 3.3 (uninstalled). In case you have another python3 installed, resolve the issue by executing

Code: Select all

# eselect python clear
(Commands OTOH, # means "as root", e.g. with " sudo")
German Wiki translator ◆ Want to contribute on the wiki? Ask the Bureaucrats!
Please, mark solved threads ◆ Posts unread and unansweredPackage requests

gocool
Growing Hen
Posts: 173
Joined: Wed Aug 06, 2008 13:37

Re: How to open ports? - [Solved]

Post by gocool » Wed Jun 06, 2018 11:23

Ryuno-Ki wrote:
Wed Jun 06, 2018 6:37
I recently solved this.

Code: Select all

# eselect python list
should show python 3.3 (uninstalled). In case you have another python3 installed, resolve the issue by executing

Code: Select all

# eselect python clear
(Commands OTOH, # means "as root", e.g. with " sudo")
when I gave eselect python clear I get the below error
# eselect python clear
!!! Error: Action clear unknown
exiting

Stupot
Sagely Hen
Posts: 1680
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: How to open ports? - [Solved]

Post by Stupot » Wed Jun 06, 2018 15:54

gocool wrote:
Wed Jun 06, 2018 11:23
Ryuno-Ki wrote:
Wed Jun 06, 2018 6:37
I recently solved this.

Code: Select all

# eselect python list
should show python 3.3 (uninstalled). In case you have another python3 installed, resolve the issue by executing

Code: Select all

# eselect python clear
(Commands OTOH, # means "as root", e.g. with " sudo")
when I gave eselect python clear I get the below error
# eselect python clear
!!! Error: Action clear unknown
exiting
Did you copy the '#' when you ran the command? The # indicates to run the command as root, but it's not actually a part of the command.

User avatar
sabayonino
Sagely Hen
Posts: 3279
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: How to open ports? - [Solved]

Post by sabayonino » Wed Jun 06, 2018 19:55

the commmand is

Code: Select all

# eselect python cleanup
not "clear"

see the output of

Code: Select all

# eselect python

Code: Select all

 eselect python
Usage: eselect python <action> <options>

Standard actions:
  help                      Display help text
  usage                     Display usage information
  version                   Display version information

Extra actions:
  cleanup                   Remove stale implementations from list
  edit                      Edit the interpreter preference list
  list                      List installed Python interpreters
    --cpython                 list only CPython interpreters
    --python2                 list only CPython 2 interpreters
    --python3                 list only CPython 3 interpreters
  set <target>              Set the preferred Python interpreter
    --cpython                 update preference for CPython versions only
    --python2                 update preference for CPython 2 versions only
    --python3                 update preference for CPython 3 versions only
  show                      Show the most preferred Python interpreter
    --cpython                 show the preferred version of CPython
    --pref-only               consider only explicitly preferred impls
    --python2                 show the preferred version of CPython 2
    --python3                 show the preferred version of CPython 3
  update                    Switch to the most recent Python interpreter
    --if-unset                do not alter preferences unless there is no valid preference set
    --ignore SLOT             ignore specified Python slots
    --cpython                 update only CPython preferences
    --python2                 update only CPython 2 preferences (ignored)
    --python3                 update only CPython 3 preferences
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

Post Reply