Wednesday, July 15, 2009
Import Domain from Plesk 7 to Plesk 9
/usr/local/psa/bin/pleskbackup -v domains DOMAIN.NAME /tmp/FILENAME
copy FILENAME to plesk 9 (for example tmp directory).
Add same Customer and domain in plesk 9.
Convert the Backup:
/usr/local/psa/bin/pre9-backup-convert -v convert -d /var/lib/psa/dumps/ /tmp/FILENAME
this command makes a XML file under /var/lib/psa/dumps/domains/DOMAIN.NAME
import the domain:
/usr/local/psa/bin/pleskrestore --restore /var/lib/psa/dumps/domains/DOMAIN.NAME/converted_DOMAIN.NAME_info_xxxxxxxxxx.xml -level domains
Wednesday, July 8, 2009
How to switch from Qmail to Postfix and vice versa?
Code:
/usr/local/psa/admin/sbin/autoinstaller --select-release-current --install-component postfix
Friday, June 5, 2009
Change Crontab Editor
export EDITOR=/usr/bin/vim
or each editor you would have!
Thursday, June 4, 2009
Exmerge error: "Store 'MSPST MS' was not opened."
I was running an Exchange Server in English and then tried to move the accounts using exmerge to one in German when I ran into this error. After much reading I came accross this website: http://technet.microsoft.com/en-us/library/bb124178.aspx which states:
"Store 'MSPST MS' was not opened Store 'MSEMS' was not opened
The Store 'MSPST MS' was not opened or Store 'MSEMS' was not opened errors might be seen in the ExMerge log file (ExMerge.log) after merging data from the recovery storage group has failed. These errors typically indicate a language localization mismatch problem. The errors can usually be resolved by entering the correct localized names for the MAPI services on which ExMerge depends.
-
In the ExMerge.ini file that is bundled with the ExMerge tool, find the LoggingLevel line and set its value to 3 instead of 0. This enables verbose logging of ExMerge errors.
-
Run ExMerge again to generate the error condition again. To reduce the output to the log file, select only a single mailbox to merge.
-
In the ExMerge.log file, find the lines that begin with "Checking service" and that are followed by a "was not opened" error. For example:
-
In the ExMerge.ini file, find LocalisedExchangeServerServiceName and remove the semicolon (;) that precedes the line. Then set the value to the service name displayed in the ExMerge.log file. For example:
-
In the ExMerge.ini file, find LocalisedPersonalFoldersServiceName and remove the semicolon (;) that precedes the line. Then set the value to the service name displayed in the ExMerge.log file. For example:
So, simply find the localised names and remove the ';' from the one you need to use. For example, in my case I needed spanish so I removed it from the Spanish one and here is what I ended up with:
; French
;LocalisedPersonalFoldersServiceName=Dossiers personnels
; Spanish
LocalisedPersonalFoldersServiceName=Carpetas personales
; German
;LocalisedPersonalFoldersServiceName=Persönliche Ordner
; Italian
;LocalisedPersonalFoldersServiceName=Cartelle personali
From the looks of it, you will run into issues if you are using ExMerge for a French, Spanish, German or Italian system. Hope this helps!
Wednesday, May 27, 2009
Reset VTIGER Admin password
If you can get access to the database, try changing the user_password field value in vtiger_users table to:
adpexzg3FUZAk which makes the password as admin
mysql> update vtiger_users set user_password='adpexzg3FUZAk' where user_name='admin' ;
You will also need to set the crypt_type field of vtiger_users to blank (empty value) if you are on 5.0.4 and above.update
mysql> vtiger_users set crypt_type='' where user_name='admin' ;
Now the password for "admin" is "admin"!
Wednesday, May 20, 2009
Ubuntu Encrypted directory with EncFS
apt-get install encfs fuse-utils
modprobe fuse
Make the directory where encrypted data will be stored:
mkdir /encrypted
Make a mount point:
mkdir /temp-encr
use encfs with this directories:
encfs /encrypted /temp-encr
enter your Password.
for avoid the others to access the encrypted data, just unmount the folder:
fusermount -u /encrypted /temp-encr
In encrypted folder only "Encrypted Data" could be seen.
If you want to encrypt a directory on your fileserver and have the decrypted mountpoint accessible by Linux or Windows clients via Samba, you need to modify your setup slightly to permit "other" access to the Fuse device.
First, modify the /etc/fuse.conf file so that the last line "user_allow_other" does NOT have a leading hash. Save and exit.
Next, add an option to your EncFS mount command:
encfs /encrypted /temp-encr -- -o allow_other
Thursday, May 14, 2009
Mysql - Change Root Password
/etc/init.d/mysql stop
run this command to start Mysql again:
mysqld_safe –skip-grant-tables
Go to mysql:
mysql -u root mysql
and run this command in Mysql:
mysql> UPDATE user SET Password=PASSWORD('newrootpassword') WHERE User='root';
then this command:
mysql> FLUSH PRIVILEGES;
exit Mysql:
mysql> exit ;
Stop the mysqld service:
killall mysqld
and start that normally:
/etc/init.d/mysql start
That's all.
Tuesday, May 12, 2009
Solaris Remote Console (XDMCP)
vi /etc/default/login
and comment this line with # symbole:
Console=/dev/console
Solaris Shell Profile
su -
stty erase ^H
TERM=vt100
export TERM
exec tcsh -l
eval `/usr/openwin/bin/resize -c`
Now, type in:
passwd -e
as the new shell, type in “/bin/tcsh”. Your default shell has now been changed to the Tenex C-shell; it can do everything bash can.
Don’t modify root’s SHELL.
type in “exit”
type in “exit” again, then log in.
Create and edit the following files with your preferred text editor:
Anyways, now your cursor keys and the [BACKSPACE] will always work properlyvi /.login
add this line:
stty erase ^H
vi /.cshrc
add these lines:
set Resize="/usr/openwin/bin/resize"
set autolist
set notify
set correct=cmd
set prompt="[%B%n@%m%b][%B%~%b]> "
set savehist=7000eval "$Resize" -c
setenv TERM vt100
setenv PAGER ´less -s´
Thursday, May 7, 2009
Debian Root-Mail Forwarding
For forwarding www-data emails to root, open the /etc/aliases and add this line:
www-data: root
Wednesday, March 25, 2009
Debian Lenny Fonts
I ran the following command:
dpkg-reconfigure fontconfig-config
and answer all question with yes.
Now everything is OK.
Monday, March 9, 2009
Remove Permission from User on Public Folder in Exchange Server 2007
Add-PublicFolderClientPermission -Identity \FOLDERNAME -AccessRights None -User USERNAME
Thursday, March 5, 2009
Let's the image flying
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);
:)