Mar 31, 2014

Mate Desktop 1.8 on Ubuntu 14.04 base system

After BOOTSRAPING UBUNTU 14.04 BASE SYSTEM succesfully. I wish to Install New Comer but Old Stock MATE DESKTOP 1.8 and following Guid by IT-World
We can do it by copy paste. I do it on base system fresh bootstraping. :)

For sure everything is about Terminaling ... LOL



sudo add-apt-repository "deb http://repo.mate-desktop.org/archive/1.8/ubuntu $(lsb_release -cs) main"
wget -q http://mirror1.mate-desktop.org/debian/mate-archive-keyring.gpg -O- |
sudo apt-key add -
sudo apt-get update
sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon



sudo apt-get install lightdm


THAT'S IT

I wish to test webbroser app along side by side with epiphany-browser both look amazing on Mate Desktop 1.8


Testing Ubuntu Touch Devel Channel

Ubuntu 14.04 is best tools to test ubuntu touch on Nexus Devices. I tested for Galaxy Nexus GT=i9250 Maguro Device.
Just install by using : # aptitude install phablet-tools ubuntu-device-flash will grab all neccessary dependecies, to flash Maguro with ubuntu touch.... folow THIS UBUNTU WIKI straight forward.








Strange ADB and FASTBOOT by Ubuntu :-)

During installing phablet-tools and ubuntu-device-flash ubuntu repos gave android-tools-adb and android-tools-fastboot packages installing straight to /usr/bin/*


I have no problem with this ADB and FASTBOOT to flash Galaxy Nexus however when a Xiaomi Mi3 WCDMA phone connected to pc and checking with :



16:04:36 [~]
x1123@ >$ adb devices
List of devices attached


... (NOTHING)

<

I have Android SDK installed on part of adt-bundle and tested with this ADB

16:13:24 [/ahu/adt-bdlx86_64/sdk/platform-tools]
x1123@ >$ ./adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

16:13:30 [/ahu/adt-bdlx86_64/sdk/platform-tools]
x1123@ >$ ./adb devices
List of devices attached
9d4aae4d unauthorized


Then I moved this ADB and FASTBOOT to replace ubuntu's one : # sudo cp adb fastboot /usr/bin/

Ubuntu 14.04 Intsalling Base System without Medium

ubuntu 14.04 on beta stage on 30th/March/2014 . Considering long time I did not in touch with ubuntu, and this week end I wish to give ubuntu 14.04 a try, well this will be next LTS. Best way to install ubuntu, by downloading cd-image, burn and installing. But I face some situation, can not do such way
  • I have no dvd medium to burn ubuntu-14.04-iso ( ubuntu iso size is about 984 mb and I have only 700 mb CD)
  • I wish to install minimum applications : base system, internet browser, phablet-tools, office suite, graphic editor (gimp & inkscape), image viewer, pdf viewer. archive manager, music player
  • Mate Desktop Environment
  • Some android rom build tools

My Situation

  • Have a funtoo amd64 live on a partitions
  • 2 TB Hard disk ( I can serve about 30 GB for ubuntu )
  • Good Internet connection


Thus bootstraping ubuntu base system is the best choice for me, and it is supper dupper easy. No need special skill in linux. Everybody can do it while listening music, or browsing internet for find thousands of help.I run from live funtoo

  • Open Terminal
  • Prepare the disk, serve a partition for ubuntu. I made 30 GB on /deb/sda10
  • Create ext4 systemfile : # mke2fs [space] -t [space] ext4 [space] -L [space] ubuntu [space] /dev/sda10 [enter]
  • Create mount point mkdir /ubuntu and mount the partitions # mount /dev/sda10 [hit-space] /ubuntu [hit-enter]
  • Execute command on terminal : debootstrap [space] --arch [apsace] amd64 [space] trusty [space] http://archive.ubuntu.com/ubuntu [enter] depending on the internet connection speed, its take about 15 minutes

Chrooting

After completing debootstraping debian/ubuntu base system, we need to continue installing Kernel, tweaking fstab file and setting boot loader. Thats all what we need to boot ubuntu base system and build up further on the real-system

  • # cp [space] -L [space] /etc/resolv.conf [space] /ubuntu/etc/ [enter] hit Y if being asked (This for copying file resolv.conf from live linux to new bootstraping ubuntu base system, in order to enable us connect internet in chroot environment)
  • # mount [space] -t [space] proc [space] none [space] /ubuntu/proc [enter]
  • # mount [space] --rbind [space] /sys [space] /ubuntu/sys [enter]
  • # mount [space] --rbind [space] /dev [space] /ubuntu/dev [enter]
  • # chroot [space] /ubuntu [space] /bin/bash [enter]
  • welcome to ubuntu chroot environment
  • TEST INTEERNET CONNECTION
  • # ping [space] -c [space] 3 [space] google.com [enter]
  • If you were see something unknown host google.com on terminal output, you face trouble, No Internet connection. check your internet stuff. Otherwise you see :
  • 64 bytes from fm-dyn-111-94-248-182.fast.net.id (111.94.248.182): icmp_seq=1 ttl=62 time=9.67 ms
  • 64 bytes from fm-dyn-111-94-248-182.fast.net.id (111.94.248.182): icmp_seq=2 ttl=62 time=10.0 ms
  • 64 bytes from fm-dyn-111-94-248-182.fast.net.id (111.94.248.182): icmp_seq=3 ttl=62 time=33.9 ms
  • Then you are safe to continue.

In chroot environment

  • Execute comand : # apt-get [space] update [enter]
  • ubuntu will show something connection with repository archive.ubuntu.com . To connect directly to archive.ubuntu.com is recommended rather than closer mirror, since the beast is in beta stage.
  • Install aptitude which is more handy than apt-get : # apt-get [space] install [space] aptitude [enter]
  • After installing aptitude you can compare between apt-get vs aptitude by executing apt-get --help and aptitude --help
  • Edit /etc/fstab file with nano text editor execute # nano [space] -w [space] /etc/fstab [enter] If you were face output nano : command not found . Install nano by executing # aptitude [space] install [space] nano [enter] after complete installing, repeat above command. Empty file will appear


Items on /etc/fstab file ( we need to type on by hand )

# file system
mount point type options dump pass

Edit the file to looklike


/etc/fstab
# file system
/dev/sda10
mount point
/
type
ext4
options
defaults
dump
0
pass
1

Now we have very basic /etc/fstab file to enable kernel mounting root file system to boot on real-system. we can tweak later as root after booting on real system

Install Appropriate Kernel

  • check kernel availability, # aptitude [space] search [space] linux-image [enter]
  • choose desired kernel
  • # aptitude [space] install [space] linux-image-3.10.0-20-generic [enter]
  • Critical
  • Since ubuntu also grab to install BOOTLOADER automatically when we installing kernel. We need to be ready to install grub (today popular linux bootloader)
  • It is generally safe to install GRUB BOOTLOADER at MBR ( usually /dev/sda ) ubuntu OS-Probber smart enought to detect all operating systems in your computer. but it will be different scenario if your system is EFI system This beyond the scope of this article
  • My scenario : DID NOT INSTALL GRUB BOOTLOADER due to I wish live funtoo will manage the bootloader
  • If you wish different, by installing GRUB bootloader, recommended to install at mbr /dev/sda

  • something like
  • [*] /dev/sda and hit enter / OK

  • give root a password before rebooting (otherwise you can not login on real system) by executing : # gpasswd [space] root [enter]
  • key in appropriate password (system will ask twice

  • By default, ubuntu exploiting sudo too much. Thus good idea to add a user for daily use in this CHROOT environment, to enable us logging-in as a user and use sudo to have root previllege
  • Excute : # useradd [space] -m [space] -g [space] users [space] -G [space] root,sudo,admin,video,audio,cdrom [space] -s [space] /bin/bash [space] johny [enter]
  • To know what are meaning of above command execute useradd [space] --help [enter]
  • Give user johny a password : # passwd [space] johny [enter]
  • key in your desired password string

NOTE : I used wired internet connection, thus no problem without configuring Network Tools, for someone using wireless. Have to configure proper networking

Install Wireless Tools # aptitude [space] install [space] wireless-tools [enter]

Install wpa_supplicant # aptitude [space] install [space] wpa_supplicant [enter]


Ready to Go

Execute : # exit [enter] We exiting CHROOT environment. Manage live linux system to boot fresh ubuntu base syetm.

  • If you use populer linux distros like LinuxMint, Fedora, Opensuse just execute $ sudo update-grub will add new ubuntu system into bootloader options
  • I use Funtoo, and need to poke file /etc/boot.conf

...

"Ubuntu 14.04" {
scan /ubuntu/boot
kernel vmlinuz-3.10.0-20-generic[-v]
initrd initrd.img-3.10.0-20-generic[-v]
params root=/dev/sda10
} ...


Execute : # boot-update [enter] THAT'S IT ... rebooting machine will have ubuntu 14.04 option to boot.

If you were face can not log-in, after booting into ubuntu real system on fresh install, it's probably beta BUGS. Options we can take is to bootstrap lower release like : precise (12.04), Quantal (12.10), Raring (13.04), Saucy (13.10) and upgrade to trusty after booting real-system. Upgrading the base system is safe in all scenario


Booting Real System

I was safe booting into real system as user and connecting internet with $ sudo dhclient eth0

INSTALLING MATE-DESKTOP 1.8 on UBUNTU 14.04 base System

Mar 26, 2014

Lenovo B320 a work Horse

Week 11th/2014, it was really annoying. Dunno why, suddenly my work-horse Lenovo B320 with Gentoo Linux amd64, where bloated Gnome 3 sit, can not boot into GUI. The box went to Gnome 3, since Gentoo Developer "Marked" Gnome-3 as stable. I have been long time gnome fans, for desktop environment. I believed to developer, respect to them who have been spending so much energy and time to develop Gnome 3. Gnome 3 is great to welcome "New Era" of Desktop, Tablet and Pad :-) Gnome 3 is probably very good to run on touch devices. Well, my work-horse is still on "Old Style" with legendary "Mouse" and "Physical Keyboard". Now Gnome 3 can not boot, spent almost day and half along with googling, no lucks. I need a lot desktop and office suite to support my job in running shipping company, but also need the box to serve a hobby to tweak smart phone, compiling android and write android app for personal use
Finally decided to wipe Gentoo System and picked up her little sister, Funtoo. Funtoo developers, served very nice Profile and help a lot to common users to set their machine up, without deep knowledge of Linux system. Funto online guide is also very good, and it's gentoo, thus everybody can refers to gentoo guide
Machine Details
Came in April 2012 from retailer without Operating System, (this have been my choice in buying PC since in touch with linux). Usually retailer will give a discount @ USD 70 - 80 for accepting box without operating system.
  • 00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
  • 01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Caicos [Radeon HD 6400 Series]
  • 05:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
  • 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
  • 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
  • 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
  • vendor_id : GenuineIntel
  • model name : Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
  • cpu family : 6
  • model : 42
  • flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
  • MemTotal: 16418744 kB


The System of Choice
  • Linux ... for sure
  • Distribution Funtoo amd64 current build
  • stage3-corei7-funtoo
  • Desktop Environment : xfce4 : 4.10

Set of Applications
  • Media :GIMP, Inkscape, Nomacs Image Viewer, Evince, Clementine Music Player, VLC Media Player
  • Text Editor : Leafpad, Vim
  • Internet Browser : Links, Forefox
  • Burning Tools Brasero, Unetbootin
  • Office Suite :LibreOffice
  • Accesories : Screenshot, Orage Calendar

Important System Point

  • Kernel Configs 3.13-7 (Gentoo Sources)
  • This must be merged with radeon-ucode or full linux-firmware for Video working flawlessly


  • Masked =sys-devel/make-4.0-r1 on /etc/portage/package.mask to enable system merged sys-devel/make-3.82-r4 (accepted by android rom build)
  • eselect python set to 2.7 (for android)
  • dev-java/icedtea-bin 6.1.12.7 is acceptable to build 4.4 ( KitKtat) android rom
  • merged emul-linux-x86-baselibs for Android build stuff to work

  • Android Related
    • Android ROM Sources (I set for Cyanogenmod and AOKP )
    • Android Studio and adt-bundle

    Real Multilib Userland on Linux

    Read multilib requirement on Android rom building and other stuff. About two years absent from getting rid with android rom. I have time to...