IT

Unix: aanpassing sendmail 150 150 Roderick Derks

Unix: aanpassing sendmail

Aanpassing gedaan om in mail domein en servernaam te krijgen:
@ELITIL1.elisabeth.nl ipv @elisabeth.nl.

Zie hier hoe:

<b>/etc/mail/sendmail.cf</b>
# my official domain name
#Dj$w.Foo.COM
#Dj$w.elisabeth.nl

# masquarade as, aka site hiding(null for no masquerading)
#DMelisabeth.nl
DM

EZHLIMS1: aanpassing restricted SAM 150 150 Roderick Derks

EZHLIMS1: aanpassing restricted SAM

Restricted SAM geintroduceerd voor account itakroot en beheer.

Voor beide accounts alleen rechten in sam voor beheer van printers en users.

<b># cat /home/itakroot/.profile</b>
#alias sam="/opt/iexpress/sudo/bin/sudo /usr/sbin/sam"
alias sam="/usr/sbin/sam"

Eerste alias regel is niet meer nodig aangezien er niet meer met sudo wordt gewerkt.

<b># visudo</b>
# toegang tot SAM voor de volgende users
#itakroot  ALL=/usr/sbin/sam, /usr/bin/vi /etc/hosts
#techdata  ALL=/usr/sbin/sam, /usr/bin/vi /etc/hosts
#beheer    ALL=/usr/sbin/sam, /usr/bin/vi /etc/hosts

itakroot  ALL=/usr/bin/vi /etc/hosts
beheer   ALL=/usr/bin/vi /etc/hosts

Alle sudo regels uitgeschakeld voor starten van sam.
De file /etc/hosts is voor itakroot en beheer aan te passen door gebruk te maken van het commando <b>sudo vi /etc/hosts</b>. Het aanpassen van deze file vereist root rechten.

EZHLIMS1: user aanmaken 150 150 Roderick Derks

EZHLIMS1: user aanmaken

# useradd -g 101 -d /home/ajmhelvo -s /sbin/sh -c "Angela van Helvoirt"  ajmhelvo
# vi /etc/passwd

aanpassen:
ajmhelvo:*:309:101:Angela van Helvoirt:/home/ajmhelvo:/sbin/sh
naar
ajmhelvo:*:309:101:Angela van Helvoirt:/usr/cible1/files:/sbin/sh

# passwd ajmhelvo

Joomla: add or change a module position in a template 150 150 Roderick Derks

Joomla: add or change a module position in a template

To create a "new" position choose one of the names from the list of positions shown in
site>template manager>module positions

In your template add:

  <?php mosLoadModules ( 'position_name'); ?>

You will want to  surround it with approprate html so that it appears where you want it to and with the formatting you want. 

FC6: disable IPv6 network support 150 150 Roderick Derks

FC6: disable IPv6 network support

Disable IPv6 Networking Support to decrease unneeded system load if you're not going to use it anyway.

Edit /etc/sysconfig/network. (a restart of the network service is required)
[root@server ~]$ vi /etc/sysconfig/network
Change:
NETWORKING_IPV6=yes
To:
NETWORKING_IPV6=no

Disable IPv6 Protocol Stack for Kernel
Edit /etc/modprobe.conf.
[root@server ~]# vi /etc/modprobe.conf

Add the following 2 lines: (a restart of the network service is required)
alias net-pf-10 off
alias ipv6 off

Stop and disable IPv6 Firewall
[root@server ~]# /etc/init.d/ip6tables stop (or service ip6tables stop)
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading ip6tables modules:                               [  OK  ]

[root@server ~]# chkconfig –level 35 ip6tables off

Joomla: sef service map google url 150 150 Roderick Derks

Joomla: sef service map google url

Here is the link you can use in the Google webmaster tool to add a sitemap created by SEF Service Map:

http://<your site>/index2.php?option=com_sefservicemap&task=googlemap

VMWare: Very slow network throughput Host->Guest but not Guest->Host 150 150 Roderick Derks

VMWare: Very slow network throughput Host->Guest but not Guest->Host

Host system is linux FC6 and my guest system is also FC6 using VMWare server. But this also could be a Debian host and a WXP guest system.

I am using the bridged networking option and everything works great except for one very annoying thing.
Network transfers moving files from host->guest over the network is incredibly slow something <1KB/s.
This is independant of protocol, I’ve tried scp, ftp, and samba.
Transfering files using the above protocols from the guest->host is fine getting something in the order of 4000-7000 KB/s.

There is a solution to this problem… 

read more

Java script: countdown clock 150 150 Roderick Derks

Java script: countdown clock

Add this script to you HTML webpage:

 

<!– START 08. HOME – CONTENT – Countdown (1291)–>
 

<script language="javascript">

        var nowDate = new Date();
        var eventDate = new Date("Dec 31 2006 23:59:59 +0100");
        
        function update()
        {
            nowDate = new Date();
    
            secondstogo=(eventDate-nowDate)/1000;
            days = secondstogo/(24*60*60);
            days = Math.floor(days);
    
            secondstogo=secondstogo-(days*24*60*60);
            hours = Math.floor(secondstogo/(60*60));
            
            secondstogo=secondstogo-(hours*60*60);
            minutes = Math.floor(secondstogo/(60));
    
            secondstogo=secondstogo-(minutes*60);
            seconds = Math.floor(secondstogo);
    
            if (seconds < 10)
                seconds = "0" + seconds;
            
            newclock = days + " dagen<br/>" + hours + " uren<br/>" + minutes + " minuten<br/>" + seconds + " seconden<br/>";
            
            writit(newclock,'countDownInfo');
            ID=window.setTimeout("update();",1000);
        }
        
        function writit(text,id)
        {
            document.getElementById(id).innerHTML=text;
        }

        ID=window.setTimeout("update();", 1000);
</script>

<div id="countdown">
    <h1>COUNTDOWN</h1>
    <div>
        <img style="margin-left:10px; border:0px; float:left;" src="http://top2000.radio2.nl/data/media/db_images/original/42308.gif">
        <div id="countDownInfo"></div>
        <div style="clear:left;"></div>
    </div>
</div>
<!– STOP 08. HOME – CONTENT – Countdown (1291)–>

FC6: enable PHP extensions GD and DOMXML 150 150 Roderick Derks

FC6: enable PHP extensions GD and DOMXML

To enable the PHP extensions GD and DOMXML to get the Joomla Expose component to work properly I had to reconfigure the default FC6 PHP configuration.

To do this just execute the following commands:

# yum -y install php_gd php_domxml
# service httpd stop
# service httpd start

Pretty simple. You can download the Joomla Expose components here .

HPUX: Ignite restore from tape 150 150 Roderick Derks

HPUX: Ignite restore from tape

1. Boot the system
2. When it asks for a key interuption for interupting the boot sequence press any key.
3. This will give you ISL prompt.
4. Do a search for the devices. i.e SEA command.
5. Check which is a tape device (it will be mentioned as a Sequencial Device).
6. On the ISL Prompt give Command : BO (Tape device Name i.e. P1 , P2 etc.).
7. Press N for IPL.
8. It will boot from the tape.
9. Here you can select interactive or non-interactive recovery (this depends on if you have given options while creating the backup).  For a restore I used the non-interactive mode.

A menu appears. Choose "Install HP-UX". This will recover your system. If you are restoring to the same system you made the ignite tape from, you can use the non-interactive recovery. If you are restoring to a different system, it is best to use the advanced installation.
 

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

      Your Name (required)

      Your Email (required)

      Subject

      Your Message