Wednesday, February 18, 2015

How to Set the JAVA_HOME Variable in Windows 8.1

Find JDK Installation Directory
First you need to know the installation path for the Java Development Kit.
Open the default installation path for the Java Development Kit
C:\Program Files\Java
There should be a subdirectory like
C:\Program Files\Java\jdk1.6.0_10
Set the JAVA_HOME Variable
Once you have the JDK installation path:
  1. Right-click the My Computer icon on
  2. your desktop and select Properties.
  3. Click the Advanced tab. Click the
  4. Environment Variables button. Under System Variables, click New.
  5. Enter the variable name as JAVA_HOME.
  6. Enter the variable value as the installation path for the Java Development Kit.
  7. Click OK.
  8. Click Apply Changes.
You might need to restart windows.

Stop PS3 Media Server .MKV Stuttering


Problem

PMS is exceeding the available Java heap memory allocated when PMS starts. Newer versions of PMS handle this error by half-ing the transcode buffer (sometimes leading to skips or crashes depending on the renderer) while older versions just let the video crash.
The heap is the sum of the transcode buffer memory plus all of the overhead memory (the actual PMS application, media library, iTunes support, Radio plugin, etc), and the overhead memory can grow quite a bit if the “extra” features (iTunes, Radio plugin, etc) are enabled.

Solution

Install the latest version of Java and PS3 Media Server. Goto General Configuration and Install as a Windows Service.
Edit file C:\Program Files (x86)\PS3 Media Server\win32\service\wrapper.conf , search the file for the Heap Size and change it from 768 to 1536.
# Maximum Java Heap Size (in MB)
 wrapper.java.maxmemory=768  (change this to 1536)
  • 32-bit JVM on a 64-bit machine with 4+ GB of RAM can safely use a heapsize value of 1536
  • 32-bit JVM on a 32-bit machine with 4 GB of RAM should at most use a heapsize value of 1200
Goto Transcoding Settings and change these settings:
  • Transcode Buffer: 600
  • Number of cores: 4
  • Video Quality Settings: Keyint=5:vqscale=2:vqmin=3


Restart the PS3 Media Server service. The javaw.exe*32 process will now use more memory and your 1080p video should run smoothly.



How to Disable Driver Signature Verification on 64-Bit Windows 8

I have never run into this issue before. But I was trying to root my Android Tablet, when i got the message: System Policy denied access to unsigned drivers. Now i had to change change windows 8 policy to give access to unsigned driver installation.

 This is the tutorial to disable driver verification in windows 8 or 8.1  (So That You Can Install Unsigned Drivers)


64-Bit editions of Windows require digitally signed drivers. The problem is that many devices ship with unsigned drivers. Today, we’ll show you how to install them regardless.
Digitally signed drivers include an electronic fingerprint that indicates which company the driver was produced by as well as an indication as to whether the driver has been modified since the company released it. This increases security, as a signed driver that has been modified will no longer have an intact signature. Drivers are signed using code signing certificates.

Press the Win + C keyboard combination to bring up the Charms Bar, then click on the Settings Charm.
image
We need to head into the Modern Control Panel, so go ahead and click on the Change PC settings link.
image
When the Control Panel opens, switch over to the “Update & recovery” section.
image
Then click on the Recovery option on the left hand side.
image
Once selected, you will see an advanced startup section appear on the right hand side. You will need to click on the “Restart now” button.
image
Once your Computer has rebooted you will need to choose the Troubleshoot option.
image
Then head into Advanced options.
image
Then Startup Settings.
image
Since we are modifying boot time configuration settings, you will need to restart your Computer one last time.
image
Finally, you will be given a list of startup settings that you can change. The one we are looking for is “Disable driver signature enforcement”. To choose the setting, you will need to press the F7 key.
image

That’s all there is to it. Your PC will then reboot and you will be able to install unsigned drivers without any error message


Good Luck.


Things To Do After Installing CentOS 7

I have been using Linux OS for the past 10 years. I believe that I've finally found a system that's stable, easy on the eyes, minimum of pre-install packages, HDMI friendly, speed and reliability.

Well, the OS is CentOS 7. I was extremely surprise that everything works. I even install CenOS 6 on an old desktop But sadly some necessary packages were not pre-installed. If you're a regular Linux user , you should have no problem adding those packages, but if you're a novice or new implant from Windows or Mac, you will have to dig around to find all the info you need.

I decided to add these instructions to help my redears:

How to setup multimedia

You will need to also install the EPEL repository as nux-dextop depends on this for some of its packages.
Step 1: Install the nux-dextop repository
Run this command to install the nux-dextop repository.
yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

Step 2: Install the adobe repository
Run this command to install the adobe repository.
yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm

Step 3: Install the desired packages
This command will download the flash plugin for Firefox.
yum install flash-plugin

This command will download the java plugin for Firefox.
yum install icedtea-web

This command will install Handbrake, VLC and smplayer.
yum install vlc smplayer ffmpeg HandBrake-{gui,cli}

The following command installs a decoder and codecs which are required to play certain types of media. Their usage may be legally restricted in some areas. Obtain legal advice if you are uncertain about the laws in your locality.
yum install libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld
 
 

Install VLC

The default distribution of VLC includes a large number of free decoding and encoding libraries, avoiding the need for finding/calibrating proprietary plugins. Many of VLC’s codecs are provided by the libavcodec library from the FFmpeg project, but it uses mainly its own muxer and demuxers and its own protocols implementations. It also gained distinction as the first player to support playback of encrypted DVDs on Linux and OS X by using the libdvdcss DVD decryption library.
For EL7:
Install EPEL from http://www.unixmen.com/install-epel-repository-centos-rhel-7/ rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

For EL6:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
Now:
yum update
yum  install vlc
 
 
 

Installing (rpmfusion) Free and Nonfree Repositories


We have two separate software repositories:
  • free for Open Source Software (as defined by the Fedora Licensing Guidelines) which the Fedora project cannot ship due to other reasons
  • nonfree for redistributable software that is not Open Source Software (as defined by the Fedora Licensing Guidelines); this includes software with publicly available source-code that has "no commercial use"-like restrictions
Installation can be done either using a web browser, or via the command line.

Graphical Setup via Firefox web browser


  1. First enable access to the free repository. For users of gpk (gnome package kit) or kpackagekit in Fedora that is easy and basically only one step: just click on one of the following files, depending on what distribution you use and then follow the default options that Firefox and Package Kit offer by clicking Enter a few times:
  1. Once that succeeds, you can enable access to the nonfree repositories by clicking on one of the following files, depending on what distribution you use and then follow the default options that Firefox and Package Kit offer by clicking Enter a few times(¹):
Once you clicked on above link Firefox will ask you how to Open the file. Here you can simply use the default and open the file with the default application Package Installer. Then Firefox will call Package Kit, which asks Do you want to install this file ?. Click OK to begin install; Package Kit then will complain about a Missing security signature; once you tell Package Kit to install the package nevertheless it will move on and install it. That's all.
 

Command Line Setup using rpm


To enable access to both the free and the nonfree repository use the following command:
  • Fedora 14 to the most current:
    su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
  • RHEL 5 or compatible like CentOS:
    su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm'
  • RHEL 6 or compatible like CentOS:
    su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'
For further info and wiki you can visit the official CentOS:
 http://wiki.centos.org/AdditionalResources/Repositories