Debian10 Final
Debian10 Final
Debian10 Final
Besplatni VPS
Hostovanje sajta
Skinuti debian linux ISO fajl sa debian.org
debian-10.4.0-i386-xfce-CD-1 658kB
Narezati boot CD ili sa Rufus boot flash USB
Instalirati na stari lap top
F12 boot meni
- grafik instaler
- jezik English
- No ne WiFi nego LAN kabl
- konektovati lan kablom lap top sa ruterom
- izabrati mreznu karticu
- Yes use a network mirror svi potrebni programi
- debian.org
- proxy nista
- Hostname forsing koji zelis
- Pass kojekude koji zelis
- Full name usera forsing koji zelis
- User name forsing
- Pass kojekude
- Eastern lokacija istocna Evropa
- Instalacija traje duze
- Guided – use entire disk izabrati, koristiti ceo disk
- All files in one partition jedna particija
- Finish
- Write the changes to disks Yes
- Debian desk ostaviti sve kako jest
- Install the GRUB Yes
- Odaberemo nas disk
- Instalacija je zavrsena
- Restart
- UN / pass forsing / kojekude
- Use defulte config
- Terminal dobije se prompt forsing@forsing:~$
Uptade linuxa preko terminala
$ apt-get update
$ apt-get upgrade
$ apt-get dist-upgrade
$ apt-get autoremove
======================
$ nano /etc/ssh/sshd_config
izmeniti u PermitRootLogin yes
Nano je text editor. Kretanje kurzora strelicama. Da se sacuva izmena ctrl+x pa y pa enter
Resetovati ssh
$ ifconfig
>>>
enp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::222:19ff:fee8:f621 prefixlen 64 scopeid 0x20<link>
ether 00:22:19:e8:f6:21 txqueuelen 1000 (Ethernet)
RX packets 60015 bytes 65826112 (62.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 39378 bytes 4210114 (4.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17
nn@ror MINGW64 /
$ dobije se taj prompt
$ ssh [email protected]
yes
pass: kojekude
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
npr
6plmHVYMXTZb2ZB16LvZFvGyHiaf3v4j
meApEMabFw06QxecW7t83e0rOS1qr1WU
***** How To Install Linux, Apache, MariaDB, PHP (LAMP) stack on Debian 10
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-
mariadb-php-lamp-stack-on-debian-10
https://www.phpmyadmin.net/
domen
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-
encrypt-on-debian-10
https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-
nameservers-from-common-domain-registrars
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-
mariadb-php-lamp-stack-on-debian-10
#step-4-%E2%80%94-creating-a-virtual-host-for-your-website
################################################################################
https://computingforgeeks.com/install-phpmyadmin-with-apache-on-debian-10-buster/
// How To Install phpMyAdmin with Apache on Debian 10 (Buster)
// Step 1: Install PHP
// How To Install PHP / PHP 7.3 on Debian 10 Buster
https://computingforgeeks.com/install-php-on-debian-10-buster/
>>>
Switch to unix_socket authentication [Y/n] y
Enabled successfully!
Reloading privilege tables..
... Success!
# mysql -u root -p
kojekude
$cfg['Servers'][$i]['controluser'] = 'forsing';
$cfg['Servers'][$i]['controlpass'] = 'kojekude';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';
Nova sifra
# sudo htpasswd -c /usr/share/phpmyadmin/.htpasswd forsing
kojekude
kojekude
// Step 5: Configure Apache web Server
// Create phpMyAdmin Apache configuration file:
# sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf
<<< sudo vim /etc/apache2/conf-enabled/phpmyadmin.conf >>>
>>>>>>>
<Directory /usr/share/phpmyadmin>
Options SymLinksIfOwnerMatch
DirectoryIndex index.php
<IfModule mod_php5.c>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
<FilesMatch ".+\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir
/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-
gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/
tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0
</IfModule>
<IfModule mod_php.c>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
<FilesMatch ".+\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir
/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-
gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/
tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0
</IfModule>
</Directory>
// You can restrict access from specific IP by adding line like below:
Require ip 127.0.0.1 192.168.1.0/24
RADI RADI RADI RADI RADI RADI RADI RADI RADI RADI RADI RADI
# ls -l
# cd /var/www/html
# ls -l
# cd ..
# cd ..
# cd ..
http://192.168.1.11/
// Step 6: Visit phpMyAdmin Web interface
// Access phpMyAdmin Web interface on http://192.168.1.11/phpmyadmin
// Use your database credentials username & password to login.
Conclusion
You now have a phpMyAdmin installed on Debian 10.
You can start managing your database server from a Web dashboard
and stress less on mastering MySQL command line.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>> root@forsing:~#
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
==================================
6plmHVYMXTZb2ZB16LvZFvGyHiaf3v4j
meApEMabFw06QxecW7t83e0rOS1qr1WU
==================================
hostname –I
>>> 192.168.1.11
ili
# /sbin/ifconfig
>>>
enp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::222:19ff:fee8:f621 prefixlen 64 scopeid 0x20<link>
ether 00:22:19:e8:f6:21 txqueuelen 1000 (Ethernet)
RX packets 4072 bytes 4214721 (4.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3187 bytes 334709 (326.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17
ili
# ip addr show
>>>
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen
1000
link/ether 00:22:19:e8:f6:21 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute enp8s0
valid_lft 84152sec preferred_lft 84152sec
inet6 fe80::222:19ff:fee8:f621/64 scope link noprefixroute
valid_lft forever preferred_lft forever
>>>
Detekcija linux distribucije
# cat /etc/issue
>>> Debian GNU/Linux 10 \n \l
http://wiki.open.hr/wiki/GRUB_2_za_pocetnike
boot
10.............................................
sftp - klijent za prenos vise datoteka izmeduu dva racunara, zamena za ftp .
sftp korisnik@ime_racunara
Ili u nasem slucaju,povezivanje na nalog korisnika krokodil :
sftp [email protected]
Posle zadavanja komande potrebno je upisati i lozinku za krokodil nalog. Dalji rad
se zasniva na
skup komandi od kojih ćemo nabrojati najcesce koriscene:
- ? ili help - daje spisak raspolozivih komandi sa kratkim uputstvima
- cd - promena radnog direktorijuma na serveru
- lcd - promena radnog direktorijuma na lokalnom racunaru
- pwd - ispisuje radni direktorijum na serveru
- lpwd - ispisuje radni direktorijum na lokalnom racunaru
- dir ili ls - prikazuje sadrzaj radnog direktorijuma na serveru
- lls - prikazuje sadrzaj radnog direktorijuma na lokalnom racunaru
- get ime_datoteke - prenos fajla sa servera na lokalni racunar
- mget uzorak - prenos veceg broja fajlova sa servera na lokalni racunar (uzorak
sadrzi
standardne dzoker-znake)
- put ime_datoteke - prenos fajla sa lokalnog racunara na server
- mput uzorak - prenos veceg broja fajlova sa lokalnog racunara na server
- quit ili exit - kraj rada u SFTP-u
9.............................
scp-program za kopiranje pojedinacnih fajlova izmedju dva racunara
scp fajl-koji-se-kopira.ext
[email protected]:putanja/do/direktorijuma/u/koji/se/kopira
exampe
scp nekitekst.txt [email protected]:
kopira nekitekst.txt u /home/krokodil/
koji su hostovi prisutni
# fping -c1 -gds 192.168.1.0/24 2>&1| egrep -v "ICMP|xmt"
odlicno radi jako brzo
>>>
csp3.zte.com.cn : [0], 84 bytes, 0.25 ms (0.25 avg, 0% loss)
192.168.1.2 : [0], 84 bytes, 5.54 ms (5.54 avg, 0% loss)
ror : [0], 84 bytes, 1.35 ms (1.35 avg, 0% loss)
forsing : [0], 84 bytes, 0.08 ms (0.08 avg, 0% loss)
254 targets
4 alive
250 unreachable
0 unknown addresses
254 targets
5 alive
249 unreachable
0 unknown addresses
http://csp1.zte.com.cn/
admin / KojeKude7
Device Status
HW Version V1.0
SW Version V3.1.0T9_SRB
BOOT Version V1.0.1
LAN
Allocated Address
DHCP Server
On Off
LAN IP Address
192 168 1 1
. . .
Subnet Mask
255 255 255 0
. . .
Gateway
192 168 1 1
. . .
Assign IspDNS
Primary DNS
192 168 1 1
. . .
Secondary DNS
0 0 0 0
. . .
s
Remote Service Port Control - IPv4
HTTP
80
SSH
22
TELNET
23
HTTPS
443
DHCP Server
DHCP Server
On Off
LAN IP Address
192 168 1 1
. . .
Subnet Mask
255 255 255 0
. . .
Gateway
192 168 1 1
. . .
Assign IspDNS
Primary DNS
192 168 1 1
. . .
Secondary DNS
0 0 0 0
. . .
Forvardovati port
https://whatismyipaddress.com/private-ip
Reserved for private networks.
https://www.dreamwebhosting.net/
forsing.in.rs 420 din/god
Name Server 1
dns1.dwhost.net
Name Server 2
dns2.dwhost.net
Name Server 3
dns3.dwhost.net
https://www.cloudflare.com/
*******************************************************************
- treba ti static IP zovi provajdera da ti daju static ip
Zahtev za statickom IP adresom podnosi se u poslovnici, od strane potpisnika ugovora,
mesecna naknada iznosi 590,00 dinara. Telekom MTS
*******************************************************************
Ports:
80,443/tcp
Allow incoming HTTP and HTTPS traffic for this profile:
root@forsing:~# sudo ufw allow in "WWW Full"
Rules updated
Rules updated (v6)
root@forsing:~#
=================================================
https://www.youtube.com/watch?v=HnOXZQuAh9o
Osnovne komande u Linux-u
ip route
ip adresa rutera (najniza) i ip adresa mog racunara
>>>
root@forsing:~# ip route
default via 192.168.1.1 dev enp8s0 proto dhcp metric 100
169.254.0.0/16 dev enp8s0 scope link metric 1000
192.168.1.0/24 dev enp8s0 proto kernel scope link src 192.168.1.11 metric 100
root@forsing:~#
>>>
https://www.youtube.com/watch?v=SujkuLwu0ZM
Kako besplatno napraviti Public Server (VPS) od starog laptopa
https://pastebin.com/Xq36Lhkw
H20xcGXxflSd8JwrwVlh6KW6s2rER63i
https://www.y2mate.com/channel/UCmsyIOfiqN5fhQuMwEhwvOw
svi