|
Re: [linux_schools] Re: Hello
>
> Simons,
> I am even impressed by the way you are working towards making Linux as a
preferred choice with lots of applications installed than windows.
> The scripts that you are ready to share will really be helpful for the
guys who would want to implement the LTSP.
>
> And lastly as I prefer to hear people use Linux not by mere OpenSource
philosophy, but by its power. That was the reason I started using it in '98-'99
and been working to advocate its usage.
>
> Thanks
> Pradeep
>
Here's the makeuser.sh file first. I have it in /home/makeuser.sh With LTSP,
it's best to have autologin users as ws001 to wsnnn I use ws000 as my 'source'
user, where I can log in and set up options like Mozilla settings, Openoffice
settings, etc. I don't let anyone log in as ws000
#!/bin/sh
# Note - don't use with an existing username!
if [ "$1" == "" ] ; then
exit
fi
if [ "$1" == "ws000" ] ; then
exit
fi
# Create the new user
adduser $1
# Add them to the users group
usermod -G users,games $1
# Create their home folder
mkdir /home/$1
# Copy the 'ws000' user's folder to the new username
rsync -aux /home/ws000/ /home/$1/
# Change all the permissions in that folder to the new user
chown -R $1:users /home/$1
# Remove the OLD kde stuff - sockets, etc
rm /home/$1/.kde/*-Old
# remove the current .kde sockets
rm /home/$1/.kde/tmp-tux
rm /home/$1/.kde/socket-tux
# Get admin to change the password
passwd $1
# remove the OpenOffice stuff
rm /home/$1/.sversionrc
# remove the mozilla/netscape stuff
rm -rf /home/$1/.mozilla
rm -rf /home/$1/.phoenix
rm -rf /home/$1/.netscape
rm -rf /home/$1/.netscape6
echo "Now you have to log in as this user and run Firebird once."
echo "Then run 'sh update.sh'"
|