Linux palvelimena – Tehtävä 1

Linux perusteet kurssin koe

Tehtäväksi valitsin seuraava koe:

http://terokarvinen.com/2012/linux-koe-tyoasemat-ja-tietoverkot-25

Me Karttakatu Oy:ssä teemme karttoihin liittyviä weppisovelluksia. Olemme muutaman hengen yritys.

Asenna työasema, jolla tavallisimmat toimistotyöt onnistuvat (weppisurffailu, tekstinkäsittely). (Asentuessa voit käydä kommentoimassa kavereiden blogeja).

Työntekijämme ovat Einari Vähäkäähkä, Pekka Winha, Åke Andersson ja Leila Laila. He haluavat kehittää PHP-kotisivuja etäkäyttöyhteydellä. Asenna tarvittavat palvelut ja tee esimerkkisivut.

Asenna kaikkien käyttäjien käyttöön skripti (shell script) nimeltä “mystatus”, joka näyttää vapaan levytilan (df -h) ja koneen ip-osoitteen.

Tähtäätkö huipputulokseen? Pekka Winha haluaa käyttää MySQL tietokantaa. Asenna hänelle MySQL-tietokanta ja siihen PhpMyAdmin-weppiliittymä.

 

Ratkaisu:

Olen asentanut labrassa 5004 koneseen Xubuntu 14.04 Live USB-tikulta. Asennus sujui hyvin.

sitten päivitetään pakettihallinta komennolla:

sudo apt-get update

pitää asentaa ssh-server ja luoda käyttäjät, seurava komento on:

sudo apt-get install openssh-server

Terminal näytti kuinka paljon tilaa ssh-server vie ja kysyi vahvistusta.

Hetken päästä asennus on valmis.

Seuraavaksi olen luonnut käyttäjä pekka komennolla:

sudo adduser pekka

asennus kysyi pekalle salasanan,

Full name: Pekka Winha,

muut tiedot jätin tyhjänä.

Samoin tein muille käyttäjille: Einari Vähäkäähkä, Åke Andersson ja Leila Laila

sudo adduser einari

sudo adduser ake

sudo adduser leila

tarkistin:

ssh ake@localhost

annoin salasanan ja rudulle imestyi

ake@hp:¨~$

tämä tarkoittaa että ake on kirjautunut ssh palvelimelle koneseen hp.

Konennolla exit olen sulkenut yhteyden.

Seuravaaksi pitää asentaa Apache, MySQL, PHP

sudo apt-get install apache2

Asennuksen jälkeen tarkistin web selaimessa:

http://localhost

Tuli Apache2 Ubuntu Default Page -sivu. Apache toimii.

Avasin käyttäjille kotisivuhakemiston sallituksi

sudo a2enmod userdir

Käynistin apache uudelleen.

service apache2 restart                       FAIL

unohdin laittaa sudo eteen.

sudo service apache2 restart              OK

Seuravaksi asensin PHP

sudo apt-get install php5

Muokkasin “configuration” tiedostoa

/etc/apache2/mods-enabled/php5.conf

Tässä julkaisen Puppet Manifestit ja Moduulit: https://github.com/xelsinki/puppet

<p><a href="http://gomummi.com/index.php/2016/11/29/tehtava-1/">Tehtävä 1</a></p>
<p><a href="http://gomummi.com/index.php/2016/11/29/tehtava-2/">Tehtävä 2</a></p>
<p><a href="http://gomummi.com/index.php/2016/11/29/tehtava-3/">Tehtävä 3</a></p>
<p><a href="http://gomummi.com/index.php/2016/11/29/tehtava-4/">Tehtävä 4</a></p>
<p><a href="http://gomummi.com/index.php/2016/11/29/tehtava-5/">Tehtävä 5</a></p>
<p><a href="http://gomummi.com/index.php/2016/12/13/tehtava-6-oma-puppet-moduli/">Tehtävä 6 – Puppet module</a></p>
<p> </p>
</div>
” data-medium-file=”” data-large-file=”” class=”alignnone size-full wp-image-80″ src=”https://pantsesnyi.files.wordpress.com/2016/04/screenshot-30-08-2016-11-44-40.png?w=720″ sizes=”(max-width: 645px) 100vw, 645px” srcset=”https://pantsesnyi.files.wordpress.com/2016/04/screenshot-30-08-2016-11-44-40.png 645w, https://pantsesnyi.files.wordpress.com/2016/04/screenshot-30-08-2016-11-44-40.png?w=150 150w, https://pantsesnyi.files.wordpress.com/2016/04/screenshot-30-08-2016-11-44-40.png?w=300 300w” alt=”Screenshot – 30.08.2016 – 11.44.40″ data-recalc-dims=”1″ />

Käynistinapache uudelleen

sudo service apache2 restart

Seuraavaksi:

sudo apt-get install mysql-server

sudo apt-get install phpmyadmin

Valitsin salasana phpmyadmin:ille

Kirjauduin mysql:iin

mysql -u root -p

rudulle tuli

mysql>

tietokanta toimii, lähdin pois komennolla

quit

 

Lähteet:

VIHONENL: https://vihonenl.wordpress.com/linux-palvelimena/

 

canada viagra ciprofloxacin eye drops ciprofloxacin used for what does ciprofloxacin 500mg treat viagra generic viagra bestellen zovirax pills zovirax cream how long for lexapro to work daily cialis how to wean off lexapro lexapro withdrawal viagra 100 mg 9 levitra at walmart lexapro 10mg viagra ohne rezept auf rechnung levitra prices levitra dosage best price viagra azithromycin and alcohol what is azithromycin used for first few days on lexapro what is azithromycin for azithromycin pregnancy category viagra side effects ciprofloxacin hcl 500 mg side effects liquid cialis generic lexapro finasteride 5mg tab what is tamoxifen azithromycin 500 ciprofloxacin drug class cipro dangers viagra cost lexapro dosing side effects of acyclovir acyclovir cream viagra on line cialis on line lexapro side effects men azithromycin 250mg tablets 6 pack cost of cialis ciprofloxacin class viamedic cialis tamoxifen and foods to avoid cialis generic tadalafil buying viagra finasteride 1mg what does viagra do lexapro dosage azithromycin three times a week how to use viagra finasteride and enlarged prostate side effects of finasteride viagra for sale cialis 5mg daily azithromycin dosage viagra tablets azithromycin 500 erfahrungen what is ciprofloxacin used for ciprofloxacin levitra 10 mg prezzo cheap cialis cialis dosage recommendations cialis coupons what is acyclovir used for viagra tablet viagra activate women viagra tamoxifen lawsuits viagra vs cialis generic for lexapro side effects of finasteride 5mg cialis for sale tamoxifen bijwerkingen viagra samples escitalopram 10 mg weaning off lexapro acyclovir 800 mg 5 times a day azithromycin 250 mg acyclovir for cold sores levitra female viagra viagra price canadian viagra viagra for women generic viagra 100mg cialis cialis 30 day trial coupon ciprofloxacin 500mg tablets lexapro and wellbutrin combination therapy erectile dysfunction cialis where to buy viagra escitalopram effets secondaires pfizer viagra lexapro side effects escitalopram nebenwirkungen acyclovir dosing is ciprofloxacin a penicillin levitra coupons tamoxifen langzeitfolgen cialis for men lexapro side effects in men lexapro and weight gain in women generic cialis tadalafil cialis cost viagra vs cialis vs levitra acyclovir ointment 5 lexapro 20mg zithromax antibiotic cialis online acyclovir 800 mg for shingles cialis 20mg cipro 500 viagra costs revatio vs viagra cialis coupons printable escitalopram 10 mg para que sirve cialis for daily use azithromycin coverage viagra 50mg withdrawal from lexapro cialis professional free cialis viagra canada viagra natural side effects of ciprofloxacin finasteride reviews viagra wiki cialis from canada azithromycin pregnancy over the counter viagra side effects of azithromycin 250 mg lexapro and weight gain cialis medication cialis discount tamoxifen and weight gain side effects of tamoxifen zovirax for cold sores viagra effects buy cialis viagra en ligne livraison 24h acyclovir dosage for cold sores cialis price generic levitra vardenafil 20mg acyclovir dosage viagra alternative cialis without a doctor’s prescription lexapro bula what is ciprofloxacin lexapro para que sirve azithromycin class finasteride hair loss acyclovir 800 mg ciprofloxacin nebenwirkungen viagra levitra 20mg discount cialis what is cialis ciprofloxacin dose acyclovir 400mg cipro side effects cipro dosage sophia viagra azithromycin side effects acyclovir for shingles levitra 20 mg precio farmacia azithromycin without a doctor’s prescription cialis generic pfizer viagra coupons from pfizer lexapro manufacturer website ciprofloxacin 250mg side effects lexapro is azithromycin penicillin how to take cialis lexapro vs zoloft viagra kaufen viagra receptfritt levitra generic cialis daily lexapro overdose ciprofloxacin coverage viagra prices viagra online what is lexapro for ciprofloxacin 500 mg for urinary tract infection what is acyclovir for acyclovir 400 mg wellbutrin and lexapro cost of viagra cialis voucher viagra pill finasteride effets secondaires what is cipro used for ciprofloxacin dosage cialis patent expiration date extended finasteride buy levitra cialis copay card side effects of azithromycin what infections does ciprofloxacin treat zovirax dosage levitra coupon cialis vs viagra azithromycin for pneumonia azithromycin pediatric dosing viagra generico cialis 5mg side effects of lexapro discount viagra ciprofloxacin side effects after age 60 tamoxifen interaction cialis pills for sale cialis for women cialis pharmacy prices levitra 20mg cost per pill finasteride efectos secundarios cialis alternative azithromycin levitra rezeptfrei deutschland azithromycin 250 mg treatment herbal viagra finasteride permanent side effects sex viagra for women price cialis ciprofloxacin drops viagra sex tamoxifen citrate azithromycin vs erythromycin levitra without a doctor prescription cipro and tendonitis lexapro medication azithromycin cost zithromax side effects of cialis buy viagra lexapro coupons azithromycin uses what does finasteride do stopping lexapro levitra vs viagra cyalis generic cialis what is cipro usually prescribed for wholesale cialis viagra dosage levitra 20 mg finasteride side effects viagra pills what is azithromycin viagra from canada cialis website lexapro and weight loss lexapro benefits for women celexa vs lexapro ciprofloxacin 500mg antibiotics cialis dosage cialis coupons from manufacturer finasteride side effects in men cialis coupons 2017 azithromycin 250mg levitra 20 mg von bayer viagra ohne rezept aus deutschland levitra online lexapro weight gain does lexapro cause weight gain tamoxifen side effects in women cheap viagra cipro antibiotics what is escitalopram lexapro 5mg azithromycin for strep throat ciprofloxacin 250 mg viagra 100mg tablets retail price finasteride 5mg side effects mayo clinic post finasteride syndrome cealis cialis 10 mg cialis side effects is tamoxifen chemotherapy azithromycine 250 mg finasteride 5mg side effects ciprofloxacin hydrochloride ophthalmic viagra for men lowest cialis prices ciprofloxacin hydrochloride escitalopram 10mg buy generic levitra ciprofloxacin 500 mg ciprofloxacin hcl 500 mg tab cialis patent expiration 2017 cialis or viagra acyclovir vs valacyclovir cipro side effects in elderly ciprofloxacin uses what does azithromycin treat side effects of lexapro in women generic cialis at walmart tamoxifen side effects in women over 55 viagra coupon cialis coupon print what is viagra cipro antibiotic finasteride medication canadian cialis what is finasteride lexapro reviews tamoxifen cost azithromycin eye drops cialis samples levitra prezzo in farmacia generic for cialis ciprofloxacin 500mg antibiotics side effects how much does cialis cost levitra 20 mg cost walmart ciprofloxacin ophthalmic solution lexapro vs celexa finasteride dosage cilias cialis reviews lexapro 10 mg viagra 100 azithromycin 500 mg nolvadex ciprofloxacin side effects in women ciprofloxacin for dogs finasteride results ciprofloxacin hcl 500 mg azithromycine eg 500 mg bijsluiter online cialis vardenafil vs viagra cialis 20mg directions cialis savings card viagra soft acyclovir cialis free trial viagra vs cialis vs levitra escitalopram side effects when will cialis go generic escitalopram escitalopram 20 mg lexapro withdrawal symptoms cialis coupon 20 mg viagra 100mg utilisation viagra viagra without a doctor prescription what is lexapro used for azithromycin liquid equipe argentine viagra finasteride for hair loss what works better than viagra ciprofloxacin 500mg viagra medicine viagra for sale uk cialis effects zithromax z-pak what is finasteride used for acyclovir 200mg natural viagra ciprofloxacin dosierung buy generic viagra is lexapro a controlled substance viagra alternatives viagra substitute side effects of lexapro 10 mg viagra tesco cialis trial cipro uses acyclovir side effects acyclovir medication cipro for uti 200 cialis coupon thuoc azithromycin propecia side effects azithromycin z pak azithromycin medscape cialis coupon levitra vs viagra vardenafil 20mg cialis cheap cheap levitra order viagra cipro drug class cialis 30 day sample cialis canadian pharmacy cialis generic availability levitra vs viagra for hardness cialis pricing cialis testimonials ciprofloxacin 500 cialas viagra pillen kruidvat tamoxifen nebenwirkungen viagra wikipedia levitra erfahrungen ciprofloxacin hcl lexapro generic name finasteride 5 mg tab azithromycin for uti cialis pills cialis samples overnight tamoxifen side effects cialis for bph viagra cialis what is cipro buy cialis online zovirax azithromycin 500mg viagra single packs is azithromycin cialis 5 mg zovirax ointment escitalopram oxalate cialis sample finasteride for women lexapro side effects in women how does cialis work how to wean off lexapro without withdrawals acyclovir dose acyclovir ointment cialis 20 mg viagra vs cialis generic viagra lexapro azithromycin tablet cipro finasteride 5mg effects of stopping finasteride viagra uk lexapro for anxiety finasteride vs dutasteride how does acyclovir work tamoxifen therapy ciprofloxacin bnf azithromycin drug class what is tamoxifen used for zoloft vs lexapro what is acyclovir ciprofloxacin spc viagra on line no prec effects of stopping lexapro suddenly what is lexapro how long for azithromycin to take effect common side effects of ciprofloxacin 500 mg side effects of viagra finasteride tablets canada cialis viagra coupons generic levitra lexapro dosages lexapro vs wellbutrin cialis canada ciprofloxacin 500 mg tabletten finasteride 5 mg finasteride long term effects what is ciprofloxacin prescribed for cialis prices azithromycin tablets cialis tadalafil how does viagra work propecia levitra bayer 20mg meilleur prix how long does viagra last tamoxifen azithromycin 250 what does ciprofloxacin treat viagra without a doctor prescription usa tamoxifen and bone pain what bacteria does ciprofloxacin kill cialis patent expiration zithromax 500 mg cialis dosage strengths buy viagra online azithromycin 5 day dose pack antibiotic ciprofloxacin how does lexapro work acyclovir 800mg zithromax dosage viagra nebenwirkungen buy levitra online lexapro generic azithromycine online viagra cialis vs viagra side effects of ciprofloxacin 500 mg viagra sans ordonnance cialis otc free viagra how to get off lexapro ciprofloxacin side effects

Leave a Reply

Your email address will not be published. Required fields are marked *