New to CentOS/Linux
New to CentOS/Linux
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
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
Re: New to CentOS/Linux
You have to download that file from the thread in the FAQ & Readme First topic.
Re: New to CentOS/Linux
Could you please clarify, I attempted to do this again and nothing. :-o
Re: New to CentOS/Linux
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?
[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?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
New to CentOS/Linux
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!
Re: New to CentOS/Linux
[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.
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.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: New to CentOS/Linux
Nice. Now we've got to determine where it can be hosted. The Wiki can't handle a binary. Will ask on -devel.
Re: New to CentOS/Linux
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`
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: New to CentOS/Linux
Thinking about ELRepo or other more general home, as the script works on RHEL, SL, Fedora, etc., as well as CentOS.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: New to CentOS/Linux
See [url=http://elrepo.org/tiki/Getinfo]ELRepo Getinfo[/url]. :-)