Categories
CentOS CentOS 5.2 Tutorials CentOS 5.3 Tutorials CentOS 5.4 Tutorials CentOS 5.5 Tutorials CentOS 5.6 Tutorials CentOS 5.7 Tutorials CentOS 5.8 Tutorials CentOS 6.0 Tutorials CentOS 6.1 Tutorials CentOS 6.2 Tutorials CentOS 6.3 Tutorials CentOS 6.4 Tutorials Fedora MISC

Transferring Files using Netcat

Netcat is a great cross platform tool, it can be used for just about all things related to or involving TCP or UDP. Its most practical use is transferring files using Netcat from one machine to another via a network. Where non *nix people usually don’t have SSH installed or set-up, it is much faster to transfer files using Netcat than setup SSH. Netcat is just a single executable, and works across all platforms (Windows,Mac OSX, Linux).

On the Netcat receiving end

# nc -l 1234 > out.file

This will start Netcat listening on port 1234.

On the Netcat sending end

# nc -w 3 [destination] 1234 < out.file

This will connect to the receiver and begin transferring files using Netcat.

If you’d like to transfer files quicker (*nix only I am afraid), you can compress the file during sending process

On the Netcat receiving end

# nc -l -p 1234 | uncompress -c | tar xvfp -

On the Netcat sending end

# tar cfp - /some/dir | compress -c | nc -w 3 [destination] 1234
Categories
CentOS 5.2 Tutorials CentOS 5.3 Tutorials CentOS 5.4 Tutorials CentOS 5.5 Tutorials CentOS 5.6 Tutorials CentOS 6.0 Tutorials

How to check your CentOS version

Most Red Hat-based distributions, like CentOS, should have a file called redhat-release which will contain the CentOS version.

# cat /etc/redhat-release
CentOS release 5.5 (Final)

or

# rpm -q centos-release
centos-release-5-5.el5.centos.1

and finally

# lsb_release -i
Distributor ID: CentOS
# lsb_release -r
Release: 5.5
# lsb_release -d
Description: CentOS release 5.5 (Final) 
Categories
CentOS 5.2 Tutorials CentOS 5.3 Tutorials CentOS 5.4 Tutorials CentOS 5.5 Tutorials

Dell and CentOS the Perfect Combination

A quick post to share this mostly unknown gem that Dell manages it’s own Open Manage Linux Repository.

Read more: http://linux.dell.com/wiki/index.php/Repository/OMSA

To get your CentOS server installed with Server Administrator set up the Dell Open Manage Repository like so:

# wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

Then install the Server Administrator

# yum install srvadmin-all

Finally browse to your newly installed Open Manage Server Administrator and monitor your Dell hardware.

https://your.Centos.Server:1311/

Log on screen – Use your root username and password

Dell Open Manage Server Administrator

Main Screen after log on

Dell Open Manage Server Administrator Main

TIP: After installing the Dell Server Administrator get your service tag number from your CentOS Linux server by running

# dmidecode -s system-serial-number
ABCDEF1
Categories
CentOS 5.2 Tutorials CentOS 5.3 Tutorials CentOS 5.4 Tutorials CentOS 5.5 Tutorials

Gentoo lost and Debian losing to CentOS

If Linux distributions were stocks and you an investor you wish you’d have invested in CentOS. Time to sell what’s left and get yourself some steady and stable CentOS stocks, well at least according to Google Insights.