-
Scripted install of MySQL
-
echo mysql-server mysql-server/root_password select PASSWORD | debconf-set-selections
-
echo mysql-server mysql-server/root_password_again select PASSWORD | debconf-set-selections
-
aptitude -y install mysql-server libmysqlclient15-dev
-
-
-
apt-get install postfix
-
# Choisir configuration type ‘Site internet’
-
//////////////////////////
-
//– etc/postfix/main.cf
-
//////////////////////////
-
myhostname = bart
-
mydomain = mydomain.com
-
myorigin = $myhostname.$mydomain
-
alias_maps = hash:/etc/aliases
-
alias_database = hash:/etc/aliases
-
mydestination = $myhostname, $myorigin, localhost.$mydomain, localhost
-
mynetworks = 127.0.0.0/8,192.168.10.0/24 # Defines networks allowed for SMTP connections
-
#luser_relay = user # used with the local daemon in the transport map,
-
mailbox_size_limit = 0
-
recipient_delimiter = +
-
inet_interfaces = all
-
transport_maps = hash:/etc/postfix/transport
-
//////////////////////////
-
//– /etc/postfix/transport
-
//////////////////////////
-
extdomain.com smtp:[192.168.10.1] # relay
-
.extdomain.com smtp:[192.168.10.1] # tous les sous domaines
-
* discard # jeter tous les autres messages
-
//////////////////////////
-
postmap /etc/postfix/transport
-
/etc/init.d/postfix reload
-
# Consulter les logs dans mail.info
-
-
quick tutorial
-
# Enable ssl
-
a2enmod ssl
-
# Edit /etc/apache2/ports.conf and add “Listen 443”
-
# Generate certs: use your domain as Common Name or *.domain.tld for multiple domains
-
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -out /etc/apache2/server.crt -keyout /etc/apache2/server.key
-
# In the virtualhost, use the following code:
-
<VirtualHost 192.168.0.1:443>
-
SSLEngine On
-
SSLCertificateFile /etc/apache2/server.crt
-
SSLCertificateKeyFile /etc/apache2/server.key
-
</VirtualHost>
-
# Reload apache2
-
/etc/init.d/apache2 reload
-
-
-
a2ensite mysite
-
# ‘mysite’ refers to /etc/apache2/sites-available/mysite
-
# This creates the symbolic link between configuration files in /etc/apache2/sites-available and /etc/apache2/sites-enabled
-
a2dissite mysite # disable the site
-
-
// APT: Ajouter la ligne suivante dans /etc/apt/apt.conf.d/70debconf Acquire::http::Proxy "http://192.168.1.1:80"; (éventuellement http://login:[email protected]:8080) // YUM: deux solutions: - export http_proxy=http://192.168.1.1:8080 (éventuellement http_proxy=http://login:[email protected]:8080) - [ou] Editer le fichier /etc/yum.conf et rajouter proxy=http://192.168.1.1:8080 (éventuellement aussi proxy_username=userxxx et proxy_password=passxxx)
-
Vérifier tout de même sur le site http://www.backports.org que le paquet plus récent à installer a bien été backporté
-
echo “deb http://www.backports.org/debian etch-backpoprts main contrib non-free” >> /etc/apt/source.list # Le mirroir
-
aptitude update
-
aptitude install debian-backports-keyring # Clé publique du dépôt
-
aptitude update
-
# Remplacer postgresql par le package que vous souhaitez
-
echo “Package: postgresql
-
Pin: release a=etch-backports
-
Pin-Priority: 999″ >> /etc/apt/preferences
-
aptitude install postgresql
-
-
-
# Debian : edit the following file (mac to eth association)
-
/etc/udev/rules.d/z25_persistent-net.rules
-
# The long way : change the name when loading the module for the NIC
-
cat /etc/sysconfig/hwconf | grep -A 16 NETWORK
-
class: NETWORK
-
bus: PCI
-
detached: 0
-
device: eth0
-
driver: 8139t
-
# Then change the device name in the ifcfg script: /etc/sysconfig/network-scripts/ifcfg-ethX
-
-
apt-get install psmisc
-
-
apt-get install linux-headers-`uname -r`
-
-
-
#faire un :
-
lcpci –n
-
#Et copiez la sortie dans le site web :
-
http://kmuto.jp/debian/hcl/
“debian” related tags
spirit’s tags
access apache apache2 apt arguments auditd auth awk backup backups bandwidth bash bridge cache cd charset cisco commands conversion cron css date debian debug default diff directories directory distance dns dom du eth ethernet excel exclude files find firefox flash forms function hacks headers history hosts htaccess html http https ie ifconfig images input ip javascript jobs kill latitude linux log logging longitude mac mail maps merge monitoring mysql network nginx openssl packages performance performances perl php red hat regex restore root route rpm script security server shell ssh ssl svn switch syslog tail trunk unix virtualhost vlan vmware windows yum
-