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/03 09:27]
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 277: 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 line. Arguments can be given in the same line as the module name. Lines beginning with a '#' are ignored. +# Load dummy at boot to create virtual network device 
-</WRAP>+dummy 
 +</file>
  
-o dins la carpeta ///etc/modules-load.d// tal i com s'explica a, +===== Configurar el mòdul dummy =====
-  * [[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://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?]] +
-  * [[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://en.wikibooks.org/wiki/Changing_Your_MAC_Address/Linux | Changing Your MAC Address/Linux]]+
  
-Així doncs, creo el fitxer ///etc/modules-load.d/dummy.conf// amb el següent contingut,+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> <file>
-# Load dummy at boot to create virtual network device +install dummy /sbin/modprobe --ignore-install dummy; \ 
-dummy+/sbin/ip link set name ethdummy1 dev dummy0
 </file> </file>
  
-i al fitxer ///etc/modprobe.d/dummy.conf// poso les comandes que s'han d'executar un cop el kernel  hagi carregat el mòdul+La segona és configurar-ho com a servei de //systemd// tal i com s'explica per [[https://wiki.archlinux.org/index.php/Matlab | Matlab a 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> <file>
-install dummy /sbin/modprobe --ignore-install dummy; /sbin/ip link set name ethdummy1 dev dummy0+[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> </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 =====
 +
 +  * [[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://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]]
 +  * [[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]]
 +  * [[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.1501745224.txt.gz · Last modified: 2017/08/03 09:27 by miquel