Tuesday, July 26, 2011

Play MP3 on Fedora 15

How to setup Fedora 15 to be able to play MP3
Links: Reference


Yay! If you are reading this, it’s because you make a fresh install of the new Fedora 15, then import your library music, open banshe/rhythmbox and no mp3 plugin detected, ok, click on search, but! nothing is found…Wow..what can I do now? I can’t live without my music!!!!

No worries, me too ;-)

First, we need to check if we have rpmfusion repository:

ls /etc/yum.repos.d/ | grep rpmfusion



1. Install rpmfusion

[root@localhost alexm]# yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm


2. Install gstreamer plugins

[root@localhost alexm]# yum install gstreamer-plugins-bad gstreamer-ffmpeg -y

Here is the installation log.



[root@localhost alexm]# yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Local Package Process
rpmfusion-free-release-stable.noarch.rpm | 18 kB 00:00
Examining /var/tmp/yum-root-PKi4lB/rpmfusion-free-release-stable.noarch.rpm: rpmfusion-free-release-13-4.noarch
Marking /var/tmp/yum-root-PKi4lB/rpmfusion-free-release-stable.noarch.rpm to be installed
rpmfusion-nonfree-release-stable.noarch.rpm | 18 kB 00:00
Examining /var/tmp/yum-root-PKi4lB/rpmfusion-nonfree-release-stable.noarch.rpm: rpmfusion-nonfree-release-13-4.noarch
Marking /var/tmp/yum-root-PKi4lB/rpmfusion-nonfree-release-stable.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rpmfusion-free-release.noarch 0:13-4 will be installed
---> Package rpmfusion-nonfree-release.noarch 0:13-4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version
Repository Size
================================================================================
Installing:
rpmfusion-free-release
noarch 13-4 /rpmfusion-free-release-stable.noarch 12 k
rpmfusion-nonfree-release
noarch 13-4 /rpmfusion-nonfree-release-stable.noarch 12 k

Transaction Summary
================================================================================
Install 2 Package(s)

Total size: 23 k
Installed size: 23 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : rpmfusion-free-release-13-4.noarch 1/2
Installing : rpmfusion-nonfree-release-13-4.noarch 2/2

Installed:
rpmfusion-free-release.noarch 0:13-4 rpmfusion-nonfree-release.noarch 0:13-4

Complete!

[root@localhost alexm]# yum install gstreamer-plugins-bad gstreamer-ffmpeg -y
Loaded plugins: langpacks, presto, refresh-packagekit
rpmfusion-free | 3.3 kB 00:00
rpmfusion-free/primary_db | 315 kB 00:00
rpmfusion-free/group | 9.8 kB 00:00
rpmfusion-free-updates | 2.7 kB 00:00
rpmfusion-free-updates/primary_db | 154 kB 00:00
rpmfusion-nonfree | 3.3 kB 00:00
rpmfusion-nonfree/primary_db | 109 kB 00:00
rpmfusion-nonfree/group | 4.7 kB 00:00
rpmfusion-nonfree-updates | 2.7 kB 00:00
rpmfusion-nonfree-updates/primary_db | 43 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gstreamer-ffmpeg.i686 0:0.10.11-2.fc15 will be installed
--> Processing Dependency: libavformat.so.52 for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libswscale.so.0 for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libavformat.so.52(LIBAVFORMAT_52) for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libpostproc.so.51 for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libavcodec.so.52(LIBAVCODEC_52) for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libavutil.so.50 for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libswscale.so.0(LIBSWSCALE_0) for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libpostproc.so.51(LIBPOSTPROC_51) for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libavutil.so.50(LIBAVUTIL_50) for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
--> Processing Dependency: libavcodec.so.52 for package: gstreamer-ffmpeg-0.10.11-2.fc15.i686
---> Package gstreamer-plugins-bad.i686 0:0.10.22-1.fc15 will be installed
--> Processing Dependency: libdca.so.0 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: libmimic.so.0 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: librtmp.so.0 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: libmpeg2encpp-1.9.so.0 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: libmms.so.0 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: libxvidcore.so.4 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: libfaad.so.2 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: libmjpegutils-1.9.so.0 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Processing Dependency: libmplex2-1.9.so.0 for package: gstreamer-plugins-bad-0.10.22-1.fc15.i686
--> Running transaction check
---> Package faad2-libs.i586 1:2.7-1.fc11 will be installed
---> Package ffmpeg-libs.i686 0:0.7-0.3.20110612git.fc15 will be installed
--> Processing Dependency: libva.so.1 for package: ffmpeg-libs-0.7-0.3.20110612git.fc15.i686
--> Processing Dependency: libmp3lame.so.0 for package: ffmpeg-libs-0.7-0.3.20110612git.fc15.i686
--> Processing Dependency: libx264.so.114 for package: ffmpeg-libs-0.7-0.3.20110612git.fc15.i686
---> Package libdca.i686 0:0.0.5-5.fc12 will be installed
---> Package libmimic.i686 0:1.0.4-4.fc12 will be installed
---> Package libmms.i686 0:0.6.2-1.fc15 will be installed
---> Package librtmp.i686 0:2.3-2.fc14 will be installed
---> Package mjpegtools-libs.i686 0:1.9.0-2.fc14 will be installed
--> Processing Dependency: libquicktime >= 0.9.8 for package: mjpegtools-libs-1.9.0-2.fc14.i686
--> Processing Dependency: libSDL-1.2.so.0 for package: mjpegtools-libs-1.9.0-2.fc14.i686
--> Processing Dependency: libquicktime.so.0 for package: mjpegtools-libs-1.9.0-2.fc14.i686
---> Package xvidcore.i686 0:1.3.2-2.fc15 will be installed
--> Running transaction check
---> Package SDL.i686 0:1.2.14-11.fc15 will be installed
---> Package lame-libs.i686 0:3.98.4-1.fc14 will be installed
---> Package libquicktime.i686 0:1.2.2-2.fc15 will be installed
---> Package libva.i686 0:1.0.13-2.fc15 will be installed
---> Package x264-libs.i686 0:0.0.0-0.29.20110227.fc15 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gstreamer-ffmpeg i686 0.10.11-2.fc15 rpmfusion-free 186 k
gstreamer-plugins-bad
i686 0.10.22-1.fc15 rpmfusion-free-updates 148 k
Installing for dependencies:
SDL i686 1.2.14-11.fc15 fedora 201 k
faad2-libs i586 1:2.7-1.fc11 rpmfusion-free 169 k
ffmpeg-libs i686 0.7-0.3.20110612git.fc15 rpmfusion-free-updates 2.9 M
lame-libs i686 3.98.4-1.fc14 rpmfusion-free 245 k
libdca i686 0.0.5-5.fc12 rpmfusion-free 101 k
libmimic i686 1.0.4-4.fc12 rpmfusion-free 28 k
libmms i686 0.6.2-1.fc15 rpmfusion-free 47 k
libquicktime i686 1.2.2-2.fc15 rpmfusion-free 288 k
librtmp i686 2.3-2.fc14 rpmfusion-free 55 k
libva i686 1.0.13-2.fc15 updates 51 k
mjpegtools-libs i686 1.9.0-2.fc14 rpmfusion-free 232 k
x264-libs i686 0.0.0-0.29.20110227.fc15 rpmfusion-free 345 k
xvidcore i686 1.3.2-2.fc15 rpmfusion-free-updates 244 k

Transaction Summary
================================================================================
Install 15 Package(s)

Total download size: 5.2 M
Installed size: 15 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 5.2 M
http://fedora.mirrors.pair.com/linux/releases/15/Everything/i386/os/Packages/SDL-1.2.14-11.fc15.i686.rpm: [Errno 12] Timeout on http://fedora.mirrors.pair.com/linux/releases/15/Everything/i386/os/Packages/SDL-1.2.14-11.fc15.i686.rpm: (28, '')
Trying other mirror.
(1/15): SDL-1.2.14-11.fc15.i686.rpm | 201 kB 00:01
(2/15): faad2-libs-2.7-1.fc11.i586.rpm | 169 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 00a4d52b: NOKEY
Public key for faad2-libs-2.7-1.fc11.i586.rpm is not installed
(3/15): ffmpeg-libs-0.7-0.3.20110612git.fc15.i686.rpm | 2.9 MB 00:02
Public key for ffmpeg-libs-0.7-0.3.20110612git.fc15.i686.rpm is not installed
(4/15): gstreamer-ffmpeg-0.10.11-2.fc15.i686.rpm | 186 kB 00:00
(5/15): gstreamer-plugins-bad-0.10.22-1.fc15.i686.rpm | 148 kB 00:00
(6/15): lame-libs-3.98.4-1.fc14.i686.rpm | 245 kB 00:00
(7/15): libdca-0.0.5-5.fc12.i686.rpm | 101 kB 00:01
(8/15): libmimic-1.0.4-4.fc12.i686.rpm | 28 kB 00:00
(9/15): libmms-0.6.2-1.fc15.i686.rpm | 47 kB 00:00
(10/15): libquicktime-1.2.2-2.fc15.i686.rpm | 288 kB 00:00
(11/15): librtmp-2.3-2.fc14.i686.rpm | 55 kB 00:00
(12/15): libva-1.0.13-2.fc15.i686.rpm | 51 kB 00:00
(13/15): mjpegtools-libs-1.9.0-2.fc14.i686.rpm | 232 kB 00:00
(14/15): x264-libs-0.0.0-0.29.20110227.fc15.i686.rpm | 345 kB 00:00
(15/15): xvidcore-1.3.2-2.fc15.i686.rpm | 244 kB 00:00
--------------------------------------------------------------------------------
Total 109 kB/s | 5.2 MB 00:49
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-15-i386
Importing GPG key 0x00A4D52B:
Userid : RPM Fusion free repository for Fedora (15)
Package: rpmfusion-free-release-13-4.noarch (@/rpmfusion-free-release-stable.noarch)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-15-i386
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:faad2-libs-2.7-1.fc11.i586 1/15
Installing : lame-libs-3.98.4-1.fc14.i686 2/15
Installing : x264-libs-0.0.0-0.29.20110227.fc15.i686 3/15
Installing : xvidcore-1.3.2-2.fc15.i686 4/15
Installing : librtmp-2.3-2.fc14.i686 5/15
Installing : SDL-1.2.14-11.fc15.i686 6/15
Installing : libdca-0.0.5-5.fc12.i686 7/15
Installing : libmimic-1.0.4-4.fc12.i686 8/15
Installing : libmms-0.6.2-1.fc15.i686 9/15
Installing : libva-1.0.13-2.fc15.i686 10/15
Installing : ffmpeg-libs-0.7-0.3.20110612git.fc15.i686 11/15
Installing : libquicktime-1.2.2-2.fc15.i686 12/15
Installing : mjpegtools-libs-1.9.0-2.fc14.i686 13/15
Installing : gstreamer-plugins-bad-0.10.22-1.fc15.i686 14/15
Installing : gstreamer-ffmpeg-0.10.11-2.fc15.i686 15/15

Installed:
gstreamer-ffmpeg.i686 0:0.10.11-2.fc15
gstreamer-plugins-bad.i686 0:0.10.22-1.fc15

Dependency Installed:
SDL.i686 0:1.2.14-11.fc15
faad2-libs.i586 1:2.7-1.fc11
ffmpeg-libs.i686 0:0.7-0.3.20110612git.fc15
lame-libs.i686 0:3.98.4-1.fc14
libdca.i686 0:0.0.5-5.fc12
libmimic.i686 0:1.0.4-4.fc12
libmms.i686 0:0.6.2-1.fc15
libquicktime.i686 0:1.2.2-2.fc15
librtmp.i686 0:2.3-2.fc14
libva.i686 0:1.0.13-2.fc15
mjpegtools-libs.i686 0:1.9.0-2.fc14
x264-libs.i686 0:0.0.0-0.29.20110227.fc15
xvidcore.i686 0:1.3.2-2.fc15

Complete!
[root@localhost alexm]#

Saturday, July 16, 2011

Setting Maven2 and Subversion in Ubuntu

Setting up Apache Maven 2.2.1 (rdebian-4) and Subversion version 1.6.12 (r955767) in
Linux ubuntu 2.6.38-8-generic on VMWare Player 3.1.4 build-385536

1. Install maven 2
root@ubuntu:/etc# apt-get install maven2

2. Check version of maven2 install
root@ubuntu:/etc# mvn --version

3. Install subversion
root@ubuntu:/etc# apt-get install subversion

4. Check subversion version
root@ubuntu:/etc# svn --version

Saturday, July 9, 2011

Updating the root password in Ubuntu after install

1. Open a terminal window
alexm@ubuntu:~$

2. Change the default root password
alexm@ubuntu:~$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully


3. Try to login as root
alexm@ubuntu:~$ su root
Password:

root@ubuntu:/home/alexm#

Dual-boot with Windows 7 Ultimate and Fedora 15

Monday, June 20, 2011

Rooting the Samsung Vibrant

* Note this post is a re-post from http://droiditude.com/?p=6*

WARNING! Rooting your device could easily and permanently screw up your phone, or in other words it will not be usable for anything other than a paper weight. And rooting your device may also void your warranty and may also be illegal where you live. Below if a video of how to root and unroot a Samsung Vibrant is located here. I rooted my Vibrant so I could test a bunch of apps that require root access.

The following instructions are modified from XDA-Developers.
Windows Instructions

1. Download the GalaxyS_Vibrant_One-Click_Root.rar application.
2. Make sure your phone is on USB Debug mode: (MENU > Settings > Applications > http://www.blogger.com/img/blank.gifDevelopement > USB debugging = Checked )
3. You probably have the Samsung USB Drivers already installed. If your computer doesn’t recognize your phone when you plug it in via USB, try these Samsung drivers.
4. Extract the contents of the software you downloaded in step 1(GalaxyS_Vibrant_One-Click_Root.rar) to a folder.
5. Connect your phone to your PC via the USB cable and launch the file “T-Mobile Vibrant One-Click Root.exe” file. I checked the file for viruses. My tests came back clean.
6. Click the “One-Click Root” button. This will launch a command shell follow the instructions in the video.

Tuesday, June 14, 2011

Recovery of Files deleted during Fedora 15 Upgrade

Scenario:
The current system is currently using the Fedora 14 OS. Several files are existing in the /media/usrOSBak and /media/usrbak. These folders contains some .jpg, docs, xls, iso, exe and some other file types. The system was upgraded to Fedora 15 using the pre-upgrade. After the upgrade, the two folders were deleted during the install.

Recovery:
By using the testdisk for Linux, the folders may be recovered by the following steps
0. DO NOT USE THE LINUX PARTITION UNTIL YOU HAVE CONDUCTED THE RECOVERY OF THE FILES.
1. Download and unzip the testdisk into a Linux partition. DO NOT USE THE PARTITION WHERE YOU ARE RECOVERING THE FILES!. You may overwrite the files you are planning to recover. It would be best if you can use a usb drive formatted in Linux.
2. Sudo as root
3. Make the testdisk_static to executable by: # chmod a+x testdisk_static.
4. Run the testdisk by: # ./testdisk_static
5. Select a media -> Disk /dev/sda (where your Fedora 15 is now residing) -> Proceed
6. Please select the partition table type, press Enter when done.
Select the [Intel] Intel/PC partition and then press Enter
7. Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
Select [Advanced] Filesystem Utils and press Enter
Select 3 P Linux [_Fedora-14-i686] and then use the left arrow to select [List] and press Enter
8. Use the down arrow key to go to the 'media' folder and press Enter.
9. Use the down arrow key to go to the 'OSBAK' folder and press c (lower case)
10. Select the destination to the mounted usb drive. DO NOT RESTORE INTO THE SAME PARTITION, USE AN EXTERNAL DRIVE!
11. Use the down arrow key to go to the 'usrbak' folder and press Enter.
12. Select the destination to the mounted usb drive. DO NOT RESTORE INTO THE SAME PARTITION, USE AN EXTERNAL DRIVE!
13. Verify that the files are not corrupted before using the Linux box again.

Note:
Try to upgrade next time using the yum option
see: Upgrading using yum

Thursday, June 9, 2011

Coby Kyros Android Tablet MID7015 Step by Step

Coby Kyros Android Tablet MID7015 Step by Step by Phase3D
URL: http://www.youtube.com/watch?v=clGKXHjY548

Coby Kyros Android Tablet MID7015 Step by Step. Shows a step by step guide to installing root, clockworkmod recovery, and google apps/market. Please leave comments, and questions.

Most of these files are being hosted for FREE by Dropbox for you to download. Would you please click this link, and signup for a FREE Dropbox account. If you do nothing else to show your support, at lease signup for a FREE Dropbox account at this link: http://db.tt/MRMfAS4

Old Update.zip:
http://db.tt/tUQ3I0m

flash_image
http://db.tt/JJ9CPUM

Z4root:
http://db.tt/PRyCPWS

Recover.img:
http://db.tt/kgAIVuG

Google Apps/Market:
http://db.tt/ntmAv1y

Terminal Emulator:
https://github.com/downloads/jackpal/Android-Terminal-Emulator/Term.apk

Most of these files are being hosted for FREE by Dropbox for you to download. Would you please click this link, and signup for a FREE Dropbox account. If you do nothing else to show your support, at lease signup for a FREE Dropbox account at this link: http://db.tt/MRMfAS4

If you are having the missing file error (file not found error), then run this fix:

You need to grab the flash_image file from the link in the description above, and put it in the root of the sdcard then:

Open your Teminal Emulator

Type the following:

SU (enter)

cp /sdcard/flash_image /system/bin/flash_image (enter)

chown root.shell /system/bin/flash_image (enter)

chmod 0755 /system/bin/flash_image (enter)

flash_image recovery /sdcard/recovery.img (enter)

reboot recovery (enter)

Now ClockworkMod recovery should come up after reboot. You want to pick install zip from sdcard. Then pick the google apps zip file tell it yes to install, and once that is done go back and reboot system. Let me know if you run into any problems.

Most of these files are being hosted for FREE by Dropbox for you to download. Would you please click this link, and signup for a FREE Dropbox account. If you do nothing else to show your support, at lease signup for a FREE Dropbox account at this link: http://db.tt/MRMfAS4

PLEASE REMEMBER YOU DO THIS AT YOUR OWN RISK! I'M NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE!

Sunday, June 5, 2011

Installing Adobe Reader in Coby Kyros 7015

I'm using Adobe. I just went to
Adobe - Adobe Reader download - All versions
selected:
Android
English
Android X English for Android
then [Download now]
Use the USB to copy it to the MID7015 to /nand/ if you don't have an SD card or to /sdcard/ if you do.
Then use a file browser like FileBrowser by Jimmy Wahlberg - go to the file and click to open it. When it asks install? say Yes. Done.
Adobe's version is fine. It's faster and nicer than PDF Viewer, which I then uninstalled.

But still this MID7015 seems very slow compared to my three core desktop PC. - 1 core at 800 MHz vs. 3 cores at 2.8 GHz - not a fair comparison.

Edit:
I didn't try downloading it on the MID7015 - I guess I could have - I just tested it - works but now I have to find where the download was stored.

Tuesday, February 22, 2011

Creating and Mounting ISO CD images

Make an image
[root]# mkisofs -J -r -T -o newcd.iso /home/myfiles

Mount the ISO image file
[root]# mount -t iso9660 -o loop newcd.iso /mnt/test-cd

Burn CD image
[root]# cdrecord -v speed=2 dev='/dev/scd0' newcd.iso

Burn DVD image
[root]# dvdrecord -v speed=1 -dao dev=0,1,0 newcd.iso

Mount the CD-ROM
[root]# mount -t iso9660 -o loop /dev/hdc /mnt/cdrom

Sunday, February 20, 2011

Using Text in formula by using the INDIRECT function

Using Text in formula by using the INDIRECT function in OpenOffice Calc

Additional Link


C7=1
D7="Sheet1"
E1=2
Reference Sheet Name="Sheet1"
Current Sheet Name="Summary"

Formula:
=VLOOKUP($C7; INDIRECT(CONCATENATE($D7;".$B$3:$I$21")); E$1; 0)