Staredit Network

Staredit Network -> Computers and Technical -> Linux Q's.
Report, edit, etc...Posted by IsolatedPurity on 2007-01-24 at 03:55:29
Whenever google and my head fail me... I shall ask you kind people for help.
Hopefully some people know linux...

Anyways, first question!
How do I find out what distro and version sen's running off of via command line? I want to emulate sen's server locally so I can test things without messing up SEN.

And if you want to save me the effort, tell me if you have any good experiences about any specific dual booting methods / programs.
Report, edit, etc...Posted by Pyro-Fire on 2007-01-24 at 05:01:47
IM me.

note : use print_r($_SERVER); to get sen's server details (or the server details of the server that the command was run from).

EDIT:

Server: Apache/1.3.37 (Unix) PHP/5.2.0 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a

^By LiveHTTPHeaders -- FF Addon

HTTP/1.1 200 OK
Date: Wed, 24 Jan 2007 11:21:20 GMT
Server: Apache/1.3.37 (Unix) PHP/5.2.0 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
X-Powered-By: PHP/5.2.0
Set-Cookie: session_id=XXXXXXXXXXXXXXXXXXXXX; path=/; domain=.staredit.net
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

^By NetTools 4

Response Headers - http://www.staredit.net/index.php?act=idx

Date: Wed, 24 Jan 2007 11:35:08 GMT
Server: Apache/1.3.37 (Unix) PHP/5.2.0 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
X-Powered-By: PHP/5.2.0
Set-Cookie: session_id=XXXXXXXXXXXXXXXXXXX; path=/; domain=.staredit.net
Content-Encoding: gzip
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=76
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

200 OK

^By WebDeveloper -- FF Addon
Report, edit, etc...Posted by IsolatedPurity on 2007-01-24 at 08:06:18
QUOTE
/root$ uname -a
Linux vps.staredit.net 2.6.9-023stab037.3-enterprise #1 SMP Wed Dec 13 19:46:33 MSK 2006 i686 athlon i386 GNU/Linux

Uh.... pyro.

Moving on... this is what i get with uname -a. Supposedly gives me the kernel version. Or what not. I don't know what the hell it means...
I'm sure it's Red Hat. Dunno the version.
Report, edit, etc...Posted by Deathawk on 2007-01-24 at 14:30:03
/proc/version

Try that..?
Report, edit, etc...Posted by IsolatedPurity on 2007-01-24 at 14:32:47
Permission denied.

Ehh... wtf.
Report, edit, etc...Posted by Deathawk on 2007-01-24 at 14:37:04
Are you root..?

Try sudo /proc/version?

I never used red hat before though.. so just try to log in as root and then do it.
Report, edit, etc...Posted by IsolatedPurity on 2007-01-24 at 14:38:17
Command not found.
I am logged in as root.
Report, edit, etc...Posted by ShadowFlare on 2007-01-24 at 18:00:42
Hmm, not quote right. The command is

cat /proc/version

/proc/version isn't a command, you need to read from it instead (which cat does).

For example, when I type this on my own computer, it displays this:

Linux version 2.4.27-2-386 (horms@tabatha.lab.ultramonkey.org) (gcc version 3.3.5 (Debian 1:3.3.5-13)) #1 Wed Aug 17 09:33:35 UTC 2005

It doesn't exactly say the version of the distribution, though. However, it may possibly at least give a hint as to what you have, like mine does.
Report, edit, etc...Posted by IsolatedPurity on 2007-01-24 at 18:26:45
/$ cat /proc/version
Linux version 2.6.9-023stab037.3-enterprise (root@rhel4-32) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Wed Dec 13 19:46:33 MSK 2006

Apparently centros... 4 or 4.3. Which is like red hat enterprise, from google.
Report, edit, etc...Posted by ShadowFlare on 2007-01-24 at 18:34:16
Well, that doesn't seem to imply either specifically, but if it is Red Hat Enterprise Linux you could use CentOS to test out the things you want to test and it should be the same basically.
Report, edit, etc...Posted by Pyro-Fire on 2007-01-24 at 20:39:13
Linux version 2.6.9-023stab037.3-enterprise (root@rhel4-32) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Wed
Report, edit, etc...Posted by IsolatedPurity on 2007-01-27 at 03:35:43
Uh... do I want the i386 install? Wtf? /noob
Report, edit, etc...Posted by Deathawk on 2007-01-27 at 10:56:34
Yes, that's for 32 bit processors.
Next Page (1)