fta m2-admin gnulinux-v1

545

Upload: anil-kamath

Post on 25-Jan-2015

132 views

Category:

Technology


7 download

DESCRIPTION

An excellent Linux admin doc for experienced system administrators

TRANSCRIPT

  • 1. Copyright 2019, FUOC. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License"

2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. S 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. smbmount//host/carpeta/mnt/windows /mnt/windows smbumount/mnt/windows smbclient-Lhost 83. workgroup=GROUPserverstring=%hserver(Samba%v) hostsallow=192.168.1 84. printcapname=/etc/printcapguestaccount=nobody logfile=/var/log/samba/log.%mencryptpasswords=true [homes] 85. /etc/init.d/sambarestart 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. mancommand manncommand 99. 100. 101. 102. 103. 104. commandopfile command1|command2|command3 105. echo$SHELL 106. 107. $envSSH_AGENT_PID=598MM_CHARSET=ISO-8859-15TERM=xtermDESKTOP_STARTUP_ID=SHELL=/bin/bash 108. WINDOWID=20975847LC_ALL=es_ES@euroUSER=juanLS_COLORS=no=00:fi=00:di=01;34:ln=01;SSH_AUTH_SOCK=/tmp/ssh-wJzVY570/agent.570SESSION_MANAGER=local/aopcjj:/tmp/.ICE-unix/570USERNAME=juanPATH=/soft/jdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/gamesMAIL=/var/mail/juanPWD=/etc/skelJAVA_HOME=/soft/jdkLANG=es_ES@euroGDMSESSION=GnomeJDK_HOME=/soft/jdkSHLVL=1HOME=/home/juanGNOME_DESKTOP_SESSION_ID=DefaultLOGNAME=juanDISPLAY=:0.0COLORTERM=gnome-terminalXAUTHORITY=/home/juan/.Xauthority_=/usr/bin/envOLDPWD=/etc #!/bin/bash 109. variable=valueecho$variablevar=valueexportvarexportvar=value 110. if[expresion]thencommands 111. fiif[expresion]thencommands1elsecommands2fiif[expresion]thencommandselif[expresion2]thencommandselsecommandsfi casestring1in str1)commands;;str2)commands;;*)commands;;esacforvar1inlistdocommandsdonewhile[expresion] 112. docommandsdoneuntil[expression]docommandsdonefname(){commands}fname2(arg1,arg2...argN){commands} 113. 114. mozilla-i686-pc-linux-gnu-1.4-installer.tar.gz mozilla-source-1.4.tar.gz 115. tar-zxvffile.tar.gz(or.tgzfile) gunzipfile.tar.gz tar-xvffile.tar 116. tar-cvfdir.tardir gzip dir.tar tar-cvzfdir.tgzdir package-version-rev.arq.rpm 117. noarch "architectureis rpm-ql rpm-qirpm-qRrpm-ipackage.rpm --force--nodeps rpm 118. rpm-Upackage.rpm rpm -Vpackage rpm-Va $rpmimportGPG-KEY-FILE$rpm-qa|grep^gpg-pubkey 119. $rpm-qigpg-key-xxxxx-yyyyy$rpmchecksig-v.rpm$rpm-K 120. /etc/apt /etc/apt/sources.listdebhttp://http.us.debian.org/debianstablemaincontribnon-free 121. debsrc http://http.us.debian.org/debian stable main contribnon-freedeb http://security.debian.org stable/updates main contribnon-free apt-getinstallpackage apt-getremovepackage apt-getupdate apt-getupdate apt-getupgrade 122. apt-getdist-upgradeapt-spy unstable apt-getcleanapt-get autoclean#apt-keylist#apt-getinstalldebian-archive-keyring #gpgimportfile.key#gpgexportarmorXXXXXXXX|apt-keyadd- 123. apt-cachesearchname apt-cacheshowpackage apt-cachedependspackagedpkg-Lpackagedpkg-ldpkg-Sfile 124. 125. 126. gcc gdbxxgdbddd 127. 128. 129. Linux 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. 141. possibilities the kernel offers us for adapting our requirements and 142. 143. 144. 145. /usr/src bzip2-dclinux-2.4.0.tar.bz2|tarxvf- 146. 147. 148. makedep makebzImage makemodules 149. makemodules_install cparch/i386/boot/bzImage/boot/vmlinuz-2.4.0 cpSystem.map/boot/System.map-2.4.0 image=/boot/vmlinuz-2.4.0label=2.4.0 150. /sbin/lilo-v 151. 152. #makecleanmrproper#makemenuconfig#makedep#makebzImage#makemodules 153. #makemodules_install#cparch/i386/boot/bzimage/boot/vmlinuz-2.6.x.img #makeinstall #update-initramfs-c-kversion 154. #apt-getinstalllinux-source-2.6.x$tar-xvjf/usr/src/linux-source-2.6.x.tar.bz2 #apt-getinstallbuild-essentialfakeroot#apt-getbuild-deplinux-source-2.6.x$cdlinux-source-2.6.x$fakerootdebian/rulesbinary #apt-getinstalllinux-source-2.6.x$tarxjf/usr/src/linux-source-2.6.x.tar.bz2$cdlinux-source-2.6.x$makemenuconfig 155. $make-kpkgclean$fakerootmake-kpkg--revision=custom.1.0kernel_image$make-kpkgclean$ f akeroot make-kpkg - -initrd - -revision=custom.1.0 k e r n e l _ i ma g e#dpkg-i../linux-image-2.6.x_custom.1.0_i386.deb #m-aprepare#m-aauto-installmodule_name 156. patchxxxx-2.6.21-pversion.bz2cd/usr/src/linux(or/usr/src/linux-2.6.21oranyotherver-sion). 157. bunzip2patch-xxxxx-2.6.21-version.bz2patch-p1