Cool tip: vi and spec file templates

This is a really cool tip I stumbled onto while working with some of the packages on my team.  A couple months back I was editing a spec file and accidentally mistyped the name of the spec file.  Much to my surprise most of the file was completely missing.  After several :q! I finally realized that vi has a skeleton spec file that gets generated when edit a *.spec file that doesn’t exist yet.

So, for example if you typed:

 vi mypackage.spec

you would get:

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:           mypackage
Version:
Release:
Summary:
Group:
License:
Url:
PreReq:
Provides:
BuildRequires:
Source:
Patch:
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

%description

Authors:
--------
    Name Surname

%prep
%setup

%build
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post
%postun

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING

%changelog
* Wed Jan 13 2010 sshaw at stshaw.site

openSUSE 11.2 release party

Just a quick post letting everyone know that there is a release party here in Provo, Utah.

The Open Source Technology Center, building A on the Novell campus, has been good enough to host us again.  It will be this Thursday, November 12 from 6 to 9.

I do not have the replicated DVDs, but I will have some burned copies of the isos.

We don’t have a sponsor for pizza yet, but please RSVP anyways just in case.  Maybe we can have people throw some money in for pizza.

Pass the word on and See you all there!

UPDATE:

We will have pizza and drinks.  Please RSVP!!!

Clear Center launched

Clear Center is the resulting company/group/foundation from a company that I used to work for.  Its a full complete small business solution that gives and empowers small business with the big boy tools without the big boy costs (ClearOS features overview).  For those that have heard of clarkconnect, this is the next chapter for them.

I wish them all the best in this chapter they are opening up!

SUSE Studio Launch!

Its not every day something this cool is announced and released: SUSE Studio is finally ready to go live.  For those of you that don’t know what SUSE Studio is, it is a web based appliance builder.  It allows you to take either Novell’s SLE11 (Enterprise Server or Desktop) or openSUSE 11.1 as your base OS and customize it however you want.  With any image base, one could completely build a custom appliance from the bootsplash to software to the last character in a file.

This will enable communities and companies alike to deliver an image with their software already installed, provide a demo, or use it however they want using various formats.  Some of the current formats are disk image, live cd/dvd, vmware, and xen with more to come. (Both 32 and 64 supported)

A couple of the really cool features that I really like are the ability to add custom repositories, add mysql and upload my db, add custom files, the suse studio API, and maybe one of the coolest is test drive.  What test drive allows you to do is test your appliance in the web browser without having to download it first!  You can even customize files in test drive and save those changes out for the next time you build your appliance.

There are just too many cool options and features that I can’t do it justice and therefore I will give out invites to those, until I run out, that comment on this blog post!  Remember to leave your email or I can’t seem you an invite.

Basic iFolder howto… finally!!!

As promised, I have finally created a quick howto for setting up iFolder.  This is a really simple get your feet wet instruction set.  It runs through the basics and includes SSL, but doesn’t show you how to set up LDAP of any kind.  Someone else is going to help out with that howto.  This should be posted to the iFolder community site in the next week or so as time permits.

If anyone has something to add/change please leave a comment!

——————————————————————————-
Steps to setting up iFolder
——————————————————————————-

- Boot image of choice
- Log in as root (password: ifolder, please change this :)
- cd iFolder
- sh BuildSSL.sh
– Enter a pass phrase for server.key: (enter a pass phrase)
– Verify – Enter pass phrase for server.key: (verify the pass phrase)
– Enter pass phrase for server.key: (this is the pass phrase you just entered)
– Fillout information for certificate request (with your own data)
— Country Name (2 letter code) [AU]: US
— State or Province Name (full name) [Some-State]: UT
— Lacality Name (eg, city) []: Provo
— Organization Name (eg, company) [Internet Widgets Pty Ltd]: Novell
— Organizational Unit Name (eg, section)[]: SLED Accessibility
— Common Name (eg, YOUR name)[]: Stephen Shaw
— Email Address[]:sshaw{at}decriptor[dot]com
– A challenge password []: (I just hit enter, correct me)
– An optional companyname []: (I just hit enter, correct me)
– Enter pass phrase for server.key (this is the pass phrase from above)
– Enter pass phrase for server.key (the second time, this is the pass phrase from above)

That’s it for BuildSSL.sh

- Sh BuildiFolder.sh
- Server’s Data Path? [/var/simias/data]: (use default)
- Server Name? [Host1]: iFolder1 (up to you)
- SSL?[SSL]: (use default)
- Public URL? [http://ipaddress/simias10]: (use default)
- Private URL? [https://ipaddress/simias10]: (use default)
- Slave Server? [N]: (use default, unless it is a slave)
- System Name? [iFolder]: (use default)
- System Description? [iFolder Enterprise System]: (use what you want)
- Use Key Recovery Agent? [Y]: (use defaults if you want to be able to recovery forgotten pass phrases)
- Recovery Agent Certificate Path? [/var/simias/data]: (use default)
- Use LDAP? [Y]: N (for a simple setup we won’t use LDAP)
- System Admin? [admin]: (use default)
- System Admin Password? [novell]: (you will probably want to change this)
- Configure Apache? [N]: Y (make sure you do this)

- Web Alias? [/admin]: (use default)
- Require SSL? [Y]: (use default)
- Require SSL? [Y]: (use default)
- iFolder URL? [https://localhost:443/]: (use default)
- Redirect URL? []: (use default)
- Accept iFolder Server Certificate? [Y]: (use default)
- Web Alias? [/ifolder]: (use default)
- Require SSL? [Y]: (use default)
- Require Server SSL? [Y]: (use default)
- iFolder URL? [https://localhost:443/]: (use default)
- Redirect URL? []: (use default)
- Accept iFolder Server Certificate? [Y]: (use default)

——————————————————————————-
Errata
——————————————————————————-
- delete the commented line out of /usr/lib/simias/webaccess/iFolders.aspx around line 84

——————————————————————————-
Testing the setup
——————————————————————————-
- goto https://ipaddress/admin (user: admin pass: novell, unless you changed it)
- You will very likely have to add an exception for the cert
- create a user
- Change the Home Server and don’t forget to hit save at the bottom

- goto https://ipaddress/ifolder (use the user you just created)
- login

- download the client and see if you can connect.

——————————————————————————-
Congrats, if you got this far then it should be working