View Full Version : Antix - Avviare Cups allo start
CielitoLindux
26-09-2017, 09:03
Salve a tutti.
Ho installato antix su un vecchio pc per leggere posta e stampare allegati. Tutto funziona alla grande compreso il riconoscimento della stampante brother.
Ho solo il problema di avviare cups all'avvio del pc.
Ho editato il file /etc/xdg/fluxbox/autostart e inserito i comandi per avviare sia thunderbird che cups.
Il primo si avvia mentre cups no.
Gli stessi comandi dati da terminale funzionano. E' un po' che non uso linux e magari è una cosa banale ma non ricordo come potrei fare.
Qualcuno può suggerirmi dove mettere mano?
Grazie a tutti.
Buna giornata.
CielitoLindux
26-09-2017, 09:05
Appena postato mi è apparso un flash.
Forse è qualcosa del tipo service enable cups che dia a cups il permesso di abilitarsi all'avvio?
Boh. Attendo fiducioso.
CielitoLindux
27-09-2017, 14:15
usa systemd ?
Emh... nn saprei.
E' antix 13.7 (mi pare) e usa un kernel 3.7
dovrebbe bastare "service enable cups"
oppure
sudo systemctl enable cups
o
sudo systemctl enable org.cups.cupsd.service
CielitoLindux
27-09-2017, 16:20
dovrebbe bastare "service enable cups"
Questo l'ho già provato ma non funzionava.
sudo systemctl enable cups
o
sudo systemctl enable org.cups.cupsd.service
Stasera provo questi.
CielitoLindux
27-09-2017, 18:15
root@antiX1:~# service enable cups
enable: unrecognized service
root@antiX1:~# systemctl enable cups
Operation failed: Invalid argument
root@antiX1:~# systemctl enable org.cups.cupsd.service
Operation failed: No such file or directory
root@antiX1:~# systemctl enable cupsd
Operation failed: Invalid argument
root@antiX1:~# uname -r
3.7.10-antix.5-486-smp
Conosce il comando service ma c'èsolo start e non enable.
root@antiX1:~# serv
servertool service
root@antiX1:~# service
acpid mountnfs-bootclean.sh
acpi-fakekey mountnfs.sh
acpi-support mtab.sh
alsa-utils networking
bluetooth pppd-dns
bootlogs procps
bootmisc.sh rc
checkfs.sh rc.local
checkroot-bootclean.sh rcS
checkroot.sh README
console-setup reboot
cpufrequtils resolvconf
cron rmnologin
cryptdisks rsync
cryptdisks-early rsyslog
cups samba
dbus saned
dns-clean screen-cleanup
gpm sendsigs
halt single
hdparm skeleton
hostname.sh slim
hwclock.sh smartd
ifplugd smartmontools
irqbalance ssh
kbd sudo
keyboard-setup svgalib-bin
keymap.sh teamviewerd
killprocs transmission-daemon
kmod udev
lm-sensors udev-mtab
loadcpufreq ufw
lvm2 umountfs
motd umountnfs.sh
mountall-bootclean.sh umountroot
mountall.sh urandom
mountdevsubfs.sh wicd
mountkernfs.sh x11-common
root@antiX1:~# service s
samba sendsigs slim ssh
saned single smartd sudo
screen-cleanup skeleton smartmontools svgalib-bin
root@antiX1:~# service cups
force-reload start stop
restart status
non la conosco antix ma da una ricerca volante sembra sia 'systemd-free'
caz non ricordo più... :D:O
forse cups start ?
come autocompleta digitando cups [tab] ?
prova:
service <servizio> <comando>
o
systemctl list-unit-files
per avere l'elenco dei servizi da systemd
dovrei aver 'trovato'...
come root o via sudo
./etc/init.d/cups start
CielitoLindux
28-09-2017, 08:52
prova:
service <servizio> <comando>
o
systemctl list-unit-files
per avere l'elenco dei servizi da systemd
Il problema é che nn c'è una opzione che permette l'avvio automatico. Posso far partire cups nella sessione corrente, fermarlo, riavviarlo. Ma il mio obiettivo é farlo partire in automatico all'avvio del sistema.
CielitoLindux
28-09-2017, 08:55
dovrei aver 'trovato'...
come root o via sudo
./etc/init.d/cups start
Questo comando lo avevo trovato anche io e funziona ma resta il problema che posso avviarlo nella sessione corrente. Ho provato a metterlo nel file dell'autostart ma nn funziona, forse perché esige permessi root, giustamente. Forse serve un file rc.d o qualcosa del genere.
è basata su che distro la 13.7? le attuali partono dalla 15...
CielitoLindux
28-09-2017, 09:12
Penso Debian. Una vecchia Debian.
con: systemctl list-unit-files
vedi come si chiama di preciso il servizio cups
e poi lo abiliti ... tipo con:
sudo systemctl enable org.cups.cupsd.service
p.s.
il vecchio metodo era:
sudo update-rc.d <nomeservizio> enable
CielitoLindux
02-10-2017, 16:37
root@antiX1:~# systemctl list-unit-files
Failed to get unit file list: No such file or directory
root@antiX1:~# systemctl list-unit-files
Failed to get unit file list: No such file or directory
root@antiX1:~# systemctl list-
list-jobs list-unit-files list-units
root@antiX1:~# systemctl list-units
Failed to get D-Bus connection: No connection to service manager.
root@antiX1:~# systemctl list-jobs
Failed to get D-Bus connection: No connection to service manager.
root@antiX1:~# update-rc.d cups enable
update-rc.d: using dependency based boot sequencing
root@antiX1:~# update-rc.d cups
update-rc.d: using dependency based boot sequencing
update-rc.d: error: not enough arguments
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
root@antiX1:~# update-rc.d cups enable S35
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: enable action will have no effect on runlevel S35
update-rc.d: error: no runlevel symlinks to modify, aborting!
root@antiX1:~# update-rc.d cups enable 35
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: enable action will have no effect on runlevel 35
update-rc.d: error: no runlevel symlinks to modify, aborting!
root@antiX1:~# update-rc.d cups enable 5
update-rc.d: using dependency based boot sequencing
root@antiX1:~# update-rc.d cups enable 3
update-rc.d: using dependency based boot sequencing
root@antiX1:~#
Alcune prove fatte. Ora provo a riavviare, vediamo se parte.
CielitoLindux
02-10-2017, 17:23
Bene. Cups parte all'avvio del sistema e la stampante viene subito riconosciuta e collegata.
Suppongo che il comando giusto sia stato l'ultimo sul RL 5:root@antiX1:~# update-rc.d cups enable 5
update-rc.d: using dependency based boot sequencing
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.