Command Syntax

From Research
Revision as of 19:32, 21 July 2010 by Gordp (talk | contribs) (→‎Colour (color) Management under Linux)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Command Syntax

GENTOO_KERNEL

cd /usr/src/

ls -la

cp linux/.config linux-2.6.XX-hard-rX/

rm linux

ln -s linux-2.6.XX-hard-rX/ linux

ls -la

cd linux/

make oldconfig

genkernel --menuconfig all

Load the config.bak (type .bak)

ls -la /boot/

vi /boot/grub/grub.conf

ADD SAMBA USER: CHANGED DEFAULT DIRECTORY

useradd jsama

passwd jsama

vi /etc/passwd

jsama:x:1009:1009::/mnt/raid/jsama:/bin/bash

cd /mnt/raid

mkdir jsama

chown jsama jsama

chmod 750 jsama/

usermod -a -G raidaccess jsama

vi /etc/samba/smb.conf

valid users = jsama


vi /etc/samba/smbusers

jsama = jsama

smbpasswd -a jsama

Samba control

/etc/init.d/samba stop
/etc/init.d/samba start
/etc/init.d/samba reload     (for when the smb.conf file changes)

Samba Commands

smbclient -L localhost     (to list available shares on localhost.  Use "servername" or IP in place of "localhost" if you are testing from a remote machine)

OpenLDAP

OpenLDAP Commands

On a remote machine, you can access and dump the whole LDAP tree (you'll need to supply credentials):

user@hostname ~ $ ldapsearch -x -b 'dc=whiterock' -D "cn=Manager,dc=whiterock" '(objectclass=*)' -H ldap://192.168.0.110 -W     (home)
user@hostname ~ $ ldapsearch -x -b 'dc=iat,dc=sfu,dc=ca' -D "cn=Manager,dc=iat,dc=sfu,dc=ca" '(objectclass=*)' -H ldap://209.87.56.238 -W    (campus)

Colour (color) Management under Linux

hostname ~ # emerge -v argyllcms     (currently requires using layman, and adding the sunrise overlay)
[ebuild   R   ] media-gfx/argyllcms-1.1.1  USE="-doc" 0 kB [1]

Attach the Colormunki Photo USB-device, then run (target brightness of 120mc/m^2, gamma=2.2, LCD monitor, target temp=6500K (D65), with large-ish centered patch):

user@hostname ~ $ dispcal -y l -q h -t 6500 -g 2.2 -b 120 -P 0.5,0.5,2.0 -v 3008wfp     (this will create a file 3008wfp.cal in the directory where you ran the command)

Typically choose Option 5 from the initial menu:

Display adjustment menu:
Press 1 .. 7
1) Black level (CRT: Offset/Brightness)
2) White point (Color temperature, R,G,B, Gain/Contrast)
3) White level (CRT: Gain/Contrast, LCD: Brightness/Backlight)
4) Black point (R,G,B, Offset/Brightness)
5) Check all
6) Measure and set ambient for viewing condition adjustment
7) Continue on to calibration
8) Exit

Then, once you've got some initial numbers, choose Option 7 (and go grab a coffee; this takes a while... around 17min)
Apply your new calibration:

user@hostname ~ $ dispwin 3008wfp.cal     naturally, change the file-name to whatever you used :-) 

Verify by eye, using Norman Koren's gamma-test-patterns: http://www.normankoren.com/makingfineprints1A.html