Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I wanted to use my android phone as a display for my Raspberry Pi 4B, so I searched the internet, found an instruction and copied the code into my Pi, I was connected to (via SSH). This is the code I put into /etc/network/interfaces:
iface usb0 inet static
address 192.168.42.42
netmask 255.255.255.0
network 192.168.42.0
broadcast 192.168.42.255
This sets the IP to a static one (192.168.42.42).
I rebooted and tried to SSH with IP 192.168.42.42, because I thought, this was the new IP for the Raspberry Pi.
Long story short, it doesn't work. I also tried some other IP's, I cant find the IP in NUTTY or with nmap.
How can I connect to my PI now? (I don't have a monitor or a crossover LAN cable)
I'm using an older MacBook Pro with Linux Mint 19
Where I got the code from: https://joshuawoehlke.com/android-raspberry-pi-display-over-usb/
You could take the SD card out of the Pi and put it in your Mac/Linux machine and correct/remove the /etc/network/interfaces file from the SD card.
Or, you could go to the SD card's /boot partition and touch ssh in that directory so that sshd starts and also create in that same directory a wpa_supplicant file to match a temporary WiFi hotspot you create on your phone or Mac. Then you can ssh into it over WiFi and whatever you want.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Folks,
I have Kali linux running on VM machine..there are 2 interfaces configured on this machine..1 interface is configured as "share with my Mac" and the other interface is configured as "Private to Mac".And i believe "private to Mac" option will allow me to connect my VM linux machine to the local machine.... ifconfig command doesn't show any output. i have manually configured the IP address to both interface by editing vi /etc/network/interfaces and restarted the network services using the command "/etc/init.d/networking restart"...but still ifconfig doesn't give any result....
Actually i want to communicate on port ssh from my local machine to the linux vm machine..since the machines do not communicate each other.i am not able to work anymore..Can someone please have a look in this issue and let me know what changes are required to complete my requirement...
Have you tried sudo ifconfig ? If it doesn't work the problem could be the drivers of your network card. I'm not sure this will works but you can watch this tutorial How to install network card to Kali
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I made a crossover cable to connect my laptop to my BeagleBone without router. The problem is without router my BB doesnt have IP address so I can't ping it. How do I configure my BB and my laptop to assign a static IP connection between my BB (running latest debian image) and my laptop (running Windows 8.1)?
You setup a static address inside the BB. Then it can be addressed just as in a normal network. You just have to make sure that the routine ruleset on your notebook known which network interface to use to reach the BB.
So typically the BB gets a static address in a a separate local network. Same for the notebook, you configure a static address inside that separate network for the network interface you use to connect to the BB. That way the system known what packages to send and receive via which network adapter.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am at the stage of learning Linux.
I have just installed Fedora20, but I cannot connect to internet with
my Wireless USB adapter....
Can anyone help me to use internet in Linux fedora 20?
This question is probably going to get migrated to somewhere like Super User, but just to give you a starting point, does the Wireless adapter register as an interface? Run ifconfig -a on the terminal and look out for a wlan0.
Then run ifconfig wlan0 up, and you can then do iw dev wlan0 scan to list access points that the card can see. You can then do some Googling about connecting a wireless card using wpa-supplicant.
If you can't see a wlan0 interface in ifconfig it could be that you don't have the drivers for your Wifi card. You'll need to Google which drivers are required and you might be able to get a kernel module or driver binary from somewhere on the internet.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
My goal is to change the IP address of USB0.
The Beagle Bone Black run Debian.
I tryed to change /etc/network/interfaces such that default address is 192.168.7.3 instead of 192.168.7.2 as this:
iface usb0 inet static
address 192.168.7.3
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
After running
/etc/init.d/networking restart
It was still on 192.168.7.2.
I tryed rebotting, and yet is to no avail.
I tryed to change the IP address in /boot/uboot/scripts/setup-ubuntu-armhf-3.8.13-bone30.sh, but basicly this file overwrites /etc/network/interfaces.
Still after reboot the IP is still 192.168.7.2.
Edit:
Also tryed to change the IP in:
/media/Angstrom/usr/bin/g-ether-load.sh
/media/Angstrom/etc/udev/rules.d/udhcpd.rules
Which didn't work.
Tryed to change it in:
/opt/scripts/boot/am335x_evm.sh
And now the network is unreachable:
ssh: connect to host 192.168.7.3 port 22: Network is unreachable
I was having the same problem on:
BeagleBoard.org Debian Image 2017-03-19
The issue turned out to be "connmand" (read it again, it starts with coNN, not comm). It is a horribly named program as it is difficult to research as Google assumed you spelled something wrong.
connman automatically configures wired instances for dhcp despite what is listed in /etc/network/interfaces.
Recommend either disabling it, or adding your interface to be ignored:
/etc/connman/main.conf:
NetworkInterfaceBlacklist=SoftAp0,usb0,usb1,eth0
After doing that and restarting, my static IP configured for eth0 in /etc/network/interfaces started working.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a vmware machine that runs RHEL5 and it has 2 NICs eth0 and eth1. When I clone (copy) this machine, my NICs are changed as:
eth0 becomes eth2
eth1 becomes eth3
How should I do to recover all NICs back to eth0 and eth1?
This is common when you clone a virtual machine. udev renames your interfaces while booting. You can edit the udev rules in file /etc/udev/rules.d/70-persistent-net.rules. It is better to read the vmware kbase
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1032790
In modern Linux systems kernel names for devices are often corrected by udev ( look for /etc/udev/rules.d/70-persistent-net.rules ) or similar.
When system boots up first time, HW addresses of network cards are saved to ensure e.g. if they will be replaced on motherboard or new physical interface added, previously existing interfaces will still have same "ethX" system name. This way network card with aa:aa:bb:cc.. will always be "eth2" in system, for example even if kernel previously was recognizing it as eth1 and now it recognizes it as eth4 due to some change of physical configuration of hardware.
When you create a clone of virtual system (obviously including all files on all its filesystems), pseudo-physical devices get new HW address, while HW addresses they had in originating system are still reserved for eth0 and eth1 - that is why when kernel of clones detect these cards, it assigns them eth2 and eth3 names.
Some VM environments have options of cloning, which allows choosing if clone should keep previously used HW addresses, or new shall be generated/assigned. Also, most VM environments allow arbitral setting of HW addresses of virtual network cards.