User Tools

Site Tools


informatica:hp_z240mt_offstation_pvlicense

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
informatica:hp_z240mt_offstation_pvlicense [2017/08/02 16:09]
miquel [Load dummy module at boot]
informatica:hp_z240mt_offstation_pvlicense [2017/08/04 10:27] (current)
miquel [Fitxer de llicències]
Line 30: Line 30:
 ===== Fitxer de llicències ===== ===== Fitxer de llicències =====
  
-Aquestes són les llicències del ParaVision a l'ordinador antic que s'hauran de transferir al nou ordinador,+Aquestes són les llicències del ParaVision a l'ordinador antic que s'han transferit al nou ordinador,
  
 <file> <file>
Line 160: Line 160:
 #<!-- LICENSE END -->  #<!-- LICENSE END --> 
 </file> </file>
 +
 +Edito el fitxer i canvio el nom del servidor de //sermn112// a //sermn115//.
  
 ===== Virtual Ethernet Interface ===== ===== Virtual Ethernet Interface =====
Line 215: Line 217:
 </file> </file>
  
-si tingués una adreça IP assignada l'hauríem d'esborrar,+si tingués una adreça IP assignada l'hauríem d'esborrar abans d'eliminar l'enllaç al dispositiu,
  
 <file> <file>
 ip addr del 192.168.0.77/24 dev eth10 ip addr del 192.168.0.77/24 dev eth10
 +</file>
 +
 +però com que no en té, es pot eliminar l'enllaç directament
 +
 +<file>
 +ip link delete eth10 type dummy
 </file> </file>
  
Line 260: Line 268:
 També cal comprovar els fitxers de configuració del gestor de xarxes //systemd-networkd,// on sembla ser que també es podrà definir del dispositiu virtual de xarxa: També cal comprovar els fitxers de configuració del gestor de xarxes //systemd-networkd,// on sembla ser que també es podrà definir del dispositiu virtual de xarxa:
  
-<WRAP tip>+<WRAP info>
 The configuration files are read from the files located in the system network directory /lib/systemd/network, the volatile runtime network directory /run/systemd/network and the local administration network directory /etc/systemd/network. The configuration files are read from the files located in the system network directory /lib/systemd/network, the volatile runtime network directory /run/systemd/network and the local administration network directory /etc/systemd/network.
  
Line 271: Line 279:
   * ...   * ...
  
-==== Load dummy module at boot ====+===== Carregar el mòdul dummy =====
  
-A Debian, els mòduls que s'han de carregar quan es posa en marxa l'ordinador es poden definir al fitxer ///etc/modules//,+A Debian, els mòduls que s'han de carregar quan es posa en marxa l'ordinador es poden definir al fitxer ///etc/modules// o en un fitxer a part dins la carpeta ///etc/modules-load.d//, per exemple, el fitxer ///etc/modules-load.d/dummy.conf// amb el següent contingut,
  
-<WRAP info+<file
-The /etc/modules file contains the names of kernel modules that are to be loaded at boot time, one per lineArguments can be given in the same line as the module nameLines beginning with a '#are ignored+# Load dummy at boot to create virtual network device 
-</WRAP>+dummy 
 +</file> 
 + 
 +===== Configurar el mòdul dummy ===== 
 + 
 +Hi ha dues opcions per configurar el dispositiu //dummy0// com a dispositiu de xarxa virtual. La primera opció és posar al fitxer ///etc/modprobe.d/dummy.conf// les comandes que s'han d'executar per crear el dispositiu de xarxa un cop el kernel hagi carregat el mòdul 
 + 
 +<file> 
 +install dummy /sbin/modprobe --ignore-install dummy; \ 
 +/sbin/ip link set name ethdummy1 dev dummy0 
 +</file> 
 + 
 +La segona és configurar-ho com a servei de //systemd// tal i com s'explica per [[https://wiki.archlinux.org/index.php/Matlab | Matlab la wiki d'Archlinux.]] Aquesta segona opció em sembla preferible, i és la que decideixo aplicar. Per fer-ho, caldrà crear a //etc/systemd/system// un fitxer //bruker.licensing.service// amb la següent informació, 
 + 
 +<file> 
 +[Unit] 
 +Description=Dummy network interface for Bruker TopSpin/ParaVision 
 +Requires=systemd-modules-load.service 
 + 
 +[Service] 
 +Type=oneshot 
 +ExecStart=/sbin/ip link set dev dummy0 name eth0 
 +ExecStart=/sbin/ip link set dev eth0 address 00:00:00:00:00:00 
 + 
 +[Install] 
 +WantedBy=multi-user.target 
 +</file> 
 + 
 +on s'haurà de substituir 00:00:00:00:00:00 per l'adreça MAC corresponent al hostid de les llicències, en aquest cas, 00:16:35:00:88:07 del hostid = 001635008807. 
 + 
 +Per finalitzar, s'haurà de configurar l'execució automàtica d'aquest script quan es posi en marxa l'ordinador amb la comanda, 
 + 
 +<file> 
 +# systemctl enable bruker.licensing 
 +Created symlink from /etc/systemd/system/multi-user.target.wants/bruker.licensing.service to /etc/systemd/system/bruker.licensing.service. 
 +</file> 
 + 
 + 
 + 
 +===== Referències =====
  
-o dins la carpeta ///etc/modules-load.d// tal i com s'explica a, 
-  * [[https://manpages.debian.org/jessie/systemd/modules-load.d.5.en.html | modules-load.d - Configure kernel modules to load at boot]] 
   * [[https://www.centos.org/forums/viewtopic.php?t=53233 | Permanent dummy interface]]   * [[https://www.centos.org/forums/viewtopic.php?t=53233 | Permanent dummy interface]]
 +  * [[https://manpages.debian.org/jessie/systemd/modules-load.d.5.en.html | modules-load.d - Configure kernel modules to load at boot]]
 +  * [[https://wiki.archlinux.org/index.php/Matlab | Running Matlab on Archlinux]]
   * [[https://unix.stackexchange.com/questions/71064/automate-modprobe-command-at-boot-time-on-fedora | Automate modprobe command at boot time on Fedora]]   * [[https://unix.stackexchange.com/questions/71064/automate-modprobe-command-at-boot-time-on-fedora | Automate modprobe command at boot time on Fedora]]
   * [[https://ubuntuforums.org/showthread.php?t=2277526 | Where to put fake interface commands and startup? which file?]]   * [[https://ubuntuforums.org/showthread.php?t=2277526 | Where to put fake interface commands and startup? which file?]]
   * [[http://honglus.blogspot.com.es/2011/04/load-kernel-modules-at-boot-time-on.html | Load kernel modules at boot time on Redhat/Centos Linux]]   * [[http://honglus.blogspot.com.es/2011/04/load-kernel-modules-at-boot-time-on.html | Load kernel modules at boot time on Redhat/Centos Linux]]
   * [[https://wiki.archlinux.org/index.php/kernel_modules | Kernel modules]]   * [[https://wiki.archlinux.org/index.php/kernel_modules | Kernel modules]]
- +  * [[https://en.wikibooks.org/wiki/Changing_Your_MAC_Address/Linux | Changing Your MAC Address/Linux]] 
-Així doncs... +  * [[https://askubuntu.com/questions/676007/how-do-i-make-my-systemd-service-run-via-specific-user-and-start-on-boot | How do I make my systemd service run via specific user and start on boot?]] 
 +  * [[https://wiki.debian.org/systemd | systemd - system and service manager]] 
 +  * [[https://wiki.debian.org/NetworkManager | Network Manager]] 
 +  * [[https://wiki.debian.org/NetworkConfiguration | Network Configuration]]
  
informatica/hp_z240mt_offstation_pvlicense.1501682990.txt.gz · Last modified: 2017/08/02 16:09 by miquel