Category Archives: Uncategorized

I had to reinstall kde plasma desktop, and somehow at the end, got this error:

could not perform immediate configuration on phonon-backend-vlc. It referred to a man page that was less than useful.

At the end it seemed that it was some kind of “protection” which is triggered on huge installs.

So I figured out that I had to install the offending package by itself. I located the package in the cache and did this:

dpkg -i /var/cache/apt/archives/phonon-backend-vlc_0.6.0-1_i386.deb

Upon which it spurted out dependency issues. So:

apt-get -f install phonon-backend-vlc

which seemed to work.

Then I continued the failed installation:

apt-get -y install kde-plasma-desktop

It resumes downloads and loops till the file is downloaded. On  the anvil-A conf file which can be parsed for list of urls.

It even shuts down after a predetermined interval.

#!/bin/bash
url="$1"
#export CURLOPT_CONNECTTIMEOUT=200000
#export CURLOPT_TIMEOUT=200000

#See if the last char in path is a slash. Else add it
#lchr=`expr substr $targetDIR ${#targetDIR} 1`
#lchr=${targetDIR#${targetDIR%?}}
minstoshutdown=120

sudo shutdown -h +$minstoshutdown &

sleeptime=10
syntax="\
Syntax:
cdown [URL]"

if [ "$url" = "" ]
then
echo "You need to url a file to upload!"
echo $syntax
exit 1
fi

coman="curl -C - -J -O $url"
echo "Command is :"
echo $coman

excode=1
text="Starting download...."
tries=0

while [ "$excode" -ne "0" ];
do
echo
let tries++
echo $text$tries
eval $coman

excode=$?

echo
echo "Exited with code - $excode"
echo
if [ "$excode" -eq "6" ]
then
echo "Your internet connection seems to be down!"
fi
echo "Waiting $sleeptime secs before trying again..."
sleep $sleeptime;
text="Restarting download...Attempt No: "
done

if [ "$excode" -eq "0" ]
then
echo "Completed upload after $tries tries"
else
echo "Tried $tries times. Upload was interrupted."
fi[/code]
 

I needed fuseiso to mount .iso files in a non root ssh envt.

So I needed to compile fuseiso first.

To compile fuseiso, you need to first compile libfuse.

cd ~/sources
wget http://nchc.dl.sourceforge.net/project/fuseiso/fuseiso/20070708/fuseiso-20070708.tar.bz2 (Dynamic link)
tar -jxvvf fuseiso-20070708.tar.bz2
cd fuseiso-20070708/
mkdir ~/myapps/fuse
./configure --prefix=/home/droidzone/myapps/fuse

 

This led to an error stating that it needed libfuse.

cd ..
wget http://nchc.dl.sourceforge.net/project/fuse/fuse-2.X/2.9.2/fuse-2.9.2.tar.gz
tar -xvvf fuse-2.9.2.tar.gz
cd fuse-2.9.2/
./configure --prefix=/home/droidzone/myapps/fuse
make
make install

Interestingly the program errored out, as even though I had given a prefix directory, it seemed to be trying to install certain stuff in root directiries. Even more interestingly I found that even though it terminated with an error, I found the following compilation message:

Libraries have been installed in:
/home/droidzone/myapps/fuse/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR’
flag during linking and do at least one of the following:
– add LIBDIR to the `LD_LIBRARY_PATH’ environment variable
during execution
– add LIBDIR to the `LD_RUN_PATH’ environment variable
during linking
– use the `-Wl,-rpath -Wl,LIBDIR’ linker flag
– have your system administrator add LIBDIR to `/etc/ld.so.conf’

Sure enough, it seemed to have compiled all headers and libraries fine. So I decided to try building fuseiso anyway.

cd ../fuseiso-20070708

export LD_LIBRARY_PATH="/home/droidzone/myapps/fuse/lib"
export LD_RUN_PATH="/home/droidzone/myapps/fuse/lib"
export LDFLAGS="-L/home/droidzone/myapps/fuse/lib"
export CPPFLAGS="-I/home/droidzone/myapps/fuse/include"

./configure --prefix=/home/droidzone/myapps/fuse
make

Though it configured fine, it errored out during make

Package fuse was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘fuse’ found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘glib-2.0’ found

I needed to export these flags because it seemed to have difficulty while configuring, in locatin these libraries and includes of libfuse.

 

For some reason Network manager detects my modem but does not connect it. After adding udev rules nothing happened. Finally I ran across this script called Sakis3G which claimed to be a script working for multiple devices. It worked.

Configuration for Sakis3G

Connect the modem to USB

Download Sakis3G. Choose the i386 version.

chmod +x sakis3g
./sakis3g --interactive

 

Choose action for Sakis3G script: Connect with 3G

Modem category: USB device

USB device: Huawei mobile

Interface: Interface #0

Select APN: Internet (for Idea 3G)

Username: u (anything will do)

Password: p (anything will do)

 

Finally it says E173 connected to Idea

 

Connection Info

Connection Information

Interface: P-t-P (ppp0)

Connected since: 2012-12-02 11:02
Kilobytes received: 1634
Kilobytes sent: 194

Network ID: 40419
Operator name: !dea
APN: internet
internet

Modem: E173
Modem type: USB
Kernel driver: option
Device: /dev/ttyUSB0

IP Address: 1.187.159.6
Subnet Mask: 255.255.255.255
Peer IP Address: 10.64.64.64
Default route(s): 10.64.64.64

 

Rooting

Before using Odin, you have to enable debug mode. For this, Settings>Developer options>Enable USB Debugging. Enable the setting.

Download the latest CF Autoroot from Chainfire’s thread on XDA and copy it to a known location on your PC.

Shutdown the phone.

Reboot in DOWNLOAD mode (“Vol -” + Home + Power button). Keep all three buttons depressed.

Now, download Odin and open it.

Choose the .tar file extracted from the CF Autoroot zip file.

Now connect the phone. Wait for drivers to be installed. Odin should show a Message “Added” in the log, and the Blue(or yellow?) color lights up in the 3rd row.

Once it’s been connected, Choose “Start”. CF Autoroot is installed now and the phone should restart with Root privileges

Recovery

Get the latest CWM recovery here

Once again, go to Download mode, open Odin

Choose the downloaded .tar file.

Click Start.

The recovery is now flashed.

After rebooting, power off the phone.

Booting to the new custom recovery

To get to recovery from powered off state, press (Vol+)+Home+Power.

Once the Samsung Logo is shown, depress Power key.

Phone now boots to recovery (Should be CWM at this stage)

 

Tip! Note that if you’re coming from HTC Devices, you will find it odd that CWM backs up files by default to the internal sd card.

The command is:

adb shell dumpsys iphonesubinfo

To display CPU usage:

C:\Users\Joel>adb shell dumpsys cpuinfo
Load: 3.24 / 7.49 / 9.19
CPU usage from 17240ms to 12182ms ago:
  15% 2298/system_server: 10% user + 4.5% kernel / faults: 504 minor
  5.7% 28558/com.gameloft.android.ANMP.GloftB2HM: 3.3% user + 2.3% kernel / faults: 25 minor
  2.5% 1957/sdcard: 0% user + 2.5% kernel
  1.5% 2800/com.android.systemui: 1.1% user + 0.3% kernel / faults: 4 minor
  1.1% 23656/kworker/0:2: 0% user + 1.1% kernel
  0.7% 28474/com.sec.android.provider.badge: 0.5% user + 0.1% kernel / faults: 5 minor
  0.5% 1017/mmcqd/0: 0% user + 0.5% kernel
  0.1% 29332/com.google.android.apps.maps:GoogleLocationService: 0% user + 0% kernel / faults: 19 minor
  0.3% 7054/fahrbot.apps.blacklist: 0.3% user + 0% kernel
  0.1% 318/kworker/u:0: 0% user + 0.1% kernel
  0.1% 328/kworker/0:1: 0% user + 0.1% kernel
  0.1% 3318/com.nuance.swype.beta:SwypeConnect: 0% user + 0.1% kernel / faults: 6 minor
  0% 5953/com.google.android.googlequicksearchbox: 0% user + 0% kernel / faults: 4 minor
  0% 6120/com.google.android.apps.maps:LocationFriendService: 0% user + 0% kernel / faults: 6 minor
  0% 6706/com.android.phone: 0% user + 0% kernel / faults: 2 minor
  0.1% 29461/com.levelup.beautifulwidgets: 0.1% user + 0% kernel
31% TOTAL: 19% user + 12% kernel