Skip navigation

I built RPM’s for the this course where macchanger and wget. The RPM’s are for 64bit machines and where not built or tested on 32 bit machines. To build the sources as a regular user I needed to add myself to the /etc/sudoers file. This was done by switching to root, running the visudo command and adding the following line to the end of the file.

stephen ALL=(ALL) ALL

After adding the line I then saved the file and exited the root shell.

 

The next step was to create the build environment using the rpmdev-setuptree command. Since I knew which programs I wanted to build into RPM’s I moved to the directory ~/rpmbuild/SOURCES and then downloaded the sources file into there with the commands below.

wget ftp://ftp.gnu.org/gnu/macchanger/macchanger-1.5.0.tar.gz

wget http://ftp.gnu.org/gnu/wget/wget-1.9.tar.gz

 

I then moved into the SPECS directory and created the spec file for each application. The macchanger spec file was pretty straight forward to build with a few simply fixed errors during the rpmbuild stage and the rpmlint stage.

Build Errors encountered during rpmbuild -ba macchanger.spec

Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/stephen/rpmbuild/BUILDROOT/macchanger-1.5.0-1.fc13.x86_64

error: Installed (but unpackaged) file(s) found:

/usr/bin/macchanger

/usr/share/info/macchanger.info.gz

/usr/share/macchanger/OUI.list

/usr/share/macchanger/wireless.list

/usr/share/man/man1/macchanger.1.gz

 

Fixed error by adding under the %file directive

%{_infodir}/*

%{_bindir}/macchanger

%{_mandir}/man1/macchanger*

%{_bindir}/../share/macchanger/*

 

Errors encountered with the rpmlint -i  RPMS/x86_64/macchanger-1.5.0-1.fc13.x86_64.rpm

 

macchanger.x86_64: E: no-changelogname-tag

macchanger.x86_64: E: info-files-without-install-info-postin /usr/share/info/macchanger.info.gz

macchanger.x86_64: E: info-files-without-install-info-postun /usr/share/info/macchanger.info.gz

macchanger.x86_64: E: info-dir-file /usr/share/info/dir

macchanger.x86_64: E: info-files-without-install-info-postin /usr/share/info/dir

macchanger.x86_64: E: info-files-without-install-info-postun /usr/share/info/dir

————

 

The 6 errors where fixed by adding the information below  to the spec file. The first 2 line where added to the header of the spec file and the rest of the lines where added after the %install directive and these lines fixed errors 2, 3, 5, and 6

Requires(post): /sbin/install-info

Requires(preun): /sbin/install-info

 

%post

/sbin/install-info %{_infodir}/macchanger.info.gz %{_infodir}/dir || :0

 

%preun

if [ “$1” = 0 ]; then

/sbin/install-info –delete %{_infodir}/macchanger.info.gz %{_infodir}/dir || :

fi

 

Adding the following line to the end of commands under the %install directive fixed the 4th error

rm -f $RPM_BUILD_ROOT/%{_infodir}/dir

 

Adding the following lines below the %changelog section fixed the 1st error

* Sat Jan 15 2011  <sahall3@learn.senecac.on.ca> 1.5.0-1

– Initial Packaging of macchanger

 

The process was pretty much the same for the wget program as well, there were less errors during the process because I modified the wget.spec file to fix the same errors that I ran into with macchanger program before trying to build. I also used the spec file from the wget SPRM to determine what the build requires because I had not learnt about mock at the time. The only other thing that I had to do was add the line below to the spec file under the %file directive so that it could build with the language files.

 

/usr/share/locale/*/*/wget.mo

 

The RPM’s and SRPM’s are available for download from the links below.

MACCHANGER

WGET

 

Advertisements

Hello,
I am Stephen a 6th semester student i the CTY program at Seneca. I am mainly interested in security and networking, but I believe this course will be useful and an interesting learning experience.
Email: sahall3[at]learn. senecac. on .ca
IRC Nickname:  sahall3
Seneca Wiki
Fedora Wiki

IRC Chat Excerpt:
<sahall3> perfect they upgrade the wireless network in time for us to graduate.
<ThaFuzz> perfect timing, just as we finish our final semester york will be getting a subway stop and new wireless
<ctyler> I’ve wondered if all this is temporary, that the idea of the school providing wireless will be as obsolete as the fact that the school used to provide dial-up networking — I think in a few years everyone might just be on 4G (or 5G?)
<sahall3> i will believe that when it happens
<t0mmyw> just in time for next years FSOSS.  🙂
<{{localhost}}> sahall3: what did they upgraded it to? 802.11g?

Software chosen to build from source was macchanger, I had to install gcc with yum install to be able to compile macchanger

With the IT field having such a large area of departments and options to go into schools do not really go into much detail with their curriculum and give a broader knowledge base for people to start with. This is good to start out in the field and build your experience and determine what aspect you would like to go into with further detail.

This is where certifications come into play. They provide a means to further your knowledge in a specific area and a way to prove to employers that you have attained a certain level of knowledge. There are many certification providers for many aspects of the field. There are certifications for project management, repairing and troubleshooting pcs, build and troubleshooting networks, security, programming, operating system use and configuration, virtualization software.

There are some starting certifications that will be good to have when you all depending on where you want to go. For the system administrator the Microsoft Certified System Administrator(MCSA)  or the Microsoft Certified System Engineer(MCSE) gives you the starting point for managing Windows servres. CompTIA A+ for persons who want to get into the repair and troubleshooting of computers is a good place to start. CompTIA Network+ covers the basics about building networks and trouble shooting them from the standpoint of not needing to configure the devices yourself.  Network+ does more of the theory behind the network and server configurations. Cisco Certified Network Associate(CCNA) builds the knowledge base for the holder to build networks, configure and troubleshoot routers and switches.

Apple has announced that OS 4 for the iPhone will have multitasking. This is a break for the iPhone where many users complain that they want to run multiple applications. Apple has released the API’s to developers that allow for this functionality so you can expect there to apps that will have this functionality soon. To get a list of the programs running the user would simply have to press the home screen button twice to view this information. The trade off with the use of multitasking is that you can expect your battery life to be less than it is now. The other downside to this is that only users with the iPhone 3GS and up will benefit as this is will not be supported by the iPhone 3G and older.

Another new feature to the iPhone OS is that it will support the ability to encrypt all e-mail and attachments, unlocking them with a user-entered pin code. This means that if the phone is stole sensitive emails will not be at risk of exposure. It will also support Exchange 2010 and allow users to sync multiple exchange accounts to a single device. A platform that will let advertisers and software developers embed a range of multimedia ads directly into an iPhone 4 application.

The iPhone is stilling missing flash and java support and will not likely support it in future releases.

Blackberry Recently released a scaled down version of their Blackberry Enterprise Server (BES). This product is free and has most of the functionality of its Full counterpart. It supports up to 30 devices at a time and 200 emails a day and a about 100 users in total. This release is more geared towards small businesses that would need the BES infrastructure for day to day business and convenience, but cant not afford the licensing or cannot justify spending that much on a licensing. If the company starts out with BES express and outgrows this version it is full upgradable to the full version allowing for full scalability.

The up and coming System Administrators can also benefit from this free software because this can have the time to play with it in a test environment and get comfortable with the features and ways of getting things done, with out having an employer having to train them. Thus making them more adverse and capable at the start of a job.

BES Express can be downloaded from the Blackberry Website registration is required for download.

The Welcome Screen for BES Express 5.0`
Welcome

Role Management
Role Management

There are some useful tools that I have come across though my experiences. There are some tools that are useful for techies and others for regular users. All of the following programs  do not require licensing or purchasing.

  • Sysinternals’ Suite- This is a collection of troubleshooting tools that help with problems like determining which programs are running on start up using autoruns. Using TCPView to determine what connections are being made and your computer are making. As well as task manager on steriods such as process explorer and process monitor. Sysinternal Suite’s Download
  • Unlocker- Have you ever tried to delete a file or stop a program and get the error  that the “file is in use and the action cannot be performed”. This neat little program that helps you to determine which program is stopping you from deleting a file or stopping a program. It not only shows you what is locking the file or process it allows you to kill the process that is stopping you. You can try unlocker from here.
  • NMAP- This utility is used to scans networks for network exploration, inventory or security auditing purposes. You can try nmap from here.
  • Linux Utilities- This is for the linux buff that uses windows but wants the comfort and functionality of linux command line programs. Download from here.
  • Curl- Used to test various settings for websites. You can connect to a website fully from the command line and see the https headers and other connection information that will be useful to test connection and website issues. Link on how to use Curl
  • Putty- This is used to connect to remote devices such as ssh servers, computers, ftp servers, routers and switches. This program is typically used to administrate remote devices with minimal administrative effort.
  • Sun VirtualBox- This a program that allows you to test, configure and host virtual machines for your personal use. It is a noce program to have as to enable testing programs without risking the safety of your own machine.Video on how to install Virtual Box.

Hey all,

New to this whole blogging thing, so it took me sometime to come with what to talk about.  After some thought I guess i will talk about anything computer related seeing as that is what I want to get into in the long run.

Not quite sure of what to post about at this point in time but to get a general idea of whats going to be posted here are things like

  • Interesting Products
  • Security related news
  • Useful little programs
  • Operating systems thoughts
  • Certification Updates
  • Upcoming projects and undertakings