Archivi per ‘Uncategorized’

Installa squid 2.5-STABLE4 dai sorgenti

category Uncategorized admin 6 September 2008

./configure --prefix=/usr/lib/squid --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --datadir=/usr/share/doc/squid-2.5.STABLE --libdir=/usr/lib/squid --sysconfdir=/etc/squid --enable-gnuregex --enable-delay-pools --enable-err-language=Italian --enable-kill-parent-hack --enable-linux-netfilter --enable-auth="basic ntlm" --enable-basic-auth-helpers="getpwnam LDAP MSNT multi-domain-NTLM SASL SMB winbind" --enable-ntlm-auth-helpers="SMB winbind" --enable-digest-auth-helpers="password" --enable-external-acl-helpers="ip_user ldap_group unix_group wbinfo_group winbind_group"

Share

Installare mplayer dai sorgenti

category Uncategorized admin 6 September 2008


./configure --enable-gui --language=it,en --codecsdir=/usr/local/lib/codecs --win32codecsdir=/usr/local/lib/codecs --xanimcodecsdir=/usr/local/lib/codecs --realcodecsdir=/usr/local/lib/codecs

make

make install

Share

Installare Openssh dai sorgenti

category Uncategorized admin 6 September 2008


./configure --sysconfdir=/etc/ssh --with-tcp-wrappers --with-md5-passwords
make -j 7
make install

controllare che il file /etc/ld.so.conf contenga le path delle librerie epoi lanciare
ldconfig

Questo di seguito è il file /etc/rc.d/rc.sshd

####################/etc/rc.d/rc.sshd#####################################

root@proxy2:~# cat /etc/rc.d/rc.sshd
#!/bin/sh
# Start/stop/restart the secure shell server:

sshd_start() {
# Create host keys if needed.
if [ ! -r /etc/ssh/ssh_host_key ]; then
/usr/local/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
/usr/local/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
fi
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
/usr/local/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
fi
/usr/local/sbin/sshd -f /etc/ssh/sshd_config
}

sshd_stop() {
killall sshd
}

sshd_restart() {
if [ -r /var/run/sshd.pid ]; then
echo "WARNING: killing listener process only. To kill every sshd process, you must"
echo " use 'rc.sshd stop'. 'rc.sshd restart' kills only the parent sshd to"
echo " allow an admin logged in through sshd to use 'rc.sshd restart' without"
echo " being cut off. If sshd has been upgraded, new connections will now"
echo " use the new version, which should be a safe enough approach."
kill `cat /var/run/sshd.pid`
else
killall sshd
fi
sleep 1
sshd_start
}

case "$1" in
'start')
sshd_start
;;
'stop')
sshd_stop
;;
'restart')
sshd_restart
;;
*)
echo "usage $0 start|stop|restart"
esac

################################# FINE ######################################################

decommentare le seguenti righe nel file
/etc/ssh/sshd_config

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

lanciare
ln -s /etc/ssh/moduli /usr/local/etc/

Riavviare sshd

Share

Installa Openssl dai sorgenti

category Uncategorized admin 6 September 2008

./config -shared
make
make test
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/ssl/lib/pkgconfig

[salvare in /etc/rc.d/rc.local]

controllare che il file /etc/ld.so.conf contenga le path delle librerie epoi lanciare
ldconfig

export PATH=$PATH:/usr/local/apache/bin:/usr/local/mysql/bin
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/ssl/lib/pkgconfig

Share

Installa apache php mysql dai sorgenti

category Uncategorized admin 6 September 2008


tar -zxvf mysql-standard-5.0.16-linux-i686-glibc23.tar.gz
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &

mkdir /var/log/mysql
root@lnx498:/usr/local/mysql# ln -s /usr/local/mysql/data/lnx498.err /var/log/mysql/

cp support-files/mysql.server /etc/rc.d/rc.mysqld

tar -zxvf apache_1.3.34.tar.gz

tar -jxvf php-4.4.1.tar.bz2

cd apache_1.3.34
./configure --enable-module=so
make
make install
cd ../php_XXX
env CFLAGS="-DEAPI" ./configure --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl --with-apxs=/usr/local/apache/bin/apxs --enable-mbstring --with-mm=/usr/local
make
make install

modifica /usr/local/lib/php.ini
metti register_global = On

##############mod_php.conf#####################################################
#
# mod_php - PHP Hypertext Preprocessor module
#

# Load the PHP module:
LoadModule php4_module libexec/libphp4.so

# Tell Apache to feed all *.php files through the PHP module:
AddType application/x-httpd-php .php

# This will display PHP files in colored syntax form. Use with caution.
#AddType application/x-httpd-php-source .phps
################################################################################

da aggiungere in fondo a httpd.conf

ricordati di agg /usr/local/apache/bin:/usr/local/mysql/bin alla PATH

tar -jxvf phpMyAdmin-2.7.0.tar.bz2
mv phpMyAdmin-2.7.0 phpMyAdmin

root@lnx498:/Dati/Software/Linux/phpmyadmin# mv phpMyAdmin phpmyadmin
root@lnx498:/Dati/Software/Linux/phpmyadmin# mv phpmyadmin/ /usr/local/apache/htdocs/

Share

Installare Oracle 9.2.0.4 su Slackware 10

category Uncategorized admin 6 September 2008

Oracle9204OnSlackware10

Share

Come compilare con gtk glib

category Uncategorized admin 6 September 2008


env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LD_LIBRARY_PATH=/usr/local/lib \
./configure

Share

Rinomina file – da spazio ad underscore

category Uncategorized admin 6 September 2008


#!/bin/sh
for i in *.rm
do
mv "$i" `echo $i | tr ' ' '_'`
done

Share

Converti file RM in AVI

category Uncategorized admin 6 September 2008


#!/bin/sh
for i in `ls *.rm`
do
rm frameno.avi
mencoder $i -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi
mencoder $i -o $i.avi-oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=1800
mencoder $i -o $i.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=1800
done

Share

Manuale di installazione e conf di Apache Tomcat

category Uncategorized admin 6 September 2008

ApacheTomcat

Share