CyanogenMod 6 & [INSTALL_FAILED_CONTAINER_ERROR] fix

Aug 10th, 2010

After updating to CyanogenMod 6 (in my case 6.0.0 RC2) I was faced with a rather big problem. More then 50% failure in application installation. After running a manual install using the ‘adb’ tool and tracing the log output with ‘logcat’ it turned out that each failure was acompanied with an error indicating that ‘smd12tmp1.asec’ file already exists, while the manual installation command (./adb install package.apk) errored out with “Failure [INSTALL_FAILED_CONTAINER_ERROR]“.

The next logical step was to remove the offending file and retry installing the packages that failed. To remove the file, start the shell:

./adb shell

and

rm /mnt/secure/asec/smdl2tmp1.asec
This only happened when Android was configured to install packages in the external storage. Installing internally worked well but was limited to however much space was left.
  • Share/Bookmark

“The open-source entrepreneur” – Red Hat Story.

Jun 16th, 2010

An interesting blog post from BBC’s dot.Maggie about the early days of Red Hat and its founder’s road to success. For those without ADD there’s an interesting fact mentioned somewhere at the end of it.

From the outset, his software company Red Hat bucked the trend set by the big players like Microsoft which stubbornly guarded every line of code and charged whopping fees to maintain it.

Red Hat’s approach was unusual at the time and relied on free software developed by an open-source community. Customers were given the right to change the code any way they liked and Red Hat sold services to make sure it all worked.”

Read more at http://www.bbc.co.uk/blogs/thereporters/maggieshiels/2010/06/the_open_source_entrepreneur.html

  • Share/Bookmark
Tags: , ,

Windows 7 God Mode

Feb 4th, 2010

Windows 7 “God Mode”

Even though I haven’t really covered anything Windows related, it’s still an operating system, and I’m still a system admin with interest in those things, so naturally this seems like a pretty cool OS trick worth mentioning. And cool trick it is. Basically, ‘God Mode’ in Windows 7 allows to put all of system configuration utilities into one central place. So by using one shortcut to a single window with links to all system tools, one is able to basically configure every possible aspect of the operating system from one central place. Almost like playing your own personal computer God.

To achieve this awesome level of Godness one must do the following:

- go to whatever location in the file system (ex. Desktop) and create a new folder with the following name: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
- once the folder icon changes, double click and wreck havoc.

selection_018
  • Share/Bookmark

fdupes: Find and Delete Duplicate Files in Linux

Feb 3rd, 2010

As it’s man page says: “fdupes – finds duplicate files in a given set of directories”. I don’t think it requires any more explanation. It’s a very simple program, which purpose is to go through all files in a given directory and find duplicate copies of files based on file sized, MD5 checksum signatures, and byte-by-byte comparison.

Name: fdupes
Arch: x86_64
Version: 1.50
Release: 0.2.PR2.fc12
Size: 34 k
Repo: installed
From repo: fedora
Summary: Finds duplicate files in a given set of directories
URL: http://netdial.caribe.net/~adrian2/fdupes.html
License: MIT
Description: FDUPES is a program for identifying duplicate files residing within specified directories.

To install it on Fedora:
#yum install fdupes

To find duplicates in a single directory:
#fdupes /dir

To find duplicates recursively:
#fdupes -r /dir

To omit first file in the matches output, which may be useful in piping the output to a different command:
#fdupes -f /dir

To show size of identical files:
#fdupes -S /dir

To delete files in the output:
#fdupes -d /dir

  • Share/Bookmark

Itasca Police Department Subaru Meet

Jan 14th, 2010

  • Share/Bookmark
Tags: , ,

How to enable network bridging for VirtualBox on Fedora 12

Jan 6th, 2010

First install ‘bridge-utils’:

yum install bridge-utils

Next, create this file:

/etc/sysconfig/network-scripts/ifcfg-br0

And add the following settings to it:

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.100 #enter the IP you use for the host machine here
NETMASK=255.255.255.0 #enter the correct subnet mask for your network
GATEWAY=192.168.0.1 #enter the correct default gateway for your network
DELAY=0
STP=off

Add this line to the end of /etc/sysconfig/network-scripts/ifcfg-eth0

BRIDGE=br0

Restart virtualbox service:

service vboxdrv restart

Go into a virtual guest Settings and change the Networking settings accordingly:
Settings -> Network -> Attached To: Bridged Adapter -> Name: br0

  • Share/Bookmark

The Easy Way: Skype on Fedora 12

Jan 5th, 2010

In order to install Skype on Fedora 12 Linux follow these simple steps.

Create a new ‘repo’ file as root on command line:

vi /etc/yum.repos.d/skype.repo

Copy and paste the following into the newly created file:

[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
enabled=1
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
gpgcheck=0

Finally, install Skype:

yum -y install skype

From now on, everytime you update your system Skype will be updated as well, as long as there is a new version out.

  • Share/Bookmark

The Easy Way: Broadcom Corporation BCM4328 802.11a/b/g/n Network Card Driver on Fedora 12.

Jan 3rd, 2010

Broadcom has a proprietary linux driver that works with a Broadcom Corporation BCM4328 802.11a/b/g/n network card. It’s available in the rpmfusion repository.

As root, install the rpmfusion repo rpms:

rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm

Next, Install the broadcom driver:

yum install broadcom-wl

Finally, blacklist the b43 module from being loaded into the kernel and conflicting with the broadcom driver.

vim /etc/modprobe.d/blacklist.conf

blacklist bcm43xx_mac80211
blacklist b43-pci
blacklist b43

Reboot and connect.

  • Share/Bookmark

Fedora 12 and Intel HD Audio adapters Clicking and Cracking Noise Solution

Jan 3rd, 2010

If your speakers produce an annoying cracking sound every 5 seconds or so and your system happens to be equipped with an Intel based sound card then no worries, it’s a bug (Bugzilla 539304) that can be quickly fixed by doing this:

As root, type this on the command line:

echo 0 > /sys/module/snd_hda_intel/parameters/power_save

However, this change will be lost next time you reboot the system so add the same line to /etc/rc.local as root.

  • Share/Bookmark

Manpage of the Week: man condom

Dec 30th, 2009

NAME

condom –protection against viruses and prevention of child processes

SYNOPSIS

condom [options] [processid]

DESCRIPTION

condom provides protection against System Transmitted Viruses (STVs) that may invade your system. Although the spread of such viruses across a network can only be abated by aware and cautious users, condom is the only highly effective means of preventing viruses from entering your system (see celibacy(1)). Any data passed to condom by the protected process will be blocked, as specified by the value of the -s option (see OPTIONS below). condom is known to defend against the following viruses and other

malicious afflictions:

. AIDS
. Herpes Simplex (genital varieties)
. Syphilis
. Crabs
. Genital warts
. Gonhorrea
. Chlamydia
. Michelangelo
. Jerusalem

When used alone or in conjunction with pill(1), sponge(1), foam(1), and/or setiud(3), condom also prevents the conception of a child process. If invoked from within a synchronous process, condom has, by default, an 80% chance of reventing the external processes from becoming parent processes (see the -s option below). When other process contraceptives are used, the chance of preventing a child process from being forked becomes much greater. See pill(1), sponge(1), foam(1), setiud(3) for more information.

If no options are given, the current user’s login process (as determined by the environment variable USER) is protected with a Trojan rough-cut latex condom without a reservoir tip. The optional “processid” argument is an integer specifying the process to protect.

NOTE: condom may only be used with a hard disk. condom will terminate abnormally with exit code -1 if used with a floppy disk (see DIAGNOSTICS below).

OPTIONS

The following options may be given to condom:

-bbrand

brands are as follows:

trojan (default)
ramses
sheik
goldcoin
fourex

-m material
The valid materials are:

latex (default)
saranwrap
membrane

WARNING! The membrane option is not endorsed by the System Administrator General as an effective barrier against certain viruses. It is supported only for the sake of tradition.

-f flavor
The following flavors are currently supported:

plain (default)
apple
banana
cherry
cinnamon
licorice
orange
peppermint
raspberry
spearmint
strawberry

-r Toggle reservoir tip (default is no reservoir tip)

-s strength
strength is an integer between 20 and 100 specifying the resilience of condom against data passed to condom by the protected process. Using a larger value of strength increases condom’s protective abilities, but also reduces interprocess communication. A smaller value of strength increases interprocess communication, but also increases the likelihood of a security breach. An extremely vigorous process or one passing an enormous amount of data to condom will increase the chance of condom’s failure. The default strength is 80%.

-t texture
Valid textures are:

rough (default)
ribbed
bumps
lubricated
(provides smoother interaction between processes)

WARNING: The use of an external application to condom in order to reduce friction between processes has been proven in benchmark tests to decrease condom’s strength factor! If execution speed is important to your process, use the “-t lubricated” option.

DIAGNOSTICS

condom terminates with one of the following exit codes:

-1 An attempt was made to use condom on a floppy disk.

0 condom exited successfully (no data was passed to the synchronous process).

1 condom failed and data was allowed through. The danger of transmission of an STV or the forking of a child process is inversely proportional to the number of other protections employed and is directly proportional to the ages of the processes involved.

BUGS

condom is NOT 100% effective at preventing a child process from being forked or at deterring the invasion of a virus (although the System Administrator General has deemed that condom is the most effective means of preventing the spread of system transmitted viruses). See celibacy(1) for information on a 100% effective program for preventing these problems.

Remember, the use of sex(1) and other related routines should only occur between mature, consenting processes. If you must use sex(1), please employ condom to protect your process and your synchronous process. If we are all responsible, we can stop the spread of STVs.

AUTHORS and HISTORY

The original version of condom was released in Roman times and was only marginally effective. With the advent of modern technology, condom now supports many more options and is much more effective.

The current release of condom was written by Ken Maupin at the University of Washington (maupin@cs.washington.edu) and was last updated on 10/7/92.

SEE ALSO

celibacy(1), sex(1), pill(1), sponge(1), foam(1), setiud(3)

  • Share/Bookmark