Thursday, February 12, 2009

inheriting correct group ownership on home linux server

Directory Set Group ID

If the setgid bit on a directory entry is set, files in that directory will have the group ownership as the directory, instead of than the group of the user that created the file.

This attribute is helpful when several users need access to certain files. If the users work in a directory with the setgid attribute set then any files created in the directory by any of the users will have the permission of the group. For example, the administrator can create a group called spcprj and add the users Kathy and Mark to the group spcprj. The directory spcprjdir can be created with the set GID bit set and Kathy and Mark although in different primary groups can work in the directory and have full access to all files in that directory, but still not be able to access files in each other's primary group.

The following command will set the GID bit on a directory:
chmod g+s ictadmin
recursive:
chmod -R g+s ictadmin
The directory listing of the directory "spcprjdir":
drwxrwsr-x 2 kathy spcprj 1674 Sep 17 1999 spcprjdir
The "s'' in place of the execute bit in the group permissions causes all files written to the directory "spcprjdir" to belong to the group "spcprj" .

For the shared directories to work files created must be group as well as owner writeable. The default umask setting, which define the permissions on a users newly created files, need changing from 022 to 002. In  more recent versions of Ubuntu this is set in the UMASK section of /etc/login.defs

Wednesday, February 11, 2009

Changing persmission for unison

When you get unison complaining about wrong group when syncing:

1. To change the group of all files, folders recursive:
eg

cd to folder
sudo chgrp -R circuitadmin *

2. To change the permissions of all files, folders recursive:
eg

cd to folder
sudo chmod -R 770 *

Wednesday, February 04, 2009

mythlounge

  • case: Lian Li C37
  • motherboard: MSI KM3M-V (pt no. ms 7061)
  • graphics: nvidia 6200 256mb ram 64bit, low profile; using dvi-hdmi lead (Zotac: fanless). Don't use restricted v177 (blocky video) use v173
  • network: dlink gigabit; low profile
  • ram: 1gb stick ddr
  • cpu: AMD 2800
  • hdd: 80gb ide

Wednesday, October 15, 2008

egroupware 1.6 prc1

used xampp, added all passowrds.

load up files to: /opt/xampp/htdocs

egw makes it's own egroupware subfolder note

3 pear packages missing:

Warning Checking PEAR::HTTP_WebDAV_Server is installed: False
PEAR::HTTP_WebDAV_Server is needed by: WebDAV. You can install it by running: pear install HTTP_WebDAV_Server
Passed Checking PEAR::Auth_SASL is installed: 1.0.2
Warning Checking PEAR::Net_IMAP is installed: False
PEAR::Net_IMAP is needed by: FeLaMiMail, felamimail. You can install it by running: pear install Net_IMAP
Passed Checking PEAR::Net_Sieve is installed: 1.1.1
Warning Checking PEAR::XML_Feed_Parser is installed: False
PEAR::XML_Feed_Parser is needed by: news_admin. You can install it by running: pear install XML_Feed_Parser

xampps php.ini is in /opt/xampp/etc/php.ini

change 'display_errors' from On to Off:
display_errors = Off
for security reasons 9couls show passwords etc.

Tuesday, October 14, 2008

Imagemagick to rezise batch pictures

Load up imagemagick:

sudo apt-get install imagemagick


Graces large (3.0mb-ish) files go to 800x600 and around 100kb with this command:


convert -resize '800x600' -quality 50 *.JPG websize.jpg


The convert program requires a destination image file name whereas mogriy does not

mogrify replaces instead of duplicates the files

Saturday, August 16, 2008

getting photos on facebook

using imagemagick commands to resixe and compres a folder full of photos:

imagemagick install: used get-apt.

sudo apt-get install imagemagick

see website for commands, but basic ones:
convert -resize 750 *.JPG
convert -quality 80% *.jpg

or together:

convert -resize 750 -quality 80% *.JPG

the JPG is case sensitive; the size sets the width at this and the height proportional to it;

Saturday, June 07, 2008

fedora on samsung r40

slightly fed up with ubuntu hanging on startup of the laptop. too flaky I'm afraid. The removing references to 'quiet' did seem to fix it in the hardy install, but seem not to do it when I dropped back to gutsy.

So trying something else. Why not, plenty out there...
Fedora 9 installed from DVD fine (3gb download!) Used torrent, came in 3-4 hours, cool.

issues:
need to get click on touchpad working first. checking /etc/