e.g.
chdev -l en0 -a netaddr='192.168.1.1' -a state='up'
That's all. Simple?
Contains technical document about Unix/Linux, Java, Python, Raspberry Pi and other IT related topics. Not a full tutorial but as a quick reference guide
lsslot -c pci
The system displays a message similar to the following:
Slot name | Description | Device(s) Connected |
U0.4-P1-I1 | PCI 64 bit, 33MHz, 3.3 volt slot | empty |
U0.4-P1-I2 | PCI 64 bit, 33MHz, 3.3 volt slot | scsi0 |
U0.4-P1-I3 | PCI 64 bit, 33MHz, 3.3 volt slot | unknown |
U0.4-P1-I5 | PCI 64 bit, 33MHz, 3.3 volt slot | empty |
pdftk <input PDF files> cat [ <input PDF pages> ] output <output PDF filename>
How many accounts do you have? For me, it's ... many. Apart from the company email, I am holding the following accounts:
Emails that provide capacity:
Email Forwarding Address(with Alias):
In terms of Email address, I have 15 address. Yet, what I am using actively are just GMail, Flash Mail and the personal mail server. For the others, besides Hotmail, all Emails will be redirected/forwarded to GMail, and GMail will keep a copy and forward to the personal mail server. Hotmail is just a 'sub-product' when creating MSN Messenger account, basically I don't use it at all. So for checking mail, I just need to check my personal mail server and FlashMail.So which Email service are the best? Of course I vote for my own personal mail server (with QMail, with POP3 and IMAP4), very flexible. My second choice is GMail. If you can use the Label function wisely, that's a good service. Also it's my email backup repository. If my mail server are out of service, I can still get the mail from GMail.
./build.sh
./install.sh
$ truecrypt --size 10M
$ cd /tmp
$ truecrypt
$ pwd
/tmp
$ truecrypt --size 10M -c 10m.tc
Volume type:
1) Normal
2) Hidden
Select [1]: 1
Filesystem:
1) FAT
2) None
Select [1]: 1
Hash algorithm:
1) RIPEMD-160
2) SHA-1
3) Whirlpool
Select [1]: 2
Encryption algorithm:
1) AES
2) Blowfish
3) CAST5
4) Serpent
5) Triple DES
6) Twofish
7) AES-Twofish
8) AES-Twofish-Serpent
9) Serpent-AES
10) Serpent-Twofish-AES
11) Twofish-Serpent
Select [1]: 2
Enter password for new volume '10m.tc':
Re-enter password:
Enter keyfile path [none]:
TrueCrypt will now collect random data.
Is your mouse connected directly to computer where TrueCrypt is running? [Y/n]: n
Please type at least 320 randomly chosen characters and then press Enter:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Done: 9.75 MB Speed: 6.09 MB/s Left: 0:00:00
Volume created.
$ truecrypt -p abcd1234 -u 10m.tc /tmp/ttt/
$ cd /tmp/ttt/
$ df -k /tmp/ttt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/truecrypt0
130794 0 130794 0% /tmp/ttt
$ truecrypt -d /dev/mapper/truecrypt0
(assume there is a VG called vg01)
#lvcreate -L 128M -n abc_lv vg01
Logical volume "abc_lv" created
#truecrypt -c /dev/vg01/abc_lv
Volume type:
1) Normal
2) Hidden
Select [1]: 1
Filesystem:
1) FAT
2) None
Select [1]: 1
Hash algorithm:
1) RIPEMD-160
2) SHA-1
3) Whirlpool
Select [1]: 2
Encryption algorithm:
1) AES
2) Blowfish
3) CAST5
4) Serpent
5) Triple DES
6) Twofish
7) AES-Twofish
8) AES-Twofish-Serpent
9) Serpent-AES
10) Serpent-Twofish-AES
11) Twofish-Serpent
Select [1]: 2
Enter password for new volume '/dev/vg01/abc_lv':
Re-enter password:
Passwords do not match.
Enter password for new volume '/dev/vg01/abc_lv':
Re-enter password:
Enter keyfile path [none]:
TrueCrypt will now collect random data.
Is your mouse connected directly to computer where TrueCrypt is running? [Y/n]: n
Please type at least 320 randomly chosen characters and then press Enter:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Done: 125.55 MB Speed: 15.26 MB/s Left: 0:00:00
Volume created.
#truecrypt /dev/vg01/abc_lv /abc
Enter password for '/dev/vg01/abc_lv':
#df -k /abc
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/truecrypt1
130794 0 130794 0% /abc
#df -T /abc
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/truecrypt1
vfat 130794 0 130794 0% /abc
#truecrypte -d /dev/mapper/truecrypt1
#truecrypte --filesystem reiserfs /dev/vg01/abc_lv
(skip the interactive wizard)
#truecrypte -N 0 /dev/vg01/abc_lv
#mkfs.reiserfs /dev/mapper/truecrypt0
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)
A pair of credits:
Joshua Macdonald wrote the first draft of the transaction manager. Yuri Rupasov
did testing and benchmarking, plus he invented the r5 hash (also used by the
dcache code). Yura Rupasov, Anatoly Pinchuk, Igor Krasheninnikov, Grigory
Zaigralin, Mikhail Gilula, Igor Zagorovsky, Roman Pozlevich, Konstantin
Shvachko, and Joshua MacDonald are former contributors to the project.
Lycos Europe (www.lycos-europe.com) had a support contract with us that
consistently came in just when we would otherwise have missed payroll, and that
they kept doubling every year. Much thanks to them.
Guessing about desired format.. Kernel 2.6.17-11-generic is running.
Format 3.6 with standard journal
Count of blocks on the device: 32752
Number of blocks consumed by mkreiserfs formatting process: 8212
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 7ffaa516-0015-46bc-bfc0-6fdd7dca59ba
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON '/dev/mapper/truecrypt0'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok
Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
ReiserFS is successfully created on /dev/mapper/truecrypt0.
#truecrypt /dev/vg01/abc_lv /abc
truecrypt: Volume already mapped
#truecrypt -d /dev/vg01/abc_lv
#truecrypt /dev/vg01/abc_lv /abc
Enter password for '/dev/vg01/abc_lv':
#df -T /abc
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/truecrypt0
reiserfs 131000 32840 98160 26% /abc
Situation: suppose you are going to clone the machine A to machine B
Machine A:
Remove one of the disk and try to boot it with single in OK prompt (boot
vxdiskadm -> 5
Double check (vxprint -htA) and format, if the partition label is not correct, issue "/etc/vx/bin/vxbootsetup
Machine B:
insert the disk of Machine A and boot in OK prompt (boot
vxdiskadm -> 5
Double check (vxprint -htA) and format, if the partition label is not correct, issue "/etc/vx/bin/vxbootsetup
swapfile dev swaplo blocks free
/dev/dsk/c0d0s1 102,1 8 303400 303400
/dev/dsk/c0d1s6 102,70 8 21160 21160
/tmp2/swapfile - 8 20472 20472
/tmp2/swapfile - - swap - no -
Quick reference only. Assumed the reader is familiar with the concept of AIX LVM
Action | smitty command | Command line | Remarks |
Create a VG | smitty mkvg | mkvg -y ' |
|
Create a LV | smitty mklv | mklv -t jfs -y ' | jfs2 is preferred |
Create a filesystem | smitty crfs | crfs -v jfs -a bf=true -d | jfs2 is preferred |
Resize FS | smitty chfs | chfs -a size=+ |
|
Extend a VG | smitty extendvg | extendvg |
|
Reduce a VG | smitty reducevg | reducevg |
|
Move PV data | smitty migratepv | migratepv -l |
|
Online a vg | smitty varyonvg | varyonvg |
|
Offline a vg | smitty varyoffvg | varyoffvg |
|
Export a VG | smitty exportvg | exportvg |
|
Import a VG | smitty importvg | importvg -y |
|
Remove a filesystem | smitty rmfs | Not recommend to use CLI |
|
Make a lvcopy | smitty mklvcopy |
| Mirror a LV |
Remove a lvcopy | smitty rmlvcopy |
| Remove the mirror of a LV |
Split a lvcopy | No smitty | splitlvcopy -y | |
Mirror a vg | smitty mirrorvg | mirrorvg |
|
Unmirror a vg | smitty unmirrorvg | Not recommend to use CLI |
|
# odmget -q "attribute=route" CuAt
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.168.0.2"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.168.0.2"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
# chdev -l inet0 -a delroute="net,-hopcount,0,,0,192.168.0.2"
Method error (/usr/lib/methods/chginet):
0514-068 Cause not known.
0821-279 writing to routing socket: The process does not exist.
route: not in table or multiple matches
0821-207 chginet: Cannot add route record to CuAt.
# odmget -q "attribute=route" CuAt
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.168.0.1"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
Sometimes the backspace key doesn't work for Unix. You can custom the key by:
stty erase
For example:
stty erase ^H
Tips 1:
When performing AIX installation by a mksysb backup, remember not to perform the following steps.
Tips 2:
When you got the message key privileged password, that means someone lock the machine by SMS.