Jul 312012
 

Hey Guys,

Since there has been a new ram split created by the generous Dom, I have updated my Ram selector script to take it into account.
You can get the script from
Here (ad supported)
or
Here.

This adds support for the new ram split if you have it present. It also keeps the old 224/32 ram split if for some reason you still want to use that one.

Script below


#!/bin/bash
##
## Raspberry Pi Memory Split Selector Script v4
## Author: SirLagz
## Website: http://sirlagz.net
##
## The purpose of this script is to make selecting the memory split
## on the RPi easy.
## Simply make this script executable if it's not already, move
## it to the directory with the elf files, and run it with ./select4.sh
## The menu should be pretty self explanatory.
##
cd /boot
clear
list=./*
b128det=0
b192det=0
b224det=0
b240det=0
bdefdet=0

for i in $list
do
case $i in
"./arm128_start.elf") b128det=1;;
"./arm192_start.elf") b192det=1;;
"./arm224_start.elf") b224det=1;;
"./arm240_start.elf") b240det=1;;
"./start.elf") bdefdet=1;;
esac
done

if [[ "$b192det" == "$bdefdet" ]] ; then
if cmp -s arm192_start.elf start.elf; then
current=192
fi
fi

if [[ "$b128det" == "$bdefdet" ]] ; then
if cmp -s arm128_start.elf start.elf; then
current=128
fi
fi

if [[ "$b224det" == "$bdefdet" ]] ; then
if cmp -s arm224_start.elf start.elf; then
current=224
fi
fi

if [[ "$b240det" == "$bdefdet" ]] ; then
if cmp -s arm240_start.elf start.elf; then
current=240
fi
fi

declare -i vram
vram=256-$current
success=1
sysram=`awk '/MemTotal/ { printf("%.0f",$2/1024) }' /proc/meminfo`
echo "##################################"
echo "## Raspberry Pi Memory ##"
echo "## Selector Script ##"
echo "##################################"
echo " Current Memory Split"
echo " CPU $current/$vram VRAM"
echo " Detected System RAM"
echo " $sysram MB"
echo "##################################"
echo "1) Set CPU/VRAM split to 128/128"
echo "2) Set CPU/VRAM split to 192/64"
if [[ "$b240det" == 0 ]] ; then
echo "3) Set CPU/VRAM split to 240/16 (NOT DETECTED. DO NOT USE)"
else
echo "3) Set CPU/VRAM split to 240/16"
fi
if [[ "$b224det" == 1 ]] ; then
echo "4) Set CPU/VRAM split to 224/32"
fi
echo "q) Quit"
echo "Enter Choice:";
read x
case $x in
1)
rm start.elf && cp arm128_start.elf start.elf
newram=128
;;
2)
rm start.elf && cp arm192_start.elf start.elf
newram=192
;;
3)
if [[ "$b240det" == 1 ]] ; then
rm start.elf && cp arm240_start.elf start.elf
newram=240
else
echo "The arm240_start.elf was not detected. Not changing ram split."
success=0
fi
;;
4)
rm start.elf && cp arm224_start.elf start.elf
newram=224
;;
q|Q)
exit 0
;;
*)
$0
;;
esac

if [[ $? -ne 0 ]]; then
echo "Memory Split setting failed"
elif [[ $success == 1 ]]; then
declare -i newvram
newvram=256-$newram
echo "Memory Split set to $newram/$newvram successfully"
fi

for i in $list
do
case $i in
"./arm128_start.elf") b128det=1;;
"./arm192_start.elf") b192det=1;;
"./arm224_start.elf") b224det=1;;
"./arm240_start.elf") b240det=1;;
"./start.elf") bdefdet=1;;
esac
done

if [[ "$bdefdet" -ne 1 ]]; then
$0
echo "=============================================================================="
echo "start.elf not detected. Please check that you have selected a valid ram split."
echo "=============================================================================="
fi

Share
Jul 312012
 

So there have been a few people on the forums wanting to run the Raspberry Pi off a small SD Card with a USB Storage device as the main OS device. You can actually run a Raspberry Pi off an SD card as small as 16 megabytes. Since you only need a few files on the SD Card to boot up the SD Card.

The files required are –

  • start.elf
  • loader.bin
  • kernel.img
  • config.txt
  • cmdline.txt
  • bootcode.bin

After you put those files onto the SD Card, you need to modify the cmdline.txt file’s root parameter to point to the usb device. Normally it’s pointing to the 2nd partition on the SD card which comes up as /dev/mmcblk0p2. This needs to be changed to /dev/sda1, assuming that the OS is installed on the USB device’s 1st partition.

This will allow you to run the Raspberry Pi off a very small SD Card if neccesary, or just have the OS on a USB storage device.

Share
Jul 312012
 

I was having some issues trying to integrate CA Spectrum with CA Business Intelligence after I removed it and re-installed it onto my server.
I was getting an issue similar to this –

Error importing SRM Content: Unable to find servers with kind fileserver

Error importing SRM Content: Unable to find servers with kind fileserver

After having a look around, it seemed that after I reinstalled CA Business Intelligence, the servers within Business Objects were not enabled.
The server responsible for the Integration was the Input File Repository Server. When that was disabled, the Integration did not work. After that was enabled, I was able to integrate Spectrum with Business Objects.

To enable the servers, you need to access the BusinessObjects Central Management Console (CMC), click on Servers under the Organize heading, and make sure the servers are enabled there.

Share
Jul 302012
 

I recently had some issues with CA’s Business Intelligence, and had to uninstall it. However the uninstaller from Add/Remove programs did not remove it completely.
When I went to re-install CABI, it did not install it properly due to left over bits and pieces that did not get removed.

After some muddling about with CA, I managed to remove it properly and reinstall CABI.
The following steps should uninstall it without anything remaining to cause issues.

  1. Uninstall CABI from Add/Remove Programs
  2. Delete the CommonReporting3 directory from the install drive
  3. Run this command – msiexec /x {5418F914-1D31-4849-822C-314AC28B06BF}
  4. Delete the following registry entries
    • HKLM\SOFTWARE\Wow6432Node\ComputerAssociates\Shared\CommonReporting3
    • HKCU\Software\Business Objects
    • HKU\.DEFAULT\Software\Business Objects
    • HKLM\SYSTEM\CurrentControlSet\Services\BOE120SIA
    • HKLM\SYSTEM\CurrentControlSet\Services\BOE120MySQL
    • HKLM\SYSTEM\CurrentControlSet\Services\BOE120Tomcat
    • HKLM\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\BOE120SIA
    • HKLM\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\BOE120Tomcat
    • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders\
    • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5418F914-1D31-4849-822C-314AC28B06BF}

After removing all of those things, I could install CABI properly.

Share
Jul 192012
 

I recently connected up a printer to my Linux server, but was running Windows 7 to do my taxes.
I didn’t want to setup Samba to share my printer, so I was trying to think of other ways I could print what I needed to when I realised that you can use a http address in Windows.

I added the address http://10.0.0.1/printers/printer to the Windows Add Printer wizard, printed a test page, and lo and behold, a job came up in CUPS. Saved me some effort of having to setup Samba, however I did need to install the printer drivers on my Windows 7 computer.

The address specified above will change depending on how CUPS is setup, but it’s really just the “Printers” page in CUPS that you need the address for.

Hope that helps someone in need !

Share