Nowe posty

Pokaż wiadomości

Ta sekcja pozwala Ci zobaczyć wszystkie wiadomości wysłane przez tego użytkownika. Zwróć uwagę, że możesz widzieć tylko wiadomości wysłane w działach do których masz aktualnie dostęp.


Wiadomości - pld

Strony: 1 [2] 3 4 5
16
Sieć / Odp: problem konfiguracji sieci
« dnia: 2019-04-09, 18:09:45 »
Czy na 100.3 masz włączone przekierowanie portów + odpowiednie reguły iptables?

17
Witam,

posiadam serwer pełniący rolę DHCP, DNS, GATEWAY, FIREWALL. Do eth0 podpięte łącze internetowe, eth1(dhcp interface) sieć LAN - switch sieciowy.

Jak można zabezpieczyć się przed podłączeniem obcego serwera DHCP do switch'a i nadawaniu błędnych adresów przez niego urządzeniom?
Przez iptables nie da się tego zrobić, bo jak rozumiem komunikacja między urządzeniami w sieci LAN odbywa się na warstwie switcha sieciowego i nie przechodzi przez mój serwer ?

18
Instalacja / Odp: Jakie distro najlepsze?
« dnia: 2018-12-19, 07:47:08 »
Spróbuj z najnowszym Lubuntu na LXQT

19
Taka rada, zamiast orygnialnego środowiska graficznego zainstaluj mu LXDE

20
Sieć / Odp: rsync - połączenie w sieci z Win 10
« dnia: 2018-07-13, 23:18:41 »
Na komputerze z Windows udostępniasz katalogi, które chcesz kopiować

1. Na linuxie podmontowujesz udostępnione katalogi z Windows
mount //adresIPwindows/nazwaudostepnionegokatalogu/ /mnt -o username=nobody,password=''
2. Na linuxie, uruchamiasz jednorazową synchronizację
rsync -avzh --delete-after /mnt /home/desktop

Możesz utworzyć sobie z tego skrypt i wrzucić do crontab, jako wykonywane np co 5minut

21
Konfiguracja / Munin nie wysyla mail
« dnia: 2018-06-30, 15:28:06 »
Witam,
munin powiadamia o błędach critical i warning jednak nie wysyła powiadomień mailowych

Polecenie wykonane z poziomu root'a wysyła mail'a:
echo "MUNINs" | mail -s "MUNIN - ${var:group} :: ${var:host}" xxx@gmail.com

cat /etc/munin/munin.conf
# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files.  They all
# must be writable by the user running munin-cron.  They are all
# defaulted to the values you see here.
#
#dbdir  /var/lib/munin
#htmldir /var/cache/munin/www
#logdir /var/log/munin
#rundir  /var/run/munin

# Where to look for the HTML templates
#
#tmpldir        /etc/munin/templates

# Where to look for the static www files
#
#staticdir /etc/munin/static

# temporary cgi files are here. note that it has to be writable by
# the cgi user (usually nobody or httpd).
#
# cgitmpdir /var/lib/munin/cgi-tmp

# (Exactly one) directory to include all files from.
includedir /etc/munin/munin-conf.d

# You can choose the time reference for "DERIVE" like graphs, and show
# "per minute", "per hour" values instead of the default "per second"
#
#graph_period second

# Graphics files are generated either via cron or by a CGI process.
# See http://munin-monitoring.org/wiki/CgiHowto2 for more
# documentation.
# Since 2.0, munin-graph has been rewritten to use the cgi code.
# It is single threaded *by design* now.
#
#graph_strategy cron

# munin-cgi-graph is invoked by the web server up to very many times at the
# same time.  This is not optimal since it results in high CPU and memory
# consumption to the degree that the system can thrash.  Again the default is
# 6.  Most likely the optimal number for max_cgi_graph_jobs is the same as
# max_graph_jobs.
#
#munin_cgi_graph_jobs 6

# If the automatic CGI url is wrong for your system override it here:
#
#cgiurl_graph /munin-cgi/munin-cgi-graph

# max_size_x and max_size_y are the max size of images in pixel.
# Default is 4000. Do not make it too large otherwise RRD might use all
# RAM to generate the images.
#
#max_size_x 4000
#max_size_y 4000

# HTML files are normally generated by munin-html, no matter if the
# files are used or not. You can change this to on-demand generation
# by following the instructions in http://munin-monitoring.org/wiki/CgiHowto2
#
# Notes:
# - moving to CGI for HTML means you cannot have graph generated by cron.
# - cgi html has some bugs, mostly you still have to launch munin-html by hand
#
#html_strategy cron

# munin-update runs in parallel.
#
# The default max number of processes is 16, and is probably ok for you.
#
# If set too high, it might hit some process/ram/filedesc limits.
# If set too low, munin-update might take more than 5 min.
#
# If you want munin-update to not be parallel set it to 0.
#
#max_processes 16

# RRD updates are per default, performed directly on the rrd files.
# To reduce IO and enable the use of the rrdcached, uncomment it and set it to
# the location of the socket that rrdcached uses.
#
#rrdcached_socket /var/run/rrdcached.sock

# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
#
# For those with Nagios, the following might come in handy. In addition,
# the services must be defined in the Nagios server as well.
#contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf

# a simple host tree
[localhost.localdomain]
    address 127.0.0.1
    use_node_name yes
    cpu.user.warning :1
    cpu.user.critical :2
    contacts myalert
[lamb16]
        address 192.168.100.105
        use_node_name yes
        contacts myalert
    cpu.user.warning :1
    cpu.user.critical :2
    df._dev_mapper_ubuntu__vg_root.warning :1
    df._dev_mapper_ubuntu__vg_root.critical :2
#
# A more complex example of a host tree
#
## First our "normal" host.
# [fii.foo.com]
#       address foo
#
## Then our other host...
# [fay.foo.com]
#       address fay
#
## IPv6 host. note that the ip adress has to be in brackets
# [ip6.foo.com]
#       address [2001::1234:1]
#
## Then we want totals...
# [foo.com;Totals] #Force it into the "foo.com"-domain...
#       update no   # Turn off data-fetching for this "host".
#
#   # The graph "load1". We want to see the loads of both machines...
#   # "fii=fii.foo.com:load.load" means "label=machine:graph.field"
#       load1.graph_title Loads side by side
#       load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load
#
#   # The graph "load2". Now we want them stacked on top of each other.
#       load2.graph_title Loads on top of each other
#       load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load
#       load2.dummy_field.draw AREA # We want area instead the default LINE2.
#       load2.dummy_field.label dummy # This is needed. Silly, really.
#
#   # The graph "load3". Now we want them summarised into one field
#       load3.graph_title Loads summarised
#       load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load
#       load3.combined_loads.label Combined loads # Must be set, as this is
#                                                 # not a dummy field!
#
## ...and on a side note, I want them listen in another order (default is
## alphabetically)
#
# # Since [foo.com] would be interpreted as a host in the domain "com", we
# # specify that this is a domain by adding a semicolon.
# [foo.com;]
#       node_order Totals fii.foo.com fay.foo.com

contact.log.command tee -a /var/log/munin/alert.log
contact.myalert.command echo "MUNINs" | mail -s "MUNIN - ${var:group} :: ${var:host}" xxx@gmail.com
contact.myalert.always_send warning critical

Proszę o pomoc

22
Konfiguracja / Bash backup NAS
« dnia: 2018-04-27, 18:07:23 »
Witam, mam utworzone wydzieloną macierz na serwerze na kopię plików z NAS /dev/md5
Na tej macierzy przechowywane będą kopie NAS z każdego dnia
Chciałbym dopisać do skryptu backup'owego linijkę, aby
1. sprawdzał ile miejsca zajmuje katalog /mnt    (podmontowany NAS)
2. wyliczył X= 3400GB / (wyliczona wartość w 1 punkcie)
3. i podstawił do komendy find /services/bkpnas/ -ctime $X -delete

Wiadomym jest, plików na serwerze coraz więcej, dlatego chce zeby wyliczał z ilu dni musi usunąć najstarsze kopie, żeby zmieściła się najnowsza
Proszę o pomoc

23
Administracja / Odp: HA linux
« dnia: 2018-03-18, 06:32:55 »
1. Mam do zapewnienia HA kilku serwerów
a. Firebird
b. Samba
c. DHCP,DNS,Firewall
d. Apache
2. Przejęcie IP (chyba że się nie da to bez tego)
Serwery koło siebie

24
Administracja / HA linux
« dnia: 2018-03-17, 17:38:04 »
Witam serdecznie,
poszukuje usługi w Linux'ie która zapewnia (HA)
-taką samą zawartość obu serwerów
-podczas awarii jednego automatycznie przełączenie

Która usługa jest odpowiednia, której usługi konfiguracji warto się uczyć?

25
Instalacja / Instalacja na raid1
« dnia: 2018-02-28, 17:33:39 »
Witam,
posiadam dwa dyski WD 4TB, tworzę macierz raid1 za pomocą instalatora linux (próbowałem na Opensuse i Ubuntu), dzielę dyski tak
md0: 8GB swap
md1: 8GB /
md2: ~4TB /services
Na końcu instalacji występuje błąd z instalacją grub'a
Proszę o pomoc

26
Witam serdecznie,
montowanie partycji ręcznie działa
mount /dev/sda3 /smb
mount -t ecryptfs /smb /smb

nie działa montowanie partycji /dev/sda3  /smb, odkąd została zaszyfrowana ecryptfs, chciałbym aby była obsługiwana na niej także quota

vi /etc/fstab
UUID=30b1d099-587d-4b53-9414-4497b42ef0d1 swap                 swap       defaults              0 0
UUID=46466790-b48f-470a-8585-4ae1d5c61184 /                    ext4       acl,user_xattr        1 1
UUID=48aa855f-dd87-4b8b-ace8-97f0bddaae66 /smb                 ext3       defaults        1 2

bez zakomentowania ostatniej linii system nie uruchamia się

27
Konfiguracja / Munin dynazoom
« dnia: 2018-01-26, 19:03:07 »
Witam,  munin generuje ładne wykresy, wszystko chodzi pięknie, jednak nie działa powiększanie wykresów wyznaczanie np. aby munin pokazał wykres od godziny do godziny, nie generuje się wykres nad parametrami
Proszę o pomoc

28
Konfiguracja / Odp: Vim Debian a Suse
« dnia: 2017-11-29, 17:40:07 »
Jest to standardowy VIM.
Na świeżo zainstalowanym systemie wskazane pliki nie istnieją

cat: /root/.vimrc: No such file or directory

29
Konfiguracja / Vim Debian a Suse
« dnia: 2017-11-24, 17:27:46 »
Witam,
gdzie znajduja sie ustawienia Vim'a ?
Na czystym systemie w OpenSuse operuje się dużo przyjemniej w VIM niż w Debianie, chciałbym przeniesc ustawienia

30
Konfiguracja / Rescuecd a macierz jak odczytac dane z dysku
« dnia: 2017-11-16, 14:20:24 »
Witam
uruchamiam serwer z Rescuecd, jak mozna odczytac dane zapisane na jednym z dwóch dysków (działały w trybie Raid1). Obecnie przy próbie montowania pokazuje błąd linux raid member

Strony: 1 [2] 3 4 5