Friday, January 15, 2016

Removing Build-in Application in Windows 10

Use PowerShell to Uninstall Built-in Apps

Uninstall 3D Builder:
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Uninstall Alarms and Clock:
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Uninstall Calculator:
Get-AppxPackage *windowscalculator* | Remove-AppxPackage
Uninstall Calendar and Mail:
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Uninstall Camera:
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Uninstall Contact Support:
This app can’t be removed.
Uninstall Cortana:
This app can’t be removed.
Uninstall Get Office:
Get-AppxPackage *officehub* | Remove-AppxPackage
Uninstall Get Skype:
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Uninstall Get Started:
Get-AppxPackage *getstarted* | Remove-AppxPackage
Uninstall Groove Music:
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Uninstall Maps:
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Uninstall Microsoft Edge:
This app can’t be removed.
Uninstall Microsoft Solitaire Collection:
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
Uninstall Money:
Get-AppxPackage *bingfinance* | Remove-AppxPackage
Uninstall Movies & TV:
Get-AppxPackage *zunevideo* | Remove-AppxPackage
Uninstall News:
Get-AppxPackage *bingnews* | Remove-AppxPackage
Uninstall OneNote:
Get-AppxPackage *onenote* | Remove-AppxPackage
Uninstall People:
Get-AppxPackage *people* | Remove-AppxPackage
Uninstall Phone Companion:
Get-AppxPackage *windowsphone* | Remove-AppxPackage
Uninstall Photos:
Get-AppxPackage *photos* | Remove-AppxPackage
Uninstall Store:
Get-AppxPackage *windowsstore* | Remove-AppxPackage
Uninstall Sports:
Get-AppxPackage *bingsports* | Remove-AppxPackage
Uninstall Voice Recorder:
Get-AppxPackage *soundrecorder* | Remove-AppxPackage
Uninstall Weather:
Get-AppxPackage *bingweather* | Remove-AppxPackage
Uninstall Windows Feedback:
This app can’t be removed.
Uninstall Xbox:
Get-AppxPackage *xboxapp* | Remove-AppxPackage

How to Reinstall All Built-in Apps

If you decide you want the preinstalled apps back, you can get them back with a single line of PowerShell code. Again, open a PowerShell window as Administrator. Copy and paste the following line into the PowerShell window and press Enter:
Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
This tells Windows to install those default apps again. Give it some time and allow it to finish, even if nothing appears to happen at first. Even if you see an error message, restart and examine your Start menu — you may just have all those default apps back again, anyway.

Source: http://www.howtogeek.com/224798/how-to-uninstall-windows-10s-built-in-apps-and-how-to-reinstall-them/

Debian Jessie KVM

Installasi:
# apt-get install qemu-kvm libvirt-bin virtinst bridge-utils
Grand user to manage:
# adduser dedetok kvm
# adduser dedetok libvirt
---------------------------------------------------
List all virtual
# virsh list --all
---------------------------------------------------
Default KVM with NAT
---------------------------------------------------
NAT Configuring default network
# virsh net-info default
# virsh net-autostart default
# virsh net-start default
---------------------------------------------------
KVM with bridge network
---------------------------------------------------
Setting up network using bridge
# brctl addbr br0
# ip addr show
# brctl addif br0 eth0
---------------------------------------------------
or write configuration permanently:
---------------------------------------------------
edit /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.1.10
# netmask 255.255.255.0
# gateway 192.168.1.1
iface eth0 inet manual
# Initial bridge for static
auto br0
iface br0 inet static
bridge_ports eth0
address 192.168.1.10
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1
bridge_stp off
bridge_fd 0
bridge-waitport 0
dns-nameservers 8.8.8.8
# Initial bridge for dhcp
#auto br0
#iface br0 inet dhcp
# bridge_ports eth0
iface br0 inet6 static
address 2001:db8::1
netmask 64
gateway fe80::1
autoconf 0
#iface br0 inet6 auto
---------------------------------------------------
additional interface option:
  • bridge_stp off # disable Spanning Tree Protocol
  • bridge_waitport 0 # no delay before a port becomes available
  • bridge_fd 0 # no forwarding delay
  • bridge_ports none # if you do not want to bind to any ports
  • bridge_ports regex eth* # use a regular expression to define ports
---------------------------------------------------
edit /etc/resolv.conf
nameserver 192.168.1.1
---------------------------------------------------
edit /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding=1
---------------------------------------------------
For performance and security reasons, disable netfilter for bridges. Edit /etc/sysctl.conf or create /etc/sysctl.d/bridge.conf with these contents:
net.bridge.bridge-nf-call-ip6tables=0
net.bridge.bridge-nf-call-iptables=0
net.bridge.bridge-nf-call-arptables=0
run
# sysctl -p
If you create /etc/sysctl.d/bridge.conf, then you need to create /etc/udev/rules.d/99-bridge.rules (If using Linux kernel 3.18 or later,
change KERNEL=="bridge" to KERNEL=="br_netfilter")
ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/sbin/sysctl -p /etc/sysctl.d/bridge.conf"
To allow all traffic to be forwarded across the bridge from KMV guest:
 -I Insert
# /sbin/iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
-P Policy
# iptables -P INPUT ACCEPT
Add default gateway (not necessary)
# route add default gw 192.168.1.1
---------------------------------------------------
network bonding and bridging
---------------------------------------------------
assuming server has 2 network interface eth0 and eth1.
# apt-get install bridge-utils ifenslave
edit /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet manual
iface eth1 inet manual
# Initial bridge for static
auto br0
iface br0 inet static
bridge_ports bond0
address 192.168.1.10
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1
bridge_stp off
bridge_fd 0
bridge-waitport 0
dns-nameservers 8.8.8.8
iface br0 inet6 auto
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond-mode 802.3ad
# bond_mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
Available bond mode:
  • balance-rr or 0
  • active-backup or 1
  • balance-xor or 2
  • broadcast or 3
  • 802.3ad or 4
  • balance-tlb or 5
  • balance-alb or 6
---------------------------------------------------
copy iso file into folder /var/lib/libvirt/boot/ (eq dsl-4.4.10.iso)
Create virtual machine: ram 256 with Storage 5G using NAT
# virt-install --name dsl01 --ram 256 --cdrom /var/lib/libvirt/boot/dsl-4.4.10.iso --disk path=/var/lib/libvirt/images/dl01.img,size=5 --network bridge=br0 --graphics none
Create virtual machine: ram 256 with Storage 5G using bridge
# virt-install --name dsl01 --ram 256 --cdrom /var/lib/libvirt/boot/dsl-4.4.10.iso --disk path=/var/lib/libvirt/images/dl01.img,size=5 --network bridge=br0 --graphics none
Create virtual machine ram 2G, virtual cpu 4 with disk image bridge virbr0 (NAT) using Debian network installer no graphics (using console)
# virt-install --virt-type kvm --name deb01 --location http://httpredir.debian.org/debian/dists/jessie/main/installer-amd64/ --extra-args "console=ttyS0" -v --disk path=/home/kvmimages/deb01/disk1.img --memory 2048 --vcpu 4 --network bridge:virbr0
Reference:
  • http://www.cyberciti.biz/faq/debian-ubuntu-linux-kvm-guest-shared-physical-network
  • http://wiki.libvirt.org/page/Networking
  • https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html
  • http://www.koethe.net/bonding+bridging/
  • https://ryanclouser.com/2015/11/30/Debian-8-Bonding-with-Bridge/
  • https://www.kernel.org/doc/Documentation/networking/bonding.txt
  • https://wiki.debian.org/KVM

Wednesday, December 30, 2015

WHM/Cpanel update and license problems

Update your Centos, from console/terminal run:
# yum update -y
# /scripts/upcp update all
If your WHM/Cpanel asks you to activate your license, and your license not yet expired, run this command
# /usr/local/cpanel/cpkeyclt
To show WHM/Cpanel version via terminal
# cat /usr/local/cpanel/version
11.64.0.33

WHM Backup using WHM Web Console

Home »Backup »Backup Configuration

  1. Global Settings
    1. Backup Status -> Enable
    2. Backup Type -> Compressed (Compressed, Uncompressed, Incremental).
    3. Maximum destination timeout 7200 in seconds (default: 7200)
    4. Maximum restore timeout 21600 in seconds (default: 21600)
  2. Scheduling and Retention
    1. Backup Daily
    2. Backup Weekly
    3. Backup Monthly 1st of the month (default:1st of the month , 15th of the month) Retain 1 Monthly backups default:1.
  3. Files
    1. Backup Accounts select all active user (default:none) 
    2. Backup Suspended Accounts (default:Disable) 
    3. Backup Access Logs (default:Disable) 
    4. Backup Bandwidth Data (default:Enable) 
    5. Use Local DNS (default:Disable)
    6. Backup System Files (default: checked)
  4. Databases
    1. Backup SQL Databases Per Account Only  (default:Per Account Only, Entire MySQL Directory Per Account and Entire MySQL Directory)
  5. Configure Backup Directory 
    1. Default Backup Directory (default: /backup) 
    2. Retain backups in the default backup directory (default: checked) 
    3. Mount Backup Drive as Needed. (default:Disable)
  6. Additional Destinations
Save Configuration




Sunday, December 6, 2015

Blackberry Bold 9900 OS 7.0 build 1346 error 102

Blackberry 7.0 build 1346 error 102
symptoms:
  1. boot fail with error code 102
  2. boot loop
  3. can not enter safe mode using backspace or escape key (right cursor).
Download JL_Cmder from http://www.blackberryfreaks.com/JL_Cmder.html

To find out which parts causing problems, run JL_Cmder.cmd :
D:\JL_Cmder v1.9.0>JL_Cmder.cmd
follow instruction and choose "event log" (menu number 2).
save event log into notepad.

Find which corrupted parts occurred in event log, for examples:
  • guid:0x97C9F5F641D25E5F time: Thu Jan 01 07:00:00 1970 severity:0 type:2 app:System data:CMM: verifyHash1 failed for DocsToGoCommon-4(6424)
  • guid:0x97C9F5F641D25E5F time: Thu Jan 01 07:00:00 1970 severity:0 type:2 app:System data:CMM: data unlink failed for net_rim_bb_twitter-8(8699)
Remove them using JavaLoader.exe
D:\JL_Cmder v1.9.0>JavaLoader.exe -u erase -f net_rim_bb_twitter-8
RIM Wireless Handheld Java Loader
Copyright 2001-2007 Research In Motion Limited
Connected
Erasing net_rim_bb_twitter-8 Done
Disconnected

D:\JL_Cmder v1.9.0>JavaLoader.exe -u erase -f DocsToGoCommon-4
RIM Wireless Handheld Java Loader
Copyright 2001-2007 Research In Motion Limited
Connected
Erasing DocsToGoCommon-4 Done
Disconnected

D:\JL_Cmder v1.9.0>

References:
  1. http://crackberry.com/help-jvm-error-102-your-blackberry-try-solution-wiping
  2. http://www.blackberryfreaks.com/JL_Cmder.html
  3. http://www.blackberryfreaks.com/How_to_use_JL_Cmder.html