LEFEVRE Damien .net

< 1 2 3 4 5 6 7 8 >

Saturday 12 January 2008, 14:39

Remote a linux machine with Windows Remote Desktop Connection

I had to find a solution for my company to remote a Linux machine from Windows. The less extra software the better.

The computer to remote has Debian 4.0 installed.

xrdp is a magic solution. It allows to tunnel X into the Windows Remote Desktop Connection application. There is no need for extra software to install on Windows.

You need to install xrdp on the Linux.

apt-get update
apt-get install xrdp

It did not work right away, but after rebooting the Linux machine, everything went smoothly.

Sunday 16 December 2007, 20:46

PHP turn off warnings

Recently I had to remove all the PHP warning from a site.

An easy way is to add

error_reporting(0);

to index.php

more info...

Sunday 16 December 2007, 16:04

Install GForge Debian

System

I started to install mailman on a fresh Debian testing (lenny) system with

  • Apache2
  • Php5
  • MySQL Server
  • PhpMyAdmin
  • Webmin
    • add deb http://download.webmin.com/download/repository sarge contrib to /etc/apt/source.list
    • apt-get update
    • apt-get install webmin

DNS

I'm running on a local network and need to bind my DNS. I will do the configuration for pys60.info:

  • put pys60.info in /etc/hostname
  • install bind

: apt-get install bind

  • Edit /etc/bind/named.conf and add:
zone "pys60.info" {
	type master;
	file "/etc/bind/pys60.info";
};
zone "177.13.10.in-addr.arp" {
	type master;
	file "/etc/bind/177.13.10.reverse";
};
  • create /etc/bind/pys60.info and add:
; ——————————————————-
$TTL    604800
@       IN      SOA     pys60.info. root.pys60.info. (
		1           ; Serial
		604800         ; Refresh
		86400         ; Retry
		2419200         ; Expire
		604800 )       ; Negative Cache TTL
;
@       IN      NS       pys60.info.
@       A       10.13.177.60
www     A       10.13.177.60
scm     A       10.13.177.60
lists   A       10.13.177.60
  • Create/Edit __/etc/bind/177.13.10-reverse:
; ———————————————————
$TTL    604800
@       IN      SOA     pys60.info. root.pys60.info. (
		1         ; Serial
		604800    ; Refresh
		86400     ; Retry
		2419200   ; Expire
		604800 )  ; Negative Cache TTL
;
@       IN      NS      pys60.info.
60      IN      PTR     pys60.info.
60      IN      PTR     scm.pys60.info.
60      IN      PTR     lists.pys60.info.
  • Check the configurations
named-checkconf /etc/bind/named.conf
named-checkzone pys60.info /etc/bind/pys60.info
named-checkzone 177.13.10.in-addr.arp /etc/bind/177.13.10.reverse

GForge

The Debian packages for GForge are generously broken. For this reason you will need to install the unstable packages. Change /etc/apt/source.list from:

deb http://ftp.fi.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.fi.debian.org/debian/ lenny main contrib non-free

deb http://download.webmin.com/download/repository sarge contrib

to:

deb http://ftp.fi.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.fi.debian.org/debian/ unstable main contrib non-free

deb http://download.webmin.com/download/repository sarge contrib

ProFTPd

apt-get install proftpd

At the time i'm writting, the package is broken and the installation will fail if you choose the standalone mode. You have to choose inet mode

Mailman:

Installing mailman will also install exim4, exim4-config, exim4-base, exim4-daemon-light

apt-get install mailman

You need to create a new list:

newlist

I gave:

  • name: mailman
  • email: webmaster@pys60.info
  • password: xxxx ;)

If you tried to install mailman and that the hostname was different, adding the new list will generate error. To correct this you just have to edit

nano /etc/mailman/mm_cfg.py

and change

DEFAULT_EMAIL_HOST = "pys60.info"
DEFAULT_URL_HOST = "pys60.info"

GForge

apt-get install gforge gforge-lists-mailman

Sunday 16 December 2007, 15:40

APT Remove broken packages

My problem is with gforge-mta-exim4

edit

nano /var/lib/dpkg/status

Search for the gforge-mta-exim4 entry (Ctrl+w followed by gforge-mta-exim4)

Delete the block for gforge-mta-exim4.

updatedb
locate gforge-mta-exim4

delete all the file for gforge-mta-exim4

Tuesday 27 November 2007, 09:31

Release Microsoft Office Outlook 2003 blocked attachments

  • Close Outlook
  • Check that HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security registry key exists. If not follow these steps:
    • Go to: HKEY_CURRENT_USER\Software\Microsoft
    • Click the Edit menu, click New, and then click Key. Type Office, and then press ENTER.
    • Click the Edit menu, click New, and then click Key. Type 11.0, and then press ENTER. Note This is the correct name if you are using Outlook 2003. If you are using Outlook 2000 or Outlook 2002, you will have to type "9.0" or "10.0", respectively.
    • Click the Edit menu, click New, and then click Key. Type Outlook, and then press ENTER.
    • Click the Edit menu, click New, and then click Key. Type Security, and then press ENTER.
  • Click the Edit menu, click New, and then click String Value. Name it Level1Remove and press ENTER.
  • Right-click the new string value name, and then click Modify.
  • Type the file name extension of the file type that you want to open in Outlook. For example: .exe and then click OK
  • To specify multiple file types, use the following format: .exe;.com
  • Quit Registry Editor
  • No restart needed, just restart Outlook

Monday 26 November 2007, 23:04

Force web browser encoding to UTF-8

I had to work on a website in Finnish for a friend. With my server in France there was some issues with the encoding detection and the page was full of weird signs.

To fix this I created a .htaccess file to the website root directory and added the following line to force all the .html files to UTF-8

AddCharset UTF-8 .html

That's it! The web browser goes to UTF-8 encoding automatically.

Wednesday 18 July 2007, 21:31

Missing codecs for Totem

After one of the latest update Totem couldn't play any media complaining about missing codecs. That did the trick for me:

apt-get install totem-xine
apt-get install libxine1-ffmpeg 

< 1 2 3 4 5 6 7 8 >