Linux Migration for the Home PC User, Part 8

By Ed Ed | Posted at 0:19

The ultimate step in DIY Linux for the home PC user is building a piece of software for yourself.

Past Parts in This Series

Part 1
Part 2
Part 3
Part 4
Part 5
Part 6
Part 7

In essence, that is what we will do here, but we will take some shortcuts to make it as painless and simple as possible. This means instead of simply building something directly from source, with all the command line incantations, we will build an RPM package from an RPM source package.

I mentioned in the previous lesson a problem I had with the font rendering on CentOS. This has been a issue with Linux over the years. The default package set from CentOS (and Red Hat) doesn't enable something called “bytecode interpreter” in the Freetype font rendering library. Because RedHat is aimed at the corporate market, they tend to be more conservative about such things. A few brands of Linux do this for you, but we have to fix it ourselves in CentOS.

First, you have to install the packages which allow you to build your own software. This is the easy part. If you installed from the stack of CDs or a DVD, you'll need to have that at hand. In the “Applications” menu, go all the way to the bottom for “Add/Remove Software” and prepare to enter your root password. Once you've done that, you'll see a window labeled “Package Manager”. This application will run for a few minutes taking an inventory of what is already installed. When it's ready to work, you'll see a window on the left side with a list of categories. Click on “Development” and take a look at the window on the right side. There is a list with check boxes. We need to make sure we have checked “Development Libraries” and “X Software Development” — X is the Linux nickname for the service which creates the Linux GUI framework itself, while the GNOME Desktop runs on top of that framework. We need the libraries for X because what we are building will need them. The Package Manager may require you to insert your install disks, but should pull at least some files down from the repo on the Net.

When it tells you it's done, close the Package Manager window. Now we need to get that source RPM package. Start at the official CentOS Mirrors List. Scan down this list for a site relatively close to your geographical location. Keep this page open, because it's just possible the one you choose may not respond well at any give time. You can open any link in a second browser page by clicking that link with your middle mouse button. In this case, you need to click on either an HTTP or FTP link on the far right side of the list to find your CentOS repository. On the next page click on the link to “5”, then “updates”, then “SRPMS”. What you should now see is a list of files. Scan down to “freetype” — at this writing what would be “freetype-2.2.1-21.el5_3.src.rpm”. Right-click and choose “Save Link As…” and allow the “save” dialog to pop up. The name can be changed, but we need to keep it as is; be sure to select your “home” folder from the drop down just below that.

Once you have that, you can close your browser and open that Terminal window again. Log in as root. We need to move that file where everything can be neatly organized. There is a space on your system already reserved for mucking about with SRPMs. Provided the file name matches what is above, your command would look like this:

mv freetype-2.2.1-21.el5_3.src.rpm
 /usr/src/redhat/SRPMS/

If you want to be slick, you type the “mv freety” part, hit the TAB key and let it finish spelling out the file name for you, then copy the rest from above, or type it by hand. Now that the file is there, we have to move the prompt there.

cd /usr/src/redhat/SRPMS/

Make sure by typing your ls command; you should see your Freetype file listed. Now we will install it in the proper place by running the RPM command with some switches:

rpm -ivh freetype-2.2.1-21.el5_3.src.rpm

By now, you should know you can type it using the TAB key after just typing “free” or you can use your mouse to copy that command and paste with the middle button into your Terminal window. The prompt should show RPM installing the file, but you don't yet know where all the stuff in that RPM went. We don't need to know all the gory details, but we do need to edit one file. Let's go back up one level in the file system, then down into the SPECS folder. It looks like this:

cd ../SPECS/

If you use ls you'll see a freetype.spec — this is the specification file for building the Freetype library package. We'll call on our old friend, Nano:

nano freetype.spec

Drop down three lines to this:

%define without_bytecode_interpreter    1

Go to the end of the line, and change that “1” (one) to a “0” (zero). Save it and close. What we have done is turned on a switch, as it were, to make the software build it differently. Also, we need to change one small thing so Yum won't try to reinstall the same original file back over our new one. We need to give our fixed file a different name. Go down to the line that says:

Release: 21%{?dist}

Change it by replacing everything after “21” with a simple “.1” plus your initials. That will make it appear to your system like an upgrade, and remind you who built it. My line changed to this:

Release: 21.1jeh

The command for building is a friend of the RPM command, called RPMBuild. You don't have to know all the ugly details just yet, because you aren't likely to do this very often. Here's how we make it happen:

rpmbuild -bb freetype.spec

You'll see a long bunch of lines scroll by as the software begins the process of checking to make sure everything is alright. On the outside chance your system is missing something for the job, RPMBuild will tell you what's missing. It's designed to do this no matter what you are building. Most of the time, you can fix it immediately, since you are logged in as root, and your friend Yum is standing by to help.

If you believe RPMBuild is telling you the name of a missing package, you can check by running a Yum search:

yum search packagename

Naturally, you would replace “packagename” with the name, or partial name, of the package. If Yum knows about that package, you'll see a list. Most of the time, that package name will include a “-devel” telling you it's a development package. You have to install it by asking for the package with that suffix in the name.

yum install packagename-devel

If it lists something with lots of dots and some numbers, rather like “libgettextlib-0.14.6.so” then you'll know it's not a package name, but a particular item from a package. If you simply search on the Net using that name plus “rhel” you'll usually figure out what package it belongs to, and can install that by name. In this case, that's “gettext”. So we can fix that by telling Yum we need it:

yum install gettext

Most of the time things will work out well that way, and when Yum is finished, you can run that RPMBuild command again, simply by pressing your up arrow key a few times until it reappears at the prompt, then hit ENTER. Provided nothing else is missing, and it starts to run through the checking process, then it will switch to building, and eventually create the new RPM files.

When the prompt comes back, and there are no errors, you'll need to go find that new RPM you just built.

cd ../RPMS/

Run the

ls

command, but don't get frustrated when you see a half-dozen folders named after various computer architectures. Unless you installed the 64-bit version of CentOS, you'll find most stuff built this way under

i386
, so go there:

cd i386

Checking with our ls command, we find several files whose names begin with “freetype” — we need two of them. The command looks like this (remember yours will have your own initials:

rpm -Uvh freetype-2.2.1-21.1jeh.i386.rpm 
freetype-devel-2.2.1-21.1jeh.i386.rpm

Unless something is wrong, you should see RPM prepare, then install the two files. Here, as with any other point in this complicated procedure, you should already have worked out where you will go for help. You can post here in the comments section, but it's best if you cultivate a support group either on a forum or a mailing list.

Once you have this changed version of Freetype installed, you'll need to close the root session, close the Terminal, log out of your computer, and then restart X. Most of the time, it's simplest from that login window to hit the keys CTRL + ALT + BKSP all at once. The X server should restart automatically after a few seconds, and will be using the new Freetype libraries. Log back in again, and you should see a change in how the fonts appear on screen.

The only thing you have to remember is, from time to time, CentOS will update the Freetype package, and you'll have to run through this drill again. Once any package gets updated, you'll find the newest SRPMs in a different location on the mirror, by going from the “5.3” to “updates” then into the “SRPMS” folder. Should CentOS upgrade it all to 5.4, it should be automatic for your system, and you should know to follow that path through the new folders.

Once you get used to running Linux, it's possible you'll find you really need something nobody has prepared for CentOS, and you'll want to build it from the source. It's not hard to learn, but it's outside the scope of introductions like this. You can get instructions from your new forum/list friends most likely.

As more than one tech writer has said, CentOS is Linux for grownups. It's a little more work, but once you have it working as you wish, you can depend on it staying that way for a long time.



Re: Linux Migration for the Home PC User, Part 8

Later, they found that a spirit was harming their daughter, Andrea. Frightened by these conditions, Rod and Carolyn called on the investigators to help them out with this mess. Showbox

Posted by Alexandr Lukin - Sep 25, 2017 | 13:29

Re: Linux Migration for the Home PC User, Part 8

If you have an iOS device running iOS 7 or later versions, you can use vShare Helper for installation. MovieBox

Posted by Alexandr Lukin - Sep 30, 2017 | 15:31

Re: Linux Migration for the Home PC User, Part 8

At Hotstar, we are super excited about shaping the OTT video space in India and being part of history-in-the-making as we innovate on product development, consumer lifecycle and ad-monetization. Hotstar

Posted by Alexandr Lukin - Oct 3, 2017 | 6:21

check cashing lemon-grove

In fact unquiet state! That I relish an individual's word of advice at this moment. Surely furthermore there is better information. Regards such a lot of ideal for imparting especially with the reasoning. Nowadays follow this check cashing lemon-grove Better standing!

Posted by Pervez - Oct 21, 2017 | 8:33

Re: Linux Migration for the Home PC User, Part 8
Posted by AOC recruitment 2017 tradesman - Dec 13, 2017 | 7:15

Re: Linux Migration for the Home PC User, Part 8

As we know that the application form will come within the last week of the January 2018 now approaching to the previous night out for submitting the neet 2018 application form

Posted by NEET 2018 - Jan 9, 2018 | 5:15

Re: Linux Migration for the Home PC User, Part 8

Fundamental learning along with need to have DSSSB recruitment 2018 handed Hindi.

Posted by dsssb recruitment 2018 - Jan 9, 2018 | 8:28

credit card protector sleeves

Wonderful blog post. This is absolute magic from you! I have never seen a more wonderful post than this one. You've really made my day today with this. I hope you keep this up! credit card protector sleeves

Posted by credit card protector sleeves - Mar 17, 2018 | 16:32

Gutter replacement London

Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. Gutter replacement London

Posted by Gutter replacement London - Mar 19, 2018 | 10:19

Wooden toys

As a seller of legal steroids, you can buy Crazy Bulk products, explore stacks and finally get the body you’ve always wanted Wooden toys

Posted by Wooden toys - Apr 4, 2018 | 15:56

Re: Linux Migration for the Home PC User, Part 8

They have been so innovative each time when coming with something new. The new model is looking so good with the added amount of features to the previous one. I am sure that the customers will absolutely love this one as well
bioleptin

Posted by seth dean - Apr 13, 2018 | 23:05

www.fashionlabel.us

You will discover all types and designs of fashion blogs since the internet is filled with them. It can discuss the benefit of wearing thin jeans more than boyfriend denim jeans or exactly how pink takes the area of dark plus all of the extras. While you go on the internet, you can get your fill from the latest popular trends by way of fashion blogs. www.fashionlabel.us

Posted by asim seo - Apr 18, 2018 | 6:29

Re: Linux Migration for the Home PC User, Part 8

Its very nice article for smartcric site. smartcric website is a good source for live cricket updates these days. We recommend you to check it at any cost. www.smartcric.com and www.mobilecric.com and crictimeis the best site

Posted by Nujs - Apr 21, 2018 | 1:02

refinishing wood stairs

I had put together the kitchen cabinets refinished they usually did a seasoned job. The actual result appears as good as the primary finish. Best benefit is that these folks will be professional in every single aspect. They can be punctual, favorable, courteous, plus helpful. Very well-run company
refinishing wood stairs

Posted by Backlinks123 - Apr 24, 2018 | 8:06

Re: Linux Migration for the Home PC User, Part 8

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it,
Jobs In Zufar

Posted by asim seo - May 2, 2018 | 13:39

Re: Linux Migration for the Home PC User, Part 8

2018 Qingdao Bay Soccer Coach Bayern Training Class 2 was held on the 23rd in the Sino-German Ecological Park.NFL Jerseys This is the first class of the second class to be held in Qingkai. Through the 2017 Bayern coach training basic training class and the first-level training class,NFL Cheap Sports Jerseys 25 sports teachers from all primary and secondary schools in Qingdao participated in the Bayern Secondary Class. Training.This training class will continue from April 23 to April 27.Adidas NHL Jersey The training for this training will be Antonio Hattani,Stitched NCAA Hockey Jersey a Bayern International Youth Training instructor who has been coaching many times at Bayern Munich’s Qingdao Football School, CFL Jersey and is well-known in Europe. Scouting,Flex Base Baseball Jersey Egon Kudes, currently a lecturer in youth training at Bayern International.Soccer Club Jersey Among them, Kurds holds the UEFA pro coach qualification certificate. During the player's time, Women Jersey he used to be the head coach and assistant coach of several clubs such as Bayern Munich, Nike Pas Cher Outlet and explored and cultivated several players including Lahm and Boateng. Bayern football star.
The training course will focus on the tactics and tactics of the elite and stage. Adidas shoe The teaching and integration of personal tactics, double tactics, group tactics and overall tactics will help the students in the second class to better understand the Bayern youth training model and enrich the campus.Nike Air Force One The content of football teaching also provides support for the rapid development of school football in primary and secondary schools.The majority of primary and middle school physical education teachers have continued to strengthen their own teaching abilities by learning the concept of the Youth Soccer Training in Germany and playing an even greater role in the development of the school football. Nike Air Huarache They have become teachers and partners in the process of growing up the children.

Posted by zhen12 zhen12 - May 4, 2018 | 3:06

Re: Linux Migration for the Home PC User, Part 8

<p>After stumbling in Monday's opener against the Reds — reliever cheap jerseys wholesale gave up six runs in the sixth inning — the Brewers' pitching staff rebounded to help Milwaukee wrap the week NIKE NFL with six consecutive wins against Cincinnati and Miami, including three shutouts.The Brewers' relief unit was a major part of that success, yielding just NCAA JERSEYS one unearned run during the winning streak and cementing its status as MLB Bullpen of the Week presented by The Hartford.As part of the Hartford Prevailing Moments program, each Monday throughout the 2018 season, NFL JERSEYS is honoring the “Bullpen of the Week presented by The Hartford.” An industry-wide panel of MLB experts, including legendary stats guru Bill James, constructed a metric based on James' YOUTH JERSEYS widely renowned game-score formula, to provide a weekly measurement of team-bullpen performance.Here's how the Bullpen Rating System is compiled for each week. For reference, a weekly score of 100 is considered outstanding:6; Add 1.5 points for each out recorded6; Add 1.5 points for each strikeout6; Add 5 points for a save6; Subtract 2 points for each hit allowed6; Subtract 4 points for each earned run allowed6; Subtract NFL Champions Ring 2 points for each unearned run allowed6; Subtract 1 point for each walk6; Subtract 5 points for a blown saveMilwaukee won the week with 103.5 points, totaling 74 outs, 29 strikeouts, 14 hits, eight runs (seven earned), eight walks and three saves. Seven of the eight runs allowed came in Monday's defeat vs. Movie Football jersey the Reds.Although he was in the mix for a rotation spot, , who entered last season as the Brewers' top pitching prospect, according to MLB Pipeline, has excelled in his relief role. He tossed five innings over the last week, Cleveland Browns Jersey converting two multi-inning saves and allowing just one unearned run. He struck out seven batters against one walk.</p>
<p>The unexpected: The Brewers fell into an early deficit against the Marlins on Saturday as starter Houston Texans Jersey gave up a season-high five runs — including a three-run homer by Miami's — in five innings of work. They trailed, 5-4, when took over in the sixth inning.How they prevailed: After the Marlins notched eight hits and a walk against Suter, the Brewers' bullpen shut down Miami's momentum as Barnes, Hader,
Los Angeles Rams Jersey and combined to pitch four scoreless frames. The quartet yielded just one hit and struck out four batters.”It was really effective work by the bullpen,” Suter said. “They're just continuing to be a unit out there. Those are guys who pitch for each other. There's a lot of love out there in the bullpen. San Diego Chargers Jersey What a great win to be a part of.”Milwaukee won the week by a 17-point margin over the Yankees (86.5) in the Bullpen Rating System. The Phillies weren't far behind with 84 points.</p>

Posted by Ddsfs Fdfg - May 4, 2018 | 6:21

Re: Linux Migration for the Home PC User, Part 8

NEW YORK — Sean Newcomb has long been regarded as the kind of pitcher who might someday become a frontline starter on a contending team. On Wednesday night at Citi Field, “someday” seemed awfully soon, as the young left-hander pitched like an ace for a first-place team.
Newcomb pitched a gem, tossing seven brilliant innings and helping the Braves blank the Mets, 7-0.
View Full Game Coverage wholesale baseball jersers
Thanks to the best game of Newcomb's young career, Atlanta now finds itself in first place, a half-game ahead of New York in the National League East. san francisco giants jersers It's the latest in a season that the Braves have been atop the division since July 2014. And although pittsburgh pirates jersers it's early May, manager Brian Snitker believes it's a big deal.
“The schedule that we faced the first month of the season, man, it's just like every night, it seems we are facing [Noah] Syndergaard, [Jacob] deGrom or [Max] Scherzer or [Stephen] Strasburg,” Snitker said. “It cincinnati reds jersers keeps coming at you. There are really good teams. I'm proud of the way the guys have hung in there. We have been competitive. We have been in every game. We give ourselves a chance to win.”
With Newcomb locked in, the Mets never posed a real threat. New York had runners in scoring position just twice, both times with two outs. Newcomb allowed two hits, struck out eight batters and walked only one. He retired the last 14 st. louis cardinals jersers hitters he faced and threw 97 pitches.
“He got ahead. He got ahead quick,” Mets pittsburgh pirates jersers third baseman Todd Frazier said. “He was working his fastball really well. He was getting some calls that could have gone either way. The frustrating thing is those kinds of calls that he's getting aren't really strikes, but credit him. He pitched a philadelphia phillies jersers heck of a game.”
It helped that Newcomb had command of his fastball, something he didn't have last season.
“He has come a long way,” Snitker said.
Newcomb believes he has turned the corner and figured things out.
“Today I was just pounding the zone. I was pretty locked in,” Newcomb said. “My curveball didn't feel too great. I had some that were good. The fastball felt good. The changeup felt good. That was probably the biggest key.”

Posted by Kevin jhone - May 4, 2018 | 7:55

Re: Linux Migration for the Home PC User, Part 8

Nfl jerseysThe Philadelphia Eagles is a legendary football team with a glorious history since 1933. It is a professional football team and is a member of the East Division of the National Football Conference which is a part of the National Football League. The Philadelphia Eagles have made two appearances at the Super Bowl and has won the brian westbrook jersey Title thrice. The club was formed by Bert Bell when he brought the Frankford Yellow Jackets franchise and named it Eagles. Some of the players from Philadelphia Eagles have found place in the Hall of Fame. Tommy McDonald, Reggie White, ryan mathews jersey Chuck Bednarik, Bob Brown and Steve Van Buren are some of them.

Philadelphia Eagles started off as a great team. They struggled in the middle to hold on to their form, but after several changes in coaching department, they came back as winners in 1988. torrey smith jersey After this NFL win, they continue to win the other matches and titles for the next 5 years. From the year 1999 through 2000, the Philadelphia shopbyplayers had a new coach and flourished under his coaching. They won 5 division games and finally reached the Super Bowl in 2000. Philadelphia's current home ground is the Lincoln Financial Field. The team shifted to this base in 2003.

The home ground of Philadelphia Eagles hosts a number of events when the team is not playing matches. carson wentz jersey Various live performances take place on the ground. Monster Jam is hosting a perfect entertaining show on 6th of June at the Lincoln Financial Field. The Philadelphia Eagles played their first season in the year 1933. They have been the patrick robinson jersey champions during the years 1948, 1949 and 1960. They have been the NFC champions twice during the years 1980 and 2004. During the years 1947, 1948, 1949 and 1960 they have been the NFL Eastern Conference Champions. alshon jeffery jersey The Eagles recorded their first win in a regular season against the Cincinnati Reds with 6-0.

The first winning season of the Eagles was 1943 season. In 1947, corey graham jersey they entered their first playoff against Pittsburgh and registered a win with a margin of 21-0 in the NFL divisional playoff. David Akers is considered to be the all time leading scorer for the Philadelphia Eagles. The biggest rival of the corey clement jersey is the Giants. The rivalry started on 5th October 1933 when the Eagles were defeated by the Giants. malcolm jenkins jersey The Giants won the series entirely. The second famous rivalry is with the Cowboys when Eagles won the first match. This rivalry began on 30th September, 1960.

The Philadelphia Eagles' color has been white, rasul douglas jersey silver and Kelly green since the beginning. They use helmets whose designs have changed over the decades. The helmets after lot of changes now bear the symbol of eagles as silver wings on Kelly green helmet and white outline. The present uniform is of midnight green color. jake elliott jersey The logo of the team has been an eagle throughout. The team has celebrated their 75th year and that has been added to their present uniform. The Eagles tickets to their games are available online. Not only just tickets, you can also find the Eagles Game Schedule available with several website making it easier for the fans to keep a track on the latest events darren sproles jersey.

Posted by Anonymous - May 4, 2018 | 7:57

avocat succession

The article posted was very informative and useful. You people are doing a great job. Keep going. avocat succession

Posted by avocat succession - May 7, 2018 | 8:56

www.financetypes.us

I am sure you see the trend here… Commercial Mortgage Financing can be used in practically any industry for any kind of commercial property. Speak with your Business Finance Broker when you are ready to invest in a Commercial Real estate opportunity.www.financetypes.usFor more information on click here:http://www.financetypes.us

Posted by www.financetypes.us - May 21, 2018 | 5:04


N-Hance Wood Renewal Franchise

A wood vitality business is the kind of business, which but not only provides expert services for necessity moreover beautification with wooden merchandise. People often are inclined to modify and also beautify its traditional hardwood closets plus cabinets rather then purchasing innovative ones.N-Hance Wood Renewal Franchise

Posted by Backlinks123 - May 22, 2018 | 10:18

Carpet Cleaners Victoria

Searching for long tiring day at work you return home only of having your smell bombarded by using a horrid odour. You launch your investigation to choose the source within the foul odour as well as your horror it turns out to be your favorite area rug carpet. Your beloved dog has got peed in it while which you were away.Carpet Cleaners Victoria

Posted by Backlinks123 - May 22, 2018 | 10:19

Carpet Cleaning Pickering

Read further to understand some of your problems. Attending to the possibilities problems listed below might make it easier to think earlier about how you would will tackle them every time they occur, or moreover to undertake a dialogue with the window cleaning up contractor for how they should handle these folks.Carpet Cleaning Pickering

Posted by Backlinks123 - May 22, 2018 | 10:20

Wood Refinishing

Understanding pieces of furniture refinishing seems simple and in some cases this can be quite true. Most often it's not necessarily as slice & dried. Products including lacquer support re shell by aerosol gun. Lacquer that can expand in addition to contract and also the wood.Wood Refinishing

Posted by Backlinks123 - May 22, 2018 | 10:22

Carpet Cleaners in Ontario

Most made products proceed through a period of off-gassing pursuing production, and the particular shorter enough time between make and installation at home, the worse the consequence. Many folks report related symptoms after only some minutes in the furniture, flooring or components store.Carpet Cleaners in Ontario

Posted by Backlinks123 - May 22, 2018 | 10:23

Please enter your comment entry below. Press 'Preview' to see how it will look.

Name:
Sign In to Your Account
User Name:
Password:
Location:
Homepage:
E-mail:
Subject:
:mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: :!: :?:
Home About Connect: Twitter Facebook RSS
© 2001-2012 Universal Networks, All Rights Reserved. Some content rights may be held by Universal Networks' providers and used under license. Powered by ServerForest and SAFARI. Learn about our privacy policy here.