Explorerwebmin
webmin 时间:2021-01-11 阅读:(
)
CopyrightIBMCorporation2012TrademarksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage1of13LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsCanyoupoint-and-clickonLinuxAbsolutely!
TracyBostJune26,2012WorkingwithLinuxdoesn'tmeanyourworkisrestrictedtocommand-linetools.
True,mostexperiencedLinuxadministratorsusecommand-linetoolsforconvenienceandmoreefficientadministration.
However,theGNOMEprojectprovidessomeexcellenttoolsformanagingaLinuxserverusingagraphicaluserinterface(GUI).
UsingyourMicrosoftWindowsbackgroundexperience,youmightfindthatthesetoolsmakethetransitionlessdramatic.
ViewmorecontentinthisseriesOverviewOtherarticlesinthisseriesViewmorearticlesintheLinuxforWindowsystemsadministratorsseries.
Inthisarticle,learnabouttheseconceptswithLinuxonthedesktop:WorkingwithuserandgroupaccountsManagingfilesandfoldersWorkingwithservicesMonitoringthesystemReviewinglogfilesPrerequisitesTogetthemostfromthearticlesinthisseries,youshouldhaveknowledgeofmanaginguserandgroupaccounts,files,folders,andreviewinglogfilesinaWindowsserverenvironment.
AbasicunderstandingoflogginginandnavigatingaLinuxdesktopenvironmentsuchasLXDE,GNOME,orKDEisexpected.
Additionally,it'sbeneficialtohaveaworkingLinuxcomputertoexploretheconceptsandexamplesinthearticle.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage2of13WorkingwithuserandgroupaccountsWhenyouconsiderservermanagementfromadesktopenvironment,auserandgroupmanagementtoolisamusthave.
ForthelatestreleaseofGNOME3.
2,thattoolislocatedintheGNOMEControlCenter.
TheGNOMEControlCenterisacentrallocationtomanagevariousaspectsofyourLinuxcomputer—notunliketheWindowsControlPanel.
StillwidelyusedtodayistheGNOMESystemTools(GST).
GSTprovidesusefultoolsforLinuxadministrators,includingatooltomanageuserandgroupaccounts.
SomepopularLinuxdistributionsprovidethesystem-users-configtoolasthedefaultusermanager.
So,nomatteryourLinuxdistribution,youshouldhaveaccesstomanagelocaluseraccountsoutofthebox,usuallyundertheusersandgroupslabel.
LinuxdistributionforthisarticleThedistributionusedforthisarticleisUbuntu10.
0.
4withthedefaultGNOMEdesktopandtheme.
DependinguponyourLinuxdistribution,thescreensanddefaultlocationsofthevarioustoolsdescribedinthisarticlecandifferslightly.
Checkyourdistribution'sdocumentationformorespecifics.
Linuxhasnoregistry.
SotheGUItoolsyouusearejustfront-endtoolstowritedatatoafileonthefilesystem.
Forthetaskofmanagingusersandgroups,youmanagetheunderlying/etc/passwdand/etc/groupfileswiththosetools.
The/etc/passwdfilemaintainsuseraccountinformation,whilethe/etc/groupfilestoresgroupaccountinformation.
Userpasswordsareencryptedinthe/etc/shadowfile,whilegrouppasswordsarestoredinthe/etc/gshadowfile.
TheGNOMEuserandgroupmanagementtoolprovidesastraightforwardinterfaceforaccountmanagement,showninFigure1.
Figure1.
CreatingauserProvidedyouhavetheprivileges,youcancreateandedituserandgroupaccounts.
Inaddition,youcanmanagedetailedaccountsettingssuchaslocationofthehomedirectory,userID,defaultibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage3of13loginshell,passwordresets,andgroupmembershipassignment.
Standarduserstypicallyhaveaccesstothetoolforpasswordmanagement.
Tocreateanewgroup,clickontheGroupstabandenterthegroupname.
AsshowninFigure2,afteryoucreateagroupyoucanthenmanagethemembershipsimplybyselectingorclearingthecheckboxesnexttousers'names.
Figure2.
CreatingagroupManagingfilesandfoldersInWindows,WindowsExploreristhetoolofchoiceformanytonavigatethefilesystem.
TheGNOMEprojecthasNautilus.
Nautilusisafilemanagerwithastrongdevelopmentteamandwideuserbase.
Ithasbeenindevelopmentsince2001.
IfyouusetheGNOMEdesktop,chancesareNautilusisalreadyinstalled.
IfyouarenotusingGNOME,youcanstilldownloadandinstallNautilus,socheckyourdistribution'sdocumentation.
Oneoftheprimarytasksyouperformwithafilemanagerisnavigatingthefilesystem.
WithNautilus,youcanevenswitchittobrowsermode,whichgivesyoumoreofaWindowsExplorerfeel.
Remember,inLinuxallfoldersaremountedassubfolderstothemainroot(/)directory.
SoifyouhaveremotedrivesmountedtoyourLinuxserver,suchasfromaWindowsoranotherLinuxcomputer,youcannavigatethefilesystemfromtheroot(/)directoryjustasyouwouldadirectorylocatedonthelocalfilesystem,asshowninFigure3.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage4of13Figure3.
NavigatingthefilesystemNavigatinginNautilusissimilartonavigatinginWindowsExplorer.
Clickonafoldertodrilldownintothesubfolders.
Right-clickonanyfolderorfiletoperformtheusualtasksyou'vecometoexpectwithafilemanager,suchascopy,rename,delete,open,compress,andmanagethepermissions.
Forviewingpreferences,youcansetoptionssuchasdetailedview,listedview,byname,andsoon,asshowninFigure4.
ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage5of13Figure4.
ManagingfilepreferencesRead,write,andexecuteWhenyouright-clicktomanagethepermissionsofafolderorfile,youcanvieworchangethepermissions(ifyouraccounthasaccesstodoso).
InNautilus,ifafileorfolderisnotwithinthesecuritypermissionsforyouruseraccount,alockicondisplaysnexttoit.
WithLinux,eachfolderhasthreesetsofpermissions:userowner(u),groupowner(g),andother(o).
Withineachset,youcanassignthebasicpermissionsofread,write,orexecute.
Remembertoassignexecutepermissiontoshellscriptsoranyotherfilesusersneedtoexecute.
UnlikeWindows,inLinuxyouneedtoexplicitlygrantthefileexecutepermissiontothesetofusersthatneedtoperformthataction.
SeeFigure5foranexample.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage6of13Figure5.
SettingthepermissionsonafileTable1summarizesthebasicpermissionoptionsforatypicalLinuxfile.
IincludeoctalrepresentationbecausemanyLinux-relatedinstallationandsoftwaredocumentsreferencethepermissionsinoctalnotation.
Table1.
LinuxpermissionsPermissionOctalrepresentationReadonly4Writeonly2Executeonly1Readandwrite6Readandexecute5Fullpermission(read,write,andexecute)7WhenyoucreateanewfileusingNautilus,itusestheunderlyingLinuxconfigurationforumask,justlikewhenyoucreateafilefromthecommandline.
Theumaskdeterminesthedefaultpermissions.
MostLinuxdistributionsdefaulttoumask022.
Filesworkfromthe666octal.
Youjustneedtodosomesubtractiontounderstandhowumaskworks.
Ifyoucreateanewfileandtheumaskis022,thefile'sdefaultpermissionsare666-022,or644.
That'stosaytheuserownerhasreadandwritepermission,whilethegroupownerandotherhaveread-onlypermission.
ThesameconceptapplieswhenyoucreatefoldersusingNautilus.
Foldersworkfromthe777octal.
Withthesameumaskof022,ifyoucreateanewfolderitsdefaultpermissionsare777-022,ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage7of13or755.
Thismeanstheuserownerhasfullpermission,andthegroupownerandotherhavereadandexecutepermission.
SharingAsinWindowsExplorer,youcaneasilyshareafolderusingNautilus.
Todoso,right-clickonthefolderyouwanttoshare,andselecttheSharingOptionsmenuitem.
Next,selecttheSharethisfoldercheckbox,asshowninFigure6.
Figure6.
SharingafolderAdditionally,youcanselecttheAllowotherstocreateanddeletefilesinthisfoldercheckboxifyouwantotherpeopletobeabletosavedocumentsinthefolder.
Ifyoudo,Nautiluswillaskforconfirmationfromyoutochangethefolderpermissions.
Ifyouhaveusersfromamixedenvironment,youcanselecttheGuestaccesscheckboxtoallowthoseusersaccesstothefolderwithouthavingalocalSambaaccountforauthentication.
UsethisoptionwithcarebecauseitcouldintroduceunnecessarysecurityvulnerabilitiestoyourLinuxserver.
IfyouwanttosharethefolderswithWindowsusersandauthenticatethem,youmustfirstsetupandconfigureSambaonyourLinuxserver.
WorkingwithservicesWiththeGSTinstalled,youcanmanageyourserverservicesandvariousotherdaemons(aLinuxwordforservices)withinthedesktopenvironment,similartousingWindowsservices.
ThistoolisusuallylabeledasStartupPreferences,andyoucanlaunchitfromtheSystemmenubyclickingPreferences.
Todate,theGSTdoesn'tcompletelymanageservicessuchasloginas,reload,restart,andsoon.
ItcangiveyouabasisforunderstandingwhatservicesareinstalledonyourLinuxcomputerandwhetheryouwanttorunparticularservicesuponsystemboot.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage8of13ThegreenandrediconsshownfortheservicesinFigure7indicatewhethertheservicesareenabledordisabledtorunuponsystemboot.
ThesearesimilartotheWindowsservicesautomaticandmanualoptions.
Aseparateiconrepresentswhethertheservicesarerunning.
Figure7.
ViewingarunningsendmailserviceinGSTMonitoringthesystemAlthoughnotidenticaltotheWindowsTaskManager,GNOMESystemMonitorprovidessimilarfunctionality.
Ifyouwantahigh-levelviewofyourLinuxcomputer'sresourceusage,GNOMESystemMonitorcanprovideaquicksnapshotofthesystem.
Thefourmaintabsformonitoringare:SystemProcessesResourcesFileSystemsTheSystemtabprovidesgeneraloperatingsystemandhardwareinformation(memoryandprocessor),muchliketheSystemdialoginWindowsthatdisplayswhenyouclickPropertiesfromtheWindowManagerdesktopicon.
TheProcessestab(Figure8),displaysallrunningprocesses(andtherearemany!
).
Youcansorttheprocessesbyname,centralprocessingunit(CPU)usage,andsoon.
ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage9of13Figure8.
KillingaprocessTheResourcestab(Figure9)issimilartotheWindowsTaskManagerPerformancetab.
ItprovideshistoricalgraphingofCPU,memory/swap,andnetworkbandwidthusage.
Figure9.
MonitoringsystemresourcesdeveloperWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage10of13TheFileSystemstabshowsallmountedfilesystemsandgeneralinformationsuchasmountpointsforvariouspartitions,freespace,totalspace,andsoon.
ReviewinglogfilesTheGNOMESystemLogVieweriscomparabletotheEventViewerinWindows.
Underthehood,Linuxtypicallyusesthesyslog(orrsyslog)mechanismtogeneratelogfilesforvariousapplications,serverservices,andsystemmessages.
Thesefilesusuallyresideinthe/var/logdirectoryontheLinuxfilesystem.
SowhenyoufirstopentheGNOMESystemLogViewer,yourdistributionmightprovideawayforthetooltoautomaticallyreadthevariouslogsinthatdirectory.
Ifnot,orifyouchoosetoaddadditionallogfilesintheviewer,simplyclickFile>Add,andnavigatetothedesiredlogfile.
Table2listsanddescribessomeofthecommonLinuxlogsyoumightwanttomonitorwiththelogviewer.
Table2.
LinuxlogfilesLogfileDescriptionboot.
logHardwaredetection,mounting,andothersystemmessagesuponstartupofthemachinesecureSecurityrelatedmessagesmessagesKernelandothergeneralsystemmessageinformationhttpdWebserverlogsdirectorycontainingaccessanderrorlogsinseparatefilescupsDirectorycontaininglogmessagesrelatedtoprintingcronLogmessagesrelatedtoscheduledjobsXorg.
0.
logLogmessagesrelatedtotheX-Windowserverauth.
logAuthenticationsuccessandfailuressambaDirectoryofaccessanderrorlogsrelatingtotheSambaserverTable2isnotanexhaustivelistofthelogfilesyoucanreadwiththelogviewer.
Evenifyouhavecommercialsoftwareinstalledonyourserver,youcanusethelogviewertoviewthoselogsfilesaslongtheyareintheproperlogformat.
Exploreyour/var/logdirectoryandaddthelogfilesthatareappropriateforyourneeds.
OnethingabouttheGNOMESystemLogViewerthatisconsiderablydifferentfromtheWindowsEventVieweristhatmanyofthelogviewsaredependentuponthesettingsfortheunderlyingsystemconfiguration.
Forexample,thelogsfortheApachewebservercanbeconfiguredtorotatedaily.
Inthatcase,thehttpdaccess.
logonlydisplaysthecurrentday'slogmessages,whiletheolderlogfilesaremovedtoarchives.
Youcanstillconfigurethelogviewertoviewthearchivelogsbyaddingthoseaswell.
Whenyouviewyourlogs,youcaneasilyscrollthroughandreadthevariousmessages.
Sometimesthevolumeofmessagescanmakefindingtheinterestinglogs,suchaserrorsorfatalmessages,muchliketheproverbialsearchfortheneedleinthehaystack.
TheGNOMEibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage11of13SystemLogViewerprovidesafilterfeaturethatallowsyoutodefinevariousfiltersusingregularexpressionstohighlightorshowonlyspecifiedlogmessages.
Forexample,whiletroubleshootinganemailissueforaparticularuser,youmightwanttofilteranddisplayonlymessagesthatcontainthatuser'semailaddress,asshowninFigure10.
Figure10.
DisplayingonlymessagesbaseduponafilterAnmoretypicalexamplefordailyuseistocreatefilterstohighlighterrormessagesinredwhileusinganothercolor,suchasorange,forwarningmessages.
Figure11demonstratesafilterconfigurationthatdisplaysonlyrootloginattempts.
Figure11.
HighlightinglogmessagesbaseduponafilterWithregularexpressions,youcanreallyuseyourimaginationastheneedarisestohighlightordisplayonlythemessagesyouneed.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage12of13ConclusionOtherarticlesinthisseriesViewmorearticlesintheLinuxforWindowsystemsadministratorsseries.
AlthoughLinuxisknownforitsabundantcommand-linetools,youdon'thavetouseitthatway.
Overthelastseveralyears,successfulprojectssuchasGNOMEhavemadetremendousstridesinprovidinggoodqualitydesktoptoolsforLinuxsystemadministration.
IfyouaremovingtoLinuxfromaWindowsenvironment,thesetoolscanprovideamorecomfortabletransitionwhileallowingyoutoeffectivelymanageyourLinuxservers.
ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage13of13RelatedtopicsReadWindows-to-Linuxroadmap:Part3.
IntroductiontoWebmin(ChrisWalden,developerWorks,November2003)tolearnmoreaboutbrowser-basedadministrativetoolsforLinux.
TolearnmoreaboutLinuxlogging,checkoutWindows-to-Linuxroadmap:Part5.
Linuxlogging(ChrisWalden,developerWorks,November2003).
LearnmoreaboutthegeneralfeaturesoftheGSTandperformavarietyofadministrativechores.
ExploretheGNOMESystemLogViewer.
InthedeveloperWorksLinuxzone,findhundredsofhow-toarticlesandtutorials,aswellasdownloads,discussionforums,andawealthofotherresourcesforLinuxdevelopersandadministrators.
FollowdeveloperWorksonTwitter.
CopyrightIBMCorporation2012(www.
ibm.
com/legal/copytrade.
shtml)Trademarks(www.
ibm.
com/developerworks/ibm/trademarks/)
触碰云怎么样?触碰云是一家成立于2019年的商家。触碰云主营香港/美国 VPS服务器、独立服务器以及免备案CDN。采用的是kvm虚拟构架,硬盘Raid10,Cn2线路,去程电信CN2、移动联通直连,回程三网CN2。最低1核1G带宽1M仅20.8元/月,不过这里推荐香港4核4G15M,香港cn2 gia线路云服务器,仅115.2元/月起,性价比还是不错的。点击进入:触碰云官方网站地址触碰云优惠码:优...
IntoVPS是成立于2004年的Hosterion SRL旗下于2009年推出的无管理型VPS主机品牌,商家提供基于OpenStack构建的VPS产品,支持小时计费是他的一大特色,VPS可选数据中心包括美国弗里蒙特、达拉斯、英国伦敦、荷兰和罗马尼亚等6个地区机房。商家VPS主机基于KVM架构,最低每小时0.0075美元起($5/月)。下面列出几款VPS主机配置信息。CPU:1core内存:2GB...
极光KVM创立于2018年,主要经营美国洛杉矶CN2机房、CeRaNetworks机房、中国香港CeraNetworks机房、香港CMI机房等产品。其中,洛杉矶提供CN2 GIA、CN2 GT以及常规BGP直连线路接入。从名字也可以看到,VPS产品全部是基于KVM架构的。极光KVM也有明确的更换IP政策,下单时选择“IP保险计划”多支付10块钱,可以在服务周期内免费更换一次IP,当然也可以不选择,...
webmin为你推荐
域名备案查询如何查询自己域名是否备案,怎么查询备案号?网络服务器租用现在网站服务器租赁一年多少钱?asp主机空间asp空间是什么网站服务器租用网站的服务器买哪里的最好,还有租用一年大概多少钱???急!!!美国vps主机听说美国vps主机性能不错,没用过,想听听各位的意见~台湾vps台湾服务器租用托管那里好免备案虚拟空间香港免备案虚拟主机空间怎么样虚拟主机控制面板虚拟主机控制面板是什么?下载虚拟主机虚拟机软件到那里下载。怎么安装windows虚拟主机win10用什么虚拟机好
新网域名 个人域名注册 双线主机租用 免费域名解析 godaddy续费优惠码 gomezpeer 万网优惠券 cdn加速原理 百度云1t 江苏双线服务器 四川电信商城 深圳主机托管 免费赚q币 网络安装 报警主机 国内免备案cdn web服务器安全配置 七夕促销海报 彩虹云点播破解版 贵阳摇号申请网站 更多