Open Office doesn't work on the student profiles, but it works on mine, so I copied over my working folder of open office "cp /home/samdea/OpenOffice.org1.1 -R /home/test2/OpenOffice1.1/" "chown test2:users /home/test2/OpenOffice.org1.1/ -R" I also copied the shortcut of samdea/Deaktop the test2/Desktop and chown it I then logged in as test2 and tested it and it come up with the installation of Open Office. I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is there a file somewhere that I need to copy over from samdea to test2 which will make OpenOffice think its already been installed Thanks Sam
--- Samuel Deakin
I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is 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/
--- Samuel Deakin
I am fairly new to Linux so could you just break down the srcipt below and explain what each bit means and is doing, Cheers, Sam
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
OK, what the above does is this: 1. It will display (one per line) all the directories in /home 2. Then they are passed through "grep" which as the -v flag is present, filter out the ones you don't need (i.e. test3, etc). 3. This is then stored in $i 4. Then using $i, cp then copies your working OO installation (which you'll have to change as appropriate) to /home/$i (again change the ".some_location". 5. If the cp worked (&& is logical AND) then it will set the perms (chown -R is recursive) as the $i (user) and groupname (probably use "users". I have actually forgotton to add something so, the proper script is: for i in $(ls -1 /home/* | grep -v test3 samdea anix); do cp -r \ /some/working/config /home/$i/.some_location && chown -R $i.users \ /home/$i/.some_location; done The "\" at the end of line, act as a continuator, but you should type the above in all on one-line when you come to run it. The reason why others on this list may wonder why "$i" is going to work, is because typically the /home/$USER actually takes on the groupname verbatim. HTH, -- Thomas Adam
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/
===== Thomas Adam "The Linux Weekend Mechanic" -- www.linuxgazette.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/
Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home directory? Would the installed version work?
--- Samuel Deakin
wrote: I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is 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
--- Samuel Deakin
Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home 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
wrote: I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is 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/
--- Samuel Deakin
wrote: Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home 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!
You could just install as a network client which only copies the file need to run the program from the server.
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
wrote: I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is 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
--- Andrew Nix
Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home 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!
You could just install as a network client which only copies the file need to run the program from the server.
That is as maybe, Andrew, but I am unsure whether or not Samuel requires individual $USER configs or just wants a generic one. -- Thomas Adam
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
wrote: I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is 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
-- 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/
--- Andrew Nix
wrote: > > --- Samuel Deakin wrote: Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home
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!
You could just install as a network client which only copies the file need to run the program from the server.
That is as maybe, Andrew, but I am unsure whether or not Samuel requires individual $USER configs or just wants a generic one.
Say for instace its not important. Would it be possible to ingnore some home directories when using "*"? -- Andrew Nix St Pauls Catholic High School Firbank Road Newall Green Wythenshawe Manchester M23 2YS tel: 0161 4375841 ext 168 fax: 0161 4982030
--- Andrew Nix
Say for instace its not important. Would it be possible to ingnore some home directories when using "*"?
Yes, do: ls /home/* | grep -v Idontwantthis1 will ignore "Idontwantthis1" "grep -v" inverts the match -- 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/
--- Andrew Nix
wrote: > > Say for instace its not important. Would it be possible to ingnore some home directories when using "*"?
Yes, do:
ls /home/* | grep -v Idontwantthis1
will ignore "Idontwantthis1"
"grep -v" inverts the match
You miss understand. I mean when going through the installation process. Which has to be done using graphics. So im guessing command wont work in the "where do you want to install OOo1.1" field during install? -- Andrew Nix St Pauls Catholic High School Firbank Road Newall Green Wythenshawe Manchester M23 2YS tel: 0161 4375841 ext 168 fax: 0161 4982030
--- Andrew Nix
Say for instace its not important. Would it be possible to ingnore some home directories when using "*"?
Yes, do:
ls /home/* | grep -v Idontwantthis1
will ignore "Idontwantthis1"
"grep -v" inverts the match
You miss understand. I mean when going through the installation process. Which has to be done using graphics. So im guessing command wont work in the "where do you want to install OOo1.1" field during install?
Probably not, Andrew in which case either one of my original suggestions would still stand :) This is almost circular :) -- 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/
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**
--- Samuel Deakin
wrote: Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home 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
wrote: I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is 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
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.
--- Samuel Deakin
wrote: Does anybody know if I tried to install Openoffice to "/home/*/OpenOffice1.1/" would it install it in everybodys home 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
wrote:
I want it to just work with no installation. How would I copy it to every user except test3, samdea, anix Is 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
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
--- Gary Stainburn
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
Gary, You need to be careful with the shell globbing technique used above. If there are a lot of users, then it might barf. Since Sam has now ascertained what to do, it is simply a matter og re-writing your shell script :) ------------- #!/bin/sh cd /home for F in * | grep -v samdea; do [ !-e $F/.sversionrc ] && { sed -e "s/samdea/$F/g;" < /some_dir/.sversionrc >$F/.sversionrc } done -------------------------- What this does, is it checks that "$F" doesn't already have the file specified then it'll go ahead, make the substitution and output it to the appropriate new file. To answer your original question, Sam, "sed" is the "Stream EDitor" and allows one to make quick changes to a file by using the concept of "regular expressions". Gary, I have changed your regex slightly, so that the substitiution is done on a global basis to counter for more than one instance. HTH, -- 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/
participants (4)
-
Andrew Nix
-
Gary Stainburn
-
Samuel Deakin
-
Thomas Adam