Posts tagged How To
Install Citrix XenClient 2.1 from USB
0Here is how you create a bootable USB stick, in Windows, using your downloaded Citrix XenClient 2.1 ISO and Pendrive Linux’s Universal USB Installer. Note: There is a similar tool called UNetBootin, but it has not worked without modifications.
For best results, your USB drive should be 1GB or greater in size. This drive will be wiped automatically by the tool in the steps below.
Universal USB Installer steps:
- Select a Linux Distribution – Try Unlisted Linux ISO (New Syslinux)
- Browse and select the XenClient_2_1.iso file
- Select your USB Flash Drive Letter Only
- Click on Create and wait for it to finish
If you are not using the Synchronizer then don’t forget to follow this guide for copying .iso files to your machine in order to install guests.
Update the Updates folder for Office 2010
0If you are like me and have used a network installation point for Office 2010, then there is an easy way to have a fresh install with all the updates. Here are the steps:
- Install Office 2010 to your liking on a PC
- Use Microsoft Update to install all the needed updates for that PC
- Use CollectUpdates.vbs to gather all installed Office updates and service packs (see TechNet)
- Copy the collected updates from %Temp%\Updates to the network installation point’s Updates folder
That’s it. Next time you install Office 2010 it will install all those updates during the initial installation. *This method has replaced slip streaming.
Create an LPR remote output queue in IBM i while using an HP JetDirect print server
0Below is an example of how to create an LPR/LPD output queue for an Okidata 320 Turbo printer on IBM i (AS400). If your Okidata printer has networking builtin, then create a SNMP print device instead of this type of output queue. This example is when the printer is hooked up to an external HP JetDirect 170x external print server:
CRTOUTQ – enter
- F9
Output queue: FORMS
Library: QUSRSYS
Remote System: *INTNETADR
Remote printer queue: lp
- page down
Writers to autostart: 1
Connection type: *IP
Destination type: *OTHER
Manufacturer type and model: *OKI320IBM
Internet Address: 192.168.1.10
- page down
Print separator page: *NO
Text ‘description’: Okidata 320 forms printer at main office
- page down
- enter
See if the new writer FORMS shows up:
WRKWTR WTR(*ALL) – enter
If you don’t see a writer, start it with this command:
STRRMTWTR OUTQ(FORMS) – enter
Need to make changes?
ENDWTR WTR(FORMS) OPTION(*IMMED) – enter
CHGOUTQ – enter
Output queue: FORMS
Library: QUSRSYS – enter
- F9
IBM Documentation:
Upgrade Openfire on Red Hat Enterprise Linux
1How to upgrade from Openfire 3.7.0 to Openfire 3.7.1 with a MySQL database on RHEL
Download the Openfire RPM package
wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.7.1-1.i386.rpm
Stop the openfire service
sudo /sbin/service openfire stop
Backup the openfire directory and MySQL database to the current working directory
sudo tar -czf openfire-3.7.0.tgz -C / opt/openfire
mysqldump -u openfireuser -p openfire > openfire-3.7.0-1.sql
u – user name for this database
p – prompt for the database user password
(this is the database user password you created during the initial install of the Openfire)
Update using RPM
sudo rpm -Uvh openfire-3.7.1-1.i386.rpm
U – Upgrade
v – Verbose information
h – Hashes print to show extraction of package
Start the openfire service
sudo /sbin/service openfire start
Notes
The database will automatically be updated for you. There were no issues going from 3.7.0 to 3.7.1.
ShoreTel Communicator encountered error while attempting to connect to server
4Recently I upgraded our ShoreTel server from version 9.2 to 11.1, with seemingly no issues. I then began to deploy the new ShoreTel Communicator to our end users and on our Citrix / Remote Desktop Servers. On the Citrix / Remote Desktop Servers, is where things got a little bumpy.
I logged into Citrix without Administrator user permissions and ran the new client, but was greeted with the following error:
Encountered error while attempting to connect to server.
The next step was to login as an Administrator and check Event Viewer. In the System events I noticed a DCOM error listed as Event ID 10016 which meant the users was not granted the Local Activation Permission for a certain CLSID. See below:
So I copied the CLSID by highlighting it and pressing Control-C, and searched by choosing Find in regedit to see where this showed up. The answer was at the bottom of Event Viewer in the Status bar, revealing that the issue involved the DCOM Config for STClientLogin.
Now for the fix. Follow the steps below and your headache will be alleviated:
- Login as an Administrator if you haven’t already
- Browse to Control Panel > Administrative Tools > Component Services
- Expand and choose DCOM Config (choose No to any warnings that popup)
- Find STClientLogin, right-click, and choose Properties
- Add the group Everyone and give it Allow permissions to all the listed categories
- Choose OK to close the appropriate windows and you are done
That’s it. You have now added the proper permissions for non-Administrator users to use the ShoreTel Communicator.
Adding an dot matrix or LPR printer to an iSeries OS400
0Below is an example of the commands to add an Okidata 420n impact printer to an AS400. This model of printer has it’s own 100Mbit IP-based print server.
CRTDEVPRT DEVD(OKI1) DEVCLS(*LAN) TYPE(3812) MODEL(1)
LANATTACH(*USRDFN) PORT(0) FONT(11) FORMFEED(*CONT)
PRTERRMSG(*INFO) TRANSFORM(*YES) MFRTYPMDL(*OKI320IBM)
PPRSRC1(*CONT132) RMTLOCNAME(’192.168.1.11′)
USRDRVPGM(QGPL/TSPLPRD)
TEXT(‘Sales Receipt Printer’)
SETRMTPQ DEVD(OKI1) RMTPRTQ(‘lp’)
WRKCFGSTS vary it on
WRKWTR start the writer
Per IBM: Using *CONT132 rather than *CONT80 can ensure that spooled files will not be printed in a condensed or compressed font because of Computer Output Reduction (COR) processing.
To see IBM’s documentation for LAN LPR printers click here.
To find your Remote Output Queue for your model of printer click here.
Switching users over to a fresh BlackBerry Enterprise Server Express install
5So you have done your research and you have decided to move towards using the BlackBerry Enterprise Server Express edition. Can you run a BlackBerry Enterprise Server along side a BlackBerry Enterprise Server Express edition on the same domain? This is not supported by RIM… but it does work. For my scenario I just had 100 users. The transporter tool does not work either, so this is a manual process- I am told this is because the database schemas are different between the two versions. So I am not going to be saving the users personal settings, at the end of the day I just want their contacts and emails to sync again. The resetting of the filters, time zone, and other personal preferences is not a big deal at the end of the day. After-all, we are going to save money both on licensing and monthly phone bills, since we don’t really need to have the BES data plan.
To begin we needed to add our users from one BES to a BES Express (BESX we’ll say). I ended up making the switch before switching their phones over from a BES plan to a BIS just to make my life a lot easier. OTA activations are handy, no arguing that fact.
I will now ask that you have followed RIM’s documentation on installing BESX, so I can keep this post brief. The following steps need to be performed to add users to the new database. You cannot share db’s.
To start with I need to export my users on my BES and import their info on the BESX. On the current BES perform the following:
- User -> Manage Users -> Search
- Scroll to the bottom click Manage multiple users
- Click Select all results on all pages
- Click Export user then click Download file and save UsersData.csv to your Desktop (all we need from this file is the list of email addresses)
At this point we need to format the file so that we can import the users into our new BESX server:
- Format the UsersData.csv by adding these column headings and populating it to your liking: ( Email Address | SRP ID | Activation Password Operation | Activation Password | Activation Password Expiry )
- The Activation Password Operation field can either be: generate or specify
- Activation Expiry is in hours. I used 48
- Remove the BESAdmin user from your .csv or whatever ID you use to manage your server
- Also the SRP ID is also known as the Serial Number. You received this info when signing up for the BESX
Assuming your BESX is installed we will head over to that server and import the users:
- User -> Create a user
- Import new users -> Browse… to the Data source file UsersData.csv that you modified
- Click Continue
If all goes well then your users are now being emailed their activation info for them to activate over the air. It is also at this point your users might see an error message pop up about an IT policy issue. That is because they need to wipe their phones and activate on the new server to grab it’s IT policies. If they have BIS accounts they will have to authenticate with their Active Directory credentials to https://besxhostname.yourdomain:3443/webdesktop/login and activate their phones via a USB cable. Note: They will need administrative privileges to install the ActiveX module or you can use a GPO and push it out for them…see the install guide.
Overall this is not a difficult process. Just be prepared to hear grief from your users about their settings. I was under the gun and didn’t have much time as we wanted to get our plan changes done by our next billing date. You might have more time and could mention to your users to backup their BlackBerry Messenger contacts to their Media Cards as a handy hint. In the end it is very much like installing a BES for the first time with the exception that you don’t have to figure out which users you need to create one at a time. You have an existing server’s user list, as a cheat sheet to import into the BESX. Our 100 users were able to complete this process over a weekend.
Here is a template of how I instructed my users to redo their Enterprise Activation
How to reset a Sprint BlackBerry to out of the box factory defaults
0The option to securely wipe a BlackBerry does not necessarily remove the IT polices the Enterprise Server administrator pushed out to your phone. You might wipe the phone and notice that your phone won’t receive it’s service books, the apps like the Internet Browser etc, and it will be stuck on 1xev instead of 1XEV. Provisioning usually fails too. A method that can help avoid these issues, is to really get the handheld “returned to new”. For Sprint BlackBerries perform the following steps:
- Get in touch with Sprint and obtain the MSL and MSID (lock code for programming – you will need to be the owner of the account to get this information)
- On your BlackBerry dial ##RTN Talk (##786 Talk)
- Enter the MSL when prompted and it will begin the wiping process
- Once the phone has booted back up do the normal reprogramming steps. (the device will not be active until you do this)
When I do ESN swaps for our users, I use this method simply to avoid the possibilities of policies from my BES getting stuck on their phone and interfere with the provisioning process.
Cacti name-based virtual host for Apache
0I wanted to monitor my networking gear using Cacti. Below is my Apache httpd.conf to use name-based virtual hosting.
CentOS / RHEL:
sudo nano /etc/httpd/conf/httpd.conf (needed to uncomment the following line)
NameVirtualHost *:80
sudo nano /etc/httpd/conf.d/cacti.conf (add the virtual host lines around the existing Directory ones..and change to your network address subnet)
<VirtualHost *:80>
ServerAdmin noc@mydomain.com
DocumentRoot /usr/share/cacti
ServerName traffic.mydomain.com
<Directory /usr/share/cacti/>
Order Deny,Allow
Allow from 192.168.1.0/24
</Directory>
LogLevel warn
ErrorLog logs/traffic.mydomain.com-error_log
CustomLog logs/traffic.mydomain.com-access_log combined
</VirtualHost>
To make the changes take effect: sudo /sbin/service httpd reload
To make sure the httpd service restarts at boot: sudo /sbin/chkconfig httpd on
Also don’t forget to turn on the Cacti cronjob that polls the devices,use sudo nano /etc/cron.d/cacti and uncomment the following line: */5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
To get a better understanding on DNS issues and Apache read: HERE
Reset a BlackBerry using JL_Cmder on Windows 64-bit editions
23The other day I had a person forget the password they set on their BlackBerry. After so many failed attempts the BlackBerry began to wipe itself. The person then panicked and pulled out the battery… bad idea. The phone is then stuck in an inoperable state and cannot boot. This is where the tool JL_Cmder comes in to save the day.
For this scenario I am going to use JL_Cmder 1.9.1, BlackBerry Desktop Manager 5, and the latest OS for my model of BlackBerry. I tested this example on Windows 7 64-bit edition, but it can be a 32-bit OS as well.
- Install BlackBerry Desktop Manager (do an advanced install and remove the Automatic Update feature).
- Install the latest OS for your BlackBerry model and if necessary remove the Vendor.xml file located in: C:\Program Files (x86)\Common Files\Research In Motion\AppLoader
- Download and extract JL_Cmder and set the .exe and .cmd to run in a compatibility mode of Windows XP Service Pack 3.
- (32-bit OS users can skip this step) Remove CHOICE.COM from the JL_Cmder directory.
So let’s begin. Chances are your phone is at a menu asking you to Reset, but before you do… open JL_Cmder.cmd (from program files, not a desktop shortcut). Next, connect your BlackBerry via USB and press Reset on your phone. You should notice the icon change on your phone to appear that it has connected. Issue a wipe command, option 4, from JL_Cmder. Your BlackBerry will then reboot itself and you should see and error 507 on the screen. We are now done with JL_Cmder, issue option 7 to quit the application.
Finally we will reload the OS to your phone. Open C:\Program Files (x86)\Common Files\Research In Motion\AppLoader\Loader.exe and select which parts of the OS you would like to restore. I wouldn’t put stuff on that you don’t plan on using. The smaller the footprint the better.
Please feel free to leave comments if this worked or not. Any feedback would be beneficial.



