Sorry to be a pain, what does a sed command do?
On Monday 11 August 2003 9:26 am, Samuel Deakin wrote:
Open Office have given me the soloution the only problem is I need help with the script
You have to copy and edit the file /home/samdea/.sversionrc as well. this is the .severionrc file
[Versions] OpenOffice.org 1.1=file:///home/samdea/OpenOffice.org1.1
** How do I edit the .sversionrc on a big scale e.g I need to put each user names into the "samdea" bit and then copy the file into each home directory plus need to copy the open office directory into each user area**
Sorry if this is off-base as I've just jumped in mid-thread, but couldn't you do something like (not tested):
#!/bin/bash
cd /home for F in *; do if [ -d $F ]; then sed "s/samdea/$F/" $F/.sversionrc fi done
or simply include the sed command inside one of your existing scripts.
Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home
--- Samuel Deakin
wrote: directory? Would the installed version work?
If you did that, then you'd have it installed locally in $HOME, which goes against the LSB, and is bad practice and a security risk!
If your scared about running my script, try my second solution. Essentially install OO in /usr/local/bin and just copy the configs across to each user.
-- Thomas Adam
--- Samuel Deakin
I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is
wrote: there a file somewhere that I need to copy over from samdea to
test2 which will make OpenOffice think its already been installed
OK, there's two things here. Either you can do:
for i in $(ls -1 /home/* | grep -v test3 samdea anix); do cp -r
/some/working/config /home/$i/.some_location && chown -R $i.groupname; done
Or....
you could have a central configuration say in /opt which is set to:
chmod o+rwx
which is then a symlink in each user's $HOME.
Does that answer your question?
-- Thomas Adam
===== Thomas Adam
"The Linux Weekend Mechanic" -- www.linuxgazette.com
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE
Yahoo! Messenger http://uk.messenger.yahoo.com/
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com
For additional commands, e-mail: suse-linux-uk-schools-help@suse.com
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com For additional commands, e-mail: suse-linux-uk-schools-help@suse.com
===== Thomas Adam
"The Linux Weekend Mechanic" -- www.linuxgazette.com
________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com For additional commands, e-mail: suse-linux-uk-schools-help@suse.com
-- Gary Stainburn
This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com For additional commands, e-mail: suse-linux-uk-schools-help@suse.com