0

teamviewer for Linux

wget http://www.teamviewer.com/download/teamviewer_linux.tar.gz
tar xf teamviewer_linux.tar.gz
cd teamviewer6
./teamviewer

0

Userful Linux tools for windows

ssh & scp for Windows

PuTTY, (and its file transfer utility, pscp), are excellent Windows ssh/scp implementations, and are a piece of cake to get up and running. These programs are not zipped and do not require any installation.

Downloads:
putty: putty.exe
pscp: pscp.exe

nmap for Windows

Nmap ("Network Mapper") is a free and open source utility for network exploration or security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and official binary packages are avalable for Linux, Windows, and Mac OS X.

Downloads
nmap 5.51 self-installer: nmap-5.51-setup.exe
nmap 5.51 command-line: nmap-5.51-win32.zip

rdesktop for Windows


rdesktop is a terminal services client for X windows by Matthew Chapman. This is a native Windows port of rdesktop.

Requirements

Windows 95 OSR2/98/Me/NT 4/2000/XP/2003/2008/Vista/7

Download

rdesktop 1.6

Download: rdesktop-1.6.0-win32.zip

Requirements:
X server for Windows (e.g. Xming or Cygwin X11)
You must have the X server running prior to using rdesktop.

Older versions: Note: this snapshot is not a complete port and requires Cygwin 1.5.12 to run.
Binaries: rdesktop-bin-win32-20041201.zip
Source: rdesktop-src-win32-20041201.tar.bz2

Full native ports of rdesktop 1.2. Cygwin is not required.
Binaries: rdesktop-bin-win32-20030219.zip
Source: rdesktop-src-win32-20030219.tar.bz2
Binaries: rdesktop.zip
Source: rdesktop-src.tar.gz

Compiling rdesktop for Win32

http://www.soren.schimkat.dk/Blog/?p=69

Licence

GNU General Public License
rdesktop © Matthew Chapman 1999-2003 © Christopher January 2002-2003,2004

Related Links

www.rdesktop.org

0

How to set Postgresql money type to use 3 decimal places in Windows

LINUX
=====

Under Linux, type command in postgres database:

set lc_monetary to 'ar_BH.utf8';

ar_BH represents Arabic (Bahrain) locale, the above command change the locale monetary setting on-the-fly in postgresql database, the let do a test:

select 34.888::text::money;

You will get 34.888 with 3 decimal places money type. Tested in Postgresql 8.4.6.

WINDOWS
=======

However the above set command will get an error message under Windows.

FATAL: invalid value for parameter “lc_monetary”

You will need to:

set lc_monetary to "Arabic, Bahrain";

This will set the lc_monetary to arabic locale but only display 2 decimal places by default, it seems everything right of the comma is ignored.

To workaround this, use an '_' in plase of ', ' like:

set lc_monetary to "Arabic_Bahrain";

Tested with Windows XP + PostgreSQL 9.0.3(this solution should work for PostgreSQL 8.3 or later version too)

Thanks Jasen who get this resolved, more information please see his post @ postgresql forum:
http://postgresql.1045698.n5.nabble.com/win-Locales-quot-Arabic-Gum-quot-td3369213.html

0

How to configure public folder in Exchange server 2007

1. Create a pulic folder
open Exchange Management Console
=> Public Folder Management Console
=> Default Public Folder
=> New Public Folder(from right-click menu)

then follow the wizard to create a public folder. Fox example give it a name Test, so the public folder path will be "\Test";

2. Use the Exchange Management Shell to add public folder permissions for a client user
open Exchange Management Shell
=> Run command
"Add-PublicFolderClientPermission -Identity "\Test" -AccessRights Owner -User TestUser"

This will give user "TestUser" the "Owner" accessRights which has full permission of the public folder;

More info please go to:
http://technet.microsoft.com/en-us/library/aa998834.aspx

0

Enable or Disable UAC From Windows Command Line

This should apply to Windows 7 / Vista

Disable UAC

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Enable UAC

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

After you enable or disable UAC, you will have to reboot your computer for the changes to take effect.

Note: After disabling and turning off UAC, a red X shield icon of Windows Security Center will be displayed in the notification area (system tray).

The alert trigger events include the following:

* Disable Windows Firewall.
* Disable antivirus program.
* Do not install or uninstall anti-virus.
* Outdated virus definition and signature.
* Disable Automatic updates.
* Turf off User Account Control.
* Computer requires to restart after applying hotfix or update.

These security concerns is relatively minor and can be safely dismissed, especially if the issue is purposely or intentionally done. In this case, the WSC Alerts icon and message can be turned off so that the system no longer will trigger notification when a problem occurred.

1. If you can see the Security Center shield icon in the notification area, simply double click on the icon to open Windows Security Center. Else, click on Windows Start button, select Control Panel, and then Windows Security Center.
2. Click on “Change the way Security Center alerts me” link in the left pane in Windows Vista. In Windows XP, it’s located under Resources section.
3. In Windows Vista, choose either “Don’t notify me, but display the icon” or “Don’t notify me and don’t display the icon” option, with later as complete disable of all Security Center Alerts.

In Windows XP, a Alert Settings dialog box will appear. Clear the Firewall, Automatic Updates, and/or Virus Protection check boxes to disable the respective component’s alert, and then click OK.

0

Outlook: Folder sharing is not available

We have a user that wishes to share his contact list with other employees in his office.
Everyone receives email via the same Exchange 2007 server.

He did the Permissions for the contacts (Right click, permissions added the user) and when she selects "SHARE CONTACT" she gets the error
"Folder sharing is not available with the following entries because of permission settings on your network."

Possible Soulution
==================

If your user in cached mode? If yes, try to do a Send and Receive, if that fails, disable cached mode, restart outlook, try to share the contact again and then re-enable the cached mode.

Cache Mode Toggle in Outlook 2007:
Tools > Account Settings > Highlight your Exchange server account, and then click Change
To turn Cached Exchange Mode on or off, under "Microsoft Exchange Server:", check or uncheck Cached Exchange Mode. Click Next, and in the window that opens, click OK.
Click Finish. Restart Outlook for the change to take effect.

0

Outlook can't save password

The problem is Outlook ask for the password over and over again.

Solution
========

HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider

Delete the subkey

The user subkey folder resembles the following example:
S-1-5-21-124525095-708259637-1543119021-16701

Restart computer

Start Outlook, enter and save the password.

0

Howto create Loop Device on Linux

This mini howto explain how to create more loop device on your operating system.You need to create more loop device in some case like encrypted file system or HVM xen virtualization.  By default there are 7 devices available, named /dev/loop0 through to /dev/loop7.

INFORMATIONS
You can find the loop device like that :


1# ls -al /dev/loop*
2brw-r----- 1 root disk 7, 0 Mar 19 09:34 /dev/loop0
3brw-r----- 1 root disk 7, 1 Mar 19 09:34 /dev/loop1
4brw-r----- 1 root disk 7, 2 Mar 19 09:34 /dev/loop2
5brw-r----- 1 root disk 7, 3 Mar 19 09:34 /dev/loop3
6brw-r----- 1 root disk 7, 4 Mar 19 09:34 /dev/loop4
7brw-r----- 1 root disk 7, 5 Mar 19 09:34 /dev/loop5
8brw-r----- 1 root disk 7, 6 Mar 19 09:34 /dev/loop6
9brw-r----- 1 root disk 7, 7 Mar 19 09:34 /dev/loop7
The creation of the loop device is very simple but you have 2 options for this creation one is without reboot and the other one is with a reboot.


HOT CREATION
Creation of loop8 :

1# mknod -m640 /dev/loop8 b 7 8
2-m640 define the permission of the device
3/dev/loop8 define the name of the device
4b for the creation of the special block device
57 8 the number 7 AND 8 define the MAJOR AND the MINOR
Check if the loop is created

1# ls -l /dev/loop8
2brw-r----- 1 root root 7, 8 Oct 3 14:54 /dev/loop8
Now you have the applied the good owner on this device

1#chown root:disk /dev/loop8
Now you have to change the module limitation and reboot your system.
STANDARD CREATION
You have to modify this file /etc/udev/makedev.d/50-udev.nodes

01#vim /etc/udev/makedev.d/50-udev.nodes
02loop0
03loop1
04loop2
05loop3
06loop4
07loop5
08loop6
09loop7
10loop8
11parport0
12parport1
13parport2
14parport3
15net/tun
16ppp
17console
18null
19zero
Now you have to change the module limitation and reboot your system.

MODULE LIMITATION
In the kernel, you have to allow more creation of loop device.
There is an absolute maximum of 256 devices limited in the kernel. The default limit is set to 8.

01# modinfo loop
02filename: /lib/modules/2.6.18-53.1.14.el5.centos.plusxen/kernel/drivers/block/loop.ko
03alias: block-major-7-*
04license: GPL
05srcversion: 82DB6DB3DABF3B945D6394D
06depends:
07vermagic: 2.6.18-53.1.14.el5.centos.plusxen SMP mod_unload gcc-4.1
08parm: max_loop:Maximum number of loop devices (1-256) (int)
09module_sig: 883f35047d15787f0a982eee333b2d8112f51f09f68f09b79223a34983b3aef66820c08
10
11cc6e8cd3709f6d7c56171e5a579ee1ca2ca56349c56b983a7c46
Now you have to change this value with the modprobe.conf file.

1#vim /etc/modprobe.conf
2 ...
3options loop max_loop=64
4...
TIPS & COMMAND
The commande line losetup is used for set up and control loop device.

1# losetup
2usage:
3losetup loop_device # give info
4losetup -d loop_device # delete
5losetup -f # find unused
6losetup -a # list all used
7losetup -r # read-only loop
8losetup [-e encryption] [-o offset] [-r] {-f|loop_device} file # setup