It has been a while since I updated this blog with useful posts. I'm really busy with my personal life, traveling, and group activities. Lately i revised back about Java programming and I decided to create some series of Java tutorial here in my blog. I hope this can help those who want to learn Java the quick way (really? there's no easy way for that dude. LOL) and help me remember what I learnt . My reference is a book by D.S. Malik titled Java Programming From Problem Analysis to Program Design 5th Edition. Thanks and enjoy.
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:
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.
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.
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!
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!
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:
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:
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.
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.
Using web based speed test is too mainstream? How about testing your internet connection speed in terminal? Sounds geeky right. Here's how:
Install python-pip:
Install speedtest-cli:
To run the speedtest, just type in 'speedtest' in your terminal and wait for the result.
Install python-pip:
sudo apt-get install python-pip
Install speedtest-cli:
sudo pip install speedtest-cli
To run the speedtest, just type in 'speedtest' in your terminal and wait for the result.
Happy New Year!
So this is the first post for this year and this guide can be applied to other Debian based GNU/Linux distros out there. For the sake of this tutorial, I'll just use my Linux Mint 16.
Installing Dependencies
Firstly, you might want to install several packages needed by Metasploit. Open up Terminal and update your system:
Then, install the following packages:
Then, install the Ruby libraries:
Installing Nmap
This scanning tool is not included in Metasploit so we have to install it manually using this command:
Configuring PostgreSQL Server
Now we have to create the user and database to be used within Metasploit:
Installing Metasploit
Here comes the real step. Installing Metasploit is very easy with the installation wizard. just follow the guide and click Next to the end. But firstly, Lets download the installer package from Rapid7.
Visit http://www.rapid7.com/products/metasploit/download.jsp and download Metasploit Community Version which is free. You can also buy the Pro version. It come with 7-days trial though. For me, the free version is good enough.
After downloading the installer, chmod it so we can execute it:
After that, run the installer as root:
Follow the on-screen wizard until you finished.
After exiting the wizard, You'll be forwarded to Metasploit Web UI to con figure your Metasploit for first use. This is an important step. Don't miss out!
You will have to wait for the initialization process to end. This might take a while but if this continues for more than 10 minutes, you better restart the service manually and start the initialization process again.
To restart the service, close your browser window and open up terminal and type in:
After restarting the service, wait for a few minutes before accessing the initialization process again. Patience is the key to success!
Now, you should be able to register your copy of Metasploit Community and the key will be delivered to you via email instantly.
That's all, msfconsole time!!
So this is the first post for this year and this guide can be applied to other Debian based GNU/Linux distros out there. For the sake of this tutorial, I'll just use my Linux Mint 16.
Installing Dependencies
Firstly, you might want to install several packages needed by Metasploit. Open up Terminal and update your system:
sudo apt-get updatesudo apt-get upgrade
Then, install the following packages:
sudo apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev openjdk-7-jre subversion git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev ruby1.9.3
Then, install the Ruby libraries:
sudo gem install wirble sqlite3 bundler
Installing Nmap
This scanning tool is not included in Metasploit so we have to install it manually using this command:
mkdir ~/Development
cd ~/Development
svn co https://svn.nmap.org/nmap
cd nmap
./configure
make
sudo make install
make clean
Configuring PostgreSQL Server
Now we have to create the user and database to be used within Metasploit:
sudo -s
su postgres
createuser msf -P -S -R -D
createdb -O msf msf
exit
exit
Installing Metasploit
Here comes the real step. Installing Metasploit is very easy with the installation wizard. just follow the guide and click Next to the end. But firstly, Lets download the installer package from Rapid7.
Visit http://www.rapid7.com/products/metasploit/download.jsp and download Metasploit Community Version which is free. You can also buy the Pro version. It come with 7-days trial though. For me, the free version is good enough.
After downloading the installer, chmod it so we can execute it:
sudo chmod +x metasploit-latest-linux-installer.run
After that, run the installer as root:
sudo ./metasploit-latest-linux-installer.run
Follow the on-screen wizard until you finished.
After exiting the wizard, You'll be forwarded to Metasploit Web UI to con figure your Metasploit for first use. This is an important step. Don't miss out!
You will have to wait for the initialization process to end. This might take a while but if this continues for more than 10 minutes, you better restart the service manually and start the initialization process again.
To restart the service, close your browser window and open up terminal and type in:
sudo bash /opt/metasploit/ctlscript.sh restart
After restarting the service, wait for a few minutes before accessing the initialization process again. Patience is the key to success!
Now, you should be able to register your copy of Metasploit Community and the key will be delivered to you via email instantly.
That's all, msfconsole time!!