Linux

Linux
Lucas Acha
  • imajen dahuluk

    Keta haluhan fahe Tutan ba kolega sira ne'ebe mak hakarak Le'e

  • Imajen daruak

    keta haluha Follow hau nia pajina Acha-Ping

  • Imagen datolu

    blog husi Youtube Acha-Ping

Saturday, July 22, 2017

lalaok sharing printer iha Ubuntu utiliza aplikasaun samba

iha artigu ida-ne'e, hau sei koko fahe kona-ba oinsá atu kria Server iha Ubuntu,  espera katak  artigu ida-ne'e bele aumenta koñesimentu kona-ba oinsá atu Instala Ubuntu Server 14.
OK kona-ba prátika liu husi experimentu Printer ne'ebé mak iha ligasaun ba rede ida ho Diskursu IP 192.168.1.10 ne'ebé uza Ubuntu Server 14 ho Diskursu IP 192.168.1.10 No ba servidór sira uza KOPU (KOMÚN UNIX IMPRIMI SISTEMA) mak hanesan aplikasaun 7PC iha ligasaun ba Rede nebe hanesan 
Ok neʼe haʼu asume imi iha ona Ubuntu Server 14, no oinsa mak Rezolve IP ne ' ebé uza IP maisomenus Hanesan.

# nano /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.20.246
netmask 255.255.255.0
gateway 192.168.20.1
dns-search example.com
dns-nameservers 192.168.20.246 192.168.20.1
tuir mai ita update ou upgrade sistema
# apt-get update
# apt-get upgrade
  tuir mai ita install aplikasaun  Samba

# apt-get install samba
depos edit smb.conf iha ita nia direktory /etc/samba/ edit hare hanesan iha kraik ne'e

# nano /etc/samba/smb.conf
# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP >> Silahkan disesuaikan dengan nama WORKGROUP masing2
   security = user

[printers]
   comment = All Printers
   browseable = yes
   path = /var/spool/samba
   printable = yes
   guest ok = yes
   read only = yes
   create mask = 0700

depois atu save hanehan tekladu Ctrl + X tuir tan hanehan takladu Y hotu hanehan [ENTER] tuir mai ita install Print server kona-ba Cups.

# apt-get install cups
  tuir tan edit ita nia file /etc/cups/cupsd.conf hanesan tuir mai ne'e

# Only listen for connection from the local machine
Port 631
Listen /var/run/cups/cups.sock

# Restrict access to server...
<Location />
 Order allow,deny
Allow all
</Location>
depois atu save hanehan tekladu Ctrl + X tuir tan hanehan takladu Y hotu hanehan [ENTER] hotu restart hare kodigu iha kraik ne'e

# service cups restart
depois tuir mai loke ita nia browser ba url nia https://192.168.1.10:631
agora  ne'e bele iha windows ona ba linux la persiza hanesan windowshttps://acha-geon.blogspot.com/ tamba linux ita instala aplikasaun samba depois edit nia eskript hanesan iha leten ita bele print ona 
maibe ba windows ita sei seting hanesan tuir mai ne'e

klik COnfirm Security Exception


ok ne'e mak dashboard husi CUPS 1.7.2 


tuir tan mai ita hili Printer Canon MF4680 ba CUPS. depois tuir hili Administration depois klik Add Printer.


depois tuir mai tau user no password root nian


iha ne'e ba liu Discovered Network Printers ida ne'e hare iha type Canon MF4680 depois hili  Continue


tuir mai klik share this printer hotu hili Continue


Klik Add Printer


Klik Set Default Options




# service cups restart

Pasu tuir mai ne ' ebé mak atu aumenta Printer ba Kliente PC baibain la haluha atu instala Printer Dezempregu. Ba teste sujestaun \\192.168.20.246 





Atu aumenta printer bá painél Kontrolu tuirmai, nia Haree Pesoal no Printer tuirmai hanehan Add printer ida tuirmai, tuir pasu tuir mai.







ne ba Klik Print a test page



Ida-ne'e nu'udar rezultadu hosi aumenta ba printer iha Kliente PC, halo buat neʼebé hanesan kona-ba Kliente PC seluk.


ok ne'e mak rezultadu husi Windows Printer Test Page 



OK tan neʼe, artigu kona-ba oinsá atu Instala no server print seluk uza Ubuntu Server 14.04, espera artigu badak ida ne'e bele sai útil ba ita hotu-hotu fó Obrigadu ba hau no ba ita bo'o nia a'an rasik I liliu ba Nai Maromak Okeyyyy Thank'sss

instala web server iha Linux

okey ba kolega sira nebe maka aprende ona kona-ba aplikasaun open source nian mak hanesan apache2 hau fiar katak kolega sira aprende no komprende ona saida maka Apache Web-server, PHP, MySQL-Server no PhpMyadmin ne’ebé iha Aplikasaun Server Apache. Apache ne'e livre bazeia ba Fonte sira ne’ebé Nakloke aplikasaun ida hatene nu'udar no dala barak uza husi servidór iha mundu tomak. Apache bele konkorre ba operasaun sistema barak (Unix, BSD, Linux, Windows Microsoft no Novell Netware nune'e plataforma sira seluk) no funsionamentu situs internet. Protokolu ida-ne'e uza atu serbí ba web / fasilidade www uza HTTPS

notas : emzeralmente web server mak hanesan fatin ne’ebe maka rai dadus sira hotu nebe maka ita kria iha aplikasaun hanesan PHPMyadmin no sira seluk no nia maka jere dadus sira hotu nebe maka ita asesu ba

lalaok atu instala apache iha ita nia pc/lap hanesan babain iha linux atu instala liu husi terminal hanehan tekladu CRT-ALT+T ne hanesan atu loke terminal no tuir hanehan tekladu no halo tuir kodigu nebe mak iha kraik ne

$ sudo apt-get install apache2 
loke ita nia browser hanesan fire fox depois hanehan tekladu apeche nia url http://[ip address server]
 https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5GR5duWguXAbOphSaMV7rphNq0LJmbMKRSvnzKCbULDP_O1FjAnenJX6gfdx1_87JkYjMBm9jVv59xTg8igU7CWtwjkFeNDSrmYTqxC3yJ6ABdRjQIXa-3tOHwsajnZXwfuCofHxRzEU/s640/web1.png
2. Install PHP5 

lalaok atu instala PHP5 iha ita nia pc/lap hanesan babain iha linux atu instala liu husi terminal hanehan tekladu CRT-ALT+T ne hanesan atu loke terminal no tuir hanehan tekladu no halo tuir kodigu nebe mak iha kraik ne

$ sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
 halo konfigurasaun hanesan babain iha ita uza text editor iha gui maibe iha terminal ita uza nano ne hanesan file text ida mos .php ba ita nia direktori /var/www/html/
$ sudo nano /var/www/html/info.php
depois tuir aumenta script iha kraik ne'e
<?php phpinfo(); ?>
save ou rai hanehan tekladu Ctrl + X tuir tan hanehan tekladu Y hotu [ENTER] agora restart servicu apache2
$ sudo service apache2 restart
Ba loke browser  koko tuirmai sujestaun kona-ba url http: / / ipaddress server / info.php



3. Install MySql-Server 

lalaok atu instala MySql-Server iha ita nia pc/lap hanesan babain iha linux atu instala liu husi terminal hanehan tekladu CRT-ALT+T ne hanesan atu loke terminal no tuir hanehan tekladu no halo tuir kodigu nebe mak iha kraik ne
$ sudo apt-get install mysql-server
  tau Password ba MySQL




tau nafatin password



Ba teste iha komandu tuir mai ne'e.

$ sudo mysql -u root -p

 

4. Install PhpMyadmin.
 lalaok atu instala PhpMyadmin iha ita nia pc/lap hanesan babain iha linux atu instala liu husi terminal hanehan tekladu CRT-ALT+T ne hanesan atu loke terminal no tuir hanehan tekladu no halo tuir kodigu nebe mak iha kraik
$ sudo apt-get install phpmyadmin
-iha opsaun "configure phpmyadmin" hili apache2
-input sql password abut
-Tama password ba phpmyadmin

Kria ligasaun simbóliku ida ho haruka.
$ sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
Ba teste sujestaun browser ne ' ebé nakloke ba url http: / / [ip rezolve server] / phpmyadmin
Karik erru mbstring ida ne ' ebé mosu halai komando hirak tuir mai ne'e
$ sudo apt-get install phpmyadmin php-mbstring php-gettext
$ sudo service apache2 restart




intala ubuntu server 16.4

Dalan Fasil atu Instala Ubuntu  Server, husi sentensa ilustra katak instaladóra linux ubuntu server mak fasil no la susar, "Oinsá Mak Atu Instala Ubuntu Linux Server" instala ubuntu server  ita halo instalasaun sei difisil uitoan tamba la iha grafiku maibe ita kuandu hatoman a'an atu aprende ne fasil ita atu halo instasaun . Maibé ita atu instala Linus Ubntu server ita sei iha pergunta ida konaba saida mak ubntu server? 
Ubuntu Server mak Sistema Operasaun ida ne'ebe utiliza ba zere ba buat hotu-hotu nebe liu husi rede ou bele dehan mos rede internet nebe ho diak, emzeralmente ita hanooin Ubunto server nia file ISO ita sosa maibe Ba opensource ne gratuita ita atu halao servisu saida deit maka ita persiza 
notas: Linux Ubuntu Server hanesan sistema ida nebe atu rai dadus ou zere dadus no seluk-seluk tan nebe maka iha area teknologia nebe agora ita aprende dadauk ba.
ubntu server nia seguru ba halo konfigurasaun redes no seguru ba securty 

tuir mai ita halao instalsaun liu husi VirtualBox
Lalaok oinsa atu instala ubuntu server liu husi VirtualBox, 
notas VirtualBox
VirtualBox mak hanesan lalatak ida nebe atu hamoris sistema ida iha sistema ida nia laran, husi VirtualBox mos bele halo nia servisu hanesan komponente ida nebe servisu hanesan mos ho sistema ne’ebe ita halao instala iha ita nia PC ou Lap
tuir mai ita loke Aplikasaun VirtualBox iha ita nia Sistema Operativo ne’ebe mak ita uza dadauk ba ezemplo iha linux

diak tuir mai ita hare hamutuk iha imagen nebe iha kraik ne'e iha opsaun hirak nebe mak ita atu hili maibe agora ita hili mak ida dahuluk ne'e (Install Ubntu Server) no tuir mai hanehan (Enter)

ita hili lingua ne'ebe ita kompriende ezemplo (english) ba enter

ita hili fatin ou Location tamba timor nian la iha entun hili  mos diak other depois enter
  
hili  Asia ou bele mos hili tuir imi nia hakarak hanehan enter

hili Indonesia

hili United State 
ita hatan No atu labele Configura ba keyboard

  hili English (US)

hili English (US)

Iha interfase rede Primari hili opsaun sala ida ne'ebé sei primária
Ida-neʼe la iha neʼe iha rede Configure te iha tanba halo iha fatin ne'e la hetan ip dhcp depois ignora ida no hili Kontinua.

Tanba haʼu sei la iha ligasaun ba internet tuirmai selesaun la configure rede ne'e iha tempu ida-ne'e
hatama ou taun naran hostname


tau nran kompleitu Full name user


tau naran ba ita nia user

depois kontinua tau ita nia Password ba ita nia user


tau ita nia password nafatin ba ita nia user

hili yes

hili no

Halo favór, ajusta ba sidade sira
ita hili Partition disk no hili Guide - use entire disk and set up LVM

enter

hili yes

Iha neʼe haʼu la kria partition partition tan neʼe, haʼu husik onorárius sei automatikamente kria partition ba partition swap


hatan yes


prosesu ba file system

prosesu ba instalasaun

Iha neʼe, haʼu hili atualizasaun kilat La kona-ba opsaun tasksel Configure


  Iha selesaun ba selesaun Software ne ' ebé ha'u hetan hili OpenSSH Server


Prosesu Installasaun Software


hatan Yes ba nia install Grub boot loader

hein prosesu ba instalasaun aplikasaun

hili Continue


oke login tama ba ita nia username no ita nia password

ne mak prosesu instalasaun nian



Okay Hafoin ita konsege instala Ubuntu Server 16.04 pasu tuir mai mak Define Rede Eletrónikus Server bele liga ho Internet. Iha dalan rua atu estabelese eletrónikus dahuluk ne'ebé mak atu uza DHCP no daruak mak Estabelese uza maisomenus Hanesan IP. Ba dahuluk ne'ebé ita sei koko estabelese DHCP halai komando hirak tuir mai ne'e.

no tuir mai ita halo konfigurasaun hanesan tuir mai ne login tiha ubntu server pois hanehan tekladu hanesan iha kraik ne'e 

$ sudo nano /etc/network/interfaces

aumenta tan script

# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp


ita atu save ou ra hanesan tekladu  Ctrl + X ldepois hili Y no  [ENTER]
tuir mai aktif Interface enp0s3 lao tuir hnesan iha kraik ne'e

$ sudo ifup enp0s3
$ ifconfig



Ok neʼe server ne ' ebé katak haʼu uza hetan Hatan IP husi DHCP mak 192.168.60.222 atu koko se server nian ida ne'e liga ba internet ne ' ebé ita ping website ida iha neʼe, haʼu koko atu ping ba detik.comOk neʼe server sira-ne ' ebé haʼu uza haʼu hetan Responde IP husi DHCP mak 192.168.60.222 atu koko se server nian ida ne'e liga ba internet ne ' ebé ita ping website sira-neʼe ida, hodi koko atu ping ba detik.com


Se ita hakarak atu estabelese IP maisomenus Hatan-Hanesan imi bele halai komando hirak tuir mai ne'e.
$ sudo nano /etc/network/interface
auto enp0s3
iface enp0s3 inet static
address 192.168.60.222
netmask 255.255.255.0
gateway 192.168.60.1
dns-search example.com
dns-nameservers 192.168.60.1 8.8.8.8 8.8.4.4


Salva mudansa ne ' ebé urjente xave sira kona-ba keyboard Ctrl + X no hili Y no [ENTER]
Depois restart enp0s3 Eletrónikus halai komandu iha kraik.

Log nu'udar abut

$ sudo -s lalu masukan password
# ifdown enp0s3 && ifup enp0s3
# ifconfig

depois koko ping ke 8.8.8.8


Tuirmai ita sei atualiza no atualiza Ubuntu Server 16.04. Halai komando hirak tuir mai ne'e.
# apt-get update


Atu realiza halo favór halo tuir hirak nebe tuir mai ne'e.
# apt-get upgrade

okey dika ne'e maka dalan ba Ubuntu Server 16.04, configuring Rede Eletrónikus no dezenvolve no hadi'a kona-ba Ubuntu Server 16.04. Artigu tuirmai ita sei hala'o hahú servisu-Servisu kona-ba server. Tan neʼe, husu boot artigu ida-ne'e bele sai útiliza ba ita hotu. ne mak husi hau ba kolega sira bele koko tamba materia ne'e inportante hotu mai ita ne'ebe mak estuda konaba ICT nia ne'e husu ba kolega sira bele koko hahahha