Getting the eeepc synaptic pad to work with Fedora 12

Of all the how to's I've posted here over the last half year, this has to be one of the easiest. But when I tried to figure this out on my own it took a little bit of digging. So for the benefits of everyone else on the interwebs here is a one stop shop for getting your synaptic pad to work for your EEE-pc with Fedora 12.

Things you'll need:

    - an eeepc (I have a 1000, but I'm sure any will work)

    - Fedora 12 installed on said netbook

    - sudo access

    - a comfortable editor

    - you might also need to have xorg-x11-drv-synaptics installed
    (and if you don't at least now you know what to look for)

I've found that xorg.conf for fedora 12 is not included with the default install of fedora 12. Thus we need to get it; so while as root (or with sudo) type:
Xorg -configure :1

After doing this you should now have an xorg.conf file in /etc/X11. The second part is to now put a little extra configuration into the xorg.conf file. Now using your favorite editor paste the following stuff into the file. I have placed mine beneath the mouse section.

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
Option "SendCoreEvents" "true"
Option "TapButton1" "1"
Option "TapButton2" "2"

And for the last step, in the "ServerLayout" section we need to change this line:
InputDevice "Mouse0" "CorePointer"
to this line:
InputDevice "Synaptics" "CorePointer"

Save the changes, restart X (logging out and back in works well), and now you can single and double finger taps working with ease.I

Gentoo to Funtoo Migration

I have a little confession to make. I've been using Linux for a long time now. Over ten years if you want to put a number to it. The last seven of which I've been a devout Gentoo user. And in being a fan all those years and trolling on the forums like I usually do. I've seen a lot of complaints over the slowness of portage (the package management system for gentoo) and numerous requests for it to be rewritten to no longer use rsync as its back end.

And while Sabayon has to change this in their own distribution, which is based on gentoo and uses subversion for the Sabayon packages above the regular gentoo packages. There are also various layouts hosted by other gentoo users that accomplish the same thing.Which is basically to use subversion above portage. So even though this is a little different the actual portage architecture hasn't really changed, its still done over rsync.

Recently it has come to my attention that the founder of Gentoo, Daniel Robbins, has started a new distro based on his old creation. Its called Funtoo. And one of the things about this that caught my eye was that its using Git to do the package updates. Well of course I had to try this out. So in a virtual machine I got funtoo up and running. And I enjoyed the speed up of using git over rsync. But of course the geek mind wanders, like it always does, and I began to wonder if I could take a regular Gentoo install and move it to Funtoo without having to reinstall everything. So out came the virtual machine again, installed Gentoo on it. And this is my recipe for moving a Gentoo box to a Funtoo box.

So, in order for someone to do this, they are going to need a couple of things:
1) a working install of gentoo (DUH) as well as:
1.1)have git emerged (installed)
1.2)have the 2.2 version of portage installed
2) a downloaded copy of the funtoo stage 3 build for your system


(This part of the instructions where copied from the Funtoo quick install)
move /usr/portage to /usr/portage_old
download a copy of the current funtoo's portage snapshot from the website and decompress the file in the /usr directory:
cp portage*.tar.bz2 /usr
cd /usr
tar zxjif portage-*.tar.bz2

cd into the new portage directory and checkout the funtoo git repository:
cd /usr/portage
git checkout

update portage data:
emerge --sync

After that I just did a simple system update (being this was a barebones install of gentoo, system and world are the same. I can suspect that you will have more to rebuild if this is not the case.) :
emerge -u system

After this point, your going to be making the conversion from Gentoo to Funtoo. So things are of course going to go as smooth as sandpaper. Actually, it really wasn't that bad. There is just some loose ends regarding networking that you need to tie up.

Go to where you have your funtoo tarball, and extract the net.lo file like so:
tar xvjif state3-arch-current.tar.bz2 ./etc/init.d/net.lo

then copy it to your /etc like so:
cp net.lo /etc/init.d/net.lo

then delete net.eth0:
rm -f /etc/init.d/net.eth0

and the last part is to make sure your using a version of dhcpcd >= 4.x. If your running 5.x, then all you have to do is:
rc-update add dhcpcd default

and your done.

If your not running dhcpcd 5x and portage only tells you the latest version to install is in the 4x series, then you'll need to make a quick modification to the package.keywords file:
echo "net-misc/dhcpcd ~x86" >> /etc/portage/package.keywords

and then reemerge dhcpcd, afterwards you'll be able to do the rc-update command above.

And if your using a static IP for your new Funtoo box, then you can avoid all that hassle above and just follow the Funtoo Network guide here.

After this point your basically done. You might have to run a quick etc-update. And maybe rebuild various packages. But all things said and done, welcome to your new funtoo system. Now go enjoy those faster sync's. ;)

Thanks for sticking around this long, and happy emerging.

Flash Tutorial: Hello World Button

In a conversation with a good friend of mine regarding his flash site, he said that he would like to see tutorials created to help someone get started in Flash. And seeing as how I'm a novice writer, as well as novice Flash programmer, I thought that I would take this time to come up with a few simple and easy to follow Flash tutorials to help someone get a little exposure to doing some simple Flash stuff.

Since this tutorial is for the absolute beginner, I will start in the usual fashion with the ever popular “Hello World” program. However, I'm going to deviate from the norm at this point. If you search on the interwebs for “Flash Hello World” you can already find some basic write-ups on how to get a Flash program to regurgitate “Hello World”. However, those write-ups show you how to do this in text. And this is where I see a chance to do something a little different. I'm going to show you how to do a “Hello World” but with a graphic instead. Is this more productive? I have no idea... but feel free to tell me if you think it is or isn't.

Ok, first think you need to do is either download this image file, or create your own image file. Now don't forget where you put it, we're going to need it soon.

So let's start up by getting your Adobe Flash going. And of course once its up click on File-> New. At this point a new window should pop up. Go ahead and make sure that “Flash File (Actionscript 3.0)” is highlighted, if not then highlight it, and click “Ok”.

At this point you should be looking at a fresh new Flash file. AAAHHH just get a wiff of that new file smell. So now lets go and bring up the Library (for CS4 you can just hit CTL+L, don't ask me how to do that in CS3, but if I did have to guess I'd try Window->Library). And let's go and add a new symbol. Right click in that empty space, and choose “New Symbol” in the menu.

After selecting “New Symbol” a new window should pop up resembling this one:

so let's give this new symbol a name. How about “hello_btn”? And also make sure to choose “Button” in the type section. And click “Ok”. And now you should see your new symbol in the Library. Now, while your able to edit this button. Go open up that image file we talked about earlier. And just copy and paste it into that button. Alright, click on the icon called “Scene 1”. And all you have to do at this point is take your mouse, click, and drag the “hello_btn” over to the display area. And just put that right in the center like so (yes, I recognize that the photo isn't the best if the mouse was included it would probably look better and make more sense. But that is what you'll be looking at when you move the icon from the library to the main page):

when you release the mouse, you'll notice that your text is right where you left it. At this point we're done with the labor. Save your file, and hit either Shift+F12 or go File->Publish. And after a little bit of compiling (Chug, Chug, Chug) you'll have you first Flash Hello World program. And you should feel proud of your new accomplishment.

I think the next flash tutorial will be about adding mouse interactions to our button, but I'm not sure yet. We'll just have to see what happens.

Embeding Bitbucket Code Into a Website

So this post is to answer a question from my friend OJ about embedding code from bitbucket into a website.

I'm going to be taking for granted that you already have a bitbucket account, as well as content uploaded into it.

So let's start by looking at the screen shot below. Once your already logged into bitbucket, and looking at the source tab.

So travel down through the directories until you get to the file that has the code you wanna post online. Click on the file you want uploaded and within the file link you'll see this section:

And click the "embed" button on the right hand side.

In the place where the "embed" button was, will be the html code, just click the "copy" button and that html code will be in your buffer. Paste that code into your html code, and BAM you'll see the file of code all nicely highlighted with number lines and able to be shared with everyone.

If you made it this far down into the article, hopefully you liked it enough to share it with your friends. Thanks if you do, I appreciate it.

Bookmark and Share

Syndicate content