Linux Servera Ieviešana
Total Page:16
File Type:pdf, Size:1020Kb
IEGULDĪJUMS TAVĀ NĀKOTNĒ Leo Trukšā ns Kaspars Krampis Linux servera ieviešana Materiā ls izstr ā d ā ts ESF Darbī bas programmas 2007. - 2013.gadam „Cilv ē kresursi un nodarbin ā t ī ba” prioritā tes 1.2. „Izgl ī t ī ba un prasmes” pasā kuma 1.2.1.„Profesion ā l ā s izgl ī t ī bas un visp ā r ē jo prasmju att ī st ī ba” aktivitā tes 1.2.1.2. „Visp ā r ē jo zin ā šanu un prasmju uzlabošana” apakšaktivitā tes 1.2.1.1.2. „Profesion ā laj ā izgl ī t ī b ā iesaist ī to pedagogu kompetences paaugstinā šana” Latvijas Universitā tes realiz ē t ā projekta „Profesionā laj ā izgl ī t ī b ā iesaist ī to visp ā rizgl ī tojošo m ā c ī bu priekšmetu pedagogu kompetences paaugstinā šana” (Vienošanā s Nr.2009/0274/1DP/1.2.1.1.2/09/IPIA/VIAA/003, LU reģ istr ā cijas Nr.ESS2009/88) īstenošanai. Rī ga, 2010. 1 Saturs Linux servera ieviešana....................................................................................................................... 6 Priekšvā rds.......................................................................................................................................6 Brī v ā s programmat ū ras ideja...........................................................................................................7 Kas ir Linux..................................................................................................................................... 7 1. Ubuntu Linux uzstā d ī šana................................................................................................................ 8 Xubuntu Linux vide....................................................................................................................... 13 XFCE izvē lne............................................................................................................................ 13 Lietotā ji un grupas ....................................................................................................................15 Sistē mas p ā rraugs .....................................................................................................................16 Darbs ar pakotnē m.....................................................................................................................16 2. Linux pā rvald ī bas r ī ks Webmin......................................................................................................19 3. Domē nu v ā rdu sist ē mas (DNS) serveris.........................................................................................23 DNS servera BIND uzstā d ī šana.....................................................................................................23 BIND uzskaņ ošana........................................................................................................................ 24 RNDC iestatī šana...........................................................................................................................26 Jaunas DNS zonas izveidošana......................................................................................................26 DNS zonas pā rbaude......................................................................................................................30 4. Tī mek ļ a serveris............................................................................................................................. 33 LAMP uzstā d ī šana.........................................................................................................................33 Vienkā ršas m ā jaslapas izveide.......................................................................................................34 Apache uzskaņ ošana...................................................................................................................... 37 Virtuā l ā mitin ā šana jeb vair ā ku m ā jaslapu izvietošana uz viena servera...................................... 38 PHP, MySQL un satura vadī bas sist ē mas...................................................................................... 43 5. Samba serveris................................................................................................................................45 Samba servera uzstā d ī šana.............................................................................................................45 Samba servera uzskaņ ošana...........................................................................................................46 Samba servera un sistē mas lietot ā ju sinhroniz ē šana......................................................................47 Lietotā ju un grupu izveidošana......................................................................................................48 Koplietošanas mapju veidošana..................................................................................................... 51 Samba servera iestatī jumi.............................................................................................................. 54 Konfigurā cijas faila labošana.........................................................................................................56 root konta aktivizē šana.................................................................................................................. 58 Windows darbstacijas pievienošana domē nam.............................................................................. 59 Netlogon skriptu izveidošana.........................................................................................................60 6. Izdošanas ziņ as............................................................................................................................... 62 2 Attē li Attē ls 1: Valodas izv ē le........................................................................................................................ 8 Attē ls 2: Ubuntu Linux "dz ī v ā diska" izv ē lne...................................................................................... 9 Attē ls 3: Ubuntu Linux uzst ā d ī šanas vednis, 1.solis.............................................................................9 Attē ls 4: Ubuntu Linux uzst ā d ī šanas vednis, lietot ā ja izveidošana.....................................................11 Attē ls 5: Ubuntu Linux uzst ā d ī šanas progress....................................................................................12 Attē ls 6: P ā rstart ē t datoru................................................................................................................... 12 Attē ls 7: XFCE vides panelis..............................................................................................................13 Attē ls 8: XFCE vides izv ē lne Lietotnes..............................................................................................13 Attē ls 9: XFCE vides uzst ā d ī jumi.......................................................................................................14 Attē ls 10: XFCE vides izv ē lne Sist ē ma.............................................................................................. 14 Attē ls 11: Lietot ā ju iestat ī jumi............................................................................................................15 Attē ls 12: Sist ē mas p ā rraugs...............................................................................................................16 Attē ls 13: Synaptic pakot ņ u p ā rvaldnieks...........................................................................................17 Attē ls 14: Ubuntu programmat ū ras centrs.......................................................................................... 18 Attē ls 15: Zi ņ ojums, ka pieejami programmat ū ras atjaunin ā jumi......................................................18 Attē ls 16: Webmin m ā jaslapa www.webmin.com...............................................................................19 Attē ls 17: Mozilla Firefox - lejupiel ā des............................................................................................. 19 Attē ls 18: Pakot ņ u instalators - Webmin uzst ā d ī šana..........................................................................19 Attē ls 19: Mozilla Firefox - neuzticams savienojums.........................................................................20 Attē ls 20: Mozilla Firefox - pievienot droš ī bas iz ņē mumu................................................................ 20 Attē ls 21: Webmin piesl ē gšan ā s logs..................................................................................................21 Attē ls 22: Webmin - pamatinform ā cija par serveri.............................................................................21 Attē ls 23: Synaptic - atz ī m ē t pakotnes p ē c uzdevuma........................................................................24 Attē ls 24: Webmin - BIND servera uzska ņ ošana............................................................................... 25 Attē ls 25: RNDC iestat ī šana...............................................................................................................26 Attē ls 26: Webmin - Esoš ā s DNS zonas.............................................................................................26 Attē ls 27: Webmin - DNS zonas veidošana........................................................................................ 28 Attē ls 28: Webmin - DNS zonas labošana..........................................................................................29 Attē ls 29: Webmin - apakšdom ē na viens.piemeram.lv pievienošana.................................................29