banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Messages posted by: vitcon01  XML
Profile for vitcon01 Messages posted by vitcon01 [ number of posts not being displayed on this page: 0 ]
 
Nếu dùng giải pháp là triển khai trên Windows Server thì có giải pháp nào thoả mãn các yêu cầu trên hay không
 


Nếu người dùng chỉ dùng SSH để truy cập vào Console server thì có thể log lại như yêu cầu số 5. Nhưng do Console Server có thể truy cập bằng cách là VNC hoặc Remote Desktop over SSH. Chính vì thế giải pháp nào trong trường hợp này?  


---->trong trường hợp trên rất khó để biết được người dùng truy cập vào Console Server trong trường hợp windows server hay sử dụng VNC, Remote Desktop để thực hiện thao tác đối với các server core bên trong. Trừ trường hợp dùng các phần mềm giám sát, video, chụp hình, .... Vì lúc này chúng ta đang sử dụng giao diện đồ hoạ để kết nối.
EM đã tiến hành cài đăt lighttpd vào trong chroot như sau

Code:
/configure --prefix=/webroot --disable-ipv6 --enable-sendfile64 --with-linux-aio --with-pcre-regex && make && make install


Sau đó em rpm để càin đặt php và mysql như sau:

Code:
rpm -ivh –relocate=/=/webroot –force \
php-5.1.6-15.Suhosin.i686.rpm \
php-cli-5.1.6-15.Suhosin.i686.rpm \
php-mbstring-5.1.6-15.Suhosin.i686.rpm \
php-common-5.1.6-15.Suhosin.i686.rpm \
php-mysql-5.1.6-15.Suhosin.i686.rpm \
php-pdo-5.1.6-15.Suhosin.i686.rpm \

Tương tự cho mysql.

Sau đó thực hiện các thao tác sau
Code:
mkdir /webroot/var/www/html/www
mkdir /webroot/tmp/
chmod 1777 /webroot/tmp/
mkdir /webroot/etc
mkdir -p /webroot/var/log/lighttpd
chown nobody.nobody /webroot/var/log/lighttpd
mkdir -p /webroot/var/tmp/lighttpd/cache/compress/
chown nobody.nobody /webroot/var/tmp/lighttpd/cache/compress/
cp /etc/hosts /webroot/etc/
cp /etc/nsswitch.conf /webroot/etc/
cp /etc/resolv.conf /webroot/etc/
cp /etc/services /webroot/etc/
cp /etc/localtime /webroot/etc/
mkdir /webroot/var/run
mkdir /webroot/var/run/lighttpd
chown nobody.nobody /webroot/var/run/lighttpd
mkdir -p /webroot/var/www/html


Tạo một script để copy các libary có nội dung
Code:
1: #!/bin/bash
2: BASE="/webroot"
3:
4: if [ $# -eq 0 ]; then
5: echo "Syntax : $0 /path/to/executable"
6: echo "Example: $0 /usr/bin/php5-cgi"
7: exit 1
8: fi
9:
10: mkdir -p $BASE$(dirname $1)
11: cp $1 $BASE$(dirname $1)
12:
13: [ ! $BASE ] && mkdir -p $BASE || :
14:
15: # iggy ld-linux* file as it is not shared one
16: FILES="$(ldd $1 | awk '{ print $3 }' |egrep -v ^'\(')"
17:
18: echo "Copying shared files/libs to $BASE..."
19: for i in $FILES
20: do
21: d="$(dirname $i)"
22: [ ! -d $BASE$d ] && mkdir -p $BASE$d || :
23: /bin/cp $i $BASE$d
24: done
25:
26: # copy /lib/ld-linux* or /lib64/ld-linux* to $BASE/$sldlsubdir
27: # get ld-linux full file location
28: sldl="$(ldd $1 | grep 'ld-linux' | awk '{ print $1}')"
29: # now get sub-dir
30: sldlsubdir="$(dirname $sldl)"
31:
32: if [ ! -f $BASE$sldl ];
33: then
34: echo "Copying $sldl $BASE$sldlsubdir..."
35: /bin/cp $sldl $BASE$sldlsubdir
36: else
37: :
38: fi

Sau đó em thực hiện
Code:
/bin2chroot.sh /webroot/usr/bin/php-cgi

Tạo thêm 1 script để lấy các library của các module php có nội dung
Code:
#!/bin/bash
2: BASE="/webroot"
3:
4: if [ $# -eq 0 ]; then
5: echo "Syntax : $0 rpm-package"
6: echo "Example: $0 php-mysql"
7: exit 1
8: fi
9:
10: FILES="$(rpm -ql $1)"
11:
12: echo "Copying shared files/libs to $BASE..."
13: for i in $FILES
14: do
15: d="$(dirname $i)"
16: [ ! -d $BASE$d ] && mkdir -p $BASE$d || :
17: /bin/cp $i $BASE$d
18:
19: LDFILES="$(ldd $i | awk '{ print $3 }' |egrep -v ^'\(')"
20: for x in $LDFILES
21: do
22: echo "Copying $x files/libs to $BASE..."
23: y="$(dirname $x)"
24: [ ! -d $BASE$y ] && mkdir -p $BASE$y || :
25: /bin/cp $x $BASE$y
26: done
27: done

Và thưc hiện ví dụ:
Code:
./rpm2chroot.sh php-gd


Tiến hành thêm một số dòng config cho lighttpd
Code:
server.chroot = "/webroot"
astcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi", "min-procs" => 1, "max-procs" => 1,
"bin-environment"=>("PHP_FCGI_CHILDREN"=>"256","PHP_FCGI_MAX_REQUESTS"=>"256")
)
)
)


Kết quả: Chạy các file php rất ok, tuy nhiên khi chạy phpmyadmin thì báo lỗi

Code:
Cannot load mysql extension. Please check your PHP configuration. - Documentation


Mặc dù đã có các thư viện mà php-mysql cần
Code:
/webroot/webroot/etc/php.d/mysql.ini
/webroot/webroot/etc/php.d/mysqli.ini
/webroot/webroot/etc/php.d/pdo_mysql.ini
/webroot/webroot/usr/bin/mysql
/webroot/webroot/usr/bin/mysqladmin
/webroot/webroot/usr/lib/php/modules/mysql.so
/webroot/webroot/usr/lib/php/modules/mysqli.so
/webroot/webroot/usr/lib/php/modules/pdo_mysql.so

vipbk09 wrote:
Tức là quá trình three way handshake sẽ diễn ra trước khi dữ liệu bị đóng gói để thiết lập 1 kênh truyền.

Vậy trong quá trình bắt tay 3 bước, bên sender gửi 1 gói SYN ---> Khi gửi có diễn ra quá trình đóng gói (từ Transport layer xuống Link layer) không?

Bên receiver gửi lại gói ACK --> cũng xảy ra quá trình đóng gói? 

--->bạn nên hiểu thế nào là encapsulation

vipbk09 wrote:
Em bị lõng bõng giữa 2 khái niệm: encapsulation và three-way handshake

Giả sử từ máy A em gửi 1 file abc.doc cho máy B bằng giao thức FTP -->sử dụng TCP ở tầng Transport

Ở máy A sẽ bắt đầu quá trình encapsulation đi từ tầng cao xuống tầng thấp (Application --> Network Access theo mô hình TCP/IP). Qua mỗi tầng, file abc.doc sẽ bị chia nhỏ và đóng header của tầng đó vào.

Vậy quá trình three-way handshake diễn ra khi nào?



 


--->diễn ra trước khi truyền dữ liệu.

Nguyen Canh Toan wrote:
Hix.
Bạn vitcon01 có thể giải thích giúp mình được không ? 

--->squid proxy nhằm giúp cho các server backend có thể tiết kiệm tài nguyên(CPU, băng thông, bộ nhớ..) xử lý và tăng hiệu năng(load balancing) cho các server backend.
Giờ bạn đặt 2 dịch vụ này nằm trên 1 máy thì tác dụng cũng như không có squid. Vì dù dịch vụ nào xử lý chăng nữa thì cũng là server này xử lý, nhiều trường hợp việc triển khai squid + webserver trên cùng 1 máy sẽ kếm hiệu suất hơn là 1 web server chạy mà không có squid.

Nguyen Canh Toan wrote:
Chào mọi người!
Mình đang muốn tìm hiểu cách thức dùng squid để cache file trên web server đang chạy lighttpd.
Cả squid và web đều cài đặt chung trên một máy.
Hiện tại mình vẫn chưa rõ cách triển khai làm thế nào để squid nhận request và query tới web server mà trong khi đó vẫn đảm bảo việc cache.

Ai biết thì có thể giúp mình với !
Thanks 

--->nếu squid và web server điều nằm trên 1 máy thì không ổn đâu.
Em tạo topic này, mong nhận được sự góp ý từ các anh chị đi trước đã làm và có kinh nghiệm.

Một số giải pháp àm em tìm kiếm được:

-Nginx
-Squid
-varnish

Vậy cho em hỏi, với yêu cầu trên, nên sử dụng giải pháp nào, anh chị nếu có thể, hãy so sánh giúp em, ưu và nhược điểm của từng giải pháp.

Em cảm ơn nhiều!
Mình đang tìm kiếm một phần mềm giám sát hoạt động máy tính tương tự như actual spy
-Không có virus/trojan
-Miễn phí càng tố
-Hỗ trơj hệ điều hành windows

Anh nào đã từng làm, mong nhận được góp ý.

EM cảm ơn.

Vẫn ý như vậy anh, không có chuyển biến gì sau khi em thực thi hai lệnh của anh!
Em tiến hành cài đặt Octopussy theo hướng dẫn sau http://www.8pussy.org/dokuwiki/doku.php?id=install

Tuy nhiên khi start dịch vụ thì hiện thông điệp lỗi sau:

Code:
Can't locate XML/Simple.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/AAT/XML.pm line 20.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/AAT/XML.pm line 20.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/AAT/Application.pm line 18.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/AAT/Application.pm line 18.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Octopussy.pm line 23.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Octopussy.pm line 23.
Compilation failed in require at /etc/init.d/octopussy line 40.
BEGIN failed--compilation aborted at /etc/init.d/octopussy line 40.


Ai từng bị lỗi này, xin giải đáp giúp em! Em cảm ơn!

phuongnvt wrote:
Vậy có giải pháp nào để log hay giám sát mọi hoạt động của client ở phía client không. 

------>Tui không hiểu câu này là thế nào? ý đồ của bồ ở đây là gì vậy ? 


--->là giám sát hay log bất kỳ sự kiện gì của client sau khi đã remote desktop vào server.
Em có 2 máy.
+1 Máy là client dùng OS XP
+1 Máy là server dùng OS 2K3

Trường hợp: client đã tiến hành remote desktop vào server

Yêu cầu: Vậy có giải pháp nào để log hay giám sát mọi hoạt động của client ở phía client không.

Lưu ý: Không làm bất kỳ thao tác nào ở phía server.

Mong mọi người giúp đỡ. Cảm ơn.

centos wrote:
mà cài nginx without chi vậy bồ, cứ để ./configure mà phang 

--->sao bồ không yum hay apt-get hay pacman cho nó sương hơn biên dịch làm gì hã bồ.

Code:
# ./configure --without-http_autoindex_module --without-http_ssi_module --without-http_userid_module --without-http_auth_basic_module --without-http_geo_module --without-http_empty_gif_modul
2011/09/14 01:02:43 [error] 25174#0: *5098 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"


--->cảm ơn bạn, tôi đã thêm module đó, tuy nhiên lỗi vẫn vậy.

Mấu chốt lỗi là chỗ này:
Code:
location / {
root html;
index index.html index.htm;
}


tôi tiến hành change như sau

Code:
location / {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
index index.html index.htm index.php;
}

--->thì lỗi không còn hiện ra như trên, tuy nhiên ko hiển thị trang, mà là 1 trang trắng xoá.

centos wrote:

Nguyen Canh Toan wrote:
Chào mọi người !
Sơ đồ mạng của mình bao gồm như sau :
1 server haproxy đứng trước để đỡ request
2 server web ở phía trong

yêu cầu :
1. haproxy nhận request và phân tán request tới 2 server theo các thuật toán cân bằng tải.
Cái này thì mình đã làm và sử dụng thuật toán RR
2. Các server web trực tiếp reponse tới người dùng cuối mà không phải thông qua haproxy.
Mình muốn như vậy vì để tránh trường hợp thắt cổ chai. Tức là khi số người truy cập quá lớn thì một lượng request vào và lượng reponse thông qua haproxy là rất lớn.

Mình muốn nhờ mọi người ai đã từng làm thì giúp đỡ mình với!
Vì đọc trên trang chủ của Haproxy mình tìm mà chưa thấy nói về vấn đề này.
Thanks ! 


thắc cổ chai là thắc cái gì, bạn sợ vấn đề gì sảy ra????????.  

--->bạn ấy lo là đúng trường hợp request vào với số lượng lớn và response cũng số lượng lớn, thì lúc này cần xem lại hiệu suất của HA Proxy.

--->Tôi nghĩ để đáp ứng yêu cầu của bạn Nguyen Canh Toan, bạn thử nghiên cứu LVS- DR xem sao.
Đây là log nginx
Code:
[root@proxy php-5.3.8]# tail /usr/local/nginx1/logs/error.log
2011/09/13 23:32:36 [error] 25174#0: *5095 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/13 23:32:37 [error] 25174#0: *5095 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/13 23:32:37 [error] 25174#0: *5095 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/13 23:32:37 [error] 25174#0: *5095 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/13 23:32:37 [error] 25174#0: *5095 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/13 23:32:37 [error] 25174#0: *5095 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/14 00:50:57 [error] 25174#0: *5097 directory index of "/usr/local/nginx1//html/" is forbidden, client: 127.0.0.1, server: nixcraft.in, request: "POST / HTTP/1.1", host: "localhost"
2011/09/14 01:02:04 [error] 25174#0: *5098 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/14 01:02:06 [error] 25174#0: *5098 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
2011/09/14 01:02:43 [error] 25174#0: *5098 directory index of "/usr/local/nginx1//html/" is forbidden, client: 192.168.137.1, server: nixcraft.in, request: "GET / HTTP/1.1", host: "192.168.137.253"
Em đã tiến hành biên dịch nginx tuy nhiên hiện tại nó chỉ có thể chạy được html, còn php thì bị lỗi 403.

Code:
# ./configure --without-http_autoindex_module --without-http_ssi_module --without-http_userid_module --without-http_auth_basic_module --without-http_geo_module --without-http_empty_gif_modul


Sau đó em biên dịch php-5.3.8
Code:
./configure --with-zlib --with-bz2 --with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd --with-ldap --enable-mbstring --with-mcrypt --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --enable-soap --enable-sqlite-utf8 --enable-zip --with-openssl


Sau đó em biên dịch spawn-fcgi 1.6.3
Code:
./configure


Tiến hành bật dịch vụ nginx và spawn-fcgi
Code:
[root@localhost init.d]# service fastcgi start
Starting php-cgi: spawn-fcgi: child spawned successfully: PID: 9146
Starting fastcgi: ok
[root@proxy spawn-fcgi-1.6.3]# /usr/local/nginx1/sbin/nginx


Kiêm tra:
Code:
[root@proxy spawn-fcgi-1.6.3]# netstat -an | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
[root@proxy spawn-fcgi-1.6.3]# netstat -an | grep :9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN
[root@proxy spawn-fcgi-1.6.3]#

File cấu hình của nginx.conf
Code:
#user nobody;
worker_processes 1;
user nginx nginx;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name nixcraft.in www.nixcraft.in;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
location ~ ^/index.php
{
fastcgi_pass 127.0.0.1:9000;
#CHANGE THIS TO THE PATH TO YOUR WEB ROOT DIRECTORY
fastcgi_param SCRIPT_FILENAME /var/www/marketdark$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}
#error_page 404 /404.html;
# wwwect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass  http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
}


File cấu hình của fastcgi_params
Code:
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-wwwect
#fastcgi_param REDIRECT_STATUS 200;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;


Em cảm ơn!
Cũng là yêu cầu đó, nhưng lần này là ứng dụng trên môi trường windows, anh chị nào có kinh nghiệm xin định hướng hoặc chỉ bảo giúp em. Cảm ơn!

quanta wrote:
Anh đề nghị chuyển sang gnome profile (chứ không phải desktop). Những dòng cuối cùng khi em chạy `emerge -vuaND world` có nội dung thế nào? 


Em đã chuyển sang profile gnome
Code:
localhost ~ # eselect profile list
Available profile symlink targets:
[1] default/linux/x86/10.0
[2] default/linux/x86/10.0/desktop
[3] default/linux/x86/10.0/desktop/gnome *
[4] default/linux/x86/10.0/desktop/kde
[5] default/linux/x86/10.0/developer
[6] default/linux/x86/10.0/server
[7] hardened/linux/x86
[8] hardened/linux/x86/selinux
[9] selinux/2007.0/x86
[10] selinux/2007.0/x86/hardened
[11] selinux/v2refpolicy/x86
[12] selinux/v2refpolicy/x86/desktop
[13] selinux/v2refpolicy/x86/developer
[14] selinux/v2refpolicy/x86/hardened
[15] selinux/v2refpolicy/x86/server


Các dòng cuối của lệnh emerge -vuaND world
Code:
Total: 25 packages (23 new, 2 reinstalls), Size of downloads: 51,916 kB
* Error: circular dependencies:
(perl-core/CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) depends on
(virtual/perl-ExtUtils-MakeMaker-6.580.0::gentoo, ebuild scheduled for merge) (buildtime)
(perl-core/ExtUtils-MakeMaker-6.580.0::gentoo, ebuild scheduled for merge) (runtime)
(virtual/perl-CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) (buildtime)
(perl-core/CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) (runtime)
* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.
em đã chuyển sang profile:
Code:
[1] default/linux/x86/10.0
[2] default/linux/x86/10.0/desktop *
[3] default/linux/x86/10.0/desktop/gnome
[4] default/linux/x86/10.0/desktop/kde
[5] default/linux/x86/10.0/developer
[6] default/linux/x86/10.0/server
[7] hardened/linux/x86
[8] hardened/linux/x86/selinux
[9] selinux/2007.0/x86
[10] selinux/2007.0/x86/hardened
[11] selinux/v2refpolicy/x86
[12] selinux/v2refpolicy/x86/desktop
[13] selinux/v2refpolicy/x86/developer
[14] selinux/v2refpolicy/x86/hardened
[15] selinux/v2refpolicy/x86/server

Và sau đó update:

Code:
emerge -vuaND world


Kết quả sau khi em gõ lệnh emerge gnome vẫn chưa chưa được anh à:

Code:
Total: 129 packages (129 new), Size of downloads: 376,396 kB
* Error: circular dependencies:
(perl-core/CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) depends on
(virtual/perl-ExtUtils-MakeMaker-6.580.0::gentoo, ebuild scheduled for merge) (buildtime)
(perl-core/ExtUtils-MakeMaker-6.580.0::gentoo, ebuild scheduled for merge) (runtime)
(virtual/perl-CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) (buildtime)
(perl-core/CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) (runtime)
* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
sys-fs/udev:0
(sys-fs/udev-171-r1::gentoo, installed) pulled in by
(no parents that aren't satisfied by other packages in this slot)
(sys-fs/udev-171-r1::gentoo, ebuild scheduled for merge) pulled in by
>=sys-fs/udev-171[gudev] required by (gnome-base/gvfs-1.6.7-r1::gentoo, ebuild scheduled for merge)
>=sys-fs/udev-171[gudev] required by (sys-power/upower-0.9.12::gentoo, ebuild scheduled for merge)
>=sys-fs/udev-171[gudev] required by (sys-fs/udisks-1.0.3-r1::gentoo, ebuild scheduled for merge)
>=sys-fs/udev-171[gudev] required by (media-video/cheese-2.32.0::gentoo, ebuild scheduled for merge)
!!! Enabling --newuse and --update might solve this conflict.
!!! If not, it might help emerge to give a more specific suggestion.
The following USE changes are necessary to proceed:
#required by gnome-extra/hamster-applet-2.32.1, required by gnome-base/gnome-2.32.1, required by gnome (argument)
>=dev-lang/python-3.2 sqlite
#required by net-libs/xulrunner-2.0.1-r1, required by gnome-extra/yelp-2.30.2-r6, required by gnome-base/gnome-2.32.1, required by gnome (argument)
=media-libs/libpng-1.4.8-r1 apng
#required by app-admin/sabayon-2.30.1, required by gnome-base/gnome-2.32.1[ldap], required by gnome (argument)
=x11-base/xorg-server-1.10.3 kdrive
NOTE: This --autounmask behavior can be disabled by setting
EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.
Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Anh chị nào đang dùng và đã tưng dụng gentoo, xin giải đáp giúp em .

Em cài đặt gnome thông qua câu lệnh

Code:
emerge gnome


Kết quá:
Code:
* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
* Last emerge --sync was 61d 20h 28m 51s ago.
Calculating dependencies... done!
[nomerge ] gnome-base/gnome-2.32.1 USE="cups -accessibility -cdr -dvdr -ldap -mono -policykit"
[nomerge ] gnome-base/gvfs-1.6.7-r1 USE="cdda gdu gnome http udev -archive -avahi -bash-completion -bluetooth -doc -fuse -gnome-keyring -gphoto2 -ios (-prefix) -samba"
[nomerge ] sys-apps/gnome-disk-utility-2.32.1-r1 USE="-avahi -doc -fat -gnome-keyring -nautilus -remote-access"
[nomerge ] x11-misc/xdg-utils-1.1.0_rc1_p20110519 USE="-doc"
[nomerge ] dev-perl/File-MimeInfo-0.15-r1 USE="-test"
[nomerge ] dev-perl/File-DesktopEntry-0.04 USE="-test"
[nomerge ] dev-perl/File-BaseDir-0.03 USE="-test"
[nomerge ] virtual/perl-Module-Build-0.380.0-r2
[nomerge ] perl-core/Module-Build-0.380.0
[nomerge ] virtual/perl-CPAN-Meta-2.110.930
[ebuild N ] perl-core/CPAN-Meta-2.110.930 69 kB
[ebuild N ] virtual/perl-ExtUtils-MakeMaker-6.580.0 0 kB
[ebuild N ] perl-core/ExtUtils-MakeMaker-6.580.0 405 kB
[ebuild N ] perl-core/Module-Build-0.380.0 299 kB
[ebuild N ] virtual/perl-CPAN-Meta-2.110.930 0 kB
[ebuild N ] gnome-base/gnome-2.32.1 USE="cups -accessibility -cdr -dvdr -ldap -mono -policykit" 0 kB
[ebuild N ] sys-apps/gnome-disk-utility-2.32.1-r1 USE="-avahi -doc -fat -gnome-keyring -nautilus -remote-access" 2,165 kB
[nomerge ] gnome-base/gnome-2.32.1 USE="cups -accessibility -cdr -dvdr -ldap -mono -policykit"
[ebuild N ] gnome-base/gdm-2.20.11 USE="consolekit pam tcpd -accessibility -afs -branding -debug -dmx -gnome-keyring -ipv6 -remote (-selinux) -xinerama" 3,923 kB
[ebuild N ] x11-misc/xdg-utils-1.1.0_rc1_p20110519 USE="-doc" 288 kB
[ebuild N ] dev-perl/File-MimeInfo-0.15-r1 USE="-test" 29 kB
[ebuild N ] dev-perl/File-DesktopEntry-0.04 USE="-test" 14 kB
[ebuild N ] dev-perl/File-BaseDir-0.03 USE="-test" 6 kB
[ebuild N ] virtual/perl-Module-Build-0.380.0-r2 0 kB
[ebuild N ] media-sound/sound-juicer-2.32.0 USE="-debug -test" 2,127 kB
[ebuild N ] gnome-base/gvfs-1.6.7-r1 USE="cdda gdu gnome http udev -archive -avahi -bash-completion -bluetooth -doc -fuse -gnome-keyring -gphoto2 -ios (-prefix) -samba" 1,372 kB
Total: 15 packages (15 new), Size of downloads: 10,693 kB
* Error: circular dependencies:
(perl-core/CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) depends on
(virtual/perl-ExtUtils-MakeMaker-6.580.0::gentoo, ebuild scheduled for merge) (buildtime)
(perl-core/ExtUtils-MakeMaker-6.580.0::gentoo, ebuild scheduled for merge) (runtime)
(virtual/perl-CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) (buildtime)
(perl-core/CPAN-Meta-2.110.930::gentoo, ebuild scheduled for merge) (runtime)
* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
sys-fs/udev:0
(sys-fs/udev-171-r1::gentoo, installed) pulled in by
(no parents that aren't satisfied by other packages in this slot)
(sys-fs/udev-171-r1::gentoo, ebuild scheduled for merge) pulled in by
>=sys-fs/udev-171[gudev] required by (gnome-base/gvfs-1.6.7-r1::gentoo, ebuild scheduled for merge)
>=sys-fs/udev-171[gudev] required by (sys-power/upower-0.9.12::gentoo, ebuild scheduled for merge)
>=sys-fs/udev-171[gudev] required by (sys-fs/udisks-1.0.3-r1::gentoo, ebuild scheduled for merge)
>=sys-fs/udev-171[gudev] required by (media-video/cheese-2.32.0::gentoo, ebuild scheduled for merge)
dev-lang/python:3.2
(dev-lang/python-3.2::gentoo, installed) pulled in by
(no parents that aren't satisfied by other packages in this slot)
(dev-lang/python-3.2::gentoo, ebuild scheduled for merge) pulled in by
>=dev-lang/python-2.5[sqlite] required by (gnome-extra/hamster-applet-2.32.1::gentoo, ebuild scheduled for merge)
!!! Enabling --newuse and --update might solve this conflict.
!!! If not, it might help emerge to give a more specific suggestion.
The following USE changes are necessary to proceed:
#required by media-video/cheese-2.32.0, required by gnome-base/gnome-2.32.1, required by gnome (argument)
>=sys-apps/dbus-1.4.12 X
#required by sys-auth/polkit-0.101-r1, required by sys-fs/udisks-1.0.3-r1, required by sys-apps/gnome-disk-utility-2.32.1-r1, required by gnome-base/gvfs-1.6.7-r1[gdu], required by gnome-base/libgnome-2.32.1, required by gnome-base/libgnomeui-2.24.5, required by dev-python/libgnome-python-2.28.1, required by gnome-extra/hamster-applet-2.32.1, required by gnome-base/gnome-2.32.1, required by gnome (argument)
>=sys-auth/consolekit-0.4.5-r1 policykit
#required by media-sound/sound-juicer-2.32.0, required by gnome-base/gnome-2.32.1, required by gnome (argument)
>=gnome-base/gvfs-1.6.7-r1 cdda gdu
#required by sys-fs/udisks-1.0.3-r1, required by sys-apps/gnome-disk-utility-2.32.1-r1, required by gnome-base/gvfs-1.6.7-r1[gdu], required by gnome-base/libgnome-2.32.1, required by gnome-base/libgnomeui-2.24.5, required by dev-python/libgnome-python-2.28.1, required by gnome-extra/hamster-applet-2.32.1, required by gnome-base/gnome-2.32.1, required by gnome (argument)
=sys-block/parted-2.4 device-mapper
#required by net-libs/xulrunner-2.0.1-r1, required by gnome-extra/yelp-2.30.2-r6, required by gnome-base/gnome-2.32.1, required by gnome (argument)
=media-libs/libpng-1.4.8-r1 apng
#required by x11-wm/metacity-2.30.3, required by gnome-base/gnome-control-center-2.32.1-r1, required by gnome-extra/hamster-applet-2.32.1, required by gnome-base/gnome-2.32.1, required by gnome (argument)
>=x11-libs/pango-1.28.4 X
#required by sys-fs/udisks-1.0.3-r1, required by sys-apps/gnome-disk-utility-2.32.1-r1, required by gnome-base/gvfs-1.6.7-r1[gdu], required by gnome-base/libgnome-2.32.1, required by gnome-base/libgnomeui-2.24.5, required by dev-python/libgnome-python-2.28.1, required by gnome-extra/hamster-applet-2.32.1, required by gnome-base/gnome-2.32.1, required by gnome (argument)
=sys-fs/udev-171-r1 gudev
#required by gnome-extra/hamster-applet-2.32.1, required by gnome-base/gnome-2.32.1, required by gnome (argument)
>=dev-lang/python-3.2 sqlite
#required by x11-libs/gtk+-3.0.11, required by media-libs/libcanberra-0.28-r2[gtk3], required by x11-wm/metacity-2.30.3, required by gnome-base/gnome-control-center-2.32.1-r1, required by gnome-extra/hamster-applet-2.32.1, required by gnome-base/gnome-2.32.1, required by gnome (argument)
=x11-libs/cairo-1.10.2-r1 X
#required by app-text/evince-2.32.0-r3, required by gnome-base/gnome-2.32.1, required by gnome (argument)
>=app-text/poppler-0.16.7 cairo
NOTE: This --autounmask behavior can be disabled by setting
EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.
Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).
* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


Đây là nội dung file nano -w /etc/make.conf của em
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
GENTOO_MIRRORS="http://gentoo.localhost.net.ar/ ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/ http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gen$
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
MAKEOPTS="-j2"
USE="nptl nptlonly -ipv6 -fortran unicode svg hal jpeg dbus -kde -qt4 -arts -eds -esd gnome gstreamer gtk firefox"
ACCEPT_KEYWORDS="~x86"


Em cảm ơn!

xuan184 wrote:
nè bạn
http://www.timviecnhanh.com/vieclam/congviec/2417586/ky-thuat-vien-quan-tri-may-chu-linux.html 

--->Cảm ơn ý tốt của bạn, tui cũng đã trúng tuyến công ty này rồi. Tuy nhiên do bên công ty gọi chậm quá, nên tôi đã đồng ý làm ở một chỗ khác trước đó.

Cảm ơn mọi người!

quanta wrote:
Làm sao mà nằm trên máy client được khi mà client ssh vào server và gõ lệnh trên server?

Nếu không làm gì trước thì `~/.bash_history` có lưu rồi đấy. Nhưng user cũng có thể dễ dàng clear.

PS: mục đích của em là gì? 

--->Lúc đầu em cũng nghĩ như anh, không làm gì trước thì làm sao loggin được, tuy nhiên trong thực tế vẫn có 2 cách đó anh, nhưng đối với em cũng chưaê đạt yêu cầu mới chỉ đáp ứng được 60-70% yêu cầu, vì sao tí nữa em nói nhượt điểm:

1. Anh có thể dùng lệnh:
Code:
ssh user@host | tee -ai /var/log/sshd

2.Anh dùng command script:
Code:
script -c "ssh user@host" /var/log/sshd


--->với 2 cách trên nó điều ghi lại mà chính xác hơn là nó "chụp lại" tất cả những gì xảy ra(lệnh, kết quả của lệnh,...) sau khi client đã ssh vào server. Tuy nhiên cấu trúc log này không giống cấu trúc bình thường, bên cạnh đó có một số ký tự lạ làm cho việc xem log gặp khó khăn(tail,...).

quanta wrote:

vitcon01 wrote:
Tuy nhiên nó chỉ log tại server chứ khi ssh vào nó không thấy nó log đâu cả.
 

Ý em là sao? 

---->dạ có nghĩa là, mình phải install snoopy trên server trước thì nó mới log lại(file log được lưu nằm trên server). Nhưng ở đây em muốn sau khi client ssh vào server gõ lệnh thì tất cả các lệnh phải được lưu vào log(file log nằm trên máy client), mà không thao tác bất kỳ thứ gì ở phía server trước cả.

quanta wrote:
Em tìm hiểu Snoopy xem: http://sourceforge.net/projects/snoopylogger/.  

-->em đang tìm hiểu nó, snoopy nó log tất cả các lệnh mà người dùng gõ vào. Tuy nhiên nó chỉ log tại server chứ khi ssh vào nó không thấy nó log đâu cả.
-Em có 2 máy, 1 máy đóng vai trò client và 1 máy đóng vai trò server.
-Máy client đã ssh vào trong server.

Yêu cầu: Vậy em có thể ghi log lại toàn bộ lệnh từ phía client hay không(client đã ssh vào server, gõ lệnh nào log lệnh đó)... và giải pháp là gì.

Em cảm ơn!

_sharp_ wrote:
bác này là vitcon bên vozforum ah ???  

--->xin lỗi không phải đâu ah.

Nếu anh(chị) nào liên hệ, xin gọi điện trực tiếp hoặc qua mail, vì điện thoại em ko nhận tin nhắn được.
Em cảm ơn!
*Thông tin người tìm việc
Tiêu đề hồ sơ: Nhân Viên Kỹ Thuật Máy Chủ, Server, Website, quản trị mạng
Tên ứng viên: Lê Thanh Thương
Ngày sinh: 01.07.1990
Giới tính: Nam
Tình trạng hôn nhân: Độc thân
Địa chỉ: 315 Đường Lê Quang Định, Phường 5 Quận Bình Thạnh, TP Hồ Chí Minh
Điện thoại: 01693091115
Điện thoại di động: 01693091115
Trình độ: Cao đẳng
Email: chip@2mit.org

*Công việc mong muốn: Nhân Viên Kỹ Thuật Máy Chủ, Server, Website
Vị trí: Nhân viên
Công việc mong muốn:
-Quản trị hệ thống các server – hosting –domain
+ Cài đặt và triển khai các dịch vụ trên hệ thống Linux
+ Đảm bảo hệ thống hoạt động ổn định có hiệu năng và tính sẵn sàng cao .
+ Nâng cao tính sẵn sàng cho hệ thống thông qua heartbeat.
+ Nâng cao hiệu năng hệ thống thông qua việc triển khai squid proxy.
+ Giám sát sự hoạt động của hệ thống và phân tích hệ thống khi có sự cố xảy ra thông qua các log file, hoặc các chương trình giám sát khác.
+ Tối ưu hệ thống(biên dịch nhân), tối ưu các gói phần mềm dịch vụ(apache, php, mysql,..).
+ Backup và restore hệ thống(hệ điều hành, dữ liệu người dùng web,…).
+ Viết các shell script, tự động hóa một số công việc.
+ Bảo mật hệ thống(hạn chế tấn công DDOS, SQL Injection, XSS, Local Attack,..) thông qua các tiện ích iptables, mod security,...
- Quản trị các hệ thống website
+ Tham gia các dự án thiết kế web
+ Code php, SQL
+ Ứng dụng các công nghệ web ajax , jquery để phù hợp các nhu cầu khách hàng.
- Tham gia các dự án lập trình ứng dụng và lập trình mạng bằng ngôn ngữ C#.

*Kỹ năng công việc:
- Có khả năng triển khai và thiết kế cơ sở hạ tầng mạng
- Quản trị được hệ thống windows và Linux, triển khai và quản trị các dịch vụ(Web serrver, FTP server, Mysql,…) trên hệ thống Linux và Windows
- Sử dụng thành thạo và quản trị các hệ quản trị cơ sở dữ liệu Access, My SQL.
- Lập trình được các ngôn ngữ
+ SQL
+ PHP, HTML, ứng dụng các công nghệ web Ajax, jquery
+ Lập trình mạng với C#
- Quản trị được các hệ thống website
- Sử dụng và quản trị hầu hết các open source(VBB, Joomla, PHPBB, Nuke Viet,…).
- Viết được component cho open source Joomla
- Đọc hiểu tài liệu tiếng Anh
- Có kỹ năng giao tiếp, trình bày tốt
- Chăm chỉ, biết tổ chức sắp xếp công việc và có tinh thần trách nhiệm
- Dễ dàng thích nghi với môi trường mới
- Đam mê và không ngừng học hỏi để nâng cao kiến thức
Hình thức làm việc: Nhân viên chính thức
Lĩnh vực ngành nghề: Công nghệ thông tin
Địa điểm làm việc: - TP.Hồ Chí Minh
Kỹ năng giao tiếp: - Trung cấp
Sẵn sàng di chuyển: Có

*Quá trình học tập và bằng cấp đạt được
+Bằng Giỏi Cử Nhân Công Nghệ Thông Tin do Trường Cao Đẳng CNTT Hữu Nghị Việt - Hàn cấp 2011
+ CCNA do Trường Cao Đẳng CNTT Hữu Nghị Việt - Hàn cấp 2011
-Network Fundamentals
-Routing Protocols and Concepts
-LAN Switching and Wireless
-Accessing the WAN
+Thiết kế website chuyên nghiệp cho doanh nghiệp do Trường Cao Đẳng CNTT Hữu Nghị Việt - Hàn cấp 2011
-HTML
-PHP
-SQL

*Kinh nghiệm làm việc và hoạt động ngoại khoá
- Tham gia 2 đề tài khoa học cấp trường
+ Xây dựng website quản lý đào tạo ngắn hạn của trường Cao đẳng CNTT hữu nghị Việt- Hàn.
+ Triển khai quản trị mạng theo mô hình miền cho trường Cao đẳng CNTT hữu nghị Việt- Hàn.
- Tham gia các chương trình mùa hè xanh.
+ Tiếp sức mùa thi(3 lần).
+ Dân vận(1 lần).
- Tham gia hiến máu nhân đạo tại trường 4 lần trong 3 năm học.
- Xây dựng diễn đàn sinh viên cho trường.
- Đã từng giúp SPT chi nhánh Đà Nẵng triển khai hệ thống ISPCONFIG trên Linux.
- Đã làm việc 1 tháng về lập trình web cho PROVIETNAM(trước kia là KHUCGIA), số dự án hoàn thành là 5 lớn nhỏ.
- Thực tập tại Trung tâm ứng cứu khẩn cấp máy tính Việt Nam chi nhánh Đà Nẵng với đề tài “Phân Tích Gói Tin Với Phần Mềm Wireshark” .
- Thực hiện luận văn tốt nghiệp “Xây dựng chương trình phân tính lưu lượng và phát hiện xâm nhập”.
Người tham khảo:
- Hướng dẫn đề tài tốt nghiệp: Ths Lê Tự Thanh – Trường Cao Đẳng CNTT Hữu Nghị Việt – Hàn
- Hướng dẫn thực tập: Phạm Phú Thuận chuyên viên tại Trung tâm ứng cứu khẩn cấp máy tính Việt Nam chi nhánh Đà Nẵng.

*Sở thích:
- Đọc sách và các tin tức về các công nghệ mới.
- Hạn chế DDOS cho các server.
- TCP/IP, Linux system administrator.

FatD wrote:
Hix, không hiểu sao đang ssh thì bị disconnect, server hết ra mạng được, ping cũng không được, phải vào tắt apf đi thì mới bình thường trở lại. Ai biết vụ này không ? 

-->APF thực chất cũng chỉ là một tập rules của iptables được viết trong một scripts, nếu không hiểu các tuỳ chọn trong rules iptables mà cứ rập khuôn theo tập rules đó. Lúc đó bồ sẽ ko biết được nguyên nhân vì sao xảy ra các trường hợp trên.
--->Bồ nên tìm hiểu iptables trước, tài liệu bồ có thể lên trang chủ iptables mà down.
gõ thử lệnh sau, xem thử nó thông báo như thế nào
intit 5

Dauchamhoi wrote:
Bác restart lại dịch vụ winbind (service winbind restart) và vào file smb.conf, krb.conf, krb5.conf xem lại nhé, nếu ko đc thì email cho tớ (nvtai1988@gmail.com)
lần sau có hỏi thì qua diễn đàn khác mà hỏi, diễn đàn nầy được cái tiếng thôi, chứ hỏi cả ngày có ai trả lời đâu 

---->nên tìm hiểu trước khi phán xét lung tung!

@truong.ln: bồ kiểm tra xem service winbind đã chạy chưa
Sau đó gõ lại các lệnh getent passwd và getent group xem thử đã có user và group của AD chưa.
 
Go to Page:  First Page Page 2 4 5 6 Page 7 Last Page

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|