[opensuse-packaging] ln -s to every $USER
Hello Mates, i woul'd like to make "ln-s /path/file" to every Users/home. Has anyone an Idea? -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns wrote:
i woul'd like to make "ln-s /path/file" to every Users/home. Has anyone an Idea?
What is possible usecase for this? -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns wrote:
i woul'd like to make "ln-s /path/file" to every Users/home. Has anyone an Idea?
What is possible usecase for this? The Backround: I've created the new BOINC Package (Version 6.4.5). Through execution init.d/boinc the daemon created the Folder /var/lib/boinc with the *.xml Files. The daemon runs fine. The GUI too. But the GUI cannot connect to
On Mittwoch 11 Februar 2009 17:39:45 Pavol Rusnak wrote: the daemon. Now i must test, if the file gui_rpc_auth.cfg is present in the /home/$USER. If not it must be linked from /var/lib/boinc to the User folder. Solution 1.) I add this in the init.d Package and let automatic link. Solution 2.) I let make this on userside. Problem: Without this ln -s the GUI cannot connect to daemon. Goal: My goal is to release an user friendly Packet. And all is automated... -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
At Wed, 11 Feb 2009 17:58:40 +0100, Sascha 'saigkill' Manns wrote:
Sascha 'saigkill' Manns wrote:
i woul'd like to make "ln-s /path/file" to every Users/home. Has anyone an Idea?
What is possible usecase for this? The Backround: I've created the new BOINC Package (Version 6.4.5). Through execution init.d/boinc the daemon created the Folder /var/lib/boinc with the *.xml Files. The daemon runs fine. The GUI too. But the GUI cannot connect to
On Mittwoch 11 Februar 2009 17:39:45 Pavol Rusnak wrote: the daemon. Now i must test, if the file gui_rpc_auth.cfg is present in the /home/$USER. If not it must be linked from /var/lib/boinc to the User folder. Solution 1.) I add this in the init.d Package and let automatic link. Solution 2.) I let make this on userside. Problem: Without this ln -s the GUI cannot connect to daemon. Goal: My goal is to release an user friendly Packet. And all is automated...
You can write a wrapper script to check / make such a link before starting the GUI binary. Or, fix the GUI problem to do such a check by itself. Takashi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* Sascha 'saigkill' Manns (samannsml@directbox.com) [20090211 17:57]:
the daemon. Now i must test, if the file gui_rpc_auth.cfg is present in the /home/$USER. If not it must be linked from /var/lib/boinc to the User folder.
Put a file in /etc/profile.d both for csh and sh (bash) that checks for that file and otherwise does the symlink. See the various scripts in /etc/profile.d for examples. These scripts are run when you log in. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns wrote:
Sascha 'saigkill' Manns wrote:
i woul'd like to make "ln-s /path/file" to every Users/home. Has anyone an Idea? What is possible usecase for this? The Backround: I've created the new BOINC Package (Version 6.4.5). Through execution init.d/boinc the daemon created the Folder /var/lib/boinc with the *.xml Files. The daemon runs fine. The GUI too. But the GUI cannot connect to
On Mittwoch 11 Februar 2009 17:39:45 Pavol Rusnak wrote: the daemon. Now i must test, if the file gui_rpc_auth.cfg is present in the /home/$USER. If not it must be linked from /var/lib/boinc to the User folder. Solution 1.) I add this in the init.d Package and let automatic link. Solution 2.) I let make this on userside. Problem: Without this ln -s the GUI cannot connect to daemon. Goal: My goal is to release an user friendly Packet. And all is automated...
I'm afraid it's wrong to check and/or edit users homes one by one while the package is installed: * Some users might be added after that * Sometimes users are not a local ones and you can't even access their home directories (NFS, ...) The only correct way is to check and modify the users home on users side (when starting an application or so). Bye Lukas
* Sascha 'saigkill' Manns (samannsml@directbox.com) [20090211 17:57]:
the daemon. Now i must test, if the file gui_rpc_auth.cfg is present in the /home/$USER. If not it must be linked from /var/lib/boinc to the User folder.
Put a file in /etc/profile.d both for csh and sh (bash) that checks for that file and otherwise does the symlink. See the various scripts in /etc/profile.d for examples. These scripts are run when you log in. I think this idea sounds good. But this is my first time using
Hi Thomas, On Mittwoch 11 Februar 2009 18:07:52 Philipp Thomas wrote: profile.d. Should i create an new File called "boinc.sh" or must i fix the present sh.utf8 file? If i know it right, i must create an new file. But what should i wrtie into it? "ln -s /var/lib/boinc/gui_rpc_auth.cfg ."? -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, 11 Feb 2009 20:05:14 +0100, you wrote:
I think this idea sounds good. But this is my first time using profile.d. Should i create an new File called "boinc.sh" or must i fix the present sh.utf8 file?
Create a new file named boinc.sh.
If i know it right, i must create an new file. But what should i wrtie into it?
Something like ---------------------------->8 cut 8<----------------------------------- #!/bin/sh if ! test -f ~/gui_rpc_auth.cfg then ln -s /var/lib/boinc/gui_rpc_auth.cfg . fi ---------------------------->8 cut 8<----------------------------------- In your %install section something like: install -m755 %{S:1} %{buildroot}/etc/profile.d And in your %files section: /etc/profile.d/%{name}.sh Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* Sascha 'saigkill' Manns (samannsml@directbox.com) [20090211 20:06]:
I think this idea sounds good. But this is my first time using profile.d. Should i create an new File called "boinc.sh" or must i fix the present sh.utf8 file?
Which package? Which file? If you give me the names, I can look at the sources myself. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns escribió:
Hello Mates,
i woul'd like to make "ln-s /path/file" to every Users/home. Has anyone an Idea?
No !.. that's nonsense, it is responsability of the application to do this the right way. not of the rpm package. -- "The 'sanctity of life' is kind of a selective thing..we get to choose which forms of life we feel are sacred, and we get to kill the rest, pretty neat deal huh ?" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Am Dienstag, 17. Februar 2009 06:17:02 schrieb Cristian Rodríguez:
Sascha 'saigkill' Manns escribió:
Hello Mates,
i woul'd like to make "ln-s /path/file" to every Users/home. Has anyone an Idea?
No !.. that's nonsense, it is responsability of the application to do this the right way. not of the rpm package.
And it would not really work with NFS/NIS homes. It could even get considered as an attack, if a single workstation tries this on the server. Never ever change something directly in home directories. Desktops like KDE have own mechanisms to adapt settings on login time, if needed. But a link would be just bloat IMHO. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (8)
-
Adrian Schröter
-
Cristian Rodríguez
-
Lukas Ocilka
-
Pavol Rusnak
-
Philipp Thomas
-
Philipp Thomas
-
Sascha 'saigkill' Manns
-
Takashi Iwai