Customized version of Debian operating system---domestic meditation linux system information
1. Meditation linux system (beta) setting to access the Internet:
1. Set IP: /etc/network/interfaces (set IP gateway and other information in this file)
auto lo #lo is not a loopback interface, its IP is fixed at 127.0.0.1, with an 8-bit mask, representing your machine itself.
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.140
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
2. Set DNS: /etc/resolv.conf
nameserver 114.114.114.114
3. Set restart: service networking restart
4. Set the route: route add default gw 192.168.1.1
There is a problem with the installation on the desktop computer. It cannot access the Internet when it is turned on. Even if the Internet configuration is set, it still cannot access. It can only be manually set in the root terminal every time the computer is started. On the side, there is no difference.
It has been installed on the laptop twice. After setting up the Internet access, you can directly access the Internet every time you restart the computer.
Is there any difference between a notebook and a desktop?
Set up the Internet in the root terminal:
ifconfig eth0 192.168.1.150
route add default gw 192.168.1.1
Ping www.baidu.com (check if you can access the Internet)
2. Meditate on the Linux system, install the software, some of the software downloaded from the Internet has not been decompressed, and it needs to be decompressed and installed under root. The installation process:
Decompression: tar -zxvf ***.tar (***.tar is the uncompressed installation package)
Enter the folder directory: cd *** (enter the *** folder)
Start the installation: ./configure
sudo make
sudo make install
(或者)sudo make &make install
三、常用命令:
安装命令:
sudo apt-get install package_file.deb (类似于pip install)
sudo dpkg –i package_file.deb (安装软件)
sudo apt-get -f install (剔除无用的)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
卸载命令:sudo dpkg -r package_name.deb
dpkg -p package -------删除一个deb 包,包括保留其配置。
(或者:sudo apt-get autoremove --purge package_name)
sudo ---------获取root权限
apt-get ---------执行安装卸载功能的软件。
autoremove ------告诉apt-get我们所要做的操作是移除软件
--purge ------注意前面是两个短划线,这个参数是告诉他们要完整的干净的彻底的移除。