niedziela, 21 listopada 2010

skasuj mnie

W Network Manager w ogole nie widzi Ci wifi (w sensie... opcji typu 'polacz z ukryta siecia bezprzewodowa...' itp takze nie ma)? Jesli tak sproboj w menu System -> Administracja -> Siec; tam zaznacz zaznacz wlan i wejdz w edycje i zaznacz 'kontrolowane przez menadzera sieci'. Mialem podobny problem, pomoglo.

Odbudowanie uszkodzonej bazy rpm

Objawy:

rpmdb: PANIC: fatal region error detected; run recovery

błąd: błąd bazy danych3(-30974) z db->close: DB_RUNRECOVERY: Fatal error, run database recover

Rozwiązanie:

1. Usunięcie uszkodzonych plików bazy rpm :


2. Wykonanie polecenia root'a:

# rpm --rebuilddb

sobota, 20 listopada 2010

Serfer ftp vsftpd

Instalacja:
yum install vsftpd


Uruchomienie:
# vsftpd
lub wpisać do autostartu
# chkconfig vsftpd on
W przeglądarce ftp://localhost/ katalog udostępniany domyślnie : /var/ftp/pub

Konfiguracja:
/etc/vsftpd/vsftpd.conf

Przykład:
#
# Logowanie użytkownikow anonimowych
anonymous_enable=YES
#
# Logowanie użytkownikow lokalnych
local_enable=YES
#
# Zapis w katalogu uzytkownika lokalnego
write_enable=YES
#
# Uprawnienia zapisu pliku
local_umask=022
#
# Dodawanie plikow anonima
#anon_upload_enable=YES
#
# Tworzenie katalogow anonima
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Aktywacja logowania  uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# Sciezka pliku z logami
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# Maksymalny czas bezczynnosci serwera
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# Sciaganie / wysylanie metoda ascii
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# Zakaz opuszczania swoich domowych katalogow uzytkownikow
chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
#plik zawierający uzytkownikow z prawami poruszania sie poza katalogiem domowym
#np. dodanie: echo "mario" >> /etc/vsftpd/chroot_list
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd with two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES

#pam_service_name=vsftpd
#userlist_enable=YES
#tcp_wrappers=YES


#Dodatkowo
#Pozwala na kasowanie i zmienianie nazw katalogów przez anonimowych
#anon_other_write_enable=

# Ograniczenie transferu dla anonimowych
#anon_max_rate=

#ograniczenie dla uzytkownikow do 5KB wysylanie i odbieranie
#local_max_rate=5120

#okreslenie portu 2121 na jakim bedzie dzialac serwer
#listen=YES
#listen_port=2121

#zakazane pliki na serwerze
#deny_file={*.mp3,files/,*.avi}

#maksymalna ilosc polaczen z tego samego IP
#max_per_ip=2

#maksymalna ilosc polaczen na serwerze
#max_clients=5

#Ladowanie z plikami konfiguracyjnymi dla uzytkownikow anonim i mario :
#vsftpd /etc/vsftpd.conf.annonymus
#vsftpd /etc/vsftpd.conf.mario