New to CentOS/Linux

If it doesn't fit in another category, ask it here.
mlandry3
Posts: 2
Joined: 2012/04/04 03:00:25
Contact:

New to CentOS/Linux

Post by mlandry3 » 2012/04/04 03:04:11

I am attempting to get my information, and get my centos working properly but cant.

I have read so many threads and couldn't find an answer so here I go;

./getinfo.sh: No such file or directory

please help fix this

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: New to CentOS/Linux

Post by TrevorH » 2012/04/04 11:06:48

You have to download that file from the thread in the FAQ & Readme First topic.

mlandry3
Posts: 2
Joined: 2012/04/04 03:00:25
Contact:

Re: New to CentOS/Linux

Post by mlandry3 » 2012/04/05 00:07:56

Could you please clarify, I attempted to do this again and nothing. :-o

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: New to CentOS/Linux

Post by TrevorH » 2012/04/05 00:34:12

You go to the thread [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]here[/url] and read the info in it. One of the links in there is to getinfo.sh, right click on it, choose Save As... or Save Target as... and save the file to disk. Open a command prompt and navigate to the directory where you save it and run

[code]
dos2unix -a getinfo.sh
chmod +x getinfo.sh
./getinfo.sh
[/code]

Hey mods, have you ever thought about packaging this script up as an rpm and getting it added to somewhere like CentOS extras so that people can just yum install it?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

New to CentOS/Linux

Post by pschaff » 2012/04/05 01:22:15

No. Contributions are welcome. It is a bit worse that you portray, as it is necessary, as the directions explain, to copy/paste, or use [b]dos2unix[/b] or [b]tr[/b] after a save. We really need Website 2.0!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: New to CentOS/Linux

Post by TrevorH » 2012/04/05 01:47:25

[code]
Summary: Package CentOS 'getinfo.sh' script as an rpm
Name: getinfo
Version: 1.0
Release: 0.centos
License: GPL
Group: Applications/System
URL: http://www.centos.org/

Packager: Trevor Hemsley <trevor.hemsley@ntlworld.com>
Vendor: CentOS Support Forums

Source: http://www.centos.org/getinfo-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Bash script to supply commonly used information for use on the Centos support forums

%prep
%setup

%build

%install
%{__rm} -rf %{buildroot}
mkdir -p %{buildroot}/usr/local/bin
install -m 755 getinfo.sh %{buildroot}/usr/local/bin

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%attr(755,root,root) /usr/local/bin/getinfo.sh

%changelog
* Thu Apr 05 2012 Trevor Hemsley <trevor.hemsley@ntlworld.com> - 1.0-0
- Initial package.
[/code]

Tar up getinfo-1.0/getinfo.sh to create the source file it requires. Feel free to amend anything here as you see fit to make it fit standards etc.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: New to CentOS/Linux

Post by pschaff » 2012/04/05 11:19:12

Nice. Now we've got to determine where it can be hosted. The Wiki can't handle a binary. Will ask on -devel.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: New to CentOS/Linux

Post by TrevorH » 2012/04/05 16:01:10

I see extras and contrib repos are both in CentOS 5 and 6 and either would be a good place to put it since they're in CentOS-Base.repo so it would just be a matter of `yum --enablerepo=contrib install getinfo`

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: New to CentOS/Linux

Post by pschaff » 2012/04/05 18:53:31

Thinking about ELRepo or other more general home, as the script works on RHEL, SL, Fedora, etc., as well as CentOS.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: New to CentOS/Linux

Post by pschaff » 2012/04/12 00:54:55

See [url=http://elrepo.org/tiki/Getinfo]ELRepo Getinfo[/url]. :-)

Post Reply