spirit posteets tagged debian  [ Profile ]

Sort by: Date / Title /

  1. 9 years ago
    Scripted install of MySQL
    1. echo mysql-server mysql-server/root_password select PASSWORD | debconf-set-selections
    2. echo mysql-server mysql-server/root_password_again select PASSWORD | debconf-set-selections
    3.  
    4. aptitude -y install mysql-server libmysqlclient15-dev
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2060"></script>
  2. 10 years ago
    1. apt-get install postfix
    2. # Choisir configuration type 'Site internet'
    3.  
    4. //////////////////////////
    5. //-- etc/postfix/main.cf
    6. //////////////////////////
    7. myhostname = bart
    8. mydomain = mydomain.com
    9. myorigin = $myhostname.$mydomain
    10. alias_maps = hash:/etc/aliases
    11. alias_database = hash:/etc/aliases
    12. mydestination = $myhostname, $myorigin, localhost.$mydomain, localhost
    13. mynetworks = 127.0.0.0/8,192.168.10.0/24 # Defines networks allowed for SMTP connections
    14. #luser_relay = user  # used with the local daemon in the transport map,
    15. mailbox_size_limit = 0
    16. recipient_delimiter = +
    17. inet_interfaces = all
    18. transport_maps = hash:/etc/postfix/transport
    19.  
    20. //////////////////////////
    21. //-- /etc/postfix/transport
    22. //////////////////////////
    23. extdomain.com smtp:[192.168.10.1]  # relay
    24. .extdomain.com smtp:[192.168.10.1] # tous les sous domaines
    25. * discard # jeter tous les autres messages
    26.  
    27. //////////////////////////
    28. postmap /etc/postfix/transport
    29. /etc/init.d/postfix reload
    30. # Consulter les logs dans mail.info
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1225"></script>
  3. 10 years ago
    quick tutorial
    1. # Enable ssl
    2. a2enmod ssl
    3.  
    4. # Edit /etc/apache2/ports.conf and add "Listen 443"
    5.  
    6. # Generate certs: use your domain as Common Name or *.domain.tld for multiple domains
    7. openssl req -x509 -nodes -days 365 -newkey rsa:1024 -out /etc/apache2/server.crt -keyout /etc/apache2/server.key
    8.  
    9. # In the virtualhost, use the following code:
    10. <VirtualHost 192.168.0.1:443>
    11.         SSLEngine On
    12.         SSLCertificateFile /etc/apache2/server.crt
    13.         SSLCertificateKeyFile /etc/apache2/server.key
    14. </VirtualHost>
    15.  
    16. # Reload apache2
    17. /etc/init.d/apache2 reload
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1037"></script>
  4. sponsorised links
  5. 10 years ago
    1. a2ensite mysite
    2. # 'mysite' refers to /etc/apache2/sites-available/mysite
    3. # This creates the symbolic link between configuration files in /etc/apache2/sites-available and /etc/apache2/sites-enabled
    4.  
    5. a2dissite mysite # disable the site
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1001"></script>
  6. 11 years ago
    // APT: Ajouter la ligne suivante dans /etc/apt/apt.conf.d/70debconf
    Acquire::http::Proxy "http://192.168.1.1:80";
    (éventuellement http://login:passwd@192.168.1.1:8080)
    
    // YUM: deux solutions:
    - export http_proxy=http://192.168.1.1:8080
    (éventuellement http_proxy=http://login:passwd@192.168.1.1: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)
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/854"></script>
  7. 11 years ago
    Vérifier tout de même sur le site http://www.backports.org que le paquet plus récent à installer a bien été backporté
    1. echo "deb http://www.backports.org/debian etch-backpoprts main contrib non-free" >> /etc/apt/source.list   # Le mirroir
    2. aptitude update
    3. aptitude install debian-backports-keyring   # Clé publique du dépôt
    4. aptitude update
    5.  
    6. # Remplacer postgresql par le package que vous souhaitez
    7. echo "Package: postgresql
    8. Pin: release a=etch-backports
    9. Pin-Priority: 999" >> /etc/apt/preferences
    10.  
    11. aptitude install postgresql
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/690"></script>
  8. 11 years ago and saved by 1 other
    1. # Debian : edit the following file (mac to eth association)
    2. /etc/udev/rules.d/z25_persistent-net.rules
    3.  
    4. # The long way : change the name when loading the module for the NIC
    5. cat /etc/sysconfig/hwconf | grep -A 16 NETWORK
    6. class: NETWORK
    7. bus: PCI
    8. detached: 0
    9. device: eth0
    10. driver: 8139t
    11. # Then change the device name in the ifcfg script: /etc/sysconfig/network-scripts/ifcfg-ethX
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/682"></script>
  9. 11 years ago and saved by 1 other
    apt-get install psmisc
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/661"></script>
  10. 11 years ago
    1. apt-get install linux-headers-`uname -r`
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/660"></script>
  11. 11 years ago and saved by 4 others
    1. #faire un :
    2. lcpci –n
    3. #Et copiez la sortie dans le site web :
    4. http://kmuto.jp/debian/hcl/
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/658"></script>

First / Previous / Next / Last / Page 1 of 2 (12 posteets)