?????????????????? ???????????????? ?????????????????? ?? ?????????????? Developer 9/07.
?? ?????????????????? fdisk ???? ?????????????? Windows Vista ???????????????????????? ?????????? ???????????? ?? ?????????????????????????? ???????????????????????????? ???????????????? ???? ??????????. ???????????????????????? ?? Vista ???????????????????? ?????????????? ???? 2048 ????????????????. ?????? ?????????????????? ?????????????????????? ?????????????? ?????????????????? ???????????????? ?? ???????????? ???????????????????????????? ?????? ?????????????? SXDE ?????????????? 9/07 ???? ?????????????????? ?????????????????????? ??????????????????????, ???? ?????????????? ???????????????????????????? ?????????????????????? Vista. ?????????????? fdisk ???????????? ???????????? ?????? ?????????????????? ???? ?????????? ???????????? ???????????????????????? ?????????????? ????????????????.
?????? ?????????????????? ?????????????? SXDE ?????????????? 9/07 ???? ??????????????????, ???? ?????????????? ???????????????????????? Windows Vista, ?????????? ???????????????????? ???????? ???????????? ???? ?????????????????? ???????? ??????????:
???????? ?????????????????? ?? ?????????????? ???????????????????? ?????????????????? ???? ????????????:
Not enough free space |
???????? fdisk ?? ?????????????? ???????????????????? ?????????????????? ???? ????????????:
fdisk: Cannot Create partition table |
?????????????????? ?? ?????????????? ???????????????? ?????????????????? ????????????????:
fdisk -d <device> |
????????????:
# fdisk -d c0d0p0 Physical Geometry: cylinders[30400] heads[255] sectors[63] sector size[512] blocks[488376000] mbytes[896] Virtual (HBA) Geometry: cylinders[30400] heads[255] sectors[63] sector size[512] blocks[488376000] mbytes[896] Partition Table Entry Values: SYSID ACT BHEAD BSECT BEGCYL EHEAD ESECT ENDCYL RELSECT NUMSECT 191 128 0 1 1 254 63 1023 16065 488359935 100 0 0 0 0 0 0 0 100 100 100 0 0 0 0 0 0 0 100 100 100 0 0 0 0 0 0 0 100 100 |
???????????????????????? ?????????? ?????????? ?? ???????????? ???????????????????????? ?????? 488376000. ?????????? ???????????????????? ?????????????????????? ?????????????? ???????????????????????????? ???????????? ???? ?????????????? ???????????????? ?????? 16065 + 488359935, ??.??. 488376000. ???????????????? ??????????????????, ???????? ?????????? ?????????????????????????? ?????????????????????? ?????????????? ?????????????????? ?????????? ??????????.
???????? ???? ???????????????????? ???? ?????????????????????? ?????????????? Solaris, ?????????? ?????????????????? ???????????????? ?? ?????????????????????????? CD ?????? DVD ?? ?? ???????????? ???????????????? ?????????????????? ?????????????? ?? ???????????????????????????? ????????????.
?????????? ????????????????:???????????????? ??????????????-???????? ???????????????????????????? ???? ???????????? ???????????????????? ???????????????? ???????????????? ??????????. ?????????????????? ?????????????????? ????????????????:
?????????????????? Windows Vista.
?????????????????? ?????????????????? ????????????. ?????????????? ???????????? ???????? ?? ???????????????? ???????????? ???????????????????? -> ???????????????????????? ?????????????? -> ?????????????????????????????????? -> ???????????????? ?? ???????????????????????????? ???????????????? ???????????????? ??????????.
???????????????? ???????????? ?????????????? ???????? ?????????????????? ???????????? ???????????? ?? ???????????????? ?????????? "?????????? ??????". ?????????????????? ?????? ???????????????? ???? 9 ????.
???????????????? ???????????????? ?????????? ???????????????????? ?????????????? fdisk Vista ?? ???????????????????? ?????????????? fdisk ?????????????????????? Solaris, ?????????????????????????? ?????????????????????????? ?????????????? ???????????????????? ?????????????? Vista ???? 9 ???? ?????????????????? ?????????????????? ???????????? ?????????????????????? Solaris.
?????????????????????????? ?????????????????? ?? ???????????????????? ???? Solaris.
?????? ?????????????????????????? ???????????? ???????????????????????????????????????? ?????????????????????? Solaris, ???????? ???????????????????? ?????????????????? ?????????? ?????????????????????? ????????????, ?????????????? ????????????????????, ?????????? ?????????????????????????????? ?????????????????? ???????????? ?????????????????????? ?????????? ???????????????????? ???????????????????????? ?? ?????????????????? ?????????? ?????????????????????? ???? ?????????????????????????????? ????????????????. ?????????????????? ???? ???????????? ???? ??????????????????.
?????????? ????????????????: ??????????????????????.
?????????? ???????????????????????????? ???? ?????????????????????????????????? ???????????? ???? ?????????????????????? Sun4UTM ?? hme ?????????????????? ?????????????? ????????????. ?? ???????????????? Ultra 10, Ultra 60 ?? Ultra 80 ???????????????? ??????????, ?? ???????????????? ???????? ?????????? ???????????????? ping-???????????????????????? ???????????????????? ????????????????????????. ?????????????????? ???? ???????????? ???? ??????????????????.
?????????? ????????????????: ???????????????? ???????? ???? ?????????????????? ???????????????? ??????????????:
???????????????????? ???? ?????????????????????????? ?????????????? suspend ?????????? ???????????????????? ???????????????????????????? ???????????????????? ????????????????.
?????????? ???????????????????????????? ???? ?????????????????????????????????? ???????????? ?????????????????????? ?????????????? snoop -d hme0 -c1.
?? ???????? ?????????????? ???????????????????????? ????????????????????????, ???????????????????????? ?????????????????? ???????? ?? ???????????????????? ?????????????????? ????????????. ?????? ?????????????? ?????????? ???? ?????????????? ?????? ?????????????????? ???????????? ?????????????? ???????????????????????? ???????????? ?? ?????????? ???? ?????????????????? ??????????????????:
You will be automatically logged out in 60 seconds |
??????:
The system will be automatically shutdown in 60 seconds |
?????? ?????????????????? ???? ?????????? ???????????? ?? ???????????????? ???? ?????????????????? ???????? ?? ???????????????????? ?????????????? ?? ???? ?????????????????? ????????. ?????????????????? ???? ???????????? ???? ??????????????????.
?????????? ????????????????: ?????????????????? ???????? gnome-panel.mo ???? ???????????????????? OpenSolaris ?? ???????????????? ???? ???????????????? ???????? gnome-panel.mo . ?????????????????? ?????????????????? ????????????????:
?????????????????? ???????? l10nmessages-vermillion[lowbar]*.tar ???? http://dlc.sun.com/osol/jds/downloads/current/.
???????????????? ???????????????? ???????? gnome-panel.mo ???? SUNWgnome-l10nmessages-zhCN/reloc/share/locale/zh/LC[lowbar]MESSAGES/gnome-panel.mo .
?????????? ?????????? ?????????????????? ?????????? ???????????????????? ???? ???????????????????? ??????????.
???????? ???????????????? ?????? ???????????????????? (RTC) ?? ?????????????? SXDE ?????????????? 9/07. RTC ?????????????????????????? ???????????????? ?????? ???????????????? ?????????????? ?? ???????????? ?????? ???????????????????? ???????????????? ???????????? ?????????????? ?? ????????????. ?????? ?????????????? ???????????????????????????? ???????????????????????? SIGSEGV ???? ?????????? ????????????????????. ?????????????????? ?????? ???????????? RTC ?????????????????? ?????????????????????? ???????????????????? SIGSEGV ?? ???????????????????????????? ???????? ????????????????, ?????????????? ?????????????????? ?????????????????????? ?????? SIGSEGV sigaltstack ???????? ????????????????????????, ???????? ???????????????? ?? ???????????? EINVAL. ?????????????????????? ?????????????? ?????????????????????? SIGSEGV ???? ??????????????????????. ?????????????????? ?????????????????? ?????????????????? ???? ????????????.
terminating signal 11 SIGSEGV |
?????????? ????????????????: ???????????????????? ???? ?????????????????????????? ???????????????????????????????? ?????????????? ?????? ??????????????, ???????????????????? ????????????????, ?? ?????????????? ?????????????? rtc skippatch.
????????????????, ?????????????????? ?????????????? dbx ?????????????????? ???????????? ???????????????? ?????????????????????? segv:
rtc skippatch libc.so -f lrw_rdlock lrw_unlock lrw_wrlock _lock_try rtc skippatch libc.so -f read_lock_try read_unlock_try write_lock_try write_unlock_try rtc skippatch libc.so -f queue_unlink mqueue_spawner thread_queue_dump rtc skippatch libc.so -f thread_queue_fifo thread_queue_spin thread_queue_verify rtc skippatch libc.so -f __rw_unlock __rw_trywrlock __rw_workerscnt rtc skippatch libc.so -f __rwlock_destroy __rwlock_init |
???? ?????????????????? ??????????????, ???????????????? Sun V40z, ?? ???? ?????????????????????? ??????????????????????, ???????????????? Acer Ferrari 5000, ?????????? ???????????????????? ?????????????????????????????? ?????????????????? ?? ???????????????? ?? ?????????????????? ??????????/????????????. ?????? ???????????????????????????? ?????????????????? ???? ?????????????????????? ???????? ?????? ?????????????????? ???????????????? ?????????????????????? ?????????????????? ?? ??????????????, ???????????????????????? ?? ?????????????????????????????? ????????????????????.
???????????? ???? ?????????????????? ?????????????? ?????? ???????????????????????????? ?????????????? ?? ??????????????????????????????, ???????? ?????? ?????????????????? ?????????? ???? ???????????????????????????? ?????????????????????? ?? ?????????????? ????????????. ???????? ?????????????????????? ?? ?????????????? ???????????? ???? ????????????????????????????, ?????????? ???????????????????????????? ?????????????? ??????????????????????????????.
???????? ?????????????????????? ?? ?????????????? ???????????? ????????????????????????????, ???????????????????????????? ???????????????? ???????????? ???????????????????? ?? ?????????????????????????? ?????????????????????? ???????? ?????? ?????????????????? ?????????????????????? ?????????????????? ?? ?????????????????? ??????????????. ?????????? ???????? ???? ???????????????????????? ???? ?????????????? ?????????????????? ?????? ???????????????????????????????? ??????????????.
?? ?????????????????????? ???????? ???????????????? ???????????????? ?????????????????? ?????????????????????????????? ??????????????????:
WARNING: out of I/O resources on bridge: bus 0x20, dev 0x3, func 0x0, for secondary bus 0x23 WARNING: devices under bridge bus 0x20, dev 0x3, func 0x0 will not be assigned I/O ports |
WARNING: detected unsupported configuration: non-empty bridge (bus 0x0 dev 0x7 func 0x0) without I/O resources assigned by bios for secondary bus 0x7 |
WARNING: devices under bus 0x0, dev 0x7, func 0x0 will not be assigned I/O ports |
?????????? ????????????????: ??????????????????????.
fdisk ???????????? ???????????????????????? ???????????? ??????????. ????-???? ???????? ???????????? ?????????????????? ???????????? ?????????????? ???? ?????????????? ??????????. ?????????????????? ?????????? ?????????????????????? ??????????, ???????? ???? ?????????????????? ?????????? ???????? ?????????????????????? ???????? ????????. ?????????????????? ?????????????????? ?????????????????? ???? ????????????.
Installation can not create Solaris fdisk partition (c1t0d0p0), causing installation failure. Or, invalid fdisk partition causes installation to overwrite the entire disk. |
?????????? ????????????????: ???????????????? ???????? ???? ?????????????????? ???????????????? ??????????????:
?????????????????????? ?????????????????? ???????????? ?? ?????????????? gparted ?????? ?????????????????? ???????????????? ?? ?????????????????? ?????? ???????????? ?? ???????????????????????? ?? ???????????????????????? ?????????????? ??????????, ???????????????????????? fdisk. ?????? ?????????????????? ?????????????????? ???????????????????? ??????????????????.
?? ???????????? ???????????? Windows Vista, ???????????????????? ?????????????????? ????????????????????????????, ???? ?????????????? ???????????????????????? NTFS, ?????? ???????????????????? ???????????????????? ?????????????? ???? ?????????? ?????????????? ?????????????????? ???????????????? ???????????????????? ?????????????? ???? ?????????????? ???? Windows Vista. ???????????????????? ?????????????? ?????????????? ?????????????????? ??????????????????????????, ?????? ???????????? ?????????????? ???? ???????????????????? ??????????????????????, ?????????????????????? ???????????????? ??????????. ???????????????????? ???????????????????? ?????????????? ???????????????? ???? 1 ???? ?????????????????? ?????????????????? ??????????????????.
?????????? ?????????????????? ?????????????????? ?????????????????? ?????????????????? ???? ????????????:
application gnome-about has crashed. |
?????? ?????????????????? ???? ???????????? ?????????? ??????????????????????????????.
?????????? ????????????????: ??????????????????????.
?????? ?????????? ?? ?????????????? ?? ?????????????????? ???????????? ?????????????????? ???????????? ???????? ?? ???????????? ???????????????? ???????????????????? ???????????????? ???????????????????? GNOME (GOK) ?????????????????? ???? ???????????????????? ??????????. ???????????? ???????? ?? ?????????????? "All Applications" ?????????????????? ???? ???????????????????? ??????????. ?????????????????? ???? ???????????? ???? ??????????????????.
?????????? ????????????????: ???????????????? ???????? ???? ?????????????????? ???????????????? ??????????????:
???????????????? ???????? zh[lowbar]CN.xxx ???????????? ?????????? zh.
???????????????? ???????? /usr/dt/config/Xinitrc.jds ?????????????????? ??????????????:
?????????????? ?? ?????????? ?????????????????? ??????:
export G_FILENAME_ENCODING=@locale,UTF-8 export G_BROKEN_FILENAMES=yes (2) |
???????????????? ?????????? ?????????? ???? ???????? 1 ?????????????????? ??????:
if [ "x$LANG" = "xzh" ] ; then export LANGUAGE=zh:zh_CN.EUC fi |
?????????????????? ???????? ?? ?????????? ?????????????????? ???????? ?? ??????????????.
512 ???? ???????????? ???????????????????????? ?????? ?????????????????? Solaris Express Developer Edition ?? ?????????????????????? ????????????????????????. ?????? ?????????????????? ?????????????? ?????? ?????????????????????????? ?????????????????? ???? ?????????? 768 ???? ????????????.
?????????? ????????????????: ???????????????? ???????? ???? ?????????????????? ???????????????? ??????????????:
???????????????????? ?? ???????????????????????? x86: ???????????????? ?????????????? ?????????????????? "Solaris Express Serial Console ttyb" ?? ???????? GRUB (#4). ???????? ?????????????? ?????????????????????????? ?????????????????? ?? ?????????????????? ??????????, ?????? ???????????? ?????????????? ???????????????????? 512 ???? ????????????. ?? ???????????? ?????????????????????????? ?????????? ???????????????? ?????????????????? ?????????????????????????????? ???????????? ???????????????????????? ??????????????, ???? ???? ???????????????? ????????????????????????. ???????????????? ???????????????????????? ?????????? ???????????????? ?????????? ??????????????????.
???????????????????? ???? ???????? SPARC: ?????????????????????? ?????????????????? ?????????????? ??????????????????:
ok boot cdrom - text |
???????? ?????????????? ?????????????????? ???????????????? ?????????????????? ?? ?????????????????? ??????????, ?????? ?????????????? ???????????????????? 512 ???? ????????????. ?? ???????? ?????????????? ?????????????????? ???????????? ???????????? ???????????????????????? ??????????????, ???? ???? ???????????????? ????????????????????????: ???????????????? ???????????????????????? ?????????? ???????????????? ?????????? ??????????????????.
?????? ?????????????????? ???????????????????????????? ???????????????? ?? ?????????????????? ?????????????????? ????. Solaris Express Installation Guide: Basic Installations.
?????? ?????????? ?? ?????????????? ???? Solaris ?? ???????????? ???????????? "Help" ?? ???????? "Launch" ?????????????????????? ???????? ?? 12 ?????????????????? ?? ?????????? ??????????. ???????? ???????????????????????? ??????????, ???????????????? ???? C/POSIX, ???????????? 12 ???????????????? ?????????????????? ???????????? ?????????????????? ??????:
???????????????????? ????????????????,
???????????????? GNU Info.
?????????????????? ???? ???????????? ???? ??????????????????.
?????????? ????????????????: ?????????????????? ?????????????????? ????????????????:
?????????????????? ???????? ?? ?????????????? ?????? ?????????????????????????? (???????????????????????? root).
?????????????? ?????????????????? ??????????????:
- scrollkeeper-update -q - cp -rf /var/lib/scrollkeeper/C /var/lib/scrollkeeper/xx_yy.zzz |
xx[lowbar]yy.zzz ???????????????? ???????????????? ??????????, ?????????????????????????? ?????? ?????????? ?? ??????????????.
HTML-???????????????? ?????????????????????? ????????????????????????, ???????????????????????? ?????? ???????????? ?????????? ???????????????????????? ?? ??????????????, ?????????????????? ????????????????????????, ?????????????????????? ???????????? ???????????? ?? ???????????????????????? Sun Studio 12 ?? NetBeans 5.5, ?????????????? ?????????????????????????? ?????? ???????????????????????? ?? ?????????? ????????????????????. ?????????? ?? ???????????? ?????????? ???????? HTML-???????????????? ???????????????? ?????????????????? ????????????????????????:
Launch Sun Studio Express and follow the Getting Started Tutorial within the IDE
Launch NetBeans 5.5 and select the Getting Started within the IDE
?? ???????????????????????? ???????? ???????????????????? ?????????????? ?????? ????????????????, ???????????????? ?? ???????? ???????????? ?????????????? ?????????????????? ????????:
???????????????????? ???????????????? ??????????????????, ???????????????????????? Sun Studio, – Quick Start Guide, ?? ???? Getting Started Tutorial, ?? ???????? ???????????????? ?????????????????????????? ?? ???????? ?????????????? (Help). ???????????? ???????????? ?????? ???????? ???????????????? ???? ??????????????????.
?????????? IDE Sun Studio ?? NetBeans ???????????????????? ???? ?????????????? Mozilla ?? /usr/dist/exe/. ?? Solaris Express Developer Edition ???????????? ???????????????????????? Firefox, ???? ???? Mozilla. ?????? ?????????????? ?? ???????????????????? ???? ???????????? ???????????? ?????? ?? ?????????? ???????????????????????? ?? ?????????????????? ?? ?? Sun Studio, ?? ?? NetBeans ???????????? ???????? ?????????????? ?????????????????????????? ???????????????????????? Firefox.
?????????? ????????????????: ?????? ???????????? Firefox ?? ???????????????? ???????????????????????? ???????????????????? ?????????????????? ?????????????????? ????????????????:
???????????????? "Tools" ?? ???????????? ???????? ???????????????????? ?? ?????????? ???????????????? "Options".
?????????????????? ???????????????????? ???????? ?? ???????????????????? "Options". ?? ?????????????? "General" ?????????????? ?????????????????? ????????????:
*Web Browser*: Mozilla |
???????????????? ?????????????? ???????????? ?????????? ?? ??????????, ???????????????????? "Mozilla", ?? ???????????????? "Firefox".
?????????????? OK.
???????????????? ???????????????? "Getting Started" ?????? ?????????? ???????????? ???? ????????????????-?????????????? ?? ???????????????????? ?????? ???????????????? ?????????????????????????? ???????????????????????? Firefox.
?? ???????????? ???????????? ???????????????????????? "Getting Started" ?????? ???????????? ????????????, ???????? ?? ???????????????? ???????????????????????? ????-???????????????? ???????????????????? Mozilla, ?????????????????? ???????????????????? ???????? ?? ?????????????????????? ????????????????, ?????????????????????? ?????? ???????????????????? ????????????????. ???????????????????????? ?????????????? ?????????????????????? ???????? ????????????????, ?? ???? ???????????????? ???? ?????????????????????? ????????.
?????? ?????????????????????? ?????????????????????????? ?? ?????????????? ?????????????????????????? ?????????????????? ???????? uid[lowbar]t ?? gid[lowbar]t ???????????????? ?? long (32-?????????????????? ???????????????? ??????) ?? int (64-?????????????????? ???????????????? ??????) ???? ?????? uint32[lowbar]t. ?????? ?????????????????? ???????????????????????????? ???????????????????? ???? ???????? ?????????????? ????. ?????????????????? ???????? uid[lowbar]t ?? gid[lowbar]t ?? ?????????? ?????????????? ?? ?????????????????????? ?? Solaris Express Developer Edition.
???????? ?????????????????? ?????????????????????? ???????? ??????????????????:
?????? ???????????????????????????? ???????? ?????????? ????????????????, ???????????????????? ?????????????????????? ?????????? uid[lowbar]t ?? gid[lowbar]t ???????????? ?????????????????????????????? ???????????????????????? ?????????????????????????? ???????????????? ????????????????????.
???????????????????? ?????????????????? ?????????????????? ???????????????????? ??????????????:
1 #include <unistd.h> 2 #include <stdlib.h> 3 #include <stdio.h> 4 5 int 6 main(void) 7 { 8 uid_t negone = -1; 9 10 if (getuid() < 0) 11 exit(1); 12 13 (void) setreuid(negone, getuid()); 14 15 (void) printf("%ld\n", getuid()); 16 17 return (0); 18 } |
???????????????????? Sun Studio 11 ???????????? ?????????????????? ????????????????????????????:
"uid.c", line 8: warning: initializer does not fit or is out of range: -1" |
?????????????????? lint ???? Studio 11 ???????????? ?????????????????? ????????????????????????????:
((8) warning: constant truncated by assignment |
(8) warning: initializer will be sign-extended: -1 |
(10) warning: suspicious comparison of unsigned with 0: op "<" |
function argument ( number ) type inconsistent with format |
|
gcc -Wall -Wextra ???????????? ?????????????????? ????????????????????????????:
uid.c:10: warning: comparison of unsigned expression < 0 is always false |
uid.c:15: warning: long int format, uid_t arg (arg 2) |
?????????? ?????????????????????????? ???????????????? ?????? ?????????? ?????????????????? ???? ?????????????? ?????????????????? ?? ???????????????????? ??????????????????. ???????????? ???????? ???? ??????????????????.
?????????????????? ???????? uid[lowbar]t ?? gid[lowbar]t ???????????????? ?? ???????? ?????????????????????????? ???????? ?????? ?????????????? ?? ???????????????? C++.
?????????????? ???????????????? ???????????? C, ???????????????? ?????????? ?? ???????????????????? C++ ???????????????????? ?????????????????????????????? ?????? ????????????. ???????????????????? ???????????????????? ????????????, ?????????? uid[lowbar]t ?? gid[lowbar]t ???????????????????????? ????????????????????????, ?????????????????????????? ?? ????????????????????. ?? ???????? ???????????? ????????????????????, ???????????????????? ?????? ????????????????????, ?? ????????????????????, ???????????????????????? ?????? ????????????????????, ?????????????? ?????????????????????????? ????????????????????????????.
?????????????????? ?? ???? Solaris ???????????????????? C++ ?????????????????? ???????? ???? ????????????????????????, ?????????????????????? ?????????????????????????????? ?? ???????????????????????? Solaris ????????????????????????.