Command Syntax

From SR
Jump to: navigation, search

Command Syntax


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


useradd jsama

passwd jsama

vi /etc/passwd


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 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:// -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:// -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 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     naturally, change the file-name to whatever you used :-) 

Verify by eye, using Norman Koren's gamma-test-patterns: