Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Arun Khan
On Thu, Apr 25, 2013 at 6:00 PM, Mike Burger  wrote:
>> On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
>>> I want to know the right command to type from a bash shell so that i can
>>>1) Check the version of my cent os
>>
>> lsb_release -a

I believe you need to install the package to get lsb_release.  It is
not present in my minimal server install.

> >From the question, he wants to know the version of CentOS, not the LSB info.
>
> rpm -q centos-release

The default content in the file /etc/issue comes with Distro name +
version number (CentOS, Debian, Ubuntu in my case).

-- 
Arun Khan
Sent from my non-iphone/non-android device
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Cliff Pratt
re point 3, do you have 'telnetd' installed. You should probably use ssh
unless you have a good reason not to.


On Fri, Apr 26, 2013 at 12:04 AM, Adekoya Adekunle <
adekunleadek...@gmail.com> wrote:

> I want to know the right command to type from a bash shell so that i can
>1) Check the version of my cent os
>2)  Check all the open ports (tcp and udp) on my machine
>3)  Open a specific port say port 3306 so that a  telnet request from a
> remote machiene can be accepted
>   4)  Disable the effect of 3 above in case I want to
>
> Thanks in anticiaption of your kind responses to the questions above.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Phil Dobbin
On 04/26/2013 12:40 AM, Reindl Harald wrote:

> 
> 
> Am 26.04.2013 01:35, schrieb Phil Dobbin:
>> How odd. On my 64-bit CentOS 6.3, 'lsb_release -a' returns:
>>
>> 'bash: lsb_release: command not found'
>>
>> Works on Debian 6.0.5 & Ubuntu 12.04.2 & 12.10.
>>
>> The CentOS distro is a cloud server image if that makes any difference
>> although I wouldn't have thought so
> 
> and what says "rpm -qa | grep lsb"?
> 
> redhat-lsb.i686 : LSB base libraries support for CentOS
> redhat-lsb.x86_64 : LSB base libraries support for CentOS
> redhat-lsb-compat.i686 : LSB package split dependency compat helper
> redhat-lsb-compat.x86_64 : LSB package split dependency compat helper
> redhat-lsb-core.i686 : LSB base libraries support for CentOS
> redhat-lsb-core.x86_64 : LSB base libraries support for CentOS
> redhat-lsb-graphics.i686 : LSB graphics libraries support for CentOS
> redhat-lsb-graphics.x86_64 : LSB graphics libraries support for CentOS
> redhat-lsb-printing.i686 : LSB printing libraries support for CentOS
> redhat-lsb-printing.x86_64 : LSB printing libraries support for CentOS
> 

Point taken. Nothing. I'll install them now.

Cheers,

  Phil...

-- 
currently (ab)using
CentOS 5.9 & 6.4, Debian Squeeze & Wheezy, Fedora Beefy, Spherical &
That Damn Cat, Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise,
Quantal & Raring
GnuPG Key : http://www.horse-latitudes.co.uk/publickey.asc


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Phil Dobbin
On 04/25/2013 01:39 PM, Dave Cross wrote:

> On 25 April 2013 13:30, Mike Burger  wrote:
> 
>>> On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
 I want to know the right command to type from a bash shell so that i can
1) Check the version of my cent os
>>>
>>> lsb_release -a
>>
>> >From the question, he wants to know the version of CentOS, not the LSB
>> info.
>>
>> rpm -q centos-release
> 
> 
> lsb_release gives the version of CentOS.
> 
> $ lsb_release -a
> LSB Version:
> :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
> Distributor ID: CentOS
> Description: CentOS release 5.8 (Final)
> Release: 5.8
> Codename: Final

How odd. On my 64-bit CentOS 6.3, 'lsb_release -a' returns:

'bash: lsb_release: command not found'

Works on Debian 6.0.5 & Ubuntu 12.04.2 & 12.10.

The CentOS distro is a cloud server image if that makes any difference
although I wouldn't have thought so.

Cheers,

  Phil...

-- 
currently (ab)using
CentOS 5.9 & 6.4, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
Lubuntu 12.10, OpenSuSE 12.3, OS X Snow Leopard & Ubuntu Precise & Quantal
GnuPG Key : http://www.horse-latitudes.co.uk/publickey.asc


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread John R. Dennison
On Thu, Apr 25, 2013 at 01:39:29PM +0100, Dave Cross wrote:
> 
> lsb_release gives the version of CentOS.
> 
> $ lsb_release -a
> LSB Version:
> :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
> Distributor ID: CentOS
> Description: CentOS release 5.8 (Final)
> Release: 5.8
> Codename: Final

And it pulls it from a text-based file that is subject to automated and
human modification.  Parsing release info from centos-release is the
most accurate way to determine what the currently running release is.





John
-- 
UNIX Russian Roulette: sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You 
live"

-- Fabian Arrotin


pgpEFziuuCJBj.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Mike Burger
> On 25 April 2013 13:30, Mike Burger  wrote:
>
>> > On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
>> >> I want to know the right command to type from a bash shell so that i
>> can
>> >>1) Check the version of my cent os
>> >
>> > lsb_release -a
>>
>> >From the question, he wants to know the version of CentOS, not the LSB
>> info.
>>
>> rpm -q centos-release
>
>
> lsb_release gives the version of CentOS.
>
> $ lsb_release -a
> LSB Version:
> :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
> Distributor ID: CentOS
> Description: CentOS release 5.8 (Final)
> Release: 5.8
> Codename: Final
>

So it does...I neglected the -a when I ran it. Thank you.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Dave Cross
On 25 April 2013 13:30, Mike Burger  wrote:

> > On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
> >> I want to know the right command to type from a bash shell so that i can
> >>1) Check the version of my cent os
> >
> > lsb_release -a
>
> >From the question, he wants to know the version of CentOS, not the LSB
> info.
>
> rpm -q centos-release


lsb_release gives the version of CentOS.

$ lsb_release -a
LSB Version:
:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final

Dave...

--
Dave Cross :: d...@dave.org.uk
http://dave.org.uk/
@davorg
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Mike Burger
> On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
>> I want to know the right command to type from a bash shell so that i can
>>1) Check the version of my cent os
>
> lsb_release -a

>From the question, he wants to know the version of CentOS, not the LSB info.

rpm -q centos-release

-- 
Mike Burger
http://www.bubbanfriends.org

"It's always suicide-mission this, save-the-planet that. No one ever just
stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Mike Burger
I'm all for helping people with their questions and problems...heaven
knows, I've needed my share of help with things, but I don't usually ask
until I've performed some level of research.

Having said that, I hope that you will all accept my apologies for any
interpreted attitude in what follows.

> I want to know the right command to type from a bash shell so that i can
>1) Check the version of my cent os

http://www.lmgtfy.com/?q=Check+the+version+of+my+cent+os

>2)  Check all the open ports (tcp and udp) on my machine

http://www.lmgtfy.com/?q=How+can+I+list+all+the+open+TCP+and+UDP+ports+on+my+system%3F

>3)  Open a specific port say port 3306 so that a  telnet request from a
> remote machiene can be accepted
>
>   4)  Disable the effect of 3 above in case I want to

http://www.lmgtfy.com/?q=How+can+I+open+or+close+a+specific+port+in+my+iptables+configuration%3F

> Thanks in anticiaption of your kind responses to the questions above.

You're welcome.
-- 
Mike Burger
http://www.bubbanfriends.org

"It's always suicide-mission this, save-the-planet that. No one ever just
stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread Earl Ramirez
On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
> I want to know the right command to type from a bash shell so that i can
>1) Check the version of my cent os

lsb_release -a

>2)  Check all the open ports (tcp and udp) on my machine

netstat -atulp (man netstat)

>3)  Open a specific port say port 3306 so that a  telnet request from a
> remote machiene can be accepted
man iptables 

>   4)  Disable the effect of 3 above in case I want to
> 
> Thanks in anticiaption of your kind responses to the questions above.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

-- 


Kind Regards
Earl Ramirez
GPG Key: http://trinipino.com/PublicKey.asc


signature.asc
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cents OS from Bash Shell

2013-04-25 Thread John Doe
From: Adekoya Adekunle 

> I want to know the right command to type from a bash shell so that i can
>    1) Check the version of my cent os
>    2)  Check all the open ports (tcp and udp) on my machine
>    3)  Open a specific port say port 3306 so that a  telnet request from a
> remote machiene can be accepted
>   4)  Disable the effect of 3 above in case I want to

1. cat /etc/centos-release
2. netstat -nltup
3. I let it as a google exercise...

JD
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos