May 29, 2008

6

Torrentflux B4rt on Ubuntu Hardy

Previously I made a post on how to install Torrentflux on Ubuntu Gutsy. So here is some update on How to use torrentflux-b4rt edition on your Ubuntu Hardy. Well, you must be wondering why use torrentflux-b4rt instead of torrentflux. Well, there are a lot of new features on b4rt edition on writing and speed. Well if you really would like to know what b4rt made of, the you should really visit their site here.

So here is step-by-step on how to install the latest torrentflux-b4rt on Hardy Heron:

  • I assume you have your LAMP installed on your system before running this tutorial. If you still didnt install apache, php and mysql - then I will advise you to google search on how to install them on your system.
  • After installing LAMP, then we could start the procedure with downloading the latest b4rt into your /var/www folder.
cd /var/www && wget http://gunblade.fakap.net/doc/torrentflux-b4rt_1.0-beta2.tar.bz2
  • Extract the files on your webserver folder.
tar xf torrentflux-b4rt_1.0-beta2.tar.bz2 && mv torrentflux-b4rt_1.0-beta2/html ./flux
  • Now we could install all the requirement of torrentflux-b4rt before proceeding with further installation:
sudo apt-get install php5-cli unzip unrar transmission-cli
wget http://ubuntu2.cica.es/ubuntu/ubuntu/pool/universe/c/cksfv/cksfv_1.3.5-1_i386.deb && sudo dpkg -i cksfv*deb

Update:
sudo apt-get install php5-gd libxml-dom-perl libxml-simple-perl libthreads-shared-perl libdigest-sha1-perl libhtml-parser-perl
*thanks to phil for the info
  • After installation of the requirement ready, we may proceed on installing torrentflux-b4rt to our system. To install, open up your firefox browser, and navigate to http://localhost/flux
  • Follow the instruction and remember to set the database information correctly. Mostly, people will make silly mistakes here.
When ready, just login to your root account, and start having fun with your machine as a Torrent Monster. I like to use 'Monster' cause it sound great.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 27, 2008

1

Fluxbox: Setting Sound Keyboard Control

Well one of my friend, piju - asking me about how do I control my sound volume on my fluxbox. As he has more experience than me, so maybe he have his own way on controlling sound volume on his Fluxbox. But for me, it's quite simple.

At First I wanted to set the FN key to control sound, but as I search on the google, no other tutorial successfully set the FN+VolDown/VolUp yet. The FN key isnt being map. So I replace FN laptop's Keyboard key with "Windows Key". Here is how to set it up:

  • Open up your shortcut key's file: (On terminal type)
nano ~/.fluxbox/keys
  • then add the following line at the end of file:
mod4 Up: ExecCommand amixer set Master 1%+
mod4 Down: ExecCommand amixer set Master 1%-
  • I hope from here you can get an idea on how to mute and do any other things with sound with the shortcut utility.
I hope this will help Fluxbox user to control sound much better than before. Some other method, you could just install other application GTK based to control your sound.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 25, 2008

3

Edit Sudoers for No Pass Prompt

If you have some script need to run on daily basis such as 'apt-get' maybe you will be thinking on getting rid of password prompt every time you run an 'apt-get' command. And sometime, we wanted to have a script which will autorun on startup and you keep being prompt to enter password. Would you like it to be run fully background? If yes, then you need to edit the 'sudoers' file located in '/etc/' folder.

Before we begin, we may need to really know the power of 'sudo'. If you didnt know what 'sudo' command could be, then do a google search on 'sudo' as a keyword. This could effect your system if you allow users to run such a risky command without password prompt. So, here is steps on how to edit sudoers:

  • Open up terminal (Applications > Accessories > Terminal)
  • Open up the text editor(i'll be using nano for this tutorial) and edit the /etc/sudoers file.
sudo nano /etc/sudoers
  • You will be prompt for password for this one. Enter your user password and the editor will appear. Find line with:
# User privilege specification
root ALL=(ALL) ALL
  • And add to the next line your user and what command you would like to allow. For example, my user is "gunblade" and I would like to allow 'apt-get' to run without any password prompt. Then I need to add this line:
# User privilege specification
root ALL=(ALL) ALL
gunblade ALL=NOPASSWD:/usr/bin/apt-get
  • But first you need to make sure where is the binary file located. To locate it, use 'which' command. For instance, if you would like to know the exact location of 'apt-get' then you need to run 'which apt-get' and it will return the exact location.
$which apt-get
/usr/bin/apt-get
So here is the tips and trick to do a simple thing on sudoers file. But you need to carefully allow some commands because it could bring damage to your system if you wrongly allow it to users. Some command might be best to have password prompt. Edit it on your own risk~!

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

0

Make a startup script on Fluxbox

Well, Fluxbox a light weight window manager. Wondering on how to make a startup script for Fluxbox WM on Ubuntu? Well there is a script/file called Xsession for GNOME WM as a startup script. So with Fluxbox, the file is called xinitrc.

How can you do this? It's simple to start an application on Ubuntu Fluxbox start up. Here is some steps using terminal as a start:

  • Open up terminal and touch a file name ".xinitrc"
touch ~/.xinitrc
  • Then make some script to run the application you like such as nm-applet, pidgin, xchat and etc.
nano ~/.xinitrc
  • When the editor open up, just type the command you would like to run. Here is my xinitrc:
#!/bin/sh
session.screen0.rootCommand: fbsetbg -l
export SHELL=/bin/zsh
export LC=C
export LC_ALL=C
fluxbox &
WMPID=$!
sleep 4 &&
wait $WMPID
xset +fp /home/gunblade/.fonts
nm-applet
So you can add what ever application that you would like to run on startup, but if there is any root privileges type of application, then you need to do some tricks to make it work.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 20, 2008

4

Hardy Heron - B43 Broadcom Driver Setup on fresh install

Well, this is my first time fresh installing Ubuntu 8.04 Hardy Heron on my Laptop. Before this, I used to upgrade my system from Gutsy to Hardy using update-manager. And without any problem, I got the wireless(which in hardy using b43 instead of bcm43xx) working without any need to do anything. Which mean, Upgrade --> Reboot --> And wireless is there and it's B43~!

But in another situation, I just do a Hardy Heron fresh install yesterday, not much problem in the installation process, which I manage to boot into the new system in about 20-30 minutes of installation process. All working fine without any major issue but then i realized that my Broadcom Wireless(b43) didnt light up. So I assume that my broadcom didnt working on fresh install.

Here is simple step I make to make this things work:

sudo apt-get install b43-fwcutter
This command will install the fwcutter for latest b43 driver and load the firmware in installation process. Basically, Hardy suppose to include this things on installation, but somehow the b43-fwcutter sometimes doesnt work will all cards, so you really need to remove the default one and reinstall it back using above command. Hope this will help.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

2

I'm Back For Real

This time i'm back for real, I have rejoin Ubuntu Malaysia Team, I'm back for blogging, and ready to do experiment on my Ubuntu and giving tips.

All my problem have been solve quicker than i thought. So I'm glad to announce that I'm back for real into this IT world.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 19, 2008

5

Goodbye to my Ubuntu

Heh, there is some difficulties I encountered when trying to install windows on one of my Ubuntu partition. Why I want Windows on my laptop? Well - I had to install Windows due to my brother-in-law request to play games with me.

Well I've tried to use cedega to play games with him, but I failed to install the game because we dont have the CDs, the only way to play the game is by copying the source directly from my brother-in-law laptop to mine.

Virtualization? Nope, this one could run windows on my Ubuntu but it cannot play any games because you will experiencing a very laggy system cause by non supported graphic card on virtualbox. Plus - my RAM is not enough to run it.

So I installed Windows on one of my Ubuntu's partiton which I named it "/share" (mostly all my trash files is here) and successfully run Windows after 30-40mins of installation process. Unfortunately, during the partitioning process I do make a noob mistake where I did delete my swap partition :-P (Lame huh)

I repair my grub and everything went well except my system is not as good as before, and I do have some problem with memory management cause I have no swap on the system. Can I make a swap ? Yes I can.. But I am thinking of a Hardy Heron fresh install to replace the old Feisty -> Gutsy -> Hardy System (i'm on my way to burn the hardy CD's on my CD-RW right now).

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

0

Off-Topic: Predict People Behavior ?

I've been in a lot of thinking lately about can people read or predict other people behavior ? As I am right now playing through people thought and people reaction over some circumstances, but I still cannot find any strong point to make a concrete solution.

I've read several articles on psychologist and also a few tips and trick on how to get to know people better, but there seem lack of information or direction on how a person could be group into a certain behavior. Well to be honest, people heart is the most unique things to learn about.

Yes! we could say that heart is a noun, but heart lead to something more than people could imagine which is feelings. Feeling is not an object where someone could look or touch. Therefore you could never know what is inside someone's feeling.

So for me, psychologist only make assumption on people behavior based on their reading, learning and experiences in life, but the truth is, no one in this world could really make a solid guess on what peoples' behavior are. But still the best way to get to know people is by experiences.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 15, 2008

5

Ubuntu : How to upgrade to 2.6.25 kernel

Well, on the previous post I do give tutorial on how to compile custom kernel on your Ubuntu box debian way. But it seem like it's hard for beginner to start compiling, and stripping the kernel and choose a appropriate driver to be compiled along.

So here is the easy way for Ubuntu users to upgrade to latest kernel 2.6.25 which has been release on the launchpad by the development team.

sudo vi /etc/apt/source.list
Edit the source.list file and add the following line at the end of the files:
deb http://ppa.launchpad.net/kernel-ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/kernel-ppa/ubuntu hardy main
Save and exit the text editor, and run:
sudo apt-get update
After finish updating your apt list, you need to install the new kernel by running this command:
sudo apt-get install linux-image-2.6.25-1-generic linux-headers-2.6.25-1
This command will install the 2.6.25 kernel with the Ubuntu Patches already been implement. So no need to wirries about your drivers and etc. But this isnt a stable release yet. I've been reading about kernel 2.6.25 to be included officially on the hardy repo as this 8.04 is a LTS.

Enjoy

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 14, 2008

0

Need Sometime to be Alone

Hello,

I wanted to be free from all the IT world including from all the Ubuntu things for a moment due to my life difficulties. I need to sit back and relax for a while. I'll be back as soon as possible if manage to sort things out. I hope you all will stick with the blog as this blog has a lot of information on linux/ubuntu.

To all my friends, I love you guys. But this is not the right moment to have plenty of commitments and I cant handle a lot of things at the vary same moment. But I promise that I'll rejoin the group when I'm ready.

Assalamualaikum.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 12, 2008

3

Wireless go into Monitor with Injection Support

I've been experimenting to use aircrack to test out Access Point(AP) security for about a month and a half now, and i used to do it with 3 wireless card that I own which is Broadcom(Built-in on my laptop), rt73usb(which is a USB wireless Device) and ZD1211rw(also a USB device).

Formerly, I have to patch my modules in order to make the cards to go into monitor mode so that it could be used with aircrack suite. All the hard work will paid out if you successfully patch your cards. But to find the right patch is the most hard part as not every patch is suitable with your chipset.

But, i notice somthing different on the latest linux kernel(maybe it might be working too on BSD's kernel), you dont have to patch your card to change your wireless mode into monitor-mode. But this is only tested on Mac80211 cards only. As far as I'm concern, b43(latest driver for broadcom), rt73usb and zd1211rw - all of this card happened to be mac80211 cards on kernel 2.6.24 and higher.

So al you need to do is install the iw application. So how to install 'iw'? It took a few steps to install 'iw'. But even a new linux user could install this without any problems. First all you have to do is install all the requirements needed by 'iw' in order to function.

sudo apt-get update && sudp apt-get install libnl-dev libnl1 libnl1-pre6
Then when all the requirements has been installed, we may proceed to gathering the 'iw' source:
mkdir iw && cd iw
wget http://gunblade.fakap.net/tool/wireless/iw.tar.bz2 && tar xvjf iw.tar.bz2
And now proceed to the final step:
make && sudo ln -s iw /usr/sbin/iw
And we are done. So now you may try to install the aircrack from SVN by using subversion. There is a simpe tutorial on how to install this latest version of aircrack from by using subversion. But first you need to install subversion first by apt. More tutorial on how to install aircrack is on my previous post.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 11, 2008

0

Download Helper for Firefox 3 has been release

I've been waiting for this plugin called "Video DownloadHelper" for a few weeks. Formerly, this plugin work out of the box on Firefox 2.0 where this plugin help me a lot on downloading videos from Youtube, TV3 website and many more which I would reveal on this post.

The main purpose for this plugin is to make it possible for Firefox user to download the Flash Videos (.flv) files by a point-and-click procedure. It's rich in features where else, it could make a download queue and download one by one your queued files until it finish eventhough you have close the Firefox.

And about couple of days ago, the new version of Video Downloadhelper has been release especially to support Firefox 3. The plugin working fine without any problem as far as I'm using it. So now I can download youtube files on point click.

For those who interested to try this plugin, you must have firefox installed on your system(luckily, all ubuntu OS used firefox as default browser). All you got to do is click on the link here, and the installation popup will appear, just click install and you are done!

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

0

Ubuntu: Play Your Favourites Movie Using SopCast

SopCast is a streaming player for all ubuntu user who is interested to watch a show online/streaming. It contain a lot of channel such as HBO, EuroSports and many more. Plus this SopCast also have online movie to entertain the viewer.

For thos interested to have this application running on your Ubuntu Box, please follow this site on how to install QSopCast on Ubuntu. I follow this tutorial and it's working out of the box. No need to have TV Card to watch TV. All I need is a SopCast and I can get a lot of channels.

Did I mention it's a streaming media? Yes, you need to have internet access in order to play the TV online. Surely you will need at least a broadband connection to play a streaming television to have a good quality of video. For me, 1MB of streamyx line is good enough to watch HBO and Sports Channels.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 7, 2008

0

Compile X-chat 2.8.4 on Hardy

This tutorial is for those who would like to compile X-Chat 2.8.4 on their Hardy Heron. And learn to apply patch on the files manually. What is good about compiling application manually from source?

Binary Compatibility means that when something is updated, you continue to work without needing to even recompile.

Source Compatibility means that you need to recompile to keep things working, but you don't have to actually change the sources.

One is not a superset of the other. Here are some examples in each combo.

Compatibility generally doesn't just mean that the change is discoverable, but that the change has some significant breaking implication that would cause a reasonably client to need to adjust their behavior. (Of course, you always find afterwards that's some important client did something unexpected and you need to compensate. Hence the heroics of the AppCompat folks). For example, with C# + reflection, any change is discoverable, so any change could technically break a client; but if a client breaks because they're relying on the names of private methods that you changed, they're hard-pressed to complain.

Yes Binary + Yes Source:

Renaming private methods. Changing a method body in a way that continues to behave the same.

Yes Binary, Not Source:

Adding new method overloads. Since overload resolution is determined at compile time, adding new methods won't affect already-compiled binaries. But if you recompile, it's possible that you may bind to the new overloads. (For example, see float.Equals)

Not Binary, Yes Source:

In this case, you just need to recompile your sources to keep working. The compiler will respond to the change in a corrective way. For example, consider removing a method overload. At a binary level, the method you're bound to is removed and so things fail. But if you recompile, the compiler may bind to another overload that's semantically equivalent, and so things keep working without you having to change any source.

Not Binary, Not Source:

A real breaking change. This requires clients to update their sources and recompile. For example, removing a method.

Taken from Mike Stall's .NET

So, now you know the pro and cons of compiling an application from source. But if you are lazy to recompile on every version updates, then i'll recommend you to use binary installation, cause this will automatically do the updates for you.

Here is the way to compile X-Chat 2.8.4 in your kernel. First you need to get the source from the official x-chat website. Then, just extract the source tarball and run '.configure' , 'make' and 'sudo make install' . This steps will be enough to install the x-chat on your current ubuntu.
wget
tar xjf
cd
./configure
make
sudo make install
And you can see the differences at your ctcp version when you ctcp yourself on the irc server. Normal Ubuntu X-Chat(installed using apt-get) will only reply "VERSION xchat 2.8.4 Ubuntu" but in a manual compiled version of X-Chat, the ctcp reply will give also your current kernel version and machine type like this "VERSION xchat 2.8.4 Linux 2.6.25-gunblade [i686/1.46GHz]" .

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 5, 2008

0

Ubuntu: Hardy and Active Directory easy step


On previous ubuntu release, to get connected to Active Directory need a lot of work to do. But in Hardy release, all this step has been simple as a new package name "likewise-open" is being uploaded into Hardy's repository. Likewine Open is an application to make Linux to Active Directory easier to setup. Only a few clicks needed in order to make your linux ubuntu to get connected to Active Directory.

Likewise Open enables Linux, Unix and Mac authentication on a Microsoft network using Active Directory. A user can now interactively log in to the Linux, Unix or Mac machine using Active Directory credentials, and can access any kerberized services that the non-Windows machine hosts.

taken from likewise-open website
I was really pleased with the action taken by ubuntu to include this package into official repository as this is an important application being used by a lot of ubuntu user in order to access Active Directory which previously need to be setup my intermediate linux user.

You can download the package name 'likewise-open' by using your apt-get service by using this command:
sudo apt-get install likewise-open
As now, everyone could do the setup easily. And no more worries to get the files needed from your Office Active Directory server. But if you have encounter some problem using the new package of 'likewise-open' feel free to launch a bug report in launchpad.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 4, 2008

0

Ubuntu: Firefox-2 on hardy

I notice that the firefox 3 is still have some bugs. So here is the simple to this solution right now, "WAIT UNTIL THE FIREFOX HES BEEN OFFICIALLY RELEASE" . Why do you have to use the beta version? So mean while, please use the old Firefox 2.0. This step below will install you the previous version of firefox:

sudo apt-get install firefox-2
If somehow you still wanted to be a tester user to help firefox to improve and report the bugs in firefox 3, you can always use it by selecting at the "Application > Internet > Firefox 3" menu. So it's your choice.

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

May 3, 2008

16

Ubuntu: Kernel 2.6.25 on Hardy

Well, I've been playing and trying a new kernel stable release of 2.6.25 which is known to be compatible and will work on Ubuntu Hardy or any release. But as i'm using Hardy right now, so this tutorial will be on Hardy Heron environment. Well I strictly not recommend a beginner user to try this because this is not an official kernel for Hardy, so if anything goes wrong, you are the one who cause this(and me cuz writing this tutorial).

So I look on the www.kernel.org for a new stable release of 2.6.25 kernel and wonder if it can work with my new hardy heron. Here is the changes made in the new 2.6.25 kernel:

1. There are deeply invasive performance/scalability/latency fixes for CFS regressions (vs. 2.6.24) in the 2.6.25 tree. These fixes are too invasive to be ported to the 2.6.24 kernel without significant risk.

2. Many of the driver updates/new drivers in the kernel-ubuntu package are merged into upstream as of 2.6.25. (This is always true, but the smaller the delta against upstream the better on release day).

3. Fedora 9 is based on 2.6.25 which means that key RH kernel developers are aggressively working to get the feature and performance/scalability regressions vs. 2.6.18 & 22 fixed.

4. The kgdb patch will probably be merged at the start of the 2.6.26 cycle which means the delta vs. 2.6.25 kernel should be pretty manageable. This would be really valuable from an LTS ongoing perspective.

5. The RT patch will be better maintained (and smaller) against 2.6.25. (see #3)

6. Better virtualization and SELinux support (see #3).

Given the life-cycle of an LTS release (especially this one which will finally have a meaningful chance to enter the data center) these considerations are especially important.

Obviously 2.6.25 would have to be in addition to 2.6.24 for the Hardy 8.04 LTS release time-frame, but it does allow the aforementioned benefits to be propagated forward.

Taken from Ubuntu Brainstorm
So, if you are interested to try this new kernel on your ubuntu, please take note that if anything goes wrong, dont blame me or anyone as this is your decision to try this. By the way, take precautious step by not removing the standard hardy kernel which is 2.6.24 version to turn back if anything goes wrong.

Here we go~

  • First of all, make sure your system has everything that a system need in order to compile a kernel. Please sudo apt-get the dependencies:
sudo apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev
  • Then go into /usr/src directory
cd /usr/src
  • Make yourself a root:
sudo -s
  • Download the kernel from kernel.org and extract:
wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2 && tar -xvjf linux-2.6.25.tar.bz2
  • Remove the link to linux directory, and make a new link to the new kernel:
rm -rf linux && ln -s /usr/src/linux-2.6.25 linux && cd /usr/src/linux
  • NOTE: If you need to patch your kernel, please patch it now before we proceed to the next step.
  • Now import the current kernel config:
cp /boot/config-`uname -r` .config && make oldconfig
  • Configure the kernel (I will only cover my way of compiling, there is several ways to do this, but this is how i do it)
make menuconfig
  • Now it's time for us to build our kernel.
make-kpkg clean
  • And continue with:
make-kpkg --initrd --revision=386 kernel_image kernel_headers modules_image
  • Note that you can chage *386 with any name you like such as "k7" or "686"... Now It will take about 2-3 hours to comp