Thursday 23 January 2014

Fedora 20 enable mp3 play

http://studyhat.blogspot.ca/2013/12/fedora-20-heisenbug-post-installation.html


#yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-20.noarch.rpm
#yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-20.noarch.rpm


#rpm -ivh http://rpm.livna.org/livna-release.rpm
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna


#yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly

link also provides how to enable flash videos and more

Wednesday 22 January 2014

How to display date in top panel on fedora 20

https://ask.fedoraproject.org/en/question/10826/how-to-display-date-on-panel/

In fedora 20 type following in command (same command as fedora 19 from link)

gsettings set org.gnome.desktop.interface clock-show-date true

Monday 20 January 2014

Installation guides/ideas of hackintosh on thinkpad (e.g. OS X 10.6 on t400s)

This article captured idea from this article;
forum.thinkpads.com/viewtopic.php?f=32&t=111976

Which cites;
http://www.tonymacx86.com/374-unibeast-install-os-x-mavericks-any-supported-intel-based-pc.html

Where step-by-step guide is provided;
tonymacx86.blogspot.ca/2010/04/iboot-multibeast-install-mac-os-x-on.html

------------------------------------------------workaround
linuxforums.org.uk/index.php?topic=1072.0
on ubuntu 10.04 lucid / 12.04.3 LTS / 13.10 with gparted, hfsplus hfsutils hfsprogs dmg2img

1. burn dmg imagefile from retail cd on USB
$dmg2img snowleopard.dmg snowleopard.img
$hexdump -C snowleopard.img | grep "48 2b 00 04"
(convert 00000400_hex into decimal = 1024, then subtract 1024 from this decimal number to calculate offset, which is 000000 in this case) 
$sudo losetup -o 000000 /dev/loop0 snowleopard.img
$sudo mkdir /media/userID/test
$sudo mount -t hfsplus /dev/loop0 /media/userID/test/

prepare a 8GB+ usb drive, format using gparted, give MBR scheme, give 8GB partition for image formatted as hfs+, mount at /media/userID/imgTarget/

$sudo cp -r /media/userID/test/* /media/userID/imgTarget/
Fix /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
kernel flags string to : rdisk0s1 (1st disk, 1st slice)

2. installation
a. burn iBoot image on CD, or on USB using multiboot (not verified)
b. boot iBoot with imgTarget usb plugged in
c. choose 'mac' and boot from it
d. once booted, run diskutil from Utilities-Disk Utility
e. partition hard drive to GUID Partition Table
f. format a target partition to Mac OS Extended
 

Tuesday 14 January 2014

Ubuntu 12.04 13.10 unmanaged wifi fix

sudo nano /etc/NetworkManager/NetworkManager.conf
ifconfig wlan0 down|up
sudo service network-manager restart

Ubuntu 12.04 13.10 how to restart cinnamon desktop manager

change tty1-7 - CTRL+ALT+(F1-F7)

killall -9 cinnamoN

export DISPLAY=:0; cinnamon &

cinnamon --replace --clutter-display=:0 2> /dev/null &

Ubuntu 13.10 desktop cinnamon clonezilla image mounting to retrieve file

for beginner setup backup ext4 partition

1. sudo apt-get install partclone
(my fingerprint setup did not work correctly, so sudo nemo and closed first for sustained sudo without having to enter password)

2. sudo cat /path/to/source/sda2.ext4-ptcl-image.gz.* | sudo gzip -d -c | sudo partclone.restore -C -s - -o /path/to/target/sda2.img

3. sudo e2fsck -f partclone_extfs.img

4. sudo resize2fs partclone_extfs.img

5. sudo mount -o loop -t ext4 /source/sda2.img /media/user/target/


------------------------------------------------------------------------------------
http://community.spiceworks.com/how_to/show/39287-mount-a-clonezilla-image

http://askubuntu.com/questions/236263/browse-img-without-mounting

http://ubuntuforums.org/showthread.php?t=2007760

http://drbl.sourceforge.net/faq/fine-print.php?path=./2_System/68_manually_partclone_restore.faq#68_manually_partclone_restore.faq

http://blog.christosoft.de/2012/05/mount-clonezilla-image-to-restore-single-file-browse/
------------------------------------------------------------------------------------

1. find out type of image

file /path/to/image/sda2.ext4-ptcl-image.gz.aa

2. combine image
(had to install partclone before this step, sudo apt-get install partclone)

sudo cat sda2.ext4-ptcl-image.gz.* | sudo gzip -d -c | sudo partclone.restore -C -s - -o /path/to/target/sda2.img

3. mount

sudo mount -o loop -t ext4 /path/to/source/sda2.img /media/name/target/folder/

**i can not mount ext4 partition image with following error
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

**resolution
http://askubuntu.com/questions/91985/difficulty-trying-to-mount-an-iso-file-mount-you-must-specify-the-filesystem-t

**this person had the same problem with no resolution
http://sourceforge.net/mailarchive/forum.php?thread_name=4C8212EB.4040009%40nt.tuwien.ac.at&forum_name=clonezilla-live

**Following link works for NTFS partition which is same as above christosoft method
http://gpio.kaltpost.de/?p=616

**
 **** SUCCESSFUL RESOLUTION by jao_madn****
http://ubuntuforums.org/showthread.php?t=872832&page=3

1. check image
e2fsck -f partclone_extfs.img
2. resize blocks
resize2fs partclone_extfs.img
3. mount
mount -o loop -t ext4 <mount_image> <mount_point>

jao_madn also tried to convert image to vdi and mounted successfully using virtualbox.


*** FOR NTFS IMAGES ***
$ sudo ntfs-3g sda2.img /mnt/ba

Monday 13 January 2014

ubuntu 12.04.03 LTS t400s cinnamon icons does not appear


http://askubuntu.com/questions/386835/cinnamon-icons-doesnt-appear


sudo apt-get install gnome-icon-theme-full


------------------------------------------------------------------------
installing cinnamon on ubuntu 12.04.4LTS

http://community.linuxmint.com/tutorial/view/1246

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon

ubuntu 12.04.03 LTS thinkpad t400s fingerprint reader

http://fcns.eu/2012/04/29/fingerprint-reader/


sudo add-apt-repository ppa:fingerprint/fingerprint-gui

sudo apt-get update

sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui

(re-login)

fingerprint-gui
sudo add-apt-repository ppa:fingerprint/fingerprint-gui sudo apt-get update - See more at: http://fcns.eu/2012/04/29/fingerprint-reader/#sthash.3olqUbaI.dpuf
sudo add-apt-repository ppa:fingerprint/fingerprint-gui sudo apt-get update - See more at: http://fcns.eu/2012/04/29/fingerprint-reader/#sthash.3olqUbaI.dpuf
 

ubuntu 12.04.3 LTS fresh install cinnamon crash on login fix

http://askubuntu.com/questions/339163/cinnamon-crashing-on-logon-12-04
Installing cinnamon 2.0+

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon

Thursday 9 January 2014

How to open and screw back in macbook pro properly

http://forums.macrumors.com/showthread.php?t=1263708

Screwing back the bottom panel of macbook pro after RAM/HDD upgrade or replacement.

The screws can stick out and not go in all the way because six screws not along the hinge edge goes in angle.

http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1270/HT1270_1a-mbp_13-remove_back_screws-001-en.png

Start from left top corner, then right bottom corner, going clockwise until finished.

Tightening them without making such 'star patter' may misalign the panel and screws could stick out.

Wednesday 8 January 2014

ubuntu 13.10 linux korean input method ibus

http://en.kioskea.net/faq/1140-installing-truetype-fonts-under-ubuntu

go to system settings - language support
add language - korean

go to system settings - region and language
@input source, click +, select korean

Ctrl+Alt+T, opens up terminal
ibus-setup and enable custom input

(does not work apparently)

Tuesday 7 January 2014

ubuntu 13.10 linux vlc korean subtitle

http://www.alivenotdead.com/kungfutofu/--profile-323397.html
http://en.kioskea.net/faq/1140-installing-truetype-fonts-under-ubuntu


1. download ttf font and install

https://launchpad.net/ubuntu/oneiric/+source/ttf-baekmuk
tar -zxvf ttf*
sudo mkdir /usr/share/fonts/baekmuk
sudo mv ./ttf* /usr/share/fonts/baekmuk
fc-cache -fv

2. set up font from vlc preferences
tools-preferences-subtitles: default encoding (Korean, euc-kr/cp949)
font: baekmuk gulim

save and restart vlc

Monday 6 January 2014

ubuntu 13.10 touchpad tap does not click

synclient tapbutton1=1

ubuntu 13.10 window minimize maximize close button left to right side

http://www.itworld.com/software/354017/move-minimize-maximize-and-close-window-buttons-right-ubuntu-1304

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

Sunday 5 January 2014

Ubuntu 13.10 saucy salamander fresh install - android development environment setup

For some reason .ova file from original author could not load,

http://forum.xda-developers.com/showthread.php?t=2585828


here is the step-by-step guide by original author + link

http://soupdawg.wordpress.com/

http://forum.xda-developers.com/showthread.php?t=2464683


From fresh install of U13.10

sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java6-installer
java -version (should show java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode))

sudo apt-get install git-core lzop ccache gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python gcc g++ cpp gcc-4.8 g++-4.8
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

(package is done)

mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

sudo nano ~/.bashrc
(Insert this line at the end) export PATH=~/bin:$PATH
source ~/.bashrc
mkdir ~/android
cd ~/android

repo init -u git://github.com/AOKP/platform_manifest.git -b jb-mr2 (this is for AOKP jelly bean mr2)
repo sync (this will download 10GB+)




***

metalspring
hmm...all good except repo doesnt seem to work with
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
but it does with
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
from http://source.android.com/source/downloading.html

***

metalspring
instructions are right on the aokp platform manifest page-

Init repo only for a particular device :
$ repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr2 -g all,-notdefault,<devicename>,<vendorname>

for example, to init only trees needed to build mako :
$ repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr2 -g all,-notdefault,mako,lge