venerdì 30 marzo 2012

Change Gnome 3 Icon Size


# su - 
# cp /usr/share/gnome-shell/theme/gnome-shell.css /usr/share/gnome-shell/theme/gnome-shell.css.ori 
# vi /usr/share/gnome-shell/theme/gnome-shell.css

/* Apps */

.icon-grid {
spacing: 18px;
-shell-grid-item-size: 80px;
}

.icon-grid .overview-icon {
icon-size: 48px;
}

ALT+F2 &  Type "r" for desktop refresh.

venerdì 23 marzo 2012

Fedora 15 Restore GRUB with RAID and LVM

Start your server from livecd iso and start your network and sshd daemon
or boot and log into your FC15 LiveCD open gnome-terminal + su -

( with chroot )
# mkdir /mnt/root
# mount /dev/sda2/ /mnt/root/
# mount -t proc proc /mnt/root/proc
# cat /proc/mounts > /mnt/root/etc/mtab
# mount --bind /dev /mnt/root/dev
# chroot /mnt/root /bin/bash
# source /etc/profile
# grub-install /dev/sda; 
# exit                     #(exit from chroot)
# eject ;  reboot 

(without chroot )
# mkdir /mnt/root
# mount /dev/sda2 /mnt
# grub2-install --root-directory=/mnt /dev/sda
# exit                     #(exit from chroot)
# eject ;  reboot 

( with chroot + /boot raid0 + / lvm )
# vgscan 
# cat /proc/mdstat 

# mkdir /mnt/root 
# mount /dev/sysvg/lvrootfs /mnt/root/
# mount /dev/md0 /mnt/root/boot/
# mount -t proc proc /mnt/root/proc
# cat /proc/mounts > /mnt/root/etc/mtab
# mount --bind /dev /mnt/root/dev
# chroot /mnt/root /bin/bash
# source /etc/profile

# tar vczf /tmp/boot.tgz /boot/
# \rm -rf /boot/
# mkdir /boot
# swapoff /dev/sda2 ;
# swapoff /dev/sdb2 ;
# swapoff -a;
# swapon -s 

# mdadm --manage --stop /dev/md0 ;
# mdadm --zero-superblock /dev/sdb1
# mdadm --zero-superblock /dev/sda1

# sync; partprobe /dev/sda;
# sync; partprobe /dev/sdb;
# e2fsck -f -y /dev/sda1; resize2fs /dev/sda1; e2fsck -f -y /dev/sda1;
# e2fsck -f -y /dev/sdb1; resize2fs /dev/sdb1; e2fsck -f -y /dev/sdb1;


# echo y | mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 --metadata=0.90
# mkfs.ext3 -L /BOOT /dev/md0;


# cat /etc/fstab | grep swap 
# mkswap -U b3e24417-cb9d-420e-97a4-b5cf57ae756d /dev/sda2 
# mkswap -U ca2dd668-156f-4c4b-a9aa-01596c5a3ba3 /dev/sdb2 
# swapon -a 
# swapon -s 
# mdadm --examine --scan > /etc/mdadm.conf
# mount /boot;
# tar -vzxf /tmp/boot.tgz -C /
# grub-install /dev/sda; 
# grub-install /dev/sdb; 
# cat /proc/mdstat
# exit 


# grub-install --root-directory=/mnt/root/ /dev/sda
# grub-install --root-directory=/mnt/root/ /dev/sdb
# eject ;  reboot 

giovedì 22 marzo 2012

System corrupted after Owain's CM9 kang install

I have a /system corrupt error during the install of CM9 Kang >18 after a full wipe device.
I have resolved this problem with this procedure.
I had the same problem with cwm 5.0.2.0 and 5.0.2.7

1. Flash Lg Firmware 20q with smartflash for restore my device.
2. Unlook Root with SuperOneClick 2.3.3.
3. Install Rom Manager 5.0.0.6 from Google Play
4. From Rom Manager install ClockworkMod Recovery 5.0.2.0
5. Download ClockworkMod Recovery 5.0.2.8 from here
6. Update ClockWorkMod to 5.0.2.8 version

$ unzip cwm5028-p990-20120129.zip
Archive:  cwm5028-p990-20120129.zip
  inflating: recovery-p990.img    
  inflating: psneuter              
  inflating: install-cwm-windows.bat
  inflating: install-cwm-mac.sh    
  inflating: install-cwm-linux.sh  
  inflating: AdbWinUsbApi.dll      
  inflating: adb-windows.exe      
  inflating: AdbWinApi.dll        
  inflating: adb-mac              
  inflating: adb-linux      

$ adb push recovery-p990.img /data/local/
$ adb shell dd if=/data/local/recovery-p990.img of=/dev/block/mmcblk0p7
$ adb  shell rm /data/local/recovery-p990.img
or 
$ ./install-cwm-linux.sh

7. Reboot into Recovery mode
8. Wipe data/factory reset
9. Wipe cache partition
10. Mounts and storage/ mount system/ format system
11. Advanced / Wipe Dalvik Cache
12. Advanced / Wipe Battery Stats

13. Install zip from sdcard /choose zip from sdcard
 flash update-cm-9.0.0-RC0-p990-KANG-15-signed.zip (k15 no have this /system corrupted bug)
 flash update-cm-9.0.0-RC0-p990-KANG-29-signed.zip

15. Install zip from sdcard RIL725 10d
16. Install zip from sdcard GAPPS.zip
17. Reboot

###### Install Kernel (Optional #######

1. Reboot into Recover Mode
2. Wipe Dalvik Chache (Advanced--> Wipe Dalvik Cache)
3. Wipe Battery Stats (Advanced--> Wipe Battery Stats)
4. Mount /Cache
5. Format /Cache
6. Umount /Cache
7. Flash  IRONKERNEL.zip or  3.0.x_Kernel.zip
8. Reboot

Fedora4Dummies Public Release Screenshots

In my spare time I wrote a small application for Fedora 16.
I decided to call it Fedora4Dummies.
This small script uses zenity, and allows you to run in graphics 
mode the basic system operations of every day.
Currently I'm doing the last test before the official release.
If anyone is interested, can ask me to test before the final release.
Below you can see the screenshots of the current state of Fedora4Dummies.

Root Proxy Menu
General Menu

VirtualBox Menu

Android SDK Menu
Yum Update Menu
 

giovedì 15 marzo 2012

Fedora 16 Install Gimp 2.7.5

# vi /etc/yum.repos.d/fedora-gimp-unstable.repo
[fedora-gimp-unstable]
name=Unstable development versions of GIMP for Fedora $releasever - $basearch
baseurl=http://repos.fedorapeople.org/repos/nphilipp/gimp-unstable/fedora-$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-nphilipp

[fedora-gimp-unstable-debuginfo]
name=Unstable development versions of GIMP for Fedora $releasever - $basearch - Debug
baseurl=http://repos.fedorapeople.org/repos/nphilipp/gimp-unstable/fedora-$releasever/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-nphilipp

[fedora-gimp-unstable-source]
name=Unstable development versions of GIMP for Fedora $releasever - $basearch - Source
baseurl=http://repos.fedorapeople.org/repos/nphilipp/gimp-unstable/fedora-$releasever/src/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-nphilipp

# yum install gimp 
gimp                2:2.7.5-1.fc16                   fedora-gimp-unstable                
gimp-libs          2:2.7.5-1.fc16                   fedora-gimp-unstable

mercoledì 14 marzo 2012

Digitale Terrestre Fedora 16 + Vlc


# lspci | grep Philips
05:02.0 Multimedia controller: Philips Semiconductors SAA7131/SAA7133/SAA7135 Video Broadcast Decoder (rev d0)


# yum install w_scan
# w_scan -X -P -t 2 -E 0 -c IT > dvb-channels.conf
# cp dvb-channels.conf /home/$youruser/Desktop/
# chown jhon:jhon /home/$youruser/Desktop/dvb-channels.conf 


Open with vlc and selectio your channel
Media / Advanced Open File... / File Selection / Add ...




Scan Options 
-X     generate zap/czap/xine output instead of VDR channels.conf

-P     ATSC scan: do not use ATSC PSIP tables for scan (PAT and PMT only)

-t N   Tuning timeout, increasing may help if device tunes slowly or has bad reception.
              1 = fastest [default],
              2 = medium,
              3 = slowest
 -E N   Conditional access / encrypted channels
              0 = only Free TV channels,
              1 = include encrypted channels [default]
 -c COUNTRY_ID
              Mandatory argument for ATSC scans, cable scans and terrestrian scans, see option -f.
              Specifies the country where you try to scan for channels as uppercase two letter identifier, e.g.
              DE = Germany,
              US = United States,
              FR = France
              IT  = Italy
              Use "-c?" for a list of all known identifiers.

venerdì 9 marzo 2012

Install & Configure Synergy Fedora 16

# yum -y install quicksynergy.x86_64 synergy.x86_64 
# vi /etc/synergy.conf 

section: screens
  fedora:
  windows:
end

section: aliases
linux:
10.10.10.1
end

section: aliases
windows:
10.10.10.2
end

section: links
   linux:
       right = windows
   windows:
       left = linux
end

section: options
screenSaverSync = false
# My KVM uses Scroll Lock to switch screens, so set the
# hotkey to lock the cursor to the screen to something else
keystroke(f12) = lockCursorToScreen(toggle)
end

How to create a start icon on Fedora 16 :

# vi SynergyStart.sh
#!/bin/bash
#If you want type root password in TempPassword.txt 
#and comment RootCheck Function  
PASSTEMP=/tmp/TempPassword.txt

RootCheck(){
ROOTCK=$(id -u -n)

if [ "$ROOTCK" != "root" ]; then 
zenity  --title "Insert Root Password" --password  > $PASSTEMP;
fi
}

RootCheck;

cat $PASSTEMP | su -c "systemctl stop iptables.service";  
gnome-terminal -e "synergys -f --config /etc/synergy.conf"

rm -f $PASSTEMP

# vi SynergyStarter.desktop
[Desktop Entry]
Version=3.0.0
Name=SynergyStarter
Comment=Start Synergy Server
Exec=/home/$USER/PersonalScript/SynergyStart.sh  # (change with your path)
Icon=keyboard
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;TerminalEmulator;System;

# cp SynergyStarter.desktop /usr/share/applications/

mercoledì 7 marzo 2012

Linux ADB Python/Gtk File Manager for Android 4.0.3

A command line + GUI (GTK based) Android ADB-based file manager

Download sole-aafm-r3-0-g09d5161.zip from
https://github.com/sole/aafm/zipball/master

$ unzip sole-aafm-r3-0-g09d5161.zip
$ cd sole-aafm-09d5161/src
$ ./aafm-gui.py


Fedora 16 Auto Double Gnome Terminal Icon


# vi /home/PersonalScript/DoubleTerminal.sh
#!/bin/bash
gnome-terminal  --hide-menubar --geometry=180x22+0+0 --active & gnome-terminal  --hide-menubar --geometry=180x22+1+400
exit 0
# chmod +x /home/PersonalScript/DoubleTerminal.sh
# vi cat /usr/share/applications/double-terminal.desktop 
[Desktop Entry]
Name=DoubleTerminal
Comment=Double Terminal Command Line
TryExec=/home/PersonalScript/DoubleTerminal.sh
Exec=/home/PersonalScript/DoubleTerminal.sh
Icon=network-idle
Type=Application
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=3.2.1
Categories=GNOME;GTK;Utility;TerminalEmulator;System;
StartupNotify=true
X-Desktop-File-Install-Version=0.18

For autostart on login ($USER=YourUser)
# cp /usr/share/applications/double-terminal.desktop  /home/$USER/.config/autostart/
# chown $USER:$USER /home/$USER/.config/autostart/gnome-terminal.desktop

Failed to install the Extension Pack Oracle VM VirtualBox Extension 4.1.8



Failed to install the Extension Pack Oracle_VM_VirtualBox_Extension_Pack-4.1.8-75467.vbox-extpack.  The installer failed with exit code 127: The value for the SHELL variable was not found the /etc/shells file    This incident has been reported..  Result Code: NS_ERROR_FAILURE (0x80004005) Component: ExtPackManager Interface: IExtPackManager 

Install from command line:
# VBoxManage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-4.1.8-75467.vbox-extpack
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

lunedì 5 marzo 2012

Add non-root user to manage netbackup through java admin console


Add yellow line:

# vi /usr/openv/java/auth.conf 
root ADMIN=ALL JBP=ALL
YourUser01 ADMIN=ALL JBP=ALL
YourUser02 ADMIN=ALL JBP=ALL
* ADMIN=JBP JBP=ENDUSER+BU+ARC

venerdì 2 marzo 2012

Android Chrome Fix for CM9

$ adb root
$ adb remount 
$ adb shell 


#  vi /system/build.prop
# begin build properties
# autogenerated by buildinfo.sh
##ro.build.id=GRJ22  (comment this)
ro.build.id=IML74K  (edit with this)    
ro.build.display.id=IML74K  
:wq!

# reboot

Restore CM9 BootAnimation after IronKrnl flash

IronKrnl write bootanimation.zip in /data/local and have priority on /system/media/bootanimation.zip
For restore CM9 Bootanimation 
# adb root
# adb remount 
# adb shell


# rm -rf /data/local/bootanimation.zip
# cp /system/media/bootanimation.zip /data/local
# chmod 744 /data/local/bootanimation.zip
or
# cd /data/local
# mv bootanimation.zip bootanimation.zio_ironkrnl
# reboot


giovedì 1 marzo 2012

Change CM9 default Music App

# adb shell
# su -
# bash
# mount -o rw,remount -t yaffs2 /dev/bloc/mmcblk0p1 /system
# rm -rf /system/app/Music.apk
# cp /sdcard/CM9Music.apk /system/app/Music.apk         
# rm -rf /data/data/com.android.music
# rm -rf /data/data/com.android.musicvis
# reboot
or
# adb root
# adb remount 
# adb shell
# rm /system/app/Music.apk
# cp /sdcard/CM9Music.apk /system/app/Music.apk
# rm -rf /data/data/com.android.music
# rm -rf /data/data/com.android.musicvic
# reboot



Change CM9 Bootanimation - Clear /system/media - Add bashrc alias

Download new CM9 bootanimation from XDA .
480x800 format it's perfect for my lg optimus dual .
I have copied my files in /sdcard , with "adb push"  or gnome graphic interface PTP mode .

$ adb push bootanimation*.zip /sdcard/BootAnimation/
$ adb shell
$ bash

shell@localhost / $ df -Ph                                                     
Filesystem                Size      Used Available Capacity Mounted on
tmpfs                   202.9M     32.0K    202.8M   0% /dev
tmpfs                   202.9M         0    202.9M   0% /mnt/asec
tmpfs                   202.9M         0    202.9M   0% /mnt/obb
tmpfs                   202.9M         0    202.9M   0% /mnt/asec
tmpfs                   202.9M         0    202.9M   0% /mnt/extasec
/dev/block/mmcblk0p1    344.5M    230.3M    114.1M  67% /system
/dev/block/mmcblk0p8      1.5G    266.7M      1.1G  19% /data
/dev/block/mmcblk0p2     62.0M      4.1M     54.7M   7% /cache
/dev/block/vold/179:9       5.3G      4.9G    352.4M  93% /mnt/emmc
/dev/block/vold/179:17       29.2G      7.4G     21.8G  25% /mnt/sdcard
df: /mnt/secure/asec: Permission denied
/dev/block/dm-0           5.1M      3.0M      2.1M  59% /mnt/asec/com.fridgecat.android.atiltlite-1

$ su -
# bash
# mount -o rw,remount -t yaffs2 /dev/bloc/mmcblk0p1 /system

( insert your alias in bashrc )
# echo "alias ll='ls -lah'" >> /etc/bash/bashrc

# rm /system/media/bootanimation.zip
# ls -lah /system/media/    
drwxr-xr-x    2 root     root        4.0K Feb 29 15:20 .
drwxr-xr-x    4 root     root        4.0K Feb 29 15:20 ..
-rw-r--r--    1 root     root      189.0K Aug  1  2008 AndroidInSpace.240p.mp4
-rw-r--r--    1 root     root        2.8M Aug  1  2008 AndroidInSpace.480p.mp4
-rw-r--r--    1 root     root      772.5K Aug  1  2008 Disco.240p.mp4
-rw-r--r--    1 root     root        3.2M Aug  1  2008 Disco.480p.mp4
-rw-r--r--    1 root     root      379.6K Aug  1  2008 Sunset.240p.mp4
-rw-r--r--    1 root     root        2.8M Aug  1  2008 Sunset.480p.mp4
# \rm -rf /system/media/video/*.mp4

# df -Ph
# dev/block/mmcblk0p1    344.5M    218.6M    125.9M  63% /system

# mkdir /sdcard/BootAnimation/                                 
# mv /sdcard/Pictures/bootanimation480x800.zip /sdcard/BootAnimation/bootanimation.zip
# cp  /sdcard/BootAnimation/bootanimation.zip /system/media/
# chmod 644 bootanimation.zip 

# cd /system/media/                                                
# ls -lah                                                      
drwxr-xr-x    4 root     root        4.0K Mar  1 10:25 .
drwxr-xr-x   14 root     root        4.0K Feb 29 16:00 ..
-rw-r--r--    1 root     root      591.0K Aug  1  2008 LMprec_508.emd
-rw-r--r--    1 root     root      622.1K Aug  1  2008 PFFprec_600.emd
drwxr-xr-x    6 root     root        4.0K Feb 29 15:20 audio
lrwxrwxrwx    1 root     root          39 Mar  1 10:25 bootanimation.zip -> /sdcard/BootAnimation/bootanimation.zip
drwxr-xr-x    2 root     root        4.0K Mar  1 10:20 video

# df -h                                                        
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   202.9M     32.0K    202.8M   0% /dev
tmpfs                   202.9M         0    202.9M   0% /mnt/asec
tmpfs                   202.9M         0    202.9M   0% /mnt/obb
tmpfs                   202.9M         0    202.9M   0% /mnt/asec
tmpfs                   202.9M         0    202.9M   0% /mnt/extasec
/dev/block/mmcblk0p1    344.5M    218.6M    125.9M  63% /system
/dev/block/mmcblk0p8      1.5G    266.7M      1.1G  19% /data
/dev/block/mmcblk0p2     62.0M      4.1M     54.7M   7% /cache
/dev/block/vold/179:9
                          5.3G      4.9G    352.4M  93% /mnt/emmc
/dev/block/vold/179:17
                         29.2G      7.4G     21.8G  25% /mnt/sdcard
/dev/block/vold/179:17
                         29.2G      7.4G     21.8G  25% /mnt/secure/asec
/dev/block/dm-0           5.1M      3.0M      2.1M  59% /mnt/asec/com.fridgecat.android.atiltlite-1
# reboot

########### After i have flash IronKrnl (IronKernel) ###################
IronKrnl write bootanimation.zip in /data/local and have priority on /system/media/

# rm -rf /data/local/bootanimation.zip               
# cp /sdcard/BootAnimation/bootanimation480x800.zip /data/local/bootanimation.zip  
# chmod 774 /data/local/bootanimation.zip 
# reboot