English 中文(简体)
安装脚本需要设置一个程序以在 Linux 登录时运行 [已关闭]
原标题:Install script needs to set up a program to run on login in Linux [closed]

这个问题似乎与helpcent 中心界定的范围内的编程无关。

Closed 10 years ago.

我需要写入一个安装脚本, 该脚本在 Linux 的登录( 不是启动) 上运行一个可执行/ 脚本 。 这需要为所有当前可以登录到系统的所有用户以及未来创建的用户工作 。 是否有办法做到这一点?

在窗口中, 可以通过在启动文件夹中为“ 所有用户” 设置快捷键来做到这一点。 Linux 中是否有相似的位置/ nit 脚本? 如果没有, 是否有其他选择?

感谢前台!

问题回答

用户 ~/.bash_ profile 或 ~/. profile 取决于 shell 的用户在登录时执行 。 您可以添加到此上 。 如果您希望每个用户都使用它, 您可以将其放入 / etc/ profile 中 。





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签