Monday, September 21, 2015

cách fix máy photocopy bị mờ mực

Dòng Toshiba 855:
đầu tiên chúng ta tấm nguồn, sau đó bật lên lại, nhấn dữ phím 05
sau đó vào chế độ test mode ta bấm 201.
ta set hộp mực lên chế độ 350%
tắt máy khời động lại, chờ mực in nó intall lại thì được

Thursday, September 3, 2015

How to access gmail with outlook (pop3)

after enable forward POP & IMAP you need turn on "allowwing less secure apps to access your account"
step1: access address:
https://support.google.com/accounts/answer/6010255?hl=en
click choonse  same image below:

step 2: click same image below
open outlook and config:



Sunday, August 23, 2015

Giới hạn IP truy cập web server IIS 8

Giới hạn IP truy cập IIS


  • Cho phép tất cả, chỉ cấm 1 số ip cố định. trường hợp này thường sử dụng web public, ví dụ chúng ta chặn tất cả các ip kết nối từ china *_*. thi sử dụng trường hợp này.
vào file web.config thêm đoạn code sau:
<security>
   <ipSecurity allowUnlisted="true">    <!-- cho phép tất cả mọi người, trừ các ip bên dưới -->            
       <clear/>     <!-- removes all upstream restrictions -->                
       <add ipAddress="83.116.19.53"/>     <!-- ip mà bạn muốn cấm 83.116.19.53   -->                
       <add ipAddress="83.116.119.0" subnetMask="255.255.255.0"/>     <!--blocks network 83.116.119.0 to 83.116.119.255-->                
       <add ipAddress="83.116.0.0" subnetMask="255.255.0.0"/>     <!--blocks network 83.116.0.0 to 83.116.255.255-->                
       <add ipAddress="83.0.0.0" subnetMask="255.0.0.0"/>     <!--blocks entire /8 network of 83.0.0.0 to 83.255.255.255-->                
   </ipSecurity>
</security>


  • Cấm tất cả, chỉ cho phép vài ip cố định. trường hợp này thường dùng cho web nội bộ. không cần public ra ngoài.
vào file web.config thêm đoạn code sau:
<security>
    <ipSecurity allowUnlisted="false">    <!-- block tất cả mọi người chỉ trừ ip bên dưới -->                
        <clear/> <!-- removes all upstream restrictions -->
        <add ipAddress="127.0.0.1" allowed="true"/>    <!-- allow requests from the local machine -->
        <add ipAddress="83.116.19.53" allowed="true"/>   <!-- allow the specific IP of 83.116.19.53  -->                
        <add ipAddress="83.116.119.0" subnetMask="255.255.255.0" allowed="true"/>   <!--allow network 83.116.119.0 to 83.116.119.255-->                
        <add ipAddress="83.116.0.0" subnetMask="255.255.0.0" allowed="true"/>   <!--allow network 83.116.0.0 to 83.116.255.255-->                
        <add ipAddress="83.0.0.0" subnetMask="255.0.0.0" allowed="true"/>   <!--allow entire /8 network of 83.0.0.0 to 83.255.255.255-->                
    </ipSecurity>
</security>

Wednesday, March 11, 2015

chỉnh sữa logo(theme) đăng nhập Mdeamon

Mdeamon là mail server đơn giản, dễ  xây dựng  & quản trị, phù hợp cho công ty vừa và nhỏ. Dưới đây là các cơ bản để bạn có thể chỉnh sửa lại theme MDeamon nhìn cho pro hơn.
khi bạn đăng nhập vào worldclient thì bạn thấy logo Mdeamon , thật khó chịu, vậy làm sao để thay đổi nó. Mình sẽ giới thiệu các bạn cách để thực hiện điều này.
cách 1:
cách này đơn giản nhất không cần phải biết code gì cả chỉ cần tìm tới thư mục sau:
với phiên bản trước Mdaemon 13
Mdaemon/woldclient/HTML/lockout/
thay file biglogo.gif và smalllogo.gif  thành logo công ty bạn( chú ý kích thước cho đúng đặt đúng tên file).
đối với bản Mdemon 13 trở về sau thì bạn có thể làm đơn giản hơn bằng cách đăng nhập vào webadmin thay đổi nó.
hoặc thây đổi 2 file trong thư mục:
Mdaemon/woldclient/HTML/Branding/




Đăng nhập với port 1000 mặc định



ngoài ra các bạn có thể chỉnh sửa  tùy ý nếu các bạn có chút kiến thức về code html cơ bản. các file sau.
Mdeamon\WorldClient\Templates
các file html chịu khó đọc tiếng anh nhé, tới đây làm biếng rồi blahblah.................................
Logon.html - The Logon view is shown to users when they are not within a continuing session. This is the only view that is not contained in individual Themes directories. “Logon.html” must be placed in “...\WorldClient\Templates”. This View contains the necessary Tags for logging in a user and creating a unique session ID.
Main.html - Sets the frame set for WorldClient.
List.html - Used for displaying the user’s Message Listing, and for managing the messages within their mail folders.
Menu.html - Builds the menu (or Navigation Bar) for navigating throughout WorldClient Pro.
Message.html - Used for displaying individual messages.
Compose.html - The Compose View is used for composing Email messages.
Compose-Advanced.html - This template is similar to “Compose.html” but contains several additional features that users may use when composing messages. Uses the same tags as the Compose View.
Compose-Attach.html - Used for attaching files to messages. Uses the same tags as the Compose View.
Compose-SpellCheck.html - Spell checked messages are displayed on this page.
Options.html - This template is used as a gateway to the other Options Views.
Options-Prefs.html - Used for displaying and editing the user’s preferences.
Options-Hosts.html - Used for displaying and editing the User’s Mailbox entries.
Options-Filters.html - Used for displaying and editing Filters.
Folders.html - Displays a list of the user’s message folders, along with controls for Creating, Deleting, and Renaming them.
AddrBook.html - Displays the user’s Address Book, which is used for managing Email addresses and for inserting those addresses into Email messages.
AddrLookup.html - LDAP lookup template used to add recipients to outgoing messages.
Error.html - Used for displaying error messages to the user.


Wednesday, December 10, 2014

Cài đặt openERP8 Trên CentOS7(how to install OpenERP8 on CentOS 7)

1 .  cấu hình SELinux, thay đổi như bên dưới.
vi /etc/sysconfig/selinux

    2  . ở đây mình tắt firewall. Trên centos7 iptables đã được thay thế bằng firewall.
chkconfig firewalld off
 systemctl stop firewalld
    3. Thường thì MariaDB được cài dặt sẳn trong bản full, nên chúng ta phải remove nó ra. Nếu chúng ta sử dụng bản  simple thì có thể bỏ qua bước này
  # yum remove mariadb mariadb-server
     yum clean all
     yum update
4. Thiết lập một số thư viện cần thiết cho  openERRP.  
  yum install babel python-devel libxslt-python pyparsing python-dateutil python-decorator python-imaging python-jinja2 python-ldap python-lxml python-mako python-psycopg2 python-reportlab python-requests python-werkzeug python-yaml python-docutils  python-matplotlib python-babel python-gevent pygtk2 glade3 pytz libxslt-devel bzr automake gcc gcc-c++ byacc
   5. Tiến hành cài dặt web apache

   yum -y install httpd
xem fle câu hình
    vi /etc/httpd/conf/httpd.conf
     systemctl start httpd
     chkconfig httpd on
    systemctl restart httpd
 6.  cài dặt database cho operrp
  yum install -y postgresql-setup initdb
   yum install postgresql-libs postgresql-server postgresql php-pgsql php-gd
   postgresql-setup initdb
   systemctl enable postgresql.service
    systemctl start postgresql.service
 Tạo user opener như bên dưới.
   su - postgres
   adduser openerp
    passwd opener
tạo user mới cho database.
    su - postgres -c "createuser --pwprompt --createdb --no-createrole --no-superuser openerp"
ý nghĩa của các tham số trên:
·         --createdb : the new user will be able to create new databases
·         --username postgres : createuser will use the postgres user (superuser)
·         --no-createrole : the new user will not be able to create new users
·         --pwprompt : createuser will ask you the new user's password
·         openerp : the new user's name


7.cài đặt python + openerp8    
yum -y install python.
yum install epel-release
yum-config-manager --add-repo=
https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo

yum update
 yum install odoo
 systemctl start odoo
cấu hình file opener.
    vi /etc/odoo/openerp-server.conf

    Phân quyền và tạo file ghi log.
   mkdir -p /var/log/openerp/
   touch /var/log/openerp/openerp-server.log
  chown openerp /var/log/openerp/openerp-server.log
   chmod 644 /var/log/openerp/openerp-server.log
  vi /var/lib/pgsql/data/pg_hba.conf
    su - postgres
    systemctl restart postgresql.service
8.tạo file  khởi động openerp khi mở OS.
     vi /usr/lib/systemd/system/openerp.service
[Unit]
Description=Advanced OpenSource ERP and CRM server
Requires=postgresql.service
After=postgresql.service
[Install]
Alias=openerp.service
[Service]
Type=simple
PermissionsStartOnly=true
EnvironmentFile=-/etc/conf.d/openerp-server
User=openerp
Group=openerp
SyslogIdentifier=openerp-server
PIDFile=/run/openerp/openerp-server.pid
ExecStartPre=/usr/bin/install -d -m755 -o openerp -g openerp /run/openerp
ExecStart=/usr/local/bin/openerp-server -c /etc/openerp-server.conf --pid=/run/openerp/openerp-server.pid --syslog $OPENERP_ARGS
ExecStop=/bin/kill $MAINPID
[Install]
WantedBy=multi-user.target

     systemctl enable openerp.service
     systemctl enable openerp
     chown openerp -R /usr/lib/python2.7/site-packages/openerp/
 9. Đăng nhập:


tạo database và đăng nhập với user admin (mặc định).
hưởng thành quả.
note: bài viết có thamk khảo tài liệu từ doc.odoo.com và rosehosting.com