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/)

Spinservers美国圣何塞服务器$111/月流量10TB

Spinservers是Majestic Hosting Solutions,LLC旗下站点,主营美国独立服务器租用和Hybrid Dedicated等,数据中心位于美国德克萨斯州达拉斯和加利福尼亚圣何塞机房。TheServerStore.com,自 1994 年以来,它是一家成熟的企业 IT 设备供应商,专门从事二手服务器和工作站业务,在德克萨斯州拥有 40,000 平方英尺的仓库,库存中始终有...

wordpress外贸企业主题 wordpress经典外贸企业建站主题

WordPress经典外贸企业建站主题,经典配色扁平化简约设计+跨屏自适应移动端设备,特色外贸企业建站功能模块+在线Inquiry询单功能,更有利于Google等英文搜索优化和站点收录。采用标准的HTML5+CSS3语言开发,兼容当下的各种主流浏览器: IE 6+(以及类似360、遨游等基于IE内核的)、Firefox、Google Chrome、Safari、Opera等;同时支持移动终端的常用...

Friendhosting四五折促销,VPS半年付7.5欧元起

Friendhosting发布了针对“系统管理日”(每年7月的最后一个星期五)的优惠活动,针对VPS主机提供55%的优惠(相当于四五折),支持1-6个月付款使用,首付折扣非永久,优惠后最低套餐首半年7.18欧元起。这是一家保加利亚主机商,成立于2009年4月,商家提供VDS和独立服务器租用等,数据中心目前可选美国洛杉矶、保加利亚、乌克兰、荷兰、拉脱维亚、捷克和波兰等8个地区机房。下面以最低套餐为例...

webmin为你推荐
域名空间空间域名是什么意思网站域名注册怎么做网站?怎么注册域名?海外服务器租用国外服务器租用与国内服务器有哪些区别免费国内空间现在国内比较好的免费网站空间有那个啊?网站空间域名网站空间,域名,操作免费网站空间免费个人网站 空间北京网站空间什么样的网站空间好独立ip虚拟主机独立ip空间的虚拟主机一般多少钱1g虚拟主机打算买个1G的虚拟主机,用来做什么好?北京虚拟主机租用北京云主机租用哪家资质正规,价格便宜,服务好?要真云主机不要那种vps的假云主机,机房要在北京的!
域名注册使用godaddy wavecom 空间打开慢 鲜果阅读 贵州电信宽带测速 debian6 申请空间 java空间 警告本网站美国保护 福建天翼加速 165邮箱 河南移动m值兑换 linux使用教程 东莞idc 美国盐湖城 工信部网站备案查询 学生服务器 网页加速 xuni 美国迈阿密 更多