04 February 2013

Set root password in Ubuntu


Open the terminal and type


  • sudo passwd root


and write new password .

03 February 2013

How to setup CodeTyphon - for Cross compiling FPC and Lazarus - AIO

This is install procedure in Ubuntu 12.10 64bit environment :

1. Install last CodeTyphon zip packet from


2. Extract archive in folder , for example :

  • /home/ct 

3. Enter that folder from Terminal with root privileges and start

  • ./install.sh

4. Only for the first time of CodeTyphon installation in your Computer, select option

  • (3) "Install System Libraries" (about 10 min.)
    • for Ubuntu 12.10, you will need to manually add these packages
      • sudo apt-get install binutils-dev devel-essential

5. After System Libraries Installation, run again "Install.sh" and select option

  •  (0) "Install CodeTyphon Studio"

6. After copy operation, select option
  •  (8) "Remove and Build All" (about 15 min.)

6. After that, you have CodeTyphon Studio installed in your dash, start it and select :

  • menu Cross-Build and choose desired platform

7. Than you should start Lazarus and choose related fpc, for example :

  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcx64 (for Linux64)
  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcross386 (for Win32)
  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcrossx64 (for Win64)

8. Finally, don't forget to choose menu Project/Project Options/Code Generation/Target OS :

  • Linux
  • Win32
  • Win64

Write Once, Compile Anywhere

How to build FPC and Lazarus from SVN for cross-compiling

This procedure is implemented in Ubuntu 12.10 64bit.

1. You need to install subversion via apt-get in Terminal window :

  • sudo apt-get install subversion

2. Than you can download your first trunk of fpc and lazarus :

  • cd /home/svn
  • cd fpc
  • svn checkout http://svn.freepascal.org/svn/fpc/trunk
  • cd lazarus
  • svn checkout http://svn.freepascal.org/svn/lazarus/trunk

3. For later update from svn sources :

  • cd /home/svn
  • svn update fpc 
  • svn update lazarus

4. To build fpc and lazarus

  • make clean all


29 January 2013

How to download source code from SVN or GIT in Ubuntu

In terminal windows type :

sudo apt-get install subversion
sudo apt-get install git

than you can download trunk with sort of these commands :

svn checkout http://android-samples.googlecode.com/svn/trunk/ android-samples-read-only
git clone https://code.google.com/...

28 January 2013

How to set RelativeLayout inside ScrollView

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<RelativeLayout
android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="638dp" >

... UI elements here ...

</RelativeLayout>
</ScrollView>

How to fix unreadable tooltips in Ubuntu Eclipse

An easy workaround to fix this is to install gnome-color-chooser.
Open it, go to Specific -> Tooltips and put black foreground over pale yellow background.

27 January 2013

Create new application shortcut in Ubuntu 12.20 Unity

First you must have installed Gnome Panel :

sudo apt-get install gnome-panel

Then you must start gnome panel window for creating new shortcut:

sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

After that, you can search for and open it from the Unity Dash, and drag and drop it to Launcher.

25 January 2013

Eclipse Android SDK Manager not work in Ubuntu 12.10 (64bit)

If you have error with Android SDK Manager in Eclipse, while installing Android SDK, you are missing ia32-libs from your Ubuntu 12.10 (64bit), than you need to install it with:

sudo apt-get install ia32-libs

Install Java SDK 7 on Ubuntu 12.10

To get started, press Ctrl – Alt – T on  your keyboard to open the terminal. When it opens, run the commands below to add the required PPA.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java7-installer


14 December 2012

How to change the Windows 8 product key

Start the Command Promt in Administrator mode by pressing [WinLogo]+X,
then execute
slmgr.vbs -ipk ABCDE-VH26C-733KW-K6F98-J8CK4
To activate windows after changing the key:
slmgr.vbs -ato

07 December 2012

How to fix broken packages

To fix broken packages in Ubuntu,

Go to System > Administration > Synaptic Package Manager and click Edit > Fix Broken Packages.

or in a terminal (Applications > Accessories > Terminal)
 

sudo apt-get -f install

23 November 2012

Fixing VirtualBox on Ubuntu 12.10

I installed VirtuaBox (4.1.18) on Ubuntu 12.10 (host os) so I can install Windows 8 (guest os) and use Microsoft office products as they are way superior to LibreOffice. Anyway, as soon as I opened Virtualbox, it came up with the error message, "Kernel driver not installed (rc=-1908)"


Well, after browsing for hours, I found a way to fix the issue. I just had to use the following commands.

        sudo apt-get install linux-headers-$(uname -r)

        sudo apt-get remove virtualbox-dkms

        sudo apt-get install virtualbox-dkms

Furthermore, after installing Windows 8 as a guest os and after installing guest additions, I wasn't able to enable "Switch to seamless mode", so I wasn't able to set the resolution to 1366x768 and I had to stick with 1024x768. Finally I found a workaround for that problem too. I had to use the command,

         sudo vboxmanage setextradata global GUI/MaxGuestResolution any

Hope this information will be useful for other Ubuntu users.

from xchamitha blog: Fixing VirtualBox on Ubuntu 12.10

19 October 2012

Definitive Android SDCard folder structure


In the root of the external storage (SDCard) save your shared files in one of the following directories:

Music - Media scanner classifies all media found here as user music.
Podcasts - Media scanner classifies all media found here as a podcast.
Ringtones - Media scanner classifies all media found here as a ringtone.
Alarms - Media scanner classifies all media found here as an alarm sound.
Notifications - Media scanner classifies all media found here as a notification sound.
Pictures - All photos (excluding those taken with the camera).
Movies - All movies (excluding those taken with the camcorder).
Download - Miscellaneous downloads.

from : http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

18 October 2012

ClockworkMod Recovery Custom ROM procedure


Everytime I install a new Rom, I double check to make sure it has a boot.img, then upon using CWM to install it, I first do the following(some of them are redundant, but I do so for good measure):


  • wipe data/factory reset
  • wipe cache partition
  • advanced > Wipe Dalvik Cache
  • advanced > Wipe Battery Stats
  • mounts and storage > unmount cache
  • mounts and storage > format /boot (If the rom had a boot.img)
  • mounts and storage > format /cache
  • mounts and storage > format /data
  • mounts and storage > format /system


Then I install the ROM zip, and if I want GAPPS, I flash those afterward.
Then reboot.

This ensures that ALL data is gone, and it will not allow for unique bugs caused by remaining data from a previous rom.

from: http://forum.xda-developers.com/showpost.php?p=32947067&postcount=11

12 October 2012

Cyanogenmod Partitioning SD Card

Partition the SD card
- Scroll down, and select “Advanced”
- Select “Partition SD Card
- Choose your Ext Size (I recommend choosing half of the storage space that your card is.
   - For a 256mb card, select 128M
   - For a 512mb card, select 256M
   - For a 1gb card, select 512M
   - For a 2gb card, select 1024M
   - For a 4gb card, select 2048M
   - For a 8gb card, select 4096M
- any memory card higher than this will not be partitioned, the phone will not be able to read it properly, but I would recommend an 8gb card, and if you have any smaller than 1gb, I wouldn’t even bother wasting your time – but go ahead if you wish.
- Now it will ask you what Swap size you want:
   - If you have a 256mb or a 512mb card, select 0M.
   - If you have a 1gb or a 2gb card, select 32M.
   - If you have a 4gb or a 8gb card, select 64M.
- If it asks to confirm, select yes, now wait for a few minutes, and reboot

13 September 2012

Install VLC in OpenSuse 12.2


In Terminal mode type :

sudo zypper ar http://download.videolan.org/pub/vlc/SuSE/12.2 VLC
sudo zypper mr -r VLC
sudo zypper in vlc

11 September 2012

How to install Lazarus in OpenSuse 12.2


To install fresh packages from Lazarus Daily Snapshots (http://freepascal.dfmk.hu/test/lazarus/)
type in Terminal (Super User mode):

rpm -Uvh fpc-2.6.0-0.laz.i686.rpm
rpm -Uvh fpc-src-2.6.0-0.laz.i686.rpm

zypper in lazarus-1.1.38611-20120911.laz.i686.rpm
(instead of rpm -Uvh lazarus-1.1.38611-20120911.laz.i686.rpm)

How to install Google Chrome in openSUSE

Don’t be confused about Chrome and Chromium. Both are browsers and using the same engines, then what’s the difference?, the difference is one is actively developed by open source community[Chromium] and the other is maintained and developed by Google[Chrome]. Google Chrome can say provide stable version, while Chromium is dev build version[unstable] which is stable though but have new features which then go to Google Chrome stable version later. Chromium is already provided in openSUSE default repositories. But for Google Chrome we need to add new repository. Which will have three versions, stable, beta, unstable. If you want to have different versions of this browser, install both Chromium and Chrome. Currently i’m running both versions, stable version from Google[Chrome] repository and dev build[Chromium] from openSUSE repositories. 1st of all open terminal and become root by su - , and then type, choose your system architecture:

64bit version


         zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome

32bit version


         zypper ar http://dl.google.com/linux/chrome/rpm/stable/i386 Google-Chrome

Now type:

         zypper ref


And install Google Chrome:

        zypper in google-chrome-stable

Now you will have two versions of Chrome/Chromium browser.

taken from :
http://anl4u.com/blog/how-to-install-google-chrome-in-opensuse

08 September 2012

MS Windows 32bit vs. 64bit

"The key consideration is RAM: 32-bit Windows can address only 3.5GB, while 64-bit Windows can address 4GB or more. Because so many new PCs come with at least 4GB, that's why you're seeing Windows x64 as the default OS."

from: http://www.pcworld.com/article/205885/windows_32bit_vs_64bit_personalize_your_os.html

P.S.: But, I must report that this my HP 2730p with 4Gb RAM work faster with 64bit versions of MS Windows and OpenSuse.

30 August 2012

Lazarus 1.0 release available for download

The Lazarus team is glad to announce the release of:

Lazarus 1.0

At this important stage the current team would like to thank all the past and current people who were involved in getting us here.

* Thanks also go to the FPC team for providing the compiler that makes it all possible.

* Special thanks go to the founders of the project who started Lazarus more than a decade ago in 1999: Cliff Baeseman, Shane Miller and Michael A. Hess.

* A history of developers involved can be found at http://wiki.lazarus.freepascal.org/History. And a list of the many contributors comes with the distribution.

The release is available for download at the SourceForge download page:

http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 1.0" directory.

Minimum requirements:

Windows: 98, 2k, XP, Vista, 7, 32 or 64bit

FreeBSD/Linux: gtk 2.8 or qt4.5, 32 or 64bit

Mac OS X: 10.4, LCL only 32bit, non LCL apps can be 64bit

This release has been built with fpc 2.6.0 (the former release 0.9.30.4 was built with that too).

The svn tag is

http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_0

The list of changes:

http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes

For people who are blocked by SF, the Lazarus releases from sourceforge are mirrored at:

ftp://freepascal.dfmk.hu/pub/lazarus/releases/

and later at (after some time for synchronization)

http://michael-ep3.physik.uni-halle.de/Lazarus/releases/

and

http://mirrors.iwi.me/lazarus/