Archive for the ‘Mailservices with Debian Linux’ Category

September-6-2011
Filed Under (Mailservices with Debian Linux) by martensson

Yes, you can restrict the elements (input, styles, formats) to the users who are using the (F) CKEditor. In my case I used CKEditor for SharePoint 2010. Here’s some quick tips / howto’s regarding restriction with CKEditor:

#Delete those nasty plugins, especially the one defining the current context
config.removePlugins = ‘elementspath’;

#Force the Language
config.defaultLanguage = ‘nl’;

#Disable the option to collapse the editor, users only get lost
config.toolbarCanCollapse = false ;

#Dis or enable the resizing of the editor
config.resize_enabled = true;

#Auto Start SCAYT Spellchecker
config.scayt_autoStartup = true;

#Force spellcheck language
config.scayt_sLang = ‘nl_NL’;

#Only allow the tags P and H2 to be used
config.format_tags = ‘p;h2′;

# Remove any other Format
config.removeFormatTags = ‘b,big,code,del,dfn,em,font,i,ins,kbd’;

#Remove advanced dialogs
config.removeDialogTabs = ‘link:advanced’;

#Restrict special characters
config.specialChars =['!','"','%','&',"'",'(',')','*','+','-','.','/',':',';','','=','','?','@','^','_','`','{','|','}','~',"€", "‘", "’", "“", "”", "–", "—","©","®","À", "Á", "Â", "Ä", "È", "É", "Ê", "Ë", "Ì", "Í", "Ï","Ò", "Ó", "Ô", "Õ", "Ö",  "Ù", "Ú", "Û", "Ü","à", "á", "â", "ä", "è", "é", "ê", "ë", "ì", "í", "ï", "ò", "ó", "ô", "õ", "ö", "÷", "ù", "ú", "û", "ü", "‚", "‛", "„", "™"];



September-6-2011
Filed Under (Mailservices with Debian Linux) by martensson

If you want (F) CKeditor , I used in this case CKEditor for SharePoint 2010,  to make the (hyper) links automatically open in a new window (_blank), then you can achieve this by following the next steps:

1. Open, serverside, the location where CK Editor is installed
For CKeditor for SharePoint 2010 this is <<DRIVE>>:\<<PROGRAM FILES FOLDER>>\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ckeditor\plugins\
2. Open the plugins/link/dialogs folder and edit the links.js file.
3. Find the default setting for the field ‘Target’ , a.k.a.
{type:’select’,id:’linkTargetType’,label:D.target,’default’:'notset’,style:’width : ……
4. Change the code to the desired targettype , in this case _blank
{type:’select’,id:’linkTargetType’,label:D.target,’default’:'_blank’,style:’width : ……
5. Save and Done!

And there you have it, all links will now be opened automatically in a new window.

Ofcourse, this doesn’t work for al links (pasted links for example). An plugin handling links in general could resolve your issue there, if this is the case.

    1. Aanpassing t.b.v. Automatisch openen van links in nieuw venster

      1. Ga naar de locatie waar CK editor is geinstalleerd

      2. Open in de plugins/link/dialogs map het bestand links.js

      3. Zoek de code waarin de standaard instelling voor het veld ‘Target’ wordt gedefinieerd..

        {type:’select’,id:’linkTargetType’,label:D.target,’default’:'notset’,style:’width : ……

      4. Verander de code naar de gewenste standaard, a.k.a. _blank

        {type:’select’,id:’linkTargetType’,label:D.target,’default’:'_blank’,style:’width : ……

      5. Done!



September-5-2011
Filed Under (Mailservices with Debian Linux) by martensson

Ever needed to change an existing portforwarding on a Cisco switch / router ? Or needed to add a new portforwarding? This is a short howto..

1) First connect to the switch by telnet

e.g. telnet <<IP or HOSTNAME>> <<PORT; default 23>>

2) Login on the Cisco device with your admin credentials

3) Look at the existing port forwardings:

sh run | i ip nat inside source static

4) Check if you’re portforwarding is there, if not, you can just add a new one

5) Let’s get into the configuration mode

conf t

6 ) If you want to change an existing port forwarding, you must clear the existing translation table

do clear ip nat translation *

7) If you want to change an existing port forwarding, you must remove this one by typing

no ip nat inside source static <<Protocol>> <<IP address>> <<PORT>> <<INTERFACE>> <<LISTEN_PORT>>

8) Add a new port forwarding by typing

ip inside source static <<Protocol>> <<IP address>> <<PORT>> <<INTERFACE>> <<LISTEN_PORT>>

9) Alow port to be used by typing:

do sh ip acce f0/0-in
ip access-list ex f0/0-in
no 31
31 permit tcp any any eq 80

10) End configure session

CTRL Z

11) Save config

copy run start

12) That’s it!