Inicia ai manow [RESOLVIDO]

1. Inicia ai manow [RESOLVIDO]

Gabriel Cerrano
EdgeHA

(usa SolusOS)

Enviado em 02/01/2019 - 18:59h

Salve

Eu uso o Solus OS e eu queria saber se tem como fazer um programa abrir automáticamente com a inicialização do linux.
OBS: Eu pesquisei e vi acho que aqui mesmo um tópico falando sobre etc/init.d, só que no meu eu abro essa pasta e tem um README ecrito isso ai:

You are looking for the traditional init scripts in /etc/init.d,
and they are gone?

Here's an explanation on what's going on:

You are running a systemd-based OS where traditional init scripts have
been replaced by native systemd services files. Service files provide
very similar functionality to init scripts. To make use of service
files simply invoke "systemctl", which will output a list of all
currently running services (and other units). Use "systemctl
list-unit-files" to get a listing of all known unit files, including
stopped, disabled and masked ones. Use "systemctl start
foobar.service" and "systemctl stop foobar.service" to start or stop a
service, respectively. For further details, please refer to
systemctl(1).

Note that traditional init scripts continue to function on a systemd
system. An init script /etc/init.d/foobar is implicitly mapped
into a service unit foobar.service during system initialization.

Thank you!

Further reading:
man:systemctl(1)
man:systemd(1)
http://0pointer.de/blog/projects/systemd-for-admins-3.html
https://www.freedesktop.org/wiki/Software/systemd/Incompatibilities



  


2. MELHOR RESPOSTA

-
BiaMonteiro

(usa Arch Linux)

Enviado em 02/01/2019 - 19:08h

Se for um programa como o Firefox, GIMP, Kate, etc, você pode ir nas configurações de sua interface gráfica e habilitar a inicialização desse aplicativo toda vez que o ambiente gráfico for carregado, seja ele o padrão do Solus, o Budgie, ou o GNOME, KDE, dentre outras interfaces. Agora se for algo como um serviço, por exemplo, Cups, Apache, Samba, etc, você usa o comando systemctl enable serviço.service para habilitar sua inicialização assim que o kernel começar a iniciar o seu sistema. O diretório dos serviços do Systemd (systemctl é um comando do Systemd) fica em /etc/systemd/system.

3. Re: Inicia ai manow

Paulo Jr
Pebis

(usa Debian)

Enviado em 02/01/2019 - 19:19h

Se quiser iniciar uma aplicação (Chrome, Firefox), tenta procurar por esse autostart aos 0,56 s desse vídeo. https://www.youtube.com/watch?v=TiSasTKOuOg
Se quiser iniciar um script https://blog.remontti.com.br/2478


4. Re: Inicia ai manow [RESOLVIDO]

Gabriel Cerrano
EdgeHA

(usa SolusOS)

Enviado em 02/01/2019 - 19:37h

BiaMonteiro escreveu:

Se for um programa como o Firefox, GIMP, Kate, etc, você pode ir nas configurações de sua interface gráfica e habilitar a inicialização desse aplicativo toda vez que o ambiente gráfico for carregado, seja ele o padrão do Solus, o Budgie, ou o GNOME, KDE, dentre outras interfaces. Agora se for algo como um serviço, por exemplo, Cups, Apache, Samba, etc, você usa o comando systemctl enable serviço.service para habilitar sua inicialização assim que o kernel começar a iniciar o seu sistema. O diretório dos serviços do Systemd (systemctl é um comando do Systemd) fica em /etc/systemd/system.



Consegui. Eu sabia que tinha visto em alguma configuração essa opção mas não lembrava onde, ai fui nas Configurações Do Budgie Desktop e la tem Iniciar Automaticamente, pode colocar um programa ou um código XD. Vlws



5. Re: Inicia ai manow [RESOLVIDO]

Clodoaldo Santos
clodoaldops

(usa Linux Mint)

Enviado em 02/01/2019 - 19:38h

Você está usando Solus budgie gnome ou mate?
----------------------------------------------------------------------------------
Itautec-w7535 (Ci3-2310M + 4 GB/RAM + 120 GB/SSD + Intel HD 3000)








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts