Linux FAQ (Network)

xiaoxiao2021-03-06  43

0001

Let Apache's default character set to Chinese

If it is 1. *, Vi httpd.conf

Find AddDefaultCharset ISO8859-1, change to Adddefaultcharset GB2312

If it is 2. *, you need to change a place, vi httpd.conf

AddDefaultCharset ISO-8859-1 to AddDefaultCharset Off

0002

Permanently change IP

IFConfig Eth0 new IP

Then edit / etc / sysconfig / network-scripts / ifcfg-eth0, modify IP

0003

Windows desktop remotely displayed from Linux (LNX3000)

Install RDESKTOP package

0004

Manually add a default gateway

Execute: Route Add Default GW Gateway IP

Want to change the gateway

1 Vi / etc / sysconfig / network-scripts / ifcfg-eth0

Change Gateway

2 /etc/init.d/network restart

0005 0005

Redhat 8.0 MSN and QQ

Download Gaim version 0.58:

Www.linuxsir.org/gaim/gaim-0.58-2.i386.rpm

Download QQ plugin for GCC2.9:

www.linuxsir.org/gaim/libqq-0.0.3-ft-0.58-gcc296.so.gz

Place the downloaded file in / temp directory, then delete the GAIM already in the system, that is, in the terminal emulator: RPM-E Gaim.

start installation

Open the terminal simulator and continue to perform the following command to install the Gaim version 0.58, namely:

CD / TEMP (enter the temp directory)

RPM-IVH GAIM-0.58-2.i386.rpm (installation software)

When the installation is successful, you can build a GAIM icon on the GNOME or KDE desktop.

Continue to install the QQ plugin, type the command:

Gunzip libqq-0.0.3-ft-0.58-gcc296.so.gz (unzip file)

CP libqq-0.0.3-ft-0.58-gcc296.so / usr / lib / gaim (copy plugin to the GAIM library directory)

Software settings

When you start the GAIM version 0.85, the login interface will appear. First select "Plugin", click "Load" in the Plugin dialog box, respectively

Libmsn.so and libqq-0.0.3-ft-0.58-gcc296.so file is loaded, confirmed, close. Then choose "All Accounts",

The "Add" continues to click "Add" in the account editor that appears. When you appear, we can enter your QQ or MSN number.

, The login name fills in the QQ number or MSN mailbox, the password fills in the corresponding QQ or MSN password, Alias ​​fills in their nickname, protocol selection

Corresponding QQ or MSN, other settings are by default. You can log in when all settings are complete.

0006

Isolated 22 port now

LSOF -I: 22

0007

View this machine's IP, Gateway, DNS

IP:

Log in with the root user, execute ifconfig. Where ETH0 is the first network card, LO is the default device

GATEWAY:

Log in with root users, execute netstat -rn, and the Gateway at the beginning of 0.0.0.0 is the default gateway

You can also view the / etc / sysconfig / network file, with the specified address! DNS:

More /etc/reslov.conf, the content is specified as follows:

Nameserver 202.96.69.38

Nameserver 202.96.64.38

0008

RH8.0 command line easily changing the TTL value (CGWeb)

#nsysctl -w net.ipv4.ip_default_ttl = n

(N = 0 ~ 255), if n> 255, TTL = 0

0009

RH8.0 command line easily change the system configuration default value (Houaq)

Edit /etc/sysctl.conf, for example,

Net.IPv4.ip_forward = 0

Become

Net.IPv4.ip_forward = 1

After the restart, take effect, use sysctl -a to seek know

0010

Directory for other Windows machines on the Mount LAN

Mount -t smbfs -o usrname = guest, password = guest // machine / path / mnt / cdrom

0011

Allow | No root is logged in through SSH (Fun-FreeBSD)

Modify SSHD_CONFIG: PermitRootLogin No | YES

0012

Let root login directly Telnet

Edit /etc/pam.d/login, remove

Auth Required /Lib/security/pam_securetty.so this sentence

0013

ADSL device in Linux

Need a normal Linux at least one network card broadband device has been applied, and it has been opened

There are about several ADSL devices in the front market, and they have some subtle differences in the way.

This process of completing the Internet through virtual dialing, that is, using the PPPoE device for virtual dialing.

It is called a full-time cat, which is an automatic dialing work after power-on, then left to our interface is RJ45.

The gateway that is generally left to our Dalian area is 10.0.0.2, which is the easiest to deal with it, and finally directly distribute

Give the user a fixed IP, relatively easy to deal with

1. The first need is required to dial:

These devices communicate with the computer via the ETH interface, so the connection of the hardware device is first, especially

It is a broadband cat, must be confirmed correctly (otherwise, don't you do something for a while)

Then start the system, confirm whether the software is installed on the system (check it through rpm -qa | grep pppoe

Find), if there is no installed user, in the disc or go online to Down, after installing, ROOT users

Perform ADSL-SETUP, so that the setting status of the ADSL data is entered, requiring the user name to apply for a broadband.

And some other information, confirm that there is no problem, accept until the end (it is E text, but you can understand,

Simple, about a firewall setting, I usually don't use, choose 0, you can consider it.

After the configuration is complete, execute ADSL-START with root users, which will make ADSL dial-up work, will normal.

Online, if there is any specific problem, let's take a look at the log (/ var / log / messages) telling you what.

Stop ADSL and execute ADSL-STOP (very simple)

2. The other two are easier to deal with:

All-to-a cat: Just set your network card to IP's IP, then the gateway refers to the IP of the full-to-direction cat (10.0.0.2), basically no big problem

Fixed IP: Like a network card configured, you can get IP, gateway, and DNs can be done in filled in the application.

0014

Let Linux automatic synchronization time (SHUNZ)

VI / ETC / CRONTAB

Plus:

00 0 1 * * root rdate -s time.nist.gov

0015

What are Linux's online resources?

foreign

http://lwn.net/

http://www.tldp.org/

http://www.yolinux.com/ (FLYING-DANCE BIG BIG PIG)

http://www.justlinux.com/

http://www.linuxtoday.com/

http://www.linuxquestions.org/

http://www.fokus.gmd.de/linux/

http://www.linux-tutorial.info/

http://public.www.planetmirror.com/

http://www.freebsdforums.org/forum/

http://www.netfilter.org/documentation/

http://www-106.ibm.com/developerWorks/linux/

domestic

http://www.fanqiang.com/

http://www.linuxsir.com/

http://www.chinaunix.net/

http://www.linuxfans.org/(deAdcat)

http://www.linuxeden.com/

http://www.linuxforum.net/

http://www.linuxaid.com.cn/

Http://freesoft.online.sh.cn/

Http://www-900.ibm.com/developerWorks/cn/linux/index.shtml

http://www.neweasier.com/software.html

http://www.blueidea.com/bbs/archiveContent.asp?id=635906 (SQH)

0016

Beijing training point

http://www.milkyway.com.cn/

0017

Change the port of Telnet

/ etc / services you can modify the desired port numbers. Restart the daemon

0018

Terminal mode has problems (Sakulagi)

Export Term = VT100

0019

Mimic Super Terminal, What Program in Linux Connects to Routers and Switches (Alstone)

minicom

0020

Can I not automatically disconnect from SSH (WIND521)

That is the Timetou setting, modify the TMOUT variable value

0021

What tool is used to make intrusion detection

Snort

0022

Tools for detecting programs in Linux

CChecker or Efernce can

0023

How to monitor all the data through this NIC under Linux

TCPDUMP iptraf

0024

Why is root to perform a lot of commands say Command Not Found

You must be telnet to D, then SU ​​is root, change your su command format, should be Su - root

0025

Close the user's POP3 permissions (TIANSGX)

The port of POP3 is off. Find this line POP-3 110 / TCP in the file / etc / services to add this line to the '#', you can comment out.

0026

Play Flash Animation under Linux (Myxfc)

LINUX playing Flash animation with this thing, will not cause the browser to close (other plugin is not easy) first download flash play animation in Linux plugin

Http://www.collaborium.org/onsite/jos2000/related/soft/flash_linux.tar.gz

TAR ZXVF FLASH_LINUX.TAR.GZ

After opening the package, you will see the Linux folder.

There are two files libflashplayer.so and shockwaveflash.class in the Linux file, copy these two files into your browser (the browser is different, the position of the plugin may be different)

/usr/lib/mozilla-1.0.1/plugins, you can

0027

Lock the wu-ftp user directory (WANGLA)

Edit FTPAccess file

Restricted-uid *

This sentence is very important to limit FTP users in their own directory.

0028

Why don't you let Telnet (knowing the autumn leaves)

The firewall priority of the Telnet service && server must start on the server should be set to low.

0029

Prevent anyone from using the su order to become root (xiaohu0)

1.vi /etc/pam.d/su

Auth sufficient /lib/security/pam_rootok.so debug

Auth Required /Lib/security/pam_wheel.so group = WHEEL

2. Define the WHEEL group in the / etc / pam. D / SU configuration file.

0030

How to make the Lynx browser to browse Chinese web pages (ghost_vale)

Browse the modification of the simplified Chinese webpage as follows

Save Options to Disk: [x]

Display and character set

Display Character Set: [Chinese________________________]

Assumed Document Character Set (!): [ISO-8859-1 ______]

CJK Mode (!): [ON_]

Then move to the lowermost Accept Changes Press ENTER to save it.

Of course your system supports Simplified Chinese

0031

The network card is activated, but it can't be connected. What should I do? (Slock)

TRACE, see that it is blinded in that piece.

Limited

2.PING gateway

3.PING DNS

4.Trace DNS

IF all = ok

Then nslookup www.sina.com.cn

Ping Sina's Address

TRA SINA 'Address

Basically, you can know the results.

0032

Updated Samba in RedHat9, Win2000 can access, Win98 is not accessible? (Squall2003)

If you are a Wind98 required to modify the registry: hkey_local_machine / system / correntcontrolset / service / vxd / vnetsup built a D value: EnablePlainTextPasswd, key value 1

0033

How to get the MAC address of the NIC

ARP -A | awk '{print $ 4}'

0034

How to get the IP address of the NIC (MB)

Ifconfig eth0 | awk '/ inet addr / {split ($ 2, x, ":"); Print X [2]}'

转载请注明原文地址:https://www.9cbs.com/read-51689.html

New Post(0)