Skip to content
May 7, 2012

release 0.3

Finalizing, and debugging the project:

 There are some task I tried to do and fixed recently:

  • Testing new releases

      The SD tool is working well on Fedora, but it doesn’t work well on windows.

  • Windows UAC prompt

The solution: Right click the fedora-arm-installer.exe -> Compatibility -> Run this program as an administrator.

  • Windows installation wizard
  • Better python to exe compiler (without a dos window)

Download python program plug  PyQt4 GUI

http://www.riverbankcomputing.com/software/pyqt/download

Use the tool   “cxfreeze”  from website 

http://cx-freeze.sourceforge.net/

   This is my command when I use the tool:    

cxfreeze  fedora-arm-installer.py –target-dir fedora    

 (fedora-arm-installer.py file you can download from my release 0.2)

These release file can create installation tool for windows, but a terminal window appears as well as the GUI app if we don’t run it as administrator

The release file is here:  

http://www.fileserve.com/file/uy6PUZj/fedora-arm-installer.zip

 

 

    I try to fix the Gui windows and I change the command as

       cxfreeze fedora-arm-installer.py –target-dir fedora –base-name Win32Gui

I can execute well, but when I try to open the new release. It show me some errors and I can’t use it to create SD card installtion  file…

The release file is here:  

http://www.fileserve.com/file/Wr6b5dt/fedora-arm-installer-error.zip

Anyway, I have to thanks for  Fosjon who built the fedora SD installation tool and his helping for my project.

May 7, 2012

Release 0.2

For this release / milestone, I tried to see the current sd card installation tool different between Fedora and Windows, and I try to find many python transfer tools. You can  download the source tarball from here:

The Python code is working very well on fedora, nothing error for this tool,  but it doesn’t work well on windows.

 I also found many python transfer tools for windows,

 Python27,Python32.

 I installed the py2exe  plug for it, but it is too old, it can’t use to transfer the original python code to exe.

This is original python code

http://www.fileserve.com/file/8SrjgZu/fedora-arm-installer.zip

I was looking for other tool and way to fix the transfer problem on following week and release 0.3

March 13, 2012

Create a SD Card Installation Tool Release 0.1

I am going to show you guys how to use SD Card

SD card Installation installer has almost finished by fossjon,

Download the installer from the appropriate link:

Fedora Installer is working well now,but the python transfer to exe thing which looks annoying.

More detail information you can find on seneca wiki page.

http://zenit.senecac.on.ca/wiki/index.php/Create_a_SD_Card_Installation_Tool

Plan to on release 0.2:

making a windows install wizard from python to exe file.

March 9, 2012

GIT

 

learn how to use GIT at Feb 23 class

March 9, 2012

RPM-Writing Lab

prepareation
1. Install the required packages:

    yum groupinstall “Fedora Packager”
    yum install rpmlint yum-utils 
    
2. Create the ~/rpmbuild directories and the ~/.rpmmacros file by running this command: rpmdev-setuptree

[root@fedora rpmbuild]# ls
BUILD  BUILDROOT  RPMS  SOURCES  SPECS  SRPMS
[root@fedora rpmbuild]

Lab steps
1. Put the package source code (tarball) in ~/rpmbuild/SOURCES

[root@fedora Downloads]# cp ocrad-0.20.tar.gz ~/rpmbuild/SOURCES
 
cd ~/rpmbuild/SPECS

2. Create an empty skeleton spec file: rpmdev-newspec
rpmdev-newspec ocrad
[root@fedora SPECS]# ls
ocrad.spec

3. Edit the specfile
[root@fedora SPECS]# cat ocrad.spec
Name:      ocrad

Version:   0.20     
Release:21%{dist}      
Summary:ocrad package test         

License:free        
URL:http://www.gnu.org/software/ocrad/                              
Source0:  ocrad-0.20.tar.gz                  ocrad-0.20.tar.gz

BuildRequires:gettext
BuildRequires:automake
BuildRequires:autoconf
BuildRequires:libtool  

%description
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%files
%doc
%changelog

4. Attempt to build your package: rpmbuild -ba nameOfPackage.spec
Run 
rpmbuild -ba ocrad.spec

Processing files: ocrad-0.20-10.fc16.x86_64
Processing files: ocrad-debuginfo-0.20-10.fc16.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/ocrad-0.20-10.fc16.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/bin/ocrad
   /usr/include/ocradlib.h
   /usr/libexec/libocrad.a
   /usr/share/info/dir
   /usr/share/info/ocrad.info.gz
   /usr/share/man/man1/ocrad.1.gz

RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/bin/ocrad
   /usr/include/ocradlib.h
   /usr/libexec/libocrad.a
   /usr/share/info/dir
   /usr/share/info/ocrad.info.gz
   /usr/share/man/man1/ocrad.1.gz

March 9, 2012

Build from source lab

install development tools
yum groupinstall “Development Tools” “Development Libraries”

Download the file gzip-1.4.tar.gz from internet

Extract the file with the following command:

tar xzvf gzip-1.4.tar.gz

Move into the newly created directory ed-1.6:

cd gzip-1.4/

Now you need to find a script that runs the build of the program, more often then not it will be this:

./configure

When successful, run:
make

followed by :
make install

To check the time it took the command to execute we type:

time make

real    0m2.205s
user    0m0.362s
sys    0m0.755s

This is my second package

1. Download bash package
bash-4.2.tar.gz

2. unzip it and run ./configure
3. time make
***********************************************************
*                                                         *
* GNU bash, version 4.2.0(1)-release (x86_64-unknown-linux-gnu)
*                                                         *
***********************************************************

real    0m0.052s
user    0m0.031s
sys    0m0.012s

January 17, 2012

Hello Everyone!

This is my first blog on my life.I am currently studying Computer Systems Technology at Seneca, this is my last semester. I am also a Seneca  badminton varsity team player.

My WIKI page:  http://zenit.senecac.on.ca/wiki/index.php/User:Dsu n20

My Fedora WIKI page https://fedoraproject.org/wiki/User:Dsun20

Nick name: dsun20

Learn ID: dsun20

I remember that some people said that they want to make the new generation computer under the $100 so that everyone can have a own computer around the world. After I saw Raspberry Pi Project, I believe that the world will become more and more better.

 

IRC Conversation

Follow

Get every new post delivered to your Inbox.