Aljosa's blog Rotating Header Image

debian updating perl locale error

If you have errors like —>

PROBLEM (ERRORS):
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8″,
LANG = “en_US.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

….while updating with aptitude update ; aptitude safe-upgrade then the solution to you problem is –>

SOLUTION:

# export LANGUAGE=en_US.UTF-8
# export LANG=en_US.UTF-8
# export LC_ALL=en_US.UTF-8
# locale-gen en_US.UTF-8

Cisco PIX …

hardware: Cisco PIX 515E with 6.3.x version of OS

Backup PIX configuration to tftp server

  1. login
  2. enable
  3. write net xxx.yyy.zzz.www:pix-conf-date.conf

xxx.yyy.zzz.www – tftp IP address

pix-conf-date.conf – configuration file name

 

Upgrade PIX OS from tftp

  1. login
  2. enable
  3. copy tftp flash <— upgrade OS
  4. reload <— restart PIX

 

Configure NTP server

  1. login
  2. enable
  3. conf t
  4. ntp authenticate
  5. ntp server xxx.yyy.zzz.w1w source outside <— external NTP server
  6. ntp server xxx.yyy.zzz.w2w source outside
  7. ntp server xxx.yyy.zzz.w3w source inside <— internal NTP server
  8. write men <— save changes

Create bootable linux usb key

1. Find live linux cd image (Ubuntu, Fedora, Debian,…) and download it to your computer

2. Create bootable usb key with dd;

# dd if=/path/to/linux-live.iso of=/dev/sdX 


X – usb key drive (use root not partition), example:

# dd if=/home/username/Downloads/Ubuntu-11.04-amd64.iso of=/dev/sdb

 

3. Boot from usb-key (while booting your computer press F12 and choose usb key to boot from)

It is as simple as that. :)

Windows extend activation period

Start –> run –> cmd

slmgr.vbs -dli

<-- show information about activation

slmgr.vbs -rearm

<--- extend activation period

You can extend activation 5 times.

more: http://support.microsoft.com/kb/948472

Linux on macbook …

Problems:

1. Bootup delay (20-30 sec)

SOLUTION:

Insert OSX disc, boot from it, open terminal and enter following:

bless –device /dev/disk0s2 –setBoot –legacy –verbose

where /dev/disk0s2 is the partition you installed grub (do ‘diskutil list’ to find out correct partition). Of course, ‘–verbose’ is optional. This makes Macbook EFI firmware boot your Linux installation in legacy mode without long delay (20s vs 3s).

url: http://regebro.wordpress.com/2008/11/16/installing-linux-on-a-macbook-without-os-x/

Upgrade to Zimbra 7.*

Platform Centos 5.5 32bit
Previous version of Zimbra 6.0.12

1. Download zcs 7 with wget;

[root@server ~]# wget http://files.zimbra.com/downloads/7.0.1_GA/zcs-7.0.1_GA_3105.RHEL5.20110304210448.tgz

2. Unpack zcs 7 in current directory;

[root@server ~]# tar xvzf zcs-7.0.1*

3. Change directory to zsc-7.0.1*;

[root@server ~]# cd zcs-7.0.1*

4. Install zcs 7 on Centos 5.5 with –platform-override ;

[root@server zcs*]#./install.sh -s --platform-override

5. Configure zcs 7;

[root@server ~]# /opt/zimbra/libexec/zmsetup.pl

If you have problems in this step;

PROBLEM:

[zimbra@server log]$tail -f mysql_error.log

110402 21:27:40 [ERROR] Can’t open shared library ‘/opt/zimbra/mysql-standard-5.1.55-pc-linux-gnu-i686-glibc23/lib/mysql/plugin/ha_innodb_plugin.so’ (errno: 0 cannot restore segment prot after reloc: Permission denied)

110402 21:27:40 [ERROR] Couldn’t load plugin named ‘innodb’ with soname ‘ha_innodb_plugin.so’.

/opt/zimbra/mysql/libexec/mysqld: Table ‘mysql.plugin’ doesn’t exist

110402 21:27:40 [ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.

SOLUTION: disable selinux with

[root@server ~]# setenforce 0

6. Restart zimbra service;

[root@server ~]# service zimbra restart

There is no documents tab anymore. But all documents are now under Briefcase tab in Notebook map.

MS Office 2010 activation

Step 1 (produkt key – insert)
Start –> run –> cmd (as Admin) do;


C:\Program Files\Microsoft Office\Office14\cscript ospp.vbs /inpkey:XXXXX-HHHHH-ZZZZZ-JJJJJ-YYYYY

Step 2 (activation)

Then after starting MS Office 2010 product ask to activate. Confirm to activate Office over internet.

Extract Adobe Reader 9.x msi file and deploy with GPO

Extract the Adobe Reader 9.x installation files

Extract the Adobe Reader 9.x installation files from the compressed executable:

1. Obtain Adobe Reader offline instalation from http://www.softpedia.com

2. Extract it to local computer

go to cmd and run:

C:\\path\to\adobe-reader-file-nos_ne

3. Deploy msi file to server (copy to windows share)

4. Use GPO to deploy Acrobat Reader to domain computers

Through GPO

  1. Obtain Adobe Reader 9.x by filling out an Adobe Reader Redistribution Agreement at www.adobe.com/products/acrobat/distribute.html.
  2. Download the AdbeRdr9x_en_US.exe from the link in the confirmation email you recieve after filling out the distribution agreement and save the file to your desktop.
  3. Choose Start > Run.
  4. In the Open text box, type: “%UserProfile%\Desktop\AdbeRdr9x_en_US.exe” -nos_ne.
  5. Click OK to start decompressing the file.
  6. When the Adobe Reader 9.x Setup screen clears, browse to the following location
    %UserProfile%\Local Settings\Application Data\Adobe\Reader 9.0\Setup Files
  7. Drag the READER9 folder to your desktop. This folder contains AcroRead.msi and Data1.cab files needed for installation.

URL: http://kb2.adobe.com/cps/404/kb404146.html