Command Syntax: Difference between revisions

From Research
Jump to navigation Jump to search
 
(15 intermediate revisions by 2 users not shown)
Line 7: Line 7:
ls -la
ls -la


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


rm linux
rm linux


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


ls -la
ls -la
+++
 
cd linux/
cd linux/


Line 27: Line 27:
vi /boot/grub/grub.conf
vi /boot/grub/grub.conf


 
===ADD SAMBA USER: CHANGED DEFAULT DIRECTORY===
 
===ADD SAMABA USER: CHANGED DEFAULT DIRECTORY===


useradd jsama
useradd jsama
Line 65: Line 63:
  /etc/init.d/samba reload    (for when the smb.conf file changes)
  /etc/init.d/samba reload    (for when the smb.conf file changes)
====Samba Commands====
====Samba Commands====
  smbclient -L localhost    (to list available shares on localhost.  Use servername for localhost if you are testing from a remote machine)
  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):
<font color=lime>user@hostname</font> <font color=blue>~ $</font> '''ldapsearch -x -b 'dc=whiterock' -D "cn=Manager,dc=whiterock" '(objectclass=*)' -H ldap://192.168.0.110 -W'''    ''(home)''
<font color=lime>user@hostname</font> <font color=blue>~ $</font> '''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==
<font color=red>hostname</font> <font color=blue>~ #</font> '''emerge -v argyllcms'''    ''(currently requires using layman, and adding the '''sunrise''' overlay)
<font color=lime>[ebuild</font>  <font color=yellow>R</font>  ] <font color=lime>media-gfx/argyllcms-1.1.1</font>  USE="<font color=blue>-doc</font>" 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):
<font color=lime>user@hostname</font> <font color=blue>~ $</font> '''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


==OpenLDAP Commands==
Then, once you've got some initial numbers, choose Option 7 (and go grab a coffee; this takes a while... around 17min)
On a remote machine, you can access and dump the whole LDAP tree:
<br>
  ldapsearch -x -b 'dc=whiterock' -D "cn=Manager,dc=whiterock" '(objectclass=*)' -H ldap://192.168.0.110 -W     ''(home)''
Apply your new calibration:
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)''
  <font color=lime>user@hostname</font> <font color=blue>~ $</font> '''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

Latest revision as of 19:32, 21 July 2010

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