Hi I am not a complete Linux newbie, but I have a challenge that is new to me.
I am wanting to be able to connect to a linux box (Raspberry Pi running Debian) via ssh directly from a single computer. I want to be able to plug in a ethernet cable from a laptop to the Raspberry Pi so that I can configure it via ssh or a webpage.
I have had a few pieces of hardware, routers, printers etc that allow this sort of connection for configuration, I just would like to know how it is done.
My question is how do I set up the /etc/interfaces file to allow the Raspberry Pi to be found by the laptop.
Once configured I would want the Raspberry Pi to obtain its IP address via DHCP when connected to a network.
Any suggestions, ideas would be appreciated.
I am trying to build a socket to retrieve the ethernet packets from ecu. When i run my code on windows there is no problem and the code runs correctly. But when i run my code on Linux it gets stuck at s.recv(65565). I have already set static ip in /etc/network/interfaces as follows: iface eth0 inet static address 160.48.199.91 netmask 255.255.255.0 gateway 160.48.199.254
I tried a simple code of socket on raspberry pi. but it still gets stuck at s.recv(65565). I also tried to implement the program using multicast. but the problem is that when i create a socket for icmp protocols then I could see the data from the ECU after using command "ping -I echo 239.192.255.251" in another terminal. (where 239.192.255.251 is the multicast address) But when I change the socket protocol type to udp, tcp or raw then it again gets stuck at s.recv().
Imp: When i run the "netstat -s" command in terminal then i could see that there are 0 messages received for udp and tcp. But in Wireshark i could see the udp messages from ECU. Is linux killing all the udp and tcp packets ? How should i solve this ?
(complete setup is connected as: ECU ---> Media converter ---> Raspberry Pi. There is no LAN, no firewall, no internet)
Could anyone please help me with this problem ?
hi guys, i hope you can help me out.
i am wired connected to a 1gb ethernet connection that has a 1gb switch or ethernet hub between the internet and my computer.
the ethernet hub also has a drive connected to it whci i can see with my macs but it doesnt show up on the linux.
i can see the ethernet hub on the linux but nothing after that. how do i get to see the other drives connected to the ethernet hub?
I just bought a Raspberry Pi. Mostly out of curiosity. Have been a hobbiest since the days of CP/M. Never really looked at Linux or any other "__ix". Now that I am retired, I can and will. Suggestions on where to start with command line usage? Best small footprint GUI? Oh, yeah. Recommendations for USB wireless dongle for the Raspberry?
Thanks,
tnsealawyer (ret.)
Hello everybody,
I am seeking help regarding sharing internet connection. I would be greatful.
I have;
A Laptop : Samsung RV509, i3, 300GB HDD, 3GB Ram, Dual boot Windows7 & LM 17 cinnamon 32bit. WiFi & Bluetooth available.
A Desktop PC : Celeron CPU 2.4GHZ, 40 GB HDD, 1GB RAM, LiveUSB-LM 17 cinnamon 32bit, No WiFi hardware available, No Bluetooth hardware available.
A mobile phone : Nokia Asha 500, WiFi & Bluetooth available.
An old USB data cable: with which the mobile phone can be connected to the computers. I have successfully connected and transfered data back & forth, and also shared/connected Mobile-Broadband-internet to both Laptop and Desktop.
What I have been doing now is; I have an internet connection to my Laptop with an external modem and Ethernet. Its working fine. I have an unlimited plan and so I want to share this internet connection on the mobile phone too; instead of incuring extra cost by connecting to the internet directly through the phone. I am successful at that. I can share this internet connection on my phone through WiFi.
Now, what I want to do is; without buying any extra hardware, to share this same internet connection on my Desktop PC, too.
What I tried is; I searched the web, but didn't find any solution. Now I am here. Please kindly help me.
Thank you & Regards
Anil
Hi all
I got this interesting problem:
I have a server that has two ethernet connections, cabled up to the switch.
The server has a clonezilla liveboot cd in it which I am currently booting from. The clonezilla is a debian OS.
So from the cmd line I can see I have two eth interfaces that is connected, eth0 and 2.
Now I need to configure one of these two interfaces to do let clonezilla do its job.
The problem is that each of these two interfaces are going to different subnets. I got the two subnets, which we will just call them A and B. And I can't recall whether A belongs on eth0 or B belongs there.
Now I know there is a simple solution to this: config one and try it out. I could do that, in fact I will do that just to save time. But I was wondering, cause when I did ifconfig I can see from the packet counters that these two interfaces are live, if there is some other way to monitor these two interfaces, and by looking at the packets that is being sent to these interfaces, I can determine which interface goes with which subnet?
Or phrased another way: you just installed a new computer, and have plugged in the internet cable, but you forgot to put an IP address on it and really don't want to wait for your IT guy to come in on monday to tell you what your IP is and dhcp is not an option. What do you do?
Thanks
Feel free to ask questions if anything is not clear.
Hello - This is my first interaction with Linux. I recently purchased a Raspberry Pi 2 and am running the full version of Raspbian. I intend to use the Pi as my PLEX media server however I have been unsuccessful in mounting my NAS. I've read a number of guides on how to accomplish this but have been striking out on all accounts. I was hoping someone could help me with what information I should be adding.
NAS - Synology Diskstation DS212j - 192.168.5.195
Linux device - Raspberry Pi 2 - Raspbian - 192.168.5.186
Router - D-Link DIR-655 - 192.168.5.1
I've been accessing the Pi via ssh on my MacBook PRO - 192.168.5.188
Thanks for any assistance you can provide.
I want to connect my laptop to the TV to view sports etc. but when I plug in the HDMI cable nothing happens, the program just continues on the laptop. I am using Xubuntu and am completely new to Linux
Hello guys thanks for helping. I solved the problem by going to Display in Settings and selecting "Configure new displays on connecting". This enabled the TV when I plugged in the HDMI cable. Thanks again. Liam
I am currently working on a sbc6000x board with linux 2.6.24 on it and would like to use the telnetd command from busybox (v1.4.2).
I can run the Telnet daemon on the board and try to connect to it from another computer but each time the connection close.
In the terminal of the computer i have : (i changed the ip with Ipoftheboard here)
Trying Ipoftheboard
Connected to Ipoftheboard
Escape character is '^]'.
Connection closed by foreign host.
I already tried to use the hosts.allow file with :
ALL : Ipofthecomputer
And i checked in /etc/initd.conf and Telnet is enabled.
I read that maybe the connection is closing because i don't have a user/password configured for the Telnet connection but i can't find where to configure them.
I must use Telnet, i can't use another solution like ssh.
I have several computers connected to a D-Link DIR605L router, two with ethernet cables and two through wifi. The Windows XP computer can see itself and nobody else. The Ubuntu (trusty) desktop and Ubuntu (lucid) netbook computers see nobody (unable to retrieve file list from server) and the Windows Vista computer only sees itself. Clearly, I have failed to configure something or a set of somethings.
Do I have to have one of the computers always on, acting as some kind of file server or can the router do this job? This is a new router. My old one (whose power supply went phut) connected everybody without arguing about it and we could share files around, even with a mix of OSs.
Since this is a local network only, I have no firewalls enabled, as far as I know ...
All of the network set-up posts I've found rabbit on about how to get your internet connection working through your router, which is not an option for me. I have dial-up working on the XP computer and a mobile wireless USB dongle for internet access on the trusty desktop.
I've installed samba and a few other packages, but so far, none of them have solved my problem. Can someone please tell me where to start and which tutorials to read? If I have to set up a computer as a file server, I guess it will have to be the XP thing, as it's the only one that is always running, but I'd like to avoid that, if possible, as I speak XP worse than I speak Ubuntu.
BTW, D-Link are no help at all, two hours on the 'phone and they were still trying to get me to connect to an ADSL service I don't have ...
I will be setting up a few raspberry pi's in various locations, and they will be creating reverse nat ssh tunnels to my ssh server.
I need to set up a monitoring server at the server's location to monitor the raspberry pi's through the ssh server. The monitoring agent that will be installed on the raspberry pi's is communicating with the monitoring server on port 4700.
My question is:
Since I am using reverse nat ssh tunnels to connect on the ssh server, I am guessing that port 4700 will not be opened. If this is true, is there a way to also open port 4700 in that tunnel, so the monitoring server can access the remote agent?
Thanks