Avvio automatico script.sh

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
preda666
Prode Principiante
Messaggi: 4
Iscrizione: venerdì 23 marzo 2018, 14:12
Distribuzione: xubuntu 16.04 LTS
Sesso: Maschile

Avvio automatico script.sh

Messaggio da preda666 »

Buonasera, come da titolo vorrei far partire un mio script sh all'avvio del server, ma purtroppo non ci riesco! Ho letto da molte parti che bisogna inserire il percorso dello script dentro il file /etc/rc.local ma non parte nulla all'avvio. Premetto che sono un neofita e sicuramente sto sbagliando qualcosa. Lo script è cosi composto:

Codice: Seleziona tutto

#!/bin/bash

screen /myPath/MINECRAFT/FTBPresentsDirewolf20112ServerNEW/ServerStart.sh

exit 0

Quello che vorrei fare è semplicemente far partire un server minecraft all'avvio tramite la funzione 'screen' che mi permette poi di aprire la consolle del server minecraft loggandomi semplicemente tramite putty, per esempio, e scrivere il comando SCREEN -R per riprendermi la console.
Scrivendo quel comando da terminale il tutto parte senza problema. Sto sbagliando a scrivere lo script, o addirittura lo script non ammette comandi che si possono scrivere da consolle?

Grazie a chiunque mi dia una mano :D

Il file /etc/rc.local è cosi scritto:

Codice: Seleziona tutto

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

./myScript/startMinecraft.sh

exit 0

Avatar utente
VitoDoc
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2061
Iscrizione: domenica 6 maggio 2012, 18:01
Desktop: plasma
Distribuzione: KUbuntu 18.04 LTS
Sesso: Maschile

Re: Avvio automatico script.sh

Messaggio da VitoDoc »

Innanzitutto il percorso che inserisci nel file rc.local non è corretto, gli devi dare il percorso esatto, cioè /home/nomeutente/myScript/startMinecraft.sh
Fatto questo se ancora non va prova ad anteporre export DISPLAY=:0.0; alla patch in rc.local

Codice: Seleziona tutto

# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

export DISPLAY=:0.0; ./home/nomeutente/myScript/startMinecraft.sh.

exit 0
Ovviamente devi sostituire nomeutente con il nome utente che hai scelto per loggarti.
preda666
Prode Principiante
Messaggi: 4
Iscrizione: venerdì 23 marzo 2018, 14:12
Distribuzione: xubuntu 16.04 LTS
Sesso: Maschile

Re: Avvio automatico script.sh

Messaggio da preda666 »

Ho fatto come dici tu, quindi modificare il file rc.local, il percorso all’interno dello script non l’ho modificato, perché quello è il percorso per raggiungerlo...non è sotto /home/mioutente etc...
Mi sono fatto capire? 🤔
Purtroppo però non funziona all’avvio...
Avatar utente
Stealth
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17349
Iscrizione: martedì 31 gennaio 2006, 22:55
Desktop: Gnome
Distribuzione: Ubuntu 22.04 LTS

Re: Avvio automatico script.sh

Messaggio da Stealth »

Andando in ordine:
1- dmesg non ti dice nulla?
2- suppongo lo script lo abbia scritto te o preso da qualche parte, ma dopo averlo copiato a destinazione hai verificato che sia eseguibile?
3- lanciando in un terminale non il comando (che ok funziona) ma lo script, che succede?
ciao
preda666
Prode Principiante
Messaggi: 4
Iscrizione: venerdì 23 marzo 2018, 14:12
Distribuzione: xubuntu 16.04 LTS
Sesso: Maschile

Re: Avvio automatico script.sh

Messaggio da preda666 »

1- ho mandato il comando ed esce molta roba, che però non so cosa significano. Posto il risultato

Codice: Seleziona tutto

81fffff]
[    0.122542] pci_bus 0000:02: resource 2 [mem 0xe8200000-0xe83fffff 64bit pref]
[    0.122545] pci_bus 0000:03: resource 0 [io  0x4000-0x4fff][    0.122547] pci_bus 0000:03: resource 1 [mem 0xef000000-0xef8fffff]
[    0.122549] pci_bus 0000:03: resource 2 [mem 0xee000000-0xeeffffff 64bit pref]
[    0.122552] pci_bus 0000:04: resource 0 [io  0x5000-0x5fff][    0.122554] pci_bus 0000:04: resource 1 [mem 0xef900000-0xef9fffff]
[    0.122556] pci_bus 0000:04: resource 2 [mem 0xe8400000-0xe85fffff 64bit pref]
[    0.122558] pci_bus 0000:0a: resource 4 [io  0x0000-0x0bff window]
[    0.122561] pci_bus 0000:0a: resource 5 [mem 0x000a0000-0x000bffff window]
[    0.122563] pci_bus 0000:0a: resource 6 [mem 0x000cc000-0x000cffff window]
[    0.122565] pci_bus 0000:0a: resource 7 [mem 0x000d0000-0x000d3fff window]
[    0.122568] pci_bus 0000:0a: resource 8 [mem 0x000d4000-0x000d7fff window]
[    0.122570] pci_bus 0000:0a: resource 9 [mem 0x000d8000-0x000dbfff window]
[    0.122572] pci_bus 0000:0a: resource 10 [mem 0xe8000000-0xefffffff window]
[    0.122574] pci_bus 0000:0a: resource 11 [io  0x0d00-0xfdff window]
[    0.122680] NET: Registered protocol family 2
[    0.122960] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    0.123274] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.123714] TCP: Hash tables configured (established 65536 bind 65536)
[    0.123793] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[    0.123855] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[    0.124052] NET: Registered protocol family 1
[    0.125556] pci 0000:03:00.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    0.125563] PCI: CLS 32 bytes, default 64
[    0.125650] Unpacking initramfs...
[    1.264524] Freeing initrd memory: 48668K
[    1.264598] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    1.264603] software IO TLB [mem 0xe3e90000-0xe7e90000] (64MB) mapped at [ffff9ecd23e90000-ffff9ecd27e8ffff]
[    1.264764] Scanning for low memory corruption every 60 seconds
[    1.265190] audit: initializing netlink subsys (disabled)
[    1.265289] audit: type=2000 audit(1169870953.265:1): state=initialized audit_enabled=0 res=1
[    1.265724] Initialise system trusted keyrings
[    1.265737] Key type blacklist registered
[    1.265790] workingset: timestamp_bits=36 max_order=21 bucket_order=0
[    1.268143] zbud: loaded
[    1.268904] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.269137] fuse init (API version 7.26)
[    1.271149] Key type asymmetric registered
[    1.271151] Asymmetric key parser 'x509' registered
[    1.271208] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.271250] io scheduler noop registered
[    1.271251] io scheduler deadline registered
[    1.271298] io scheduler cfq registered (default)
[    1.271439] pcieport 0000:00:1c.0: enabling device (0100 -> 0103)
[    1.272145] intel_idle: does not run on family 6 model 15
[    1.272280] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0C:00/input/input0
[    1.272297] ACPI: Power Button [PWRB]
[    1.272354] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    1.272387] ACPI: Power Button [PWRF]
[    1.272648] GHES: HEST is not enabled!
[    1.272774] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    1.293374] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.313939] 00:03: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    1.315895] Linux agpgart interface v0.103
[    1.318045] loop: module loaded
[    1.318245] ata_piix 0000:00:1f.1: version 2.13
[    1.319475] scsi host0: ata_piix
[    1.319609] scsi host1: ata_piix
[    1.319669] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x3080 irq 14
[    1.319670] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x3088 irq 15
[    1.319839] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
[    1.477089] scsi host2: ata_piix
[    1.477211] scsi host3: ata_piix
[    1.477264] ata3: SATA max UDMA/133 cmd 0x30c8 ctl 0x30bc bmdma 0x3090 irq 19
[    1.477266] ata4: SATA max UDMA/133 cmd 0x30c0 ctl 0x30b8 bmdma 0x3098 irq 19
[    1.477396] libphy: Fixed MDIO Bus: probed
[    1.477397] tun: Universal TUN/TAP device driver, 1.6
[    1.477486] PPP generic driver version 2.4.2
[    1.477555] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.477561] ehci-pci: EHCI PCI platform driver
[    1.477759] ehci-pci 0000:00:1d.7: EHCI Host Controller
[    1.477768] ehci-pci 0000:00:1d.7: new USB bus registered, assigned bus number 1
[    1.477782] ehci-pci 0000:00:1d.7: debug port 1
[    1.481678] ehci-pci 0000:00:1d.7: cache line size of 32 is not supported
[    1.481696] ehci-pci 0000:00:1d.7: irq 23, io mem 0xefc00000
[    1.487424] ata1.00: ATA-6: ST340014A, 8.11, max UDMA/100
[    1.487427] ata1.00: 78165360 sectors, multi 16: LBA 
[    1.487431] ata1.00: limited to UDMA/33 due to 40-wire cable
[    1.496042] ehci-pci 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    1.496198] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.496202] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.496205] usb usb1: Product: EHCI Host Controller
[    1.496207] usb usb1: Manufacturer: Linux 4.13.0-37-generic ehci_hcd
[    1.496210] usb usb1: SerialNumber: 0000:00:1d.7
[    1.496400] hub 1-0:1.0: USB hub found
[    1.496418] hub 1-0:1.0: 8 ports detected
[    1.496731] ehci-platform: EHCI generic platform driver
[    1.496751] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.496756] ohci-pci: OHCI PCI platform driver
[    1.496770] ohci-platform: OHCI generic platform driver
[    1.496780] uhci_hcd: USB Universal Host Controller Interface driver
[    1.496939] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[    1.496947] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    1.496954] uhci_hcd 0000:00:1d.0: detected 2 ports
[    1.496973] uhci_hcd 0000:00:1d.0: irq 23, io base 0x00003000
[    1.497081] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.497083] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.497086] usb usb2: Product: UHCI Host Controller
[    1.497088] usb usb2: Manufacturer: Linux 4.13.0-37-generic uhci_hcd
[    1.497090] usb usb2: SerialNumber: 0000:00:1d.0
[    1.497241] hub 2-0:1.0: USB hub found
[    1.497256] hub 2-0:1.0: 2 ports detected
[    1.497534] uhci_hcd 0000:00:1d.1: UHCI Host Controller
[    1.497541] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
[    1.497548] uhci_hcd 0000:00:1d.1: detected 2 ports
[    1.497567] uhci_hcd 0000:00:1d.1: irq 19, io base 0x00003020
[    1.497667] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    1.497670] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.497672] usb usb3: Product: UHCI Host Controller
[    1.497674] usb usb3: Manufacturer: Linux 4.13.0-37-generic uhci_hcd
[    1.497677] usb usb3: SerialNumber: 0000:00:1d.1
[    1.497816] hub 3-0:1.0: USB hub found
[    1.497831] hub 3-0:1.0: 2 ports detected
[    1.498105] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    1.498113] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
[    1.498120] uhci_hcd 0000:00:1d.2: detected 2 ports
[    1.498149] uhci_hcd 0000:00:1d.2: irq 18, io base 0x00003040
[    1.498250] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    1.498252] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.498255] usb usb4: Product: UHCI Host Controller
[    1.498257] usb usb4: Manufacturer: Linux 4.13.0-37-generic uhci_hcd
[    1.498259] usb usb4: SerialNumber: 0000:00:1d.2
[    1.498398] hub 4-0:1.0: USB hub found
[    1.498408] hub 4-0:1.0: 2 ports detected
[    1.498663] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[    1.498673] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[    1.498680] uhci_hcd 0000:00:1d.3: detected 2 ports
[    1.498705] uhci_hcd 0000:00:1d.3: irq 16, io base 0x00003060
[    1.498764] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[    1.498767] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.498769] usb usb5: Product: UHCI Host Controller
[    1.498771] usb usb5: Manufacturer: Linux 4.13.0-37-generic uhci_hcd
[    1.498774] usb usb5: SerialNumber: 0000:00:1d.3
[    1.498903] hub 5-0:1.0: USB hub found
[    1.498911] hub 5-0:1.0: 2 ports detected
[    1.499086] i8042: PNP: No PS/2 controller found.
[    1.499087] i8042: Probing ports directly.
[    3.353145] tsc: Refined TSC clocksource calibration: 1861.999 MHz
[    3.353154] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x35ade44ba74, max_idle_ns: 881590729106 ns
[    3.353162] ata1.00: configured for UDMA/33
[    3.353337] scsi 0:0:0:0: Direct-Access     ATA      ST340014A        8.11 PQ: 0 ANSI: 5
[    3.353621] sd 0:0:0:0: [sda] 78165360 512-byte logical blocks: (40.0 GB/37.3 GiB)
[    3.353637] sd 0:0:0:0: [sda] Write Protect is off
[    3.353640] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.353656] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.353664] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.357412]  sda: sda2
[    3.357601] ata4.00: HPA detected: current 320170943, native 320173056
[    3.357606] ata4.00: ATA-7: Maxtor 6Y160M0, YAR511W0, max UDMA/133
[    3.357608] ata4.00: 320170943 sectors, multi 16: LBA48 
[    3.357614] ata4.01: ATA-7: Maxtor 6L080M0, BANC1G10, max UDMA/100
[    3.357616] ata4.01: 156301488 sectors, multi 16: LBA48 
[    3.357872] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.362335] ata4.00: configured for UDMA/133
[    3.366864] ata4.01: configured for UDMA/100
[    3.386063] ata3.00: ATA-7: MAXTOR STM3250820AS, 3.AAE, max UDMA/133
[    3.386065] ata3.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    3.461029] ata3.00: configured for UDMA/133
[    3.461185] scsi 2:0:0:0: Direct-Access     ATA      MAXTOR STM325082 E    PQ: 0 ANSI: 5
[    3.461462] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    3.461468] sd 2:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    3.461483] sd 2:0:0:0: [sdb] Write Protect is off
[    3.461485] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    3.461508] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.461633] scsi 3:0:0:0: Direct-Access     ATA      Maxtor 6Y160M0   11W0 PQ: 0 ANSI: 5
[    3.461883] sd 3:0:0:0: Attached scsi generic sg2 type 0
[    3.461937] sd 3:0:0:0: [sdc] 320170943 512-byte logical blocks: (164 GB/153 GiB)
[    3.461954] sd 3:0:0:0: [sdc] Write Protect is off
[    3.461957] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    3.461985] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.462050] scsi 3:0:1:0: Direct-Access     ATA      Maxtor 6L080M0   1G10 PQ: 0 ANSI: 5
[    3.462328] sd 3:0:1:0: Attached scsi generic sg3 type 0
[    3.466742] sd 3:0:1:0: [sdd] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    3.466868] sd 3:0:1:0: [sdd] Write Protect is off
[    3.466871] sd 3:0:1:0: [sdd] Mode Sense: 00 3a 00 00
[    3.467091] sd 3:0:1:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.467199]  sdc: sdc1
[    3.467716] sd 3:0:0:0: [sdc] Attached SCSI disk
[    3.506217]  sdd: sdd1 sdd2 < sdd5 >
[    3.506766] sd 3:0:1:0: [sdd] Attached SCSI disk
[    3.517366]  sdb: sdb1
[    3.517688] sd 2:0:0:0: [sdb] Attached SCSI disk
[    3.609308] serio: i8042 KBD port at 0x60,0x64 irq 1
[    3.609444] mousedev: PS/2 mouse device common for all mice[    3.609904] rtc_cmos 00:01: RTC can wake from S4
[    3.610029] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[    3.610054] rtc_cmos 00:01: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    3.610063] i2c /dev entries driver
[    3.610149] device-mapper: uevent: version 1.0.3
[    3.610243] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[    3.610278] ledtrig-cpu: registered to indicate activity on CPUs
[    3.610810] NET: Registered protocol family 10
[    3.617391] Segment Routing with IPv6
[    3.617419] NET: Registered protocol family 17
[    3.617433] Key type dns_resolver registered
[    3.617688] RAS: Correctable Errors collector initialized.
[    3.617742] microcode: sig=0x6f2, pf=0x1, revision=0x5d
[    3.617809] microcode: Microcode Update Driver: v2.2.
[    3.617824] sched_clock: Marking stable (3617802338, 0)->(3719057633, -101255295)
[    3.618069] registered taskstats version 1
[    3.618084] Loading compiled-in X.509 certificates
[    3.622564] Loaded X.509 cert 'Build time autogenerated kernel key: 039842e4c5826cfde4aee35bb7ba969e0b39b60f'
[    3.622601] zswap: loaded using pool lzo/zbud
[    3.628506] Key type big_key registered
[    3.628511] Key type trusted registered
[    3.631425] Key type encrypted registered
[    3.631429] AppArmor: AppArmor sha1 policy hashing enabled
[    3.631433] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[    3.631467] evm: HMAC attrs: 0x1
[    3.631720]   Magic number: 7:36:162
[    3.631900] rtc_cmos 00:01: setting system clock to 2007-01-27 04:09:16 UTC (1169870956)
[    3.632060] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    3.632061] EDD information not available.
[    3.632110] PM: Hibernation image not present or could not be loaded.
[    3.636570] Freeing unused kernel memory: 2364K
[    3.636573] Write protecting the kernel read-only data: 18432k
[    3.637873] Freeing unused kernel memory: 2024K
[    3.638254] Freeing unused kernel memory: 88K
[    3.641797] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    3.641798] x86/mm: Checking user space page tables
[    3.644865] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    3.769663] pps_core: LinuxPPS API ver. 1 registered
[    3.769664] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.771643] PTP clock support registered
[    3.776058] usb 5-1: new full-speed USB device number 2 using uhci_hcd
[    3.791133] pmd_set_huge: Cannot satisfy [mem 0xee000000-0xee200000] with a huge-page mapping due to MTRR override.
[    3.791936] tg3.c:v3.137 (May 11, 2014)
[    3.792164] [TTM] Zone  kernel: Available graphics memory: 2535544 kiB
[    3.792165] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[    3.792166] [TTM] Initializing pool allocator
[    3.792173] [TTM] Initializing DMA pool allocator
[    3.816523] tg3 0000:04:00.0 eth0: Tigon3 [partno(N/A) rev 4201] (PCI Express) MAC address 00:18:fe:fa:fd:08
[    3.816528] tg3 0000:04:00.0 eth0: attached PHY is 5750 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
[    3.816531] tg3 0000:04:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[    3.816534] tg3 0000:04:00.0 eth0: dma_rwctrl[76180000] dma_mask[64-bit]
[    3.859224] fbcon: mgadrmfb (fb0) is primary device
[    3.883698] tg3 0000:04:00.0 enp4s0: renamed from eth0
[    3.982110] usb 5-1: New USB device found, idVendor=0000, idProduct=0000
[    3.982113] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.982116] usb 5-1: Product: SE USB Device
[    3.982118] usb 5-1: Manufacturer: ServerEngines
[    3.982121] usb 5-1: SerialNumber: 601362C0762534
[    3.992481] hidraw: raw HID events driver (C) Jiri Kosina
[    4.014410] usbcore: registered new interface driver usbhid[    4.014411] usbhid: USB HID core driver
[    4.019991] input: ServerEngines SE USB Device as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:0000:0000.0001/input/input3
[    4.076402] hid-generic 0003:0000:0000.0001: input,hidraw0: USB HID v1.11 Keyboard [ServerEngines SE USB Device] on usb-0000:00:1d.3-1/input0
[    4.076783] input: ServerEngines SE USB Device as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/0003:0000:0000.0002/input/input4
[    4.076919] hid-generic 0003:0000:0000.0002: input,hidraw1: USB HID v1.11 Mouse [ServerEngines SE USB Device] on usb-0000:00:1d.3-1/input1
[    4.083290] Console: switching to colour frame buffer device 80x30
[    4.090340] mgag200 0000:03:00.0: fb0: mgadrmfb frame buffer device
[    4.104080] [drm] Initialized mgag200 1.0.0 20110418 for 0000:03:00.0 on minor 0
[    4.384164] clocksource: Switched to clocksource tsc
[    9.630766] random: crng init done
[    9.631768] EXT4-fs (sdd1): INFO: recovery required on readonly filesystem
[    9.631770] EXT4-fs (sdd1): write access will be enabled during recovery
[   11.206639] EXT4-fs (sdd1): orphan cleanup on readonly fs
[   11.206962] EXT4-fs (sdd1): 6 orphan inodes deleted
[   11.206964] EXT4-fs (sdd1): recovery complete
[   11.384018] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
[   12.407912] systemd[1]: System time before build time, advancing clock.
[   12.827954] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[   12.828188] systemd[1]: Detected architecture x86-64.
[   12.838622] systemd[1]: Set hostname to <mattiaServer>.
[   14.159945] systemd[1]: Reached target User and Group Name Lookups.
[   14.160134] systemd[1]: Listening on udev Control Socket.
[   14.160197] systemd[1]: Listening on Syslog Socket.
[   14.160280] systemd[1]: Started Trigger resolvconf update for networkd DNS.
[   14.160326] systemd[1]: Listening on fsck to fsckd communication Socket.
[   14.160344] systemd[1]: Reached target Remote File Systems (Pre).
[   14.160359] systemd[1]: Reached target Remote File Systems.[   15.044549] lp: driver loaded but no devices found
[   15.126862] ppdev: user-space parallel port driver
[   30.354051] EXT4-fs (sdd1): re-mounted. Opts: errors=remount-ro
[   30.384345] systemd-journald[247]: Received request to flush runtime journal from PID 1
[   30.547978] ipmi message handler version 39.2
[   30.551804] ipmi device interface
[   30.555172] ipmi_si: probing via SMBIOS
[   30.555177] ipmi_si: SMBIOS: io 0xca2 regsize 1 spacing 1 irq 0
[   30.555178] ipmi_si: Adding SMBIOS-specified kcs state machine
[   30.555216] ipmi_si IPI0001:00: ipmi_si: probing via ACPI
[   30.555252] ipmi_si IPI0001:00: [io  0x0ca2-0x0ca3] regsize 1 spacing 1 irq 0
[   30.555253] ipmi_si: ACPI-specified kcs state machine: duplicate
[   30.555309] IPMI System Interface driver.
[   30.592927] ipmi_si: probing via SPMI
[   30.592931] ipmi_si: SPMI: io 0xca9 regsize 1 spacing 1 irq 0
[   30.592933] ipmi_si: Adding SPMI-specified kcs state machine
[   30.592936] ipmi_si: Trying SMBIOS-specified kcs state machine at i/o address 0xca2, slave address 0x20, irq 0
[   30.599862] EDAC MC0: Giving out device to module i3000_edac controller i3000: DEV 0000:00:00.0 (POLLED)
[   30.599878] EDAC PCI0: Giving out device to module i3000_edac controller EDAC PCI controller: DEV 0000:00:00.0 (POLLED)
[   30.601854] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   30.626543] intel_rng: FWH not detected
[   30.654633] ACPI Warning: SystemIO range 0x0000000000001028-0x000000000000102F conflicts with OpRegion 0x0000000000001000-0x000000000000102F (\_SB.PCI0.LPC0.PMIO) (20170531/utaddress-247)
[   30.654642] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   30.654646] ACPI Warning: SystemIO range 0x0000000000001180-0x00000000000011AF conflicts with OpRegion 0x0000000000001180-0x00000000000011AF (\_SB.PCI0.LPC0.GPOX) (20170531/utaddress-247)
[   30.654651] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   30.654696] lpc_ich: Resource conflict(s) found affecting gpio_ich
[   30.657207] leds_ss4200: no LED devices found
[   30.827703] kvm: disabled by bios
[   30.831450] coretemp coretemp.0: Using relative temperature scale!
[   30.831491] coretemp coretemp.0: Using relative temperature scale!
[   30.834426] intel_powerclamp: No package C-state available
[   31.371141] ipmi_si dmi-ipmi-si.0: Found new BMC (man_id: 0x00000b, prod_id: 0x2001, dev_id: 0x12)
[   31.371553] ipmi_si dmi-ipmi-si.0: IPMI kcs interface initialized
[   31.375148] IPMI SSIF Interface driver
[   31.577947] gpio_ich: GPIO from 462 to 511 on gpio_ich
[   32.028867] Adding 1998844k swap on /dev/sdd5.  Priority:-1 extents:1 across:1998844k FS
[   32.601565] audit: type=1400 audit(1522320217.058:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=651 comm="apparmor_parser"
[   32.601570] audit: type=1400 audit(1522320217.058:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=651 comm="apparmor_parser"
[   32.601574] audit: type=1400 audit(1522320217.058:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=651 comm="apparmor_parser"
[   32.601578] audit: type=1400 audit(1522320217.058:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=651 comm="apparmor_parser"
[   32.602354] audit: type=1400 audit(1522320217.059:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=650 comm="apparmor_parser"
[   32.602359] audit: type=1400 audit(1522320217.059:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session//chromium" pid=650 comm="apparmor_parser"
[   32.622133] audit: type=1400 audit(1522320217.079:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince" pid=652 comm="apparmor_parser"
[   32.622143] audit: type=1400 audit(1522320217.079:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince//sanitized_helper" pid=652 comm="apparmor_parser"
[   32.622148] audit: type=1400 audit(1522320217.079:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-previewer" pid=652 comm="apparmor_parser"
[   32.622152] audit: type=1400 audit(1522320217.079:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-previewer//sanitized_helper" pid=652 comm="apparmor_parser"
[   37.674931] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
[   37.732152] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
[   39.292685] tg3 0000:04:00.0 enp4s0: Link is up at 100 Mbps, full duplex
[   39.292708] tg3 0000:04:00.0 enp4s0: Flow control is on for TX and on for RX
[   39.292740] IPv6: ADDRCONF(NETDEV_CHANGE): enp4s0: link becomes ready
[   54.507176] mgag200 0000:03:00.0: Video card doesn't support cursors with partial transparency.
[   54.507180] mgag200 0000:03:00.0: Not enabling hardware cursor.
[ 1622.222095] perf: interrupt took too long (2504 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[ 1625.376844] perf: interrupt took too long (3229 > 3130), lowering kernel.perf_event_max_sample_rate to 61750
[ 1630.050488] perf: interrupt took too long (4167 > 4036), lowering kernel.perf_event_max_sample_rate to 48000
[ 1634.304346] perf: interrupt took too long (5513 > 5208), lowering kernel.perf_event_max_sample_rate to 36250
[ 1643.659696] perf: interrupt took too long (6915 > 6891), lowering kernel.perf_event_max_sample_rate to 28750
[ 1653.736248] perf: interrupt took too long (8818 > 8643), lowering kernel.perf_event_max_sample_rate to 22500
[ 1667.102281] perf: interrupt took too long (11414 > 11022), lowering kernel.perf_event_max_sample_rate to 17500
[ 1686.242864] perf: interrupt took too long (14618 > 14267), lowering kernel.perf_event_max_sample_rate to 13500

2- lo script l’ho scritto io ed semplicemente c’è un comando per far partire il server di minecraft con “screen” (esempio: screen sh /home/serverMinecraft.sh)

3- se faccio eseguire lo script creato da funziona! Mi serve solo riuscire a farlo avviare all’avvio..
Avatar utente
Stealth
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17349
Iscrizione: martedì 31 gennaio 2006, 22:55
Desktop: Gnome
Distribuzione: Ubuntu 22.04 LTS

Re: Avvio automatico script.sh

Messaggio da Stealth »

In quel dmesg non c'è niente, ma se lo script parte normalmente da terminale l'unica spiegazione che mi viene al volo è che sia sbagliato l'indirizzo
ciao
preda666
Prode Principiante
Messaggi: 4
Iscrizione: venerdì 23 marzo 2018, 14:12
Distribuzione: xubuntu 16.04 LTS
Sesso: Maschile

Re: Avvio automatico script.sh

Messaggio da preda666 »

Controllerò meglio, comunque parlavi di renderlo eseguibile. Sai come si può fare? 😄
Avatar utente
Vir1966
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 734
Iscrizione: mercoledì 18 novembre 2015, 18:30
Desktop: Xfce-Mate-Gnome
Distribuzione: Xubuntu18.04-LMint 19.3-Ubuntu20.04
Sesso: Maschile

Re: Avvio automatico script.sh

Messaggio da Vir1966 »

Ciao...prova cosi

Codice: Seleziona tutto

chmod +x nomefile
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 15 ospiti