Raspberry pie modifies mine pool address
Publish: 2021-04-16 08:08:04
1. 1、 To temporarily modify
you must first turn off the network card device, otherwise you will report that the system is busy and cannot be changed
sudo ifconfig eth0 down
modifying MAC address is simpler than modifying MAC address in windows
sudo ifconfig eth0 HW ether 00: AA: BB: CC: DD: EE (your Mac address)
re enable the network card
sudo ifconfig eth0 up
the MAC address change of the network card is completed
2. Permanent modification (two methods)
method 1
the above is only a temporary modification of the MAC address, if you need to automatically modify the MAC address every time the system starts up, Then you can write the above command to the startup script. The way I use is to write it to the end of / etc / init.d/rc.local
sudo nano / etc / init. D / RC. Local
Restart RC. Local
sudo / etc / init. D / RC. Local start
method 2
Edit / etc / network / interfaces file directly, Add a line after Iface eth0 INET static:
pre up ifconfig eth0 HW ether XX: XX: XX: XX: XX: XX (MAC to be changed)
Edit Interfaces File
sudo nano / etc / network / interfaces
as follows:
face eth0 INET static
pre up ifconfig eth0 HW ether XX: XX: XX: XX: XX: XX (MAC to be changed)
address 192.168.1.10
netm Ask 255.255.255.0
gateway 192.168.1.1
Restart network card
sudo / etc / init.d/networking restart
note: MAC address is detected and loaded by udev at system startup, which can be reflected in the following two files
/ sys / class / net / eth0 / address
/ etc / udev / rules.d/70-persistent-net.rules --- modification is invalid, However, the value of / sys / class / net / eth0 / address changes immediately after the MAC is modified with ifconfig; But / etc / udev / rules.d/70-persistent-net.rules has not changed. This file will be modified only when udev detects that the hardware has changed.
you must first turn off the network card device, otherwise you will report that the system is busy and cannot be changed
sudo ifconfig eth0 down
modifying MAC address is simpler than modifying MAC address in windows
sudo ifconfig eth0 HW ether 00: AA: BB: CC: DD: EE (your Mac address)
re enable the network card
sudo ifconfig eth0 up
the MAC address change of the network card is completed
2. Permanent modification (two methods)
method 1
the above is only a temporary modification of the MAC address, if you need to automatically modify the MAC address every time the system starts up, Then you can write the above command to the startup script. The way I use is to write it to the end of / etc / init.d/rc.local
sudo nano / etc / init. D / RC. Local
Restart RC. Local
sudo / etc / init. D / RC. Local start
method 2
Edit / etc / network / interfaces file directly, Add a line after Iface eth0 INET static:
pre up ifconfig eth0 HW ether XX: XX: XX: XX: XX: XX (MAC to be changed)
Edit Interfaces File
sudo nano / etc / network / interfaces
as follows:
face eth0 INET static
pre up ifconfig eth0 HW ether XX: XX: XX: XX: XX: XX (MAC to be changed)
address 192.168.1.10
netm Ask 255.255.255.0
gateway 192.168.1.1
Restart network card
sudo / etc / init.d/networking restart
note: MAC address is detected and loaded by udev at system startup, which can be reflected in the following two files
/ sys / class / net / eth0 / address
/ etc / udev / rules.d/70-persistent-net.rules --- modification is invalid, However, the value of / sys / class / net / eth0 / address changes immediately after the MAC is modified with ifconfig; But / etc / udev / rules.d/70-persistent-net.rules has not changed. This file will be modified only when udev detects that the hardware has changed.
2. 修改配置文件 pi@aborn ~ $ vi /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.neusoft.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.neusoft.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.ustc.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.ustc.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.neusoft.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.neusoft.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.ustc.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.ustc.e.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
3. MAC address is different from IP address. It is the physical address of network card, which is unique in the world. In theory, MAC address can be changed by changing network card. For raspberry pie, my advice: if you have to change it, change it.
4. Temporarily modify the host name: sudo host name new host name
5. You get a script, one by one ping IP address within the network segment. Then use ARP - A to see the MAC address. The MAC address of raspberry pie is very special. You can find it by searching the Internet
if you surf the Internet at home, it's easy. Usually there are only a few devices at home. The address of raspberry pie must be in the first few automatically assigned IP addresses. For example, 192.168.1.101-104
if you surf the Internet at home, it's easy. Usually there are only a few devices at home. The address of raspberry pie must be in the first few automatically assigned IP addresses. For example, 192.168.1.101-104
6. What system do you have? Some systems just log in directly with the root account.
7. Raspberry pie is a mini desktop
although it uses ARM CPU, it supports general operating system instead of embedded operating system
of course, you can also install operating systems such as Android
the embedded development board mainly uses its own customized operating system
if there is an application that needs to run on the CPU of arm, you can try to play with it
however, when developing a specific embedded system, you usually customize the embedded development board yourself
if you can't do it, you can find some small factories specializing in this kind of development board
the boards used for 10 years basically have no operating system, and they all write their own C
later, VMware was used
it seems that Android is used more now
embedded Linux can also be used
QT is used as the graphical interface
for example, some navigators
MTK has been used in mobile phone development for some time
now it's almost Android.
although it uses ARM CPU, it supports general operating system instead of embedded operating system
of course, you can also install operating systems such as Android
the embedded development board mainly uses its own customized operating system
if there is an application that needs to run on the CPU of arm, you can try to play with it
however, when developing a specific embedded system, you usually customize the embedded development board yourself
if you can't do it, you can find some small factories specializing in this kind of development board
the boards used for 10 years basically have no operating system, and they all write their own C
later, VMware was used
it seems that Android is used more now
embedded Linux can also be used
QT is used as the graphical interface
for example, some navigators
MTK has been used in mobile phone development for some time
now it's almost Android.
8. Search under etc directory
or look in the directory of home / your user name
or look in the directory of home / your user name
Hot content