Skip navigation.

Nghĩ ... Ngẫm ... Ngủ ...

mr ThiTienLuc

Posts tagged with "Linux"

STICKY POST

Welcome to my blog

, , ,


Hello, everyone. My name's Thi Tiến Lực. I come from Viet Nam. Welcome to my blog. :cheers:

Linux Disable / Remove The Iptables Firewall

If you are using RHEL (Redhat), Fedora core or Cent os Linux just type following commands to disable the iptables firewall:
# service iptables save
# service iptables stop
# chkconfig iptables off

If you are using any other Linux distribution type the following command to clear up firewall rules:
# iptables -F
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X
# iptables -P INPUT ACCEPT
# iptables -P OUTPUT ACCEPT

You may need to put above rules in a shell script and execute the same. Also remove your iptables startup script from your network configuration file such as /etc/network/interfaces. Look for post-up directive.

Thanks to http://www.cyberciti.biz

Cron Guide

Cron Help Guide by Joey.
Created on September 19th 2003.
Last updated on September 19th 2003.

http://www.linuxhelp.net/guides/cron/

How to Cheat at Securing Linux

,

Book description: Linux servers now account for 33% of all networks servers running worldwide (Source: IDC). The top 3 market share holders in the network server space (IBM, Hewlett-Packard, and Dell) all use Linux as their standard operating system for the majority of their servers designed for medium to large size businesses. As with any technologies, increased usage results in increased attention from malicious hackers. For years a myth existed that Windows was inherently less secure than Linux, because there were significantly more attacks against Windows machines than Linux. But this was a fallacy. There were more attacks against Windows machines because there were simply so many more Windows machines to attack. Now, the numbers tell the exact OPPOSITE story.

Book Info:
- Author: Mohan Krishnamurthy, Eric S. Seagren, Raven Adler, Aaron Bayles, Josh Burke, Skip Carter, Eli Faskha.
- Published: Sep, 2007
- Download: Part 1 Part 2

Building Secure Servers with Linux

,

Book description: Linux consistently turns up high in the list of popular Internet servers, whether it's for the Web, anonymous FTP, or general services like DNS and routing mail. But security is uppermost on the mind of anyone providing such a service. Any server experiences casual probe attempts dozens of time a day, and serious break-in attempts with some frequency as well. As the cost of broadband and other high-speed Internet connectivity has gone down, and its availability has increased, more Linux users are providing or considering providing Internet services such as HTTP, Anonymous FTP, etc., to the world at large. At the same time, some important, powerful, and popular Open Source tools have emerged and rapidly matured--some of which rival expensive commercial equivalents--making Linux a particularly appropriate platform for providing secure Internet services. Building Secure Servers with Linux will help you master the principles of reliable system and network security by combining practical advice with a firm knowledge of the technical tools needed to ensure security. The book focuses on the most common use of Linux--as a hub offering services to an organization or the larger Internet--and shows readers how to harden their hosts against attacks. Author Mick Bauer, a security consultant, network architect, and lead author of the popular Paranoid Penguin column in Linux Journal, carefully outlines the security risks, defines precautions that can minimize those risks, and offers recipes for robust security. The book does not cover firewalls, but covers the more common situation where an organization protects its hub using other systems as firewalls, often proprietary firewalls.

Book info:
By Michael D. Bauer
First Edition October 2002
Pages: 448
Download: Click Here

Linux Virtual Server - Chap 1

,

1. What is an LVS ? Can I use an LVS ?
+ A Linux Virtual Server (LVS) is a cluster of servers which appears to be one server to an outside client. This apparent single server is called here a "virtual server". The individual servers (realservers) are under the control of a director (or load balancer), which runs a Linux kernel patched to include the ipvs code. The ipvs code running on the director is the essential feature of LVS
+ When a new connection is requested from a client to a service provided by the LVS (e.g. httpd), the director will choose a realserver for the client. From then, all packets from the client will go through the director to that particular realserver. The association between the client and the realserver will last for only the life of the tcp connection (or udp exchange). For the next tcp connection, the director will choose a new realserver

Read more...

How To Multi-Boot Operating Systems

, ,


Overview about :
   1. Disc Drives & Partitions
   2. Booting a Single OS on a PC
   3. Dual-Booting or Multi-Booting Windows OSs
   4. Getting NTLDR to Load Linux
   5. eXtended Operating System Loader (XOSL)


Thank to Subhash
Webpage: http://www.vsubhash.com/writeups/multiboot_os.asp

Eight reasons why Ubuntu is the Linux poster child

1. Its large user base. Because Ubuntu is so popular, it becomes even more popular. This viral marketing was the same thing that made YouTube successful.

2. Hardware support. One of the most common complaints among new Linux users is that their new hardware is not supported by any Linux distribution. Well, with Ubuntu, hardware support is added within days of the hardware coming out.

3. Its ease of use. Lets face it, you can't make a mainstream distribution without ease of use. If you tell a Linux beginner that they will have to type out all their commands into a console, they will have a Windows CD in their disk drive faster then you can say "Open Source".

4. With each new Ubuntu release that comes out, it becomes easier and easier to install. This helps beginners that would normally be frustrated when a cryptic installation error occurs.

5. Its package manager. The package manager in Ubuntu makes finding free Open Source software so easy that even your grandmother could do it. Not only will the package manager download the package for you, but it will also install it for you.

6. Its community. The Ubuntu community is always there to help beginners with any problems that they might encounter on their first Linux experience.

7. The developer support. Ubuntu has shown that support from Open source developers is necessary in order to create a popular and useful, product.

8. Partly because of the package manager, Ubuntu has great media support. From video to music, Ubuntu comes pre-loaded with all the programs you need to watch and listen to your media.

jubuu

man command

Việc sử dụng tốt lệnh man để lấy thông tin sử dụng của các lệnh đã gần như trở thành điều kiện bắt buộc cho những ai muốn sử dụng Linux.

man page section: việc sử dụng tốt từng section trong man giúp cho chúng ta lấy được thông tin một cách chính xác và nhanh nhất.
  Section |  Execute
    1     |   Information on excutables
    2     |   System calls
    3     |   Library calls, e.g stdio
    4     |   Devices (files in /dev)
    5     |   Configuration files and formats
    6     |   Games
    7     |   Macro packages
    8     |   Administration commands
    9     |   Kernel routines 

I S L D C G M A K

Ngoài ra, man còn hổ trợ 2 option khá hay:

man -k keywork: tìm kiếm theo keywork trong phần thông tin của lệnh và thể hiện nó trên đúng dòng. Ví dụ muốn xem lệnh nào có liên quan đến network.

lệnh này rất giống với lệnh apropos. Và dĩ nhiên là để có được các thông tin trên thì bạn trước tiên phải tạo cơ sở dữ liệu cho nó: man -k hoặc apropos thông qua lệnh makewhatis(bắt buộc phải sử dụng trước 2 lệnh trên)

man -f command: tương tự lệnh whatis nó sẽ đưa ra thông tin ngắn gọn của một lệnh nào đó. Và dĩ nhiên vẫn phải cần makewhatis.


Thi Tiến Lực

Linux for Programmers and Users -- ebooks

,

Linux for Programmers and Users
This book is an outgrowth of the popularity of Linux. Its original version, UNIX for Programmers and Users, written by Graham and updated in subsequent editions by King has been widely used in classroom settings and is popular with professionals new to UNIX or UNIX programming. The increasing popularity of Linux created a demand for a Linux version of such a book, especially in classrooms where Linux is emerging as the platform of choice for computer science students
Pub Date : February 15, 2006

Download : Ebook chm --- Ebook pdf