Playing with linux requires debian.

Source: Internet
Author: User
When you are playing with linux, you need to play with the debian-Linux Release Technology-Debian information. The following is a detailed description. I have heard that Debian is fun and I have no chance to test it. Recently, Debian was installed on my teeth and a new round of pain began.

I installed the etch version to be released in July. The new version supports more new hardware and brings many new problems. Copy the Problems and Solutions

1. After Gnome is installed and then JDK is installed, it is found that/etc/profile does not work. JAVA_HOME, the most basic environment variable, cannot be set anyway.

Later, the study found that due to the installation of gestational disease (gmtr), no execution of the/etc/profile was performed at startup. If the domain name is deleted, everything is normal. The following sentence was added to/etc/X11/Xsession to solve the problem.

Source/etc/profile

2.rar Decompression
Download WinRAR for Linux:

Decompress:
Tar-zxvf rarlinux-3.5.1.tar.gz

After decompression, the rar, unrar, and rar_static files in the directory are put under a directory of $ PATH, such as/usr/local/bin or ~ /Bin

The problem is that libstdc ++. so.5 cannot be found during decompression.

This problem is tricky. Because I do not know much about linux, I had to search for it on the Internet and find that the network is really a good thing.

The new version of Debian already comes with libstdc ++. so.6. If you want libstdc ++. so.5, You need to reinstall libstdc ++ 5.

Apt-get install libstdc ++ 5

3. ADSL Internet sharing
It is easy to dial the adsl instance. pppoeconf can be used to achieve network sharing and NAT. Now it seems that iptables has been used.

One sentence

Iptables-a postrouting-t nat-o ppp0-s $ INNET-j MASQUERADE

What about NAT ??? NAT master? C. two sentences.

Iptables-a input-p TCP-I ppp0 -- dport 46813-j ACCEPT
Iptables-t nat-a prerouting-p tcp-I ppp0 -- dport 46813-j DNAT -- to 192.168.2.47: 46813

How To Enable Automatic startup?

Iptables-save>/etc/iptables. up. rules save existing rules

Add a sentence at the end of/etc/network/interfaces.

Pre-up/sbin/iptables-restore </etc/iptables. up. rules
Reboot.

The world of linux is a free world, which is completely different from that of windows. With the network, linux has developed considerably. The free world is changing too fast, and software updates are varied. Despite all kinds of problems, various answers are also found.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.