Tuesday, May 20, 2014

Mass Deploy FileWave Client with ARD (Apple Remote Desktop)

One efficient way to deploy the FileWave Client is to use ARD. This posting will outline the necessary steps to mass-deploy the FileWave Client.pkg with the proper preferences. Depending on the client version you want to deploy, please follow the steps for your version:

FileWave Client version 5.7.x and newer:


   1. Create a custom Client Package that has your server details in this form
   2. Deploy the custom client pkg with ARD.

FileWave Client version 5.6.3 and older:


What you need:
-FileWave Client.pkg (you can find this on the FileWave dmg)
-The appropriate postflight script for your version of the FileWave Client: 5.x,4.1.x, or 3.7.x.

Procedure
1. Open the FileWave Client.pkg package contents (right-click on the pkg) and look in /Contents/Resources.

2. Replace the file, postflight with the postflight script you just downloaded.

3. Open the (new) postflight script with a text editor that supports UNIX line endings (TextWrangler, BBEdit, vi, etc.) and set your preferences by editing the variables at the top of the script. Here is an example before and after code:

Before: 
Code:
#Postflight script to use with PKG installer
#enter the values for the client prefs here
#leaving fwUserName field blank will automatically use the computer name

server='enterYourServer'
serverPort=20015
desktopOwner=yourUser
password='yourPassword'
booster1='no.booster.set'
booster1Port=0


After: 
Code:
server='filewaveserver.filewave.us'
serverPort=20015
desktopOwner=student
password='5h3Lfx9'
booster1='192.168.1.13'
booster1Port=20013


4. To ensure that the postflight script executes properly, make sure to save it as a "Unix" file in your text editor. Also, it's a good idea to check the permissions on the script (via the Terminal) and change the permissions to > root:admin rwx-r-xr-x (755)
Code:
sudo chown root:admin /path/to/package/FileWave Client.pkg/Contents/Resources/postflight

sudo chmod 755 /path/to/package/FileWave Client.pkg/Contents/Resources/postflight


The fwcld package is now ready for your ARD deployment.

Notes:

The fwUser setting is left blank. This causes FileWave XClient to use the computer name as the FileWave Client name.

As Always, test things out on one or two machines before you mass-deploy.

This deployment technique is only for first-time deployments -- for upgrades, use FileWave Upgrade Filesets.

Monday, March 31, 2014

Installing Teamviewer 9 in Ubuntu 13.10 64bits

The most recent version of Teamviewer now is version 9 (at time of writing). And for even though the installer is available for the 64bits architecture, some of you may face some difficulties trying to install it on Ubuntu 13.10 64bits (I don't know about any other version of Ubuntu but my Linux Mint 16 does not has this kind of problem).

Actually the problem is because Teamviewer needs ia32-libs (one of it's dependencies) but this package is not available for recent Multiarch systems anymore. Therefore, we should use another installer instead of teamviewer_linux_x64.deb.


Notes to Multiarch:On newer 64-bit DEB-systems with Multiarch-support (Debian 7) teamviewer_linux_x64.deb cannot be installed because the package ia32-libs is not available anymore on these systems. In this case you can use teamviewer_linux.deb instead.

To install Teamviewer 9 just follow the following steps:

1. Download Teamviewer 9 installer:

wget http://teamviewer.com/download/teamviewer_linux.deb

2. Install gdebi - GDebi can install local .deb packages with automatic dependency resolution (it automatically downloads and install the required packages).

sudo apt-get install gdebi

3. Change working directory to where the downloaded installer is located. (if you don't change directory after running wget then you should be fine and doesn't have to worry about this).

sudo gdebi teamviewer_linux.deb


So that's pretty much how you install Teamviewer in Ubuntu 13.10 64bits. Good luck!

Sunday, January 5, 2014

Script For Showing Menu in Sublime Text 3

At the point of writing this entry, Sublime Text has reached build 3059. I installed this awesome little program and accidentally hide the menu bar and this action is irreversible, at least not by pressing shortcut keys or right clicking.

Luckily we can show the menu bar again by using this script:

#!/bin/sh
# ~/bin/subl_menu_visible.sh - Show/hide Sublime Text 3 Menu
if [ "$1" = "true" ]
        then echo "Turninng ON menu_visible"
elif [ "$1" = "false" ]
        then echo "Turninng OFF menu_visible"
else
        echo "Nothing changed! Use true or false as argument!"
        exit 1
fi
sed -ri "s/\"menu_visible\": [^,]+,/\"menu_visible\": $1,/" ~/.config/sublime-text-3/Local/Session.sublime_session

The script is easy to use. Just save it as subl_menu_visible.sh and put it anywhere you want. Of course you can use other naming convention but make sure it is descriptive.

To show, the menu bar, just run the script as follow:

sudo sh subl_menu-visible.sh true

To unhide the menu bar, you can simply change the property to flase instead of true but I'll just use the menu bar for that.