cygwin Ààlinux¿ª·¢»·¾³µÄÅäÖÃ
»¨Á˰ëÌìÅäÖúÃÁËcygwinµÄ½çÃæ£¬ ÏÂÃæ×öÒ»¼Í¼£¬ÒÔ±¸Ï´βéÔÄ
1. ¹ØÓÚtermµÄÎÊÌ⣬ Èç¹ûÏÓ°²×°µÄterm²»¹»pp£¬¿ÉÒÔʹÓÃputty£¬ÄǾÍÐèÒª°²×°openssh°ü£¬ÒÔ±ã¿ÉÒÔʹÓÃputty£¬
opensshµÄ°²×°¹ý³Ì²ÎÔÄhttp://pigtail.net/LRP/printsrv/cygwin-sshd.html ÀïÃæ½éÉܵĺÜÏêϸ¡£ÏÂÃæÌô¼¸¸ö¹Ø¼üµã¼Ç¼ÈçÏ£º
(2b) Download
cygwin's setup.exe from http://www.cygwin.com/ and save
setup.exe in c:\cygwin
Click Start...Run...and type c:\cygwin\setup.exe
If you are asked about "Just Me" or "All Users", choose "All Users"
When it asks for "Local Package
Directory", type
c:\cygwin
When a selection
screen comes up, (you can resize the windows to see better)
click the little
View button for "Full" view ,
find the
package "openssh", click on the
word "skip" so that an appears in Column
B,
see this illustration.
Click to
start installing cygwin and ssh.
Size of the basic cygwin system is about 40
Meg, this may take a while.
Take a coffee break.
(3) Right click My Computer, Properties, Advanced,
Environment Variables
See this illustration (red dots)
Click the
"New" button to add a
new entry to system variables:
variable name is CYGWIN
variable value is ntsec
(4) Right click My Computer, Properties, Advanced,
Environment Variables
See this illustration (green dots)
Select the
Path variable and click the "Edit"
button:
append ;c:\cygwin\bin to the end of the existing variable
string.
(5) Open a cygwin window (by double clicking the icon), a
black screen pops open, type
ssh-host-config (on slower computers, it may take several minutes to
generate the dsa keys)
When the script asks you about
"privilege separation", answer yes
When the script asks about
"create local user sshd", answer yes
When the script
asks you about "install sshd as a service", answer yes
When the script asks you for
"CYGWIN=" your answer is ntsec
See Note 5 below if you need
to
Ïà¹ØÎĵµ£º
Linux³ÌÐò²ÎÊý°üÀ¨Á½²¿·Ö£º ÃüÁîÐвÎÊýºÍ»·¾³±äÁ¿
ÃüÁîÐвÎÊý´«µÝ¸ømianº¯Êý int mian (int argc,char *argv[])
»·¾³±äÁ¿ extern char *environ[]
»ñµÃ»·¾³±äÁ¿µÄº¯Êý£º const char* getenv(const char* name)
ÉèÖû·¾³±äÁ¿µÄº¯Êý£º
£¨1£©int putent (const c ......
ÕâÊÇÍøÉÏÌṩµÄ·½·¨£º
¡¡¡¡.Tar.gz
¡¡¡¡½âѹ£ºTar zxvf FileName.Tar.gz
¡¡¡¡Ñ¹Ëõ£ºTar zcvf FileName.Tar.gz DirName
´óÖÂ×ܽáÁËÒ»ÏÂLinuxϸ÷ÖÖ¸ñʽµÄѹËõ°üµÄѹËõ¡¢½âѹ·½·¨¡£µ«ÊDz¿·Ö·½·¨ÎÒûÓÐÓõ½£¬Ò²¾Í²»È«£¬Ï£Íû´ó¼Ò°ïÎÒ²¹³ä£¬ÎÒ½«ËæÊ±ÐÞ¸ÄÍêÉÆ£¬Ð»Ð»£¡
¡¡¡¡.Tar
¡¡¡¡½â° ......
×¼±¸¹¤×÷
qt-everywhere-opensource-src-4.6.2.tar
½âѹ tar xvzf qt-everywhere-opensource-src-4.6.2.tar
ÅäÖÃ:
./configure -prefix /home/hyk/Qt_self_compiled/Qt_4_6_2
£¨Ö»ÊǸıäÁ˰²×°Ä¿Â¼£©
gmake
(ÖØÅäÖÃ gmake confclean , configure)
ÖÐÎç12 ......
cat ÃüÁî
ʹÓ÷½Ê½£ºcat [-AbeEnstTuv] [--help] [--version] fileName
˵Ã÷£º°Ñµµ°¸´®Á¬
½Óºó´«µ½»ù±¾Êä³ö£¨Ó©Ä»»ò¼Ó > fileName µ½ÁíÒ»¸öµµ°¸£©
²ÎÊý£º
-n »ò --number ÓÉ 1
¿ªÊ¼¶ÔËùÓÐÊä³öµÄÐÐÊý±àºÅ
-b »ò --number-nonblank ºÍ -n ÏàËÆ£¬Ö»²»¹ý¶ÔÓÚ¿Õ°×Ðв»±àºÅ
-s »ò
--squeeze-blank µ±Óöµ½ÓÐÁ¬Ð ......
1.Ôö¼ÓÓ²¼þ
Ôö¼ÓµÄideÓ²ÅÌǰ׺Ϊhd£¬scsiÓ²ÅÌǰ׺Ϊsd£»µÚÒ»¿éÓ²ÅÌΪhda»òsda£¬µÚ¶þ¿éÓ²ÅÌΪhdb»òsdb,ÒÔ´ËÀàÍÆ¡£
2.ÓÃpvcreate´´½¨physical volumn
pvcreate /dev/sdb1 /dev/sdb2
´Ë´¦ËùÓõķÖÇøÊǵڶþ²½ÖвÙ×÷µÄÀàÐÍΪ8eµÄ·ÖÇø£¬pvcreateµÄ²ÎÊý¿ÉÒÔΪ1¸ö»ò¶à¸ö£»´´½¨Íê³Éºó¿ÉÒÔÓÃpvdisplay -vÀ´²é¿´´´½¨µÄÇé¿ö£¬ÓÃpvre ......