Re: [ubuntu-uk] OT: Firefox Officeanados

2009-01-30 Thread mac
Stuart wrote:

> ...the Foxmarks add-on for Firefox lets you synchronize your
> bookmarks... They are all stored on a central server.

The privacy issues with this are mentioned in the thread.  Here's Eben 
Moglen on this general area:
http://uk.youtube.com/watch?v=cLQiTzs8PQ4

Mac


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] OT: Firefox Officeanados

2009-01-30 Thread Stuart
mac wrote:
> Ian Pascoe wrote:
>   
>> Gents
>>
>> Slightly off topic.
>>
>> On my PC I use Firefox  when both in Ubuntu and Windows.  Is it possible to
>> utilise a FAT partition to act as a common storage place for bookmarks
>> between the two variants of FF?  And really pushing the boat out,also the
>> browsing history which I know is managed by SQLite, but perhaps SQLite could
>> be fooled in using this partition too?
>>
>> Know this is not truely a Ubuntu question, but wondered if anyone had the in
>> depth knowledge to answer.
>>
>> Ian
>> 
>
> I tried very hard to get this to work, and failed.  I think it's to do 
> with the fact that some elements of the GNU/Linux version of FF3 require 
> the right ownerships and permissions, and FAT32 does not preserve them.
>
> The only way I've been able to share an FF3 profile among Ubuntu 
> desktops and laptops on my home LAN is by transferring them on a USB 
> stick or drive, formatted to ext2/ext3.
>
> This thread has some discussion (starts with this post):
> https://lists.ubuntu.com/archives/ubuntu-uk/2008-September/014790.html
>
> HTH
>
> Mac
>
>   
Although it's more basic and doesn't cover profiles, the Foxmarks add-on 
for Firefox lets you synchronize your bookmarks and passwords across 
different Windows and Linux systems. They are all stored on a central 
server.

Stuart

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] OT: Firefox Officeanados

2009-01-30 Thread mac
Ian Pascoe wrote:
> Gents
> 
> Slightly off topic.
> 
> On my PC I use Firefox  when both in Ubuntu and Windows.  Is it possible to
> utilise a FAT partition to act as a common storage place for bookmarks
> between the two variants of FF?  And really pushing the boat out,also the
> browsing history which I know is managed by SQLite, but perhaps SQLite could
> be fooled in using this partition too?
> 
> Know this is not truely a Ubuntu question, but wondered if anyone had the in
> depth knowledge to answer.
> 
> Ian

I tried very hard to get this to work, and failed.  I think it's to do 
with the fact that some elements of the GNU/Linux version of FF3 require 
the right ownerships and permissions, and FAT32 does not preserve them.

The only way I've been able to share an FF3 profile among Ubuntu 
desktops and laptops on my home LAN is by transferring them on a USB 
stick or drive, formatted to ext2/ext3.

This thread has some discussion (starts with this post):
https://lists.ubuntu.com/archives/ubuntu-uk/2008-September/014790.html

HTH

Mac

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Nvidia driver problems

2009-01-30 Thread Dianne Reuby
On Fri, 2009-01-30 at 21:52 +, Dianne Reuby wrote:
> I've got an Nvidia GeForce4 MMX440, which worked OK until 8.10, when
> special effects stopped. I tried the new driver but had problems, so
> I've managed without special effects. I was using 96.45.07 - I saw
> that .09 was supposed to be OK, and it's in the "normal" repositories
> (ie not beta, or development etc.) so I tried it.
> 
> However it only allowed up to 800x600 resolution, ugh! So I removed it,
> now I'm using generic - which looks like Win98, double-ugh.

OK, ignore me - I've reinstalled .09. rebooted and it's OK. Apart from
my username/logoff button being missing. But who'd want to log off
anyway?

Dianne



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] Nvidia driver problems

2009-01-30 Thread Dianne Reuby
I've got an Nvidia GeForce4 MMX440, which worked OK until 8.10, when
special effects stopped. I tried the new driver but had problems, so
I've managed without special effects. I was using 96.45.07 - I saw
that .09 was supposed to be OK, and it's in the "normal" repositories
(ie not beta, or development etc.) so I tried it.

However it only allowed up to 800x600 resolution, ugh! So I removed it,
now I'm using generic - which looks like Win98, double-ugh.

I've been reading up all the info, but it's a bit beyond my experience.
If I reinstall .09, can I use nvidia-xconfig to get higher resolution? I
don't want to break it more than I have. Or can I get 96.45.07 back and
manage without special effects?

I need to start saving for a more modern graphics card. :)

TIA

Dianne



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Using an Nvidia MX440

2009-01-30 Thread piskie

xorg attached I hope - if not I'll post it

it's the one I was using when I had the card - pretty sure that when I 
had the card I was caught up in all that Michael alludes to - I know I 
had to use proposed at the time to get it.


I looked at my nvidia thread - I think that in the end I did a clean 
install and it worked for me,


this was the issue I had with it to start with - but that was when the 
driver was beta still


http://www.nvnews.net/vbulletin/showpost.php?p=1827368&postcount=1

Kev

Steve Baugh wrote:

Michael, Kev,

Thanks for your comments and pointing me to the bug report.

I am using Intrepid 32 bit. The bug report mentions a number of
xorg.conf tweaks so that could be it. I would be interested to see your
xorg.conf, Kev. The following comes up a lot:

Option "AddARGBGLXVisuals" "True"

There was a warning about a missing section in xorg.conf when I
activated the driver so that may be it.

Thanks again (I do miss compiz!),

Steve

On Fri, 2009-01-30 at 18:40 +, Michael Wood wrote:

Yes I have,

What version of Ubuntu are you running on the second PC ?

There were problems with Intrepid because of the new Xorg server and
nvidia not having released a driver that was compatiable with it,
though this is mostly resolved now:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-96/+bug/251107



2009/1/30 Steve Baugh 
I have two Ubuntu systems, this one using an Nvidia 8400 quite
successfully and anther one which is only used for my Amateur
Radio
activities.

The second PC has an Nvidia MX440 in an AGP slot. The 2D nv

driver works
OK but I would like to be able to run programs using OpenGL.
To this end
I downloaded the version 96 driver from the repository and
activated it.
I then found that the programs I run under Wine had their menu
text
scrambled and when I enabled desktop effects pop-up windows
and
Screenlets were blank. I have now deactivated it.

Has anybody managed to get 3D working with this card?

Steve, Bracknell




--

ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/




Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName  "COMPAQ S710"
HorizSync   30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName  "TV-0"
HorizSync   28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor"Monitor0"
DefaultDepth24
Option "metamodes" "CRT: 1280x1024 +0+0; CRT: 1024x768 +0+0; 
CRT: 800x600 +0+0; CRT: 640x480 +0+0" 
SubSection "Display"
Depth   24
Modes  "1600x1200" "1280x1024" "1024x768" "800x600" 
"640x480"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor"Monitor1"
DefaultDepth24
Option "metamodes" "TV: nvidia-auto-select +0+0"
SubSection "Display"
Depth   24
Modes  "1600x1200" "1280x1024" "1024x768" "800x600" 
"640x480"
EndSubSection
EndSection

Section "Module"
Load   "dbe"
Load   "extmod"
Load   "type1"
Load   "freetype"
Load"dri"
Load"GLcore"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "ServerLayout"
Identifier "Layout0"
Screen  0  "Screen0" Below "Screen1"
Screen  1  "Screen1" 0 0
InputDevice"Keyboard0" "CoreKeyboard"
InputDevice"Mouse0" "CorePointer"
EndSection

Section "Device"
Identifier "Videocard0"
VendorName "NVIDIA Corporation"
BoardName  "GeForce4 MX 440 with AGP8X"
BusID  "PCI:1:0:0"
Screen  0
Driver  "nv"
EndSection

Section "Device"
Identifier "Videocard1"
VendorName "NVIDIA Corporation"
BoardName  "GeForce4 MX 440 with AGP8X"
BusID  "PCI:1:0:0"
Screen  1
Driver  "nv"
EndSection

Section "ServerFlags"
Option "Xinerama" 

Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Neil Greenwood
2009/1/30 Andrew Oakley :
>[snip]
> Public domain, do as you like.
>

Slight bash optimisation included below...

> [snip]
>
> username=$1
>
> if [[ "$username" == "" ]]
>
> then
>
>  username=$defaultusername
>
> fi
>

username=${1:-${defaultusername}}


This single line replaces both the assignment and the 'if..fi' block.
The unfortunate bit about this replacement is that no one understands
it without reading the bash man page! :-)


Cofion/Regards,
Neil.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Using an Nvidia MX440

2009-01-30 Thread Steve Baugh
Michael, Kev,

Thanks for your comments and pointing me to the bug report.

I am using Intrepid 32 bit. The bug report mentions a number of
xorg.conf tweaks so that could be it. I would be interested to see your
xorg.conf, Kev. The following comes up a lot:

Option "AddARGBGLXVisuals" "True"

There was a warning about a missing section in xorg.conf when I
activated the driver so that may be it.

Thanks again (I do miss compiz!),

Steve

On Fri, 2009-01-30 at 18:40 +, Michael Wood wrote:
> Yes I have,
> 
> What version of Ubuntu are you running on the second PC ?
> 
> There were problems with Intrepid because of the new Xorg server and
> nvidia not having released a driver that was compatiable with it,
> though this is mostly resolved now:
> https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-96/+bug/251107
> 
> 
> 
> 2009/1/30 Steve Baugh 
> I have two Ubuntu systems, this one using an Nvidia 8400 quite
> successfully and anther one which is only used for my Amateur
> Radio
> activities.
> 
> The second PC has an Nvidia MX440 in an AGP slot. The 2D nv
> driver works
> OK but I would like to be able to run programs using OpenGL.
> To this end
> I downloaded the version 96 driver from the repository and
> activated it.
> I then found that the programs I run under Wine had their menu
> text
> scrambled and when I enabled desktop effects pop-up windows
> and
> Screenlets were blank. I have now deactivated it.
> 
> Has anybody managed to get 3D working with this card?
> 
> Steve, Bracknell
> 
> 
> 
> 
> --
> ubuntu-uk@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.ubuntu.com/UKTeam/
> 


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Rob Beard
On 30/01/2009 20:40, Ian Pascoe wrote:
> Hi Rob
>
> I presume this is for your LTSP server?
>
> Have a trawl through the LTSP  mailing list over on
> SourceForge - I seem to remember that someone had a similar problem on a
> Ubuntu installation just before Xmas and a work around was provided.
>
> Ian
>
Yep, unfortunately they want normal users who keep their settings and 
some guest accounts.  I'll have a look at that too.  Thanks for the 
pointers.

Assuming all goes well tomorrow getting the server in I'll send out an 
e-mail inviting anyone who wants to come along to the big official 
opening :-)

Rob

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] OT: Firefox Officeanados

2009-01-30 Thread Rob Beard
On 30/01/2009 20:32, Ian Pascoe wrote:
> Gents
>
> Slightly off topic.
>
> On my PC I use Firefox  when both in Ubuntu and Windows.  Is it possible to
> utilise a FAT partition to act as a common storage place for bookmarks
> between the two variants of FF?  And really pushing the boat out,also the
> browsing history which I know is managed by SQLite, but perhaps SQLite could
> be fooled in using this partition too?
>
> Know this is not truely a Ubuntu question, but wondered if anyone had the in
> depth knowledge to answer.
>
> Ian
>
Not tried it myself but I would presume that at least on Linux you could 
create a symbolic link in the Firefox settings directory (sorry can't 
remember what it is at the moment) to the bookmarks.html file on 
Windows, but then you may have to tweak the registry possibly to tell 
Firefox to find the profile in another location (I did have a quick look 
in the Registry on my machine but I can't an obvious setting).

Rob


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Ian Pascoe
Hi Rob

I presume this is for your LTSP server?

Have a trawl through the LTSP  mailing list over on
SourceForge - I seem to remember that someone had a similar problem on a
Ubuntu installation just before Xmas and a work around was provided.

Ian

-Original Message-
From: ubuntu-uk-boun...@lists.ubuntu.com
[mailto:ubuntu-uk-boun...@lists.ubuntu.com]on Behalf Of Rob Beard
Sent: 30 January 2009 17:16
To: British Ubuntu Talk
Subject: Re: [ubuntu-uk] Clearing home directory at logout


On 30/01/2009 16:51, Andrew Oakley wrote:
> Rob Beard wrote:
>
>> I was wondering if anyone knew how to clear out the home directory on
>> Ubuntu when a user logs out?
>>
>
> See below. Public domain, do as you like.
>
> By default the script will assume the username "visitor". You can pass a
> different username as a parameter if you wish.
>
> I use this to create a customised Gnome guest account, for when I lend
> my laptop to someone. I don't like Ubuntu 8.10's built-in guest account,
> since it presents the user with an entirely vanilla uncustomised
> environment. I prefer to customise the environment to make it more
> friendly to first-time users; for example, I have it load the Firefox
> browser straight away, since that's what 99% of visitors want to use.
>
> Andrew Oakley
> Head of Software Development
> Higher Education Statistics Agency (HESA)
> 95 Promenade, Cheltenham, Gloucestershire GL50 1HZ
>
>  begin loadguest 
>
> #!/bin/bash
>
> # Loadguest by Andrew Oakley www.aoakley.com public domain 2009-01-30
> #
> # Resets the home directory back to a predetermined default
> # Requires saveguest to be run first
> # Ideal for a guest account
> # Default username is visitor instead of guest , since guest is used
> # for the built-in guest account from Ubuntu 8.10
> #
> # Save this as /usr/local/bin/loadguest , chmod 755
> # Add the following to /etc/gdm/PostLogin/Default:
>
> # if [[ "$LOGNAME" == "visitor" ]]
>
> # then
>
> #   /usr/local/bin/loadguest
>
> # fi
>
> defaultusername=visitor
> username=$1
>
> if [[ "$username" == "" ]]
>
> then
>
>username=$defaultusername
>
> fi
>
> if [[ -f /home/$username.tar.gz ]]
>
> then
>
>cd /home
>
>rm -rf $username/*
>
>tar xvfz /home/$username.tar.gz
>
> else
>
>echo "/home/$username.tar.gz does not exist or is not a regular file"
>
> fi
>
>  end loadguest 
>  start saveguest 
>
> #!/bin/bash
>
> # Saveguest by Andrew Oakley www.aoakley.com public domain 2009-01-30
> # Saves a Gnome login session and indeed an entire home directory
> # MUST BE RUN AS ROOT eg. sudo saveguest
> # Requires loadguest
> #
> # Save this as /usr/local/sbin/saveguest , chmod 755
> # Then log in as the user you wish to set up, THEN LOG OUT
> # Then run this as root eg. sudo saveguest
> defaultusername=visitor
> username=$1
>
> if [[ "$username" == "" ]]
>
> then
>
>username=$defaultusername
> fi
>
> if [[ -d /home/$username ]]
>
> then
>
>cd /home
>
>mv -f $username.tar.gz $username-old.tar.gz
>
>tar cvfz $username.tar.gz $username --exclude="*/.thumbnails/*"
> --exclude="*ca
> che*"
>
> else
>
>echo "/home/$username does not exist or is not a directory"
>
>echo "Usage: saveguest [username]"
>
>echo "Assumes username 'visitor' if no username supplied"
>
> fi
>
>  end saveguest 
>
>
Ahh thanks Andrew, it looks like this will do exactly what I want, not
sure if it work with the PostSession, I couldn't seem to get anything in
PostSession to work but it should at least work with GDM Watchdog.  I'll
post back if I can get it working.

Rob


--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] OT: Firefox Officeanados

2009-01-30 Thread Ian Pascoe
Gents

Slightly off topic.

On my PC I use Firefox  when both in Ubuntu and Windows.  Is it possible to
utilise a FAT partition to act as a common storage place for bookmarks
between the two variants of FF?  And really pushing the boat out,also the
browsing history which I know is managed by SQLite, but perhaps SQLite could
be fooled in using this partition too?

Know this is not truely a Ubuntu question, but wondered if anyone had the in
depth knowledge to answer.

Ian



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Using an Nvidia MX440

2009-01-30 Thread piskie
Yes I did - up to Intrepid, though it took some fiddling then - I can't 
remember quite what I needed to do, nor did I ever try it wine.

Originally I did have some odd font problems but they seemed to be 
caused by an oddity in my /home.

I do have copy of my old xorg if that's of any use

Kev

Steve Baugh wrote:
> I have two Ubuntu systems, this one using an Nvidia 8400 quite
> successfully and anther one which is only used for my Amateur Radio
> activities.
> 
> The second PC has an Nvidia MX440 in an AGP slot. The 2D nv driver works
> OK but I would like to be able to run programs using OpenGL. To this end
> I downloaded the version 96 driver from the repository and activated it.
> I then found that the programs I run under Wine had their menu text
> scrambled and when I enabled desktop effects pop-up windows and
> Screenlets were blank. I have now deactivated it.
> 
> Has anybody managed to get 3D working with this card?
> 
> Steve, Bracknell
> 
> 
> 
> 

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Using an Nvidia MX440

2009-01-30 Thread Michael Wood
Yes I have,

What version of Ubuntu are you running on the second PC ?

There were problems with Intrepid because of the new Xorg server and nvidia
not having released a driver that was compatiable with it, though this is
mostly resolved now:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-96/+bug/251107



2009/1/30 Steve Baugh 

> I have two Ubuntu systems, this one using an Nvidia 8400 quite
> successfully and anther one which is only used for my Amateur Radio
> activities.
>
> The second PC has an Nvidia MX440 in an AGP slot. The 2D nv driver works
> OK but I would like to be able to run programs using OpenGL. To this end
> I downloaded the version 96 driver from the repository and activated it.
> I then found that the programs I run under Wine had their menu text
> scrambled and when I enabled desktop effects pop-up windows and
> Screenlets were blank. I have now deactivated it.
>
> Has anybody managed to get 3D working with this card?
>
> Steve, Bracknell
>
>
>
>
> --
> ubuntu-uk@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.ubuntu.com/UKTeam/
>
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] Using an Nvidia MX440

2009-01-30 Thread Steve Baugh
I have two Ubuntu systems, this one using an Nvidia 8400 quite
successfully and anther one which is only used for my Amateur Radio
activities.

The second PC has an Nvidia MX440 in an AGP slot. The 2D nv driver works
OK but I would like to be able to run programs using OpenGL. To this end
I downloaded the version 96 driver from the repository and activated it.
I then found that the programs I run under Wine had their menu text
scrambled and when I enabled desktop effects pop-up windows and
Screenlets were blank. I have now deactivated it.

Has anybody managed to get 3D working with this card?

Steve, Bracknell




-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Rob Beard
On 30/01/2009 16:51, Andrew Oakley wrote:
> Rob Beard wrote:
>
>> I was wondering if anyone knew how to clear out the home directory on
>> Ubuntu when a user logs out?
>>  
>
> See below. Public domain, do as you like.
>
> By default the script will assume the username "visitor". You can pass a
> different username as a parameter if you wish.
>
> I use this to create a customised Gnome guest account, for when I lend
> my laptop to someone. I don't like Ubuntu 8.10's built-in guest account,
> since it presents the user with an entirely vanilla uncustomised
> environment. I prefer to customise the environment to make it more
> friendly to first-time users; for example, I have it load the Firefox
> browser straight away, since that's what 99% of visitors want to use.
>
> Andrew Oakley
> Head of Software Development
> Higher Education Statistics Agency (HESA)
> 95 Promenade, Cheltenham, Gloucestershire GL50 1HZ
>
>  begin loadguest 
>
> #!/bin/bash
>
> # Loadguest by Andrew Oakley www.aoakley.com public domain 2009-01-30
> #
> # Resets the home directory back to a predetermined default
> # Requires saveguest to be run first
> # Ideal for a guest account
> # Default username is visitor instead of guest , since guest is used
> # for the built-in guest account from Ubuntu 8.10
> #
> # Save this as /usr/local/bin/loadguest , chmod 755
> # Add the following to /etc/gdm/PostLogin/Default:
>
> # if [[ "$LOGNAME" == "visitor" ]]
>
> # then
>
> #   /usr/local/bin/loadguest
>
> # fi
>
> defaultusername=visitor
> username=$1
>
> if [[ "$username" == "" ]]
>
> then
>
>username=$defaultusername
>
> fi
>
> if [[ -f /home/$username.tar.gz ]]
>
> then
>
>cd /home
>
>rm -rf $username/*
>
>tar xvfz /home/$username.tar.gz
>
> else
>
>echo "/home/$username.tar.gz does not exist or is not a regular file"
>
> fi
>
>  end loadguest 
>  start saveguest 
>
> #!/bin/bash
>
> # Saveguest by Andrew Oakley www.aoakley.com public domain 2009-01-30
> # Saves a Gnome login session and indeed an entire home directory
> # MUST BE RUN AS ROOT eg. sudo saveguest
> # Requires loadguest
> #
> # Save this as /usr/local/sbin/saveguest , chmod 755
> # Then log in as the user you wish to set up, THEN LOG OUT
> # Then run this as root eg. sudo saveguest
> defaultusername=visitor
> username=$1
>
> if [[ "$username" == "" ]]
>
> then
>
>username=$defaultusername
> fi
>
> if [[ -d /home/$username ]]
>
> then
>
>cd /home
>
>mv -f $username.tar.gz $username-old.tar.gz
>
>tar cvfz $username.tar.gz $username --exclude="*/.thumbnails/*"
> --exclude="*ca
> che*"
>
> else
>
>echo "/home/$username does not exist or is not a directory"
>
>echo "Usage: saveguest [username]"
>
>echo "Assumes username 'visitor' if no username supplied"
>
> fi
>
>  end saveguest 
>
>
Ahh thanks Andrew, it looks like this will do exactly what I want, not 
sure if it work with the PostSession, I couldn't seem to get anything in 
PostSession to work but it should at least work with GDM Watchdog.  I'll 
post back if I can get it working.

Rob


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Rob Beard
On 30/01/2009 15:11, Paul Sutton wrote:
>
> Rob, come to think of it, I am sure tom brough has sorted this out with
> his LTSP network, as i think he auto created accounts then the data gets
> deleted when the session is over.
>
> Paul
>
>
As far as I was aware it kept the data so users could access it over the 
internet.  I'll ask him later on anyway.

Rob


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Andrew Oakley
Rob Beard wrote:
> I was wondering if anyone knew how to clear out the home directory on 
> Ubuntu when a user logs out?

See below. Public domain, do as you like.

By default the script will assume the username "visitor". You can pass a
different username as a parameter if you wish.

I use this to create a customised Gnome guest account, for when I lend
my laptop to someone. I don't like Ubuntu 8.10's built-in guest account,
since it presents the user with an entirely vanilla uncustomised
environment. I prefer to customise the environment to make it more
friendly to first-time users; for example, I have it load the Firefox
browser straight away, since that's what 99% of visitors want to use.

Andrew Oakley
Head of Software Development
Higher Education Statistics Agency (HESA)
95 Promenade, Cheltenham, Gloucestershire GL50 1HZ

 begin loadguest 

#!/bin/bash

# Loadguest by Andrew Oakley www.aoakley.com public domain 2009-01-30
#
# Resets the home directory back to a predetermined default
# Requires saveguest to be run first
# Ideal for a guest account
# Default username is visitor instead of guest , since guest is used
# for the built-in guest account from Ubuntu 8.10
#
# Save this as /usr/local/bin/loadguest , chmod 755
# Add the following to /etc/gdm/PostLogin/Default:

# if [[ "$LOGNAME" == "visitor" ]]

# then

#   /usr/local/bin/loadguest

# fi

defaultusername=visitor
username=$1

if [[ "$username" == "" ]]

then

  username=$defaultusername

fi

if [[ -f /home/$username.tar.gz ]]

then

  cd /home

  rm -rf $username/*

  tar xvfz /home/$username.tar.gz

else

  echo "/home/$username.tar.gz does not exist or is not a regular file"

fi 

 end loadguest 
 start saveguest 

#!/bin/bash

# Saveguest by Andrew Oakley www.aoakley.com public domain 2009-01-30
# Saves a Gnome login session and indeed an entire home directory
# MUST BE RUN AS ROOT eg. sudo saveguest
# Requires loadguest
#
# Save this as /usr/local/sbin/saveguest , chmod 755
# Then log in as the user you wish to set up, THEN LOG OUT
# Then run this as root eg. sudo saveguest
defaultusername=visitor
username=$1

if [[ "$username" == "" ]]

then

  username=$defaultusername
fi

if [[ -d /home/$username ]]

then

  cd /home

  mv -f $username.tar.gz $username-old.tar.gz

  tar cvfz $username.tar.gz $username --exclude="*/.thumbnails/*"
--exclude="*ca
che*"

else

  echo "/home/$username does not exist or is not a directory"

  echo "Usage: saveguest [username]"

  echo "Assumes username 'visitor' if no username supplied"

fi  

 end saveguest 

_

Higher Education Statistics Agency Ltd (HESA) is a company limited by
guarantee, registered in England at 95 Promenade Cheltenham GL50 1HZ.
Registered No. 2766993. The members are Universities UK and GuildHE.
Registered Charity No. 1039709. Certified to ISO 9001 and ISO 27001. 
 
HESA Services Ltd (HSL) is a wholly owned subsidiary of HESA,
registered in England at the same address. Registered No. 3109219.
_

This outgoing email was virus scanned for HESA by MessageLabs.
_

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Paul Sutton
Rob Beard wrote:
> On 30/01/2009 12:44, Lucy wrote:
>> 2009/1/29 Rob Beard:
>>
>>> Actually having a bit of a play I think I might have found a
>>> workaround.  I ended up installing the GDM Watchdog which checks for
>>> when a user logs out (or alternatively turns off the client).  It then
>>> closes all the users processes so in there I've put in a test command
>>> which works and runs as the logged in user.  Hopefully I can put
>>> together a simple script to empty the home directory and unpack a tar
>>> archive back into the directory.  Not ideal but as I'm on a tight
>>> schedule (server is being installed on Saturday and goes live on the 7th
>>> Feb) it looks like it'll have to do.  I'll just have to try and find a
>>> more elegant solution afterwards.
>>>  
>> Rob, debian's LTSP package uses LDM rather than GDM to control logins.
>> I don't know if Ubuntu is the same? Have you tested the script on the
>> LTSP machines yet?
>>
>>
> Yep with the GDM Watchdog it does seem to work.  I'm not sure what 
> Ubuntu uses, I know it's LTSP 5 but I haven't really looked into it that 
> far, last time I did anything serious with LTSP was on Debian Sarge with 
> LTSP 4.2.
>> For LDM, the LTSP howto describes different scripts that can be
>> executed on startup, login and logout. It also has a section on
>> customising the screensaver, which might be useful (on debian it locks
>> the screen after a few minutes, which isn't always helpful).
>> You might want to have a read if it turns out you are using LDM:
>> http://www.ltsp.org/~sbalneav/LTSPManual.html#id2537250
>>
> Thanks I'll take a look.
> 
> Rob
> 
> 
Rob, come to think of it, I am sure tom brough has sorted this out with
his LTSP network, as i think he auto created accounts then the data gets
deleted when the session is over.

Paul

-- 
Paul Sutton
www.zleap.net
Support Open and ISO standard file formats ISO 26300 odf
http://www.odfalliance.org
Next Linux User Group meet : Feb 7th : 3pm,  Shoreline Cafe Paignton

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Locking down Firefox settings

2009-01-30 Thread Rob Beard
On 30/01/2009 13:48, Alistair Crust wrote:
> On Thu, 2009-01-29 at 17:44 +, Rob Beard wrote:
>
>> Hi folks,
>>
>> I was wondering if anyone knew how to lock down the settings on Firefox
>> on Ubuntu 8.04?
>>
>> Basically I'm nearly done setting up an LTSP Server and I want to make
>> sure that no one who logs on can fiddle with the settings.  I've got
>> Tinyproxy and Dansguardian installed and working but only if I manually
>> specify the proxy settings.  I found something about entering some
>> settings in /usr/lib/firefox/firefox.cfg which I have entered (details
>> here: http://m.linuxjournal.com/article/9044) but I'm finding I can
>> enable and disable the Firefox proxy settings and alter the rest of the
>> settings as I please.
>>
>> I did try Firehol to force the proxy transparently but it stopped the
>> LTSP clients from booting unless I enabled a whole lot of ports on the
>> Firehol configuration (I got so far but got stuck on the nbd ports).
>>
>> Just wondering if anyone knows how to do this?
>>
>> Ta,
>>
>> Rob
>>
>>
>>  
> Hi Rob,
>
> I recall seeing a posting within the last 2/3 months on either the
> ltsp-discuss mailing list or the edubuntu-users list that give you
> instructions on how to lock firefox down.
>
> If I remember correctly you can do it by placing the values you want to
> lock in a text file, encoding it using Rot13 and specifying some global
> settings that force Firefox to read that file (It greys out all the
> options for the user, so the user can't change anything or add their own
> settings in their ~./mozilla/firefox/*)
>
> I've used this method successfully in school and at our boarding house,
> I just cant remember the specifics off the top of my head.
>
> If your still stuck next week drop me a line and I'll see if I can dig
> the mails out for you.
>
> Kind regards
> Alistair
>
> Please email first, I may not be in my office and available for calls
>
Thanks Alistair, I'll do a bit more digging.

Ta,

Rob


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Rob Beard
On 30/01/2009 12:44, Lucy wrote:
> 2009/1/29 Rob Beard:
>
>> Actually having a bit of a play I think I might have found a
>> workaround.  I ended up installing the GDM Watchdog which checks for
>> when a user logs out (or alternatively turns off the client).  It then
>> closes all the users processes so in there I've put in a test command
>> which works and runs as the logged in user.  Hopefully I can put
>> together a simple script to empty the home directory and unpack a tar
>> archive back into the directory.  Not ideal but as I'm on a tight
>> schedule (server is being installed on Saturday and goes live on the 7th
>> Feb) it looks like it'll have to do.  I'll just have to try and find a
>> more elegant solution afterwards.
>>  
>
> Rob, debian's LTSP package uses LDM rather than GDM to control logins.
> I don't know if Ubuntu is the same? Have you tested the script on the
> LTSP machines yet?
>
>
Yep with the GDM Watchdog it does seem to work.  I'm not sure what 
Ubuntu uses, I know it's LTSP 5 but I haven't really looked into it that 
far, last time I did anything serious with LTSP was on Debian Sarge with 
LTSP 4.2.
> For LDM, the LTSP howto describes different scripts that can be
> executed on startup, login and logout. It also has a section on
> customising the screensaver, which might be useful (on debian it locks
> the screen after a few minutes, which isn't always helpful).
> You might want to have a read if it turns out you are using LDM:
> http://www.ltsp.org/~sbalneav/LTSPManual.html#id2537250
>
Thanks I'll take a look.

Rob


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Locking down Firefox settings

2009-01-30 Thread Matthew Macdonald-Wallace
Quoting Alistair Crust :

> On Thu, 2009-01-29 at 17:44 +, Rob Beard wrote:
>> Hi folks,
>>
>> I was wondering if anyone knew how to lock down the settings on Firefox
>> on Ubuntu 8.04?
>>
>> Basically I'm nearly done setting up an LTSP Server and I want to make
>> sure that no one who logs on can fiddle with the settings.  I've got
>> Tinyproxy and Dansguardian installed and working but only if I manually
>> specify the proxy settings.  I found something about entering some
>> settings in /usr/lib/firefox/firefox.cfg which I have entered (details
>> here: http://m.linuxjournal.com/article/9044) but I'm finding I can
>> enable and disable the Firefox proxy settings and alter the rest of the
>> settings as I please.

Use shorewall as the on-board firewall and setup a transparent proxy  
using th instructions found at:

1) http://www.shorewall.net/Shorewall_Squid_Usage.html#Transparent
2)  
http://www.mail-archive.com/ltsp-disc...@lists.sourceforge.net/msg12406.html
3) http://osdir.com/ml/linux.terminal-server.general/2003-05/msg00220.html

Hope this helps,

Matt.

-- 
Matthew Macdonald-Wallace
matt...@truthisfreedom.org.uk
http://www.truthisfreedom.org.uk/

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Locking down Firefox settings

2009-01-30 Thread Alistair Crust
On Thu, 2009-01-29 at 17:44 +, Rob Beard wrote:
> Hi folks,
> 
> I was wondering if anyone knew how to lock down the settings on Firefox 
> on Ubuntu 8.04?
> 
> Basically I'm nearly done setting up an LTSP Server and I want to make 
> sure that no one who logs on can fiddle with the settings.  I've got 
> Tinyproxy and Dansguardian installed and working but only if I manually 
> specify the proxy settings.  I found something about entering some 
> settings in /usr/lib/firefox/firefox.cfg which I have entered (details 
> here: http://m.linuxjournal.com/article/9044) but I'm finding I can 
> enable and disable the Firefox proxy settings and alter the rest of the 
> settings as I please.
> 
> I did try Firehol to force the proxy transparently but it stopped the 
> LTSP clients from booting unless I enabled a whole lot of ports on the 
> Firehol configuration (I got so far but got stuck on the nbd ports).
> 
> Just wondering if anyone knows how to do this?
> 
> Ta,
> 
> Rob
> 
> 
Hi Rob, 

I recall seeing a posting within the last 2/3 months on either the
ltsp-discuss mailing list or the edubuntu-users list that give you
instructions on how to lock firefox down.

If I remember correctly you can do it by placing the values you want to
lock in a text file, encoding it using Rot13 and specifying some global
settings that force Firefox to read that file (It greys out all the
options for the user, so the user can't change anything or add their own
settings in their ~./mozilla/firefox/*)

I've used this method successfully in school and at our boarding house,
I just cant remember the specifics off the top of my head.

If your still stuck next week drop me a line and I'll see if I can dig
the mails out for you. 

Kind regards
Alistair

Please email first, I may not be in my office and available for calls
-- 
Alistair Crust 
Systems Administrator
Skegness Grammar School
Vernon Road
Skegness
Lincs
PE252QS
Tel: 0175461


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Lucy
2009/1/29 Rob Beard :
> Actually having a bit of a play I think I might have found a
> workaround.  I ended up installing the GDM Watchdog which checks for
> when a user logs out (or alternatively turns off the client).  It then
> closes all the users processes so in there I've put in a test command
> which works and runs as the logged in user.  Hopefully I can put
> together a simple script to empty the home directory and unpack a tar
> archive back into the directory.  Not ideal but as I'm on a tight
> schedule (server is being installed on Saturday and goes live on the 7th
> Feb) it looks like it'll have to do.  I'll just have to try and find a
> more elegant solution afterwards.

Rob, debian's LTSP package uses LDM rather than GDM to control logins.
I don't know if Ubuntu is the same? Have you tested the script on the
LTSP machines yet?

For LDM, the LTSP howto describes different scripts that can be
executed on startup, login and logout. It also has a section on
customising the screensaver, which might be useful (on debian it locks
the screen after a few minutes, which isn't always helpful).
You might want to have a read if it turns out you are using LDM:
http://www.ltsp.org/~sbalneav/LTSPManual.html#id2537250

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Neil Greenwood
2009/1/30 Rob Beard :
> On 29/01/2009 23:37, Paul Sutton wrote:
>> I thought the guest account did this, or can be set to, so I would
>> assume if it does its a case of either:
>>
>> using the guest account or
>> figuring out how it does it and reproduce for a different account
>>
>> Paul
>>
> Doesn't look like there is a guest account on 8.04.
>

Rob,

Correct. It was added in 8.10. But maybe you could have a quick look
(in a VM maybe?) and replicate the functionality for your 8.04
install?

Cofion,
Neil.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] We Are Linux

2009-01-30 Thread Matthew Macdonald-Wallace
Quoting James Westby :

> On Fri, 2009-01-30 at 00:50 +, David King wrote:
>> There is an interesting post on ZDNet, about making a video for Linux.
>> You may have read about that subject already, but the talkback comments
>> on that site are worth reading. There is one person called Loverock
>> Davidson who is vehemently against Linux, and it would seem that he is
>> totally blind to reality. Well, the replies to his comments are all in
>> favour of Linux and although I do not condone attacking anyone, most of
>> the replies are quite humourous. It is a shame that some Windows users
>> become so narrow-minded that they are then blinded by their hatred for
>> anything different.
>>
>> http://blogs.zdnet.com/community/?p=156
>
> I believe what you have there is a knowledgeable troll, and quite a
> successful one judging by the responses.
>
> There are some blinded, narrow minded Windows users out there, but we
> keep seeing that exactly the same is true of some linux users.
>
> Also, far from being blind to reality, his first post seems to be
> an accurate parody of linux in places. The best parodies are the ones
> that stay closest to the truth.

That is one of the funniest Trolls and flame wars Ive seen in quite  
some time (since I left Debian-User@ last year anyway...) - the guy  
that started it must be a professional troll to be that opinionated  
just to wind people up...

/me places money on it being Tux posting under a pseudonym... :o)

M.
-- 
Matthew Macdonald-Wallace
matt...@truthisfreedom.org.uk
http://www.truthisfreedom.org.uk/

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Clearing home directory at logout

2009-01-30 Thread Rob Beard
On 29/01/2009 23:37, Paul Sutton wrote:
> I thought the guest account did this, or can be set to, so I would
> assume if it does its a case of either:
>
> using the guest account or
> figuring out how it does it and reproduce for a different account
>
> Paul
>
Doesn't look like there is a guest account on 8.04.

Rob


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/