Posts about int

2014-12-04 paramétrer l'e-mail à l'INT

  • paramétrer un nouveau compte avec son adresse lolo.toto@univ-amu.fr
  • indiquer les parametres:
    1. en entrant, serveur IMAP imap.univ-amu.fr avec SSL (port 993) et l'authentification est par mot de passe
    2. en sortant, serveur SMTP smtp.univ-amu.fr en STARTTLS, port 587 et l'authentification est par mot de passe
    3. attention, en entrant et en sortant, comme identifiant, l'identifiant univ-amu (de la forme toto.l)

2014-02-10 SSH says 'Read from socket failed: Operation timed out'

While SSH is rock solid, we stumbled on a strange bug while trying to establish a connection:

$ ssh myname@myserver.fr -vvv

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011

(...)

Read from socket failed: Operation timed out

Nothing worked. The usual check of keys, encodings, permissions gave nothing.

The culprit could be the OS, the version of the OS or whatever magical spell. However, after investigating the issue it appears the issue was isolated for certain cases, in particular within some homemade LAN, but not for a laptop computer thatcame freshly unpacked with no homemade setting.

This rang a bell, and by checking network settign I remembered that I had set "jumbo frames", that is I increased the MTU of my network card (in the hardware tab from the network settings on MacOsX) from 1500 (standard) to 9000 (jumbo).

Going back to the default velues restored the capacity to connect. Many thanks to Jimmy for finding that one!

2012-11-28 setting the umask to define default permissions for created files

  • the parameter to use is umask https://en.wikipedia.org/wiki/Umask
  • on a cluster I get
    $ umask
    0022
    $ touch test
    $ ls -l test
    -rw-r--r-- 1 perrinet.l invibe 0 Nov 28 11:32 test
    $ umask u=rwx,g=rwx,o=
    $ touch test2
    $ ls -l test2
    -rw-rw---- 1 perrinet.l invibe 0 Nov 28 11:33 test2
  • so I did:
    perrinet.l@frioul:~$ vim .profile
    
    # ~/.profile: executed by the command interpreter for login shells.
    # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
    # exists.
    # see /usr/share/doc/bash/examples/startup-files for examples.
    # the files are located in the bash-doc package.
    
    # the default umask is set in /etc/profile; for setting the umask
    # for ssh logins, install and configure the libpam-umask package.
    #umask 022
    # https://en.wikipedia.org/wiki/Umask
    umask u=rwx,g=rwx,o=
    
    # if running bash
    if [ -n "$BASH_VERSION" ]; then
        # include .bashrc if it exists
        if [ -f "$HOME/.bashrc" ]; then
            . "$HOME/.bashrc"
        fi
    fi
    
    # set PATH so it includes user's private bin if it exists
    if [ -d "$HOME/bin" ] ; then
        PATH="$HOME/bin:$PATH"
    fi
  • before loging out I have
    perrinet.l@frioul:~$ umask
    0022
  • and after
    perrinet.l@frioul:~$ logout
    Connection to frioul.int.univ-amu.fr closed.
    [11:36:49]int-users-4-058: ~/Desktop/Dropbox/TROPIQUE/demos/12-11-11_projection $ frioul
    
     ######  #####      #     ####   #    #  #
     #       #    #     #    #    #  #    #  #
     #####   #    #     #    #    #  #    #  #
     #       #####      #    #    #  #    #  #
     #       #   #      #    #    #  #    #  #
     #       #    #     #     ####    ####   ######
    
    perrinet.l@frioul:~$ umask
    0007
    perrinet.l@frioul:~$ touch test
    perrinet.l@frioul:~$ ls -l test
    -rw-rw---- 1 perrinet.l invibe 0 Nov 28 11:37 test
    perrinet.l@frioul:~$
  • Done!

2012-06-12 racourci pour accéder à une page INIST

  • dans un journalqui nécessite un abonnement pour accéder au contenu, il faut passer par le serveur de l'INIST.
  • pour ne pas avoir à taper ".gate1.inist.fr" pour accéder au texte d'un papier, on peut utiliser un bookmarklet avec comme adresse:
    javascript:window.location=window.location.protocol+'//'+window.location.hostname+".gate1.inist.fr"+window.location.pathname;
  • maintenant, sur la page incriminée, cliquer sur ce bookmark, et voilà.
  • pour en savoir plus sur les bookmarklets, suivre https://support.mozilla.org/en-US/kb/bookmarklets-perform-common-web-page-tasks .

2012-03-11 Stop Bonjour from broadcasting ssh and sftp

largely a copy-and-paste from http://hints.macworld.com/article.php?story=20070622210507844 ; Jun 25, '07 07:30:00AM • Contributed by: delight1
  • After doing a backup, edit the following file:
    sudo vim /System/Library/LaunchDaemons/ssh.plist
  • In the editor, the goal is to delete these two lines:
    <string>ssh</string>
    <string>sftp-ssh</string>
  • They should be found around lines 22 and 23. In vim, this is easily done by typing \ssh, then n until you are on the right line. Then type d2d to delete these 2 line. Finally issue wq! to save and quit.
  • Save the file and quit the editor. Then go to System Preferences » Sharing » Services, unlock it, disable Remote Login, and final re-enable Remote Login. You can check if things worked by using Bonjour Browser or some such similar app to be sure ssh/sftp no longer show up.
  • A simple grep -ir bonjour /System/Library/LaunchDaemons/ gives:
    /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist:                  <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.bld.bulletd.plist:                      <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.eppc.plist:                        <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.FileSyncAgent.sshd.plist:                       <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.echosvc.plist:                    <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.echosvc.plist:                    <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.lsarpc.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.lsarpc.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.mdssvc.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.netlogon.plist:                   <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.srvsvc.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.srvsvc.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.wkssvc.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.msrpc.wkssvc.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.odproxyd.plist:                 <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.screensharing.plist:                    <key>Bonjour</key>
    /System/Library/LaunchDaemons/com.apple.smbd.plist:                     <key>Bonjour</key>
    /System/Library/LaunchDaemons/ftp.plist:                        <key>Bonjour</key>
    /System/Library/LaunchDaemons/ssh.plist:                        <key>Bonjour</key>
    Binary file /System/Library/LaunchDaemons/telnet.plist matches

    so, you may want to change these too.

2012-02-17 paramétrer l'e-mail à l'INT

2012-02-16 13:47:12
  • paramétrer un nouveau compte avec son adresse lolo.toto@univ-amu.fr
  • indiquer les parametres:
    1. serveur IMAP imap.univmed.fr
    2. SSL (port 993)
    3. comme identifiant, l'identifiant univmed (de la forme toto.l)
    4. serveur SMTP smtp.univmed.fr
SERVEUR ENTRANT (imap)

Sélectionner IMAP et le nommer UNIV-AMU.

Saisir votre adresse mail prenom.nom@univ-amu.fr.

Votre login est du genre : nom.x ou nom (x est la première lettre de votre prénom)

Saisir le : Prénom NOM

L'adresse du serveur IMAP est : imap.univmed.fr

Le port est 993 avec chiffrement SSL et l'authentification est par mot de passe.

SERVEUR SORTANT (smtp)

Sélectionner SMTP et le nommer UNIV-AMU.

L'adresse du serveur IMAP est : smtp.univmed.fr

Votre login est du genre : nom.x ou nom

Le port est 465 avec chiffrement SSL et l'authentification est par mot de passe.