All Questions

Filter by
Sorted by
Tagged with
5
votes
1answer
5k views

nmcli connection activation failed

I was able to create a wifi hotspot on my debian 8 install using network tab under gnome settings. I was trying to do the same using nmcli but it always shows $nmcli con up id Hotspot Error: ...
0
votes
0answers
46 views

ERR_CONNECTION_REFUSED: how to show the cause

I am running an application (over and over again in a for loop) which is very heavyweight. I attempt to start the application via a python script. Sometimes when I do that, I get a ...
77
votes
8answers
456k views

Connecting to wifi network through command line

I am trying to connect to my WEP network just using the command-line (Linux). I run: sudo iwconfig wlan0 mode Managed essid 'my_network' key 'xx:xx:... hex key, 26 digits' Then I try to obtain an ...
0
votes
0answers
25 views

CLI or ncurses tool for browsing local network?

I have a console-only SSH-based pivot box inside a remote location. I want a console or ncurses-based tool that shows me active real-time information on which hosts are up. IP, hostname, etc. ...
7
votes
2answers
880 views

How to make sure OpenVPN is connected?

I need some sort of "safeguard" for my VPN connection. If the connection drops, the machine shouldn't even reach the internet. (I can reach the machine by other means.) Is it possible somehow? If I ...
0
votes
1answer
53 views

Dig: connection timed out; no servers could be reached. But ping works?

When I try to run the dig command against either my servers IP or nameserver I get an error: root@kali2:/etc# dig q-type=soa @192.168.100.10 ; <<>> DiG 9.11.4-P2-3-Debian <<>&...
1
vote
1answer
38 views

Connect to fastest open WiFi (that can reach the Internet) and keep looking if cut off?

I know this is a Very Bad Idea™️ with regards to security, I'm ok with that. (Everything is over SSL, so meh.) I have a small wandering Raspberry Pi powered bot, that I'd like to keep in touch with. ...
29
votes
4answers
218k views

How to bring up a wi-fi interface from a command line?

I can't figure out how to properly bring up the wi-fi card on my laptop. When I turn it on and issue $ sudo iwconfig wlan0 txpower auto $ sudo iwlist wlan0 scan wlan0 Interface doesn't support ...
0
votes
1answer
714 views

How to record only the header info when using `tcpdump`

When running the following command tcpdump -i deviceName 'host 1.2.3.4' -q -w /mypath/dump.pcap the dump file contains a huge amount of data because there's a lot of traffic. However, I only need ...
1
vote
1answer
2k views

Runnning a python script on a socket with ncat?

I want to make a python script run on a socket of server in LAN. I wrote a number guessing script and i want to make it run on socket for other clients to play with it by connecting to port (say 1234)....
0
votes
1answer
55 views

How to determine what hardware is associated with what network interface

I have an inbuilt network card and a Wi-Fi dongle. I use wpa_supplicant, hostapd and the likes to operate them. The trouble is that sometimes the dongle is wlan0, and sometimes it is wlan1 (...
19
votes
8answers
84k views

How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST&...
0
votes
1answer
278 views

Making DNS permanent in Docker's containers [closed]

I have container1, I have edited the /etc/resolv.conf and put nameserver 8.8.8.8 to ping google.com. It works fine. But I need to make this permanent, when I restart my docker's container using sudo ...
1
vote
0answers
36 views

maximum value of congestion window in ubuntu

I need to find the max congestion window value for TCP in ubuntu. I only find the init window size; I can’t find the max.
-2
votes
1answer
392 views

One public IP address per Namespace [closed]

How can I associate one public IP address per Namespace in my Ubuntu 14.04 server? I need to launch one specific process per Namespace then per public IP address. I want to do that: configuration: ...
3
votes
1answer
1k views

Manual creation of NetworkManager connection file fails (Error: Unknown connection)

Objective: I am trying to set up a 3G connection using NetworkManager 0.9.4 via command line. I have previously succeeded (see this question) by setting up the connection through the nm-applet (GUI in ...
3
votes
2answers
830 views

Bandwidth monitoring in Linux

I just need to get how much bandwidth is used in 3 or 4 days. Do you have any application in the terminal to do it? I'd prefer if it didn't use SNMP. I found iptraf, wireshark, cacti, but they were ...
6
votes
2answers
16k views

How to check programmatically if the Ethernet cable is plugged in?

As you know, in Windows when we plug in the network cable, the network symbol will change to another status. How can I know whether the cable is plugged in or not via the command prompt in Linux?
16
votes
4answers
39k views

Get Wi-Fi interface device names

Similar to a previous question about finding network device names, I would like to get a (reliable) list of device names but just for Wi-Fi devices. So that it looks like the following depending on ...
12
votes
6answers
80k views

'iwlist' -> interface doesn't support scanning (Ubuntu LTS 10.04)

I am using Ubuntu 10.04 (LTS) on a Samsung N150+ netbook. I cannot scan wifi networks using iwlist and I would like to do so. Here is the output from some tests: alex@alex-laptop:~/Desktop/...
1
vote
1answer
2k views

youtube-dl download autotranslate subs

I would like to download auto-generated subtitles with youtube-dl as follows $ youtube-dl --write-auto-sub --skip-download https://www.youtube.com/watch?v=vbLEf4HR74E It downloads file The habits of ...
5
votes
2answers
10k views

How to interpret traceroute information?

For example in this pic taken from Wikipedia [Bigger Version] What are all these 12 server names that are listed? I know they are servers that are supposed to be the path that the network packet had ...
3
votes
1answer
1k views

Wget segfault---how do I know which site is causing this?

I'm trying to mirror a website locally. However, I've been running into a segmentation fault at some consistent point in the download, on a different domain than the site I'm targeting (probably due ...
-1
votes
1answer
481 views

Getting IP address of remote VPN server

Is there a way to obtain the IP address of the remote VPN gateway that a running OpenVPN client is tunneled into, via the command line? More detail: Suppose OpenVPN is connected to a remote server, ...
0
votes
1answer
128 views

ss command take 2 lines for each result

I used netstat -anlptu to check for open ports. This command is now somewhat deprecated so I start using ss -anptu but each entry takes 2 lines. The result is not practical. I use Debian.   ...
4
votes
4answers
37k views

Telnet on Linux Server

I want to know if it is necessary to have telnet enabled on both sides of machines to get telnet connection. Here's the issue: I am trying to telnet some public IP on port 80 from a Linux web server (...
0
votes
1answer
373 views

Sierra Wireless GSM modem EM7455 + Android Integration Error

EM7455 connect on Single Board Computer(NanoPC-T2) through USB. I have attached AndroidRIL_5.1.11 binary files in my android and kernel source after build it and run on my android device.Below error ...
71
votes
7answers
290k views

How can I monitor all outgoing requests/connections from my machine?

My machine is a server so I want to ignore connections being made to my server (e.g. when someone visits my website). I want to see only connections/requests being made by my server to other places. ...
3
votes
1answer
310 views

Enabling proxy_arp for interface eth2.1

Am trying to enable proxy arp for some of the interfaces, with the normal interface name eth0, eth1, etc [root@eth2.1]# sysctl net.ipv4.conf.eth0.proxy_arp 0 But for interface names such as "eth1....
1
vote
0answers
732 views

regarding xrdb: Resource temporarily unavailable

after ssh to a machine, I got the following message, xrdb: Resource temporarily unavailable xrdb: Can't open display 'localhost:10.0' What does it mean?
0
votes
1answer
146 views

Linux Server Calculating NIC I/O AVG on eth0

I am trying to calculate NIC I/O AVG say for eth0 which is a 10GIG Interface during a specific time frame on my Linux server....I need NIC I/O AVG for One hour during a load test to check to see the ...
0
votes
1answer
574 views

CLI alternative to speedtest-cli?

I am trying to remotely test the internet connection on a headless server and am looking for a cli to do so. Speedtest-cli seems to give wildly inaccurate results and inconsistencies compared to the ...
3
votes
1answer
5k views

How to disconnect wifi link, that was connected with wpa_supplicant

I connect with the following command: sudo wpa_supplicant -B -D nl80211 -i wlan_card -c /etc/wpa_supplicant/connection.conf It connects fine, and keeps persistent connection. If AP goes down, the ...
1
vote
3answers
4k views

Command to know the Network Switch IP

I'm using the below Network Switch: HPE ProCurve J8697A Switch 5406zl Software Revision K.14.34 I'm advised to execute the below command to know my network switch IP: tcpdump -i net0 ether proto ...
1
vote
5answers
7k views

How can I kill a process running on a specific IP and port? [closed]

I was wondering, is there any way to kill a process that is running on a specific IP and port on Ubuntu 14.04 on a local IP and port? Preferably, this would be in one command, but if not, a bash ...
1
vote
2answers
4k views

Updating Network Manager

While fiddling a bit with Network Manager on my Ubuntu, I checked it's version with NetworkManager -V and it gave me 1.2.6 From there I decided to look online what the most current versions where, ...
64
votes
2answers
304k views

Sending messages to another user

Is there any command to send messages through the Linux shell to other people on the same network? I'm using write user and then write the message itself. But there's any command that doesn't show my ...
0
votes
1answer
436 views

change IP address

I tried to change my private IP address with the following commands: sudo ifconfig wlp3s0 down sudo ifconfig wlp3s0 192.168.1.12 sudo ifconfig wlp3s0 up They just work fine becouse the IP changes ...
2
votes
1answer
80 views

Best practices when manually connecting to various wifi networks

How do we manage wireless connections without a network manager? This excellent answer walked me through connecting to the protected wireless network at home. In short, nano /etc/network/interfaces ...
4
votes
1answer
858 views

How do I set a static IP address for a disconnected interface?

I am setting up an Arch/Manjaro-based machine that only occasionally will be connected to network. I.e. most of the time its Ethernet card is disconnected. I run into this curious problem - when I ...
6
votes
2answers
13k views

How to find status of wlan0?

From what I had read sometime back, it seems iwconfig is deprecated and the current methods is - $ sudo ifconfig wlan0 up and $ sudo ifconfig wlan0 down But couldn't find anything which tells the ...
2
votes
1answer
428 views

linux/unix command for checking the outside/inside network connections

From my local machine, which command can tell me which machines I have connected via ssh, or ftp, etc? At the same time, which command can let me know which machines have tried to connect my machine ...
1
vote
1answer
427 views

How to check port opened on running a service?

Let's say I started a service by using sudo service service_name start, I am interested in knowing all the port opened by this service. I can know port - program mapping by sudo netstat -tulnp but I ...
8
votes
4answers
20k views

How can I get the netmask from an IP address?

How do I get a netmask from the IP address? Is there a command to get it?
3
votes
2answers
406 views

user not allowed to connect to wifi

I have a Debian 8 jessie minimal install connected to a wired network. No X server is installed and no GUI. On this system I log in as unpriviledged user and I notice that the following commands are ...
2
votes
1answer
245 views

Identify the slow hop when downloading video

I'm downloading a video as follows $ youtube-dl url_to_video The download of the file is very slow 33.1% of 301.31MiB at 19.75KiB/s ETA 02:54:03 It was usually faster. Could you identify with ...
10
votes
1answer
503 views

Is there something like lsblk for network interfaces?

Is there a Linux command that visualizes configured network interfaces in a tree view, just like lsblk does for block devices? The output of such a program could for example look like this (bottom-up-...
2
votes
1answer
938 views

Unknown TCP in the nethogs output

The nethogs command displayes programs attending network communication. There is a permanent line: PID USER PROGRAM DEV SENT RECEIVED ? root unknown TCP eth0 0.000 0.000 KB/sec Why nethogs ...
0
votes
1answer
447 views

Ping through a specific Ethernet port

I am using RHEL 6.4, I have teamed two Ethernet ports (eth2 and eth3). I am trying to test the connectivity, I mean I want to test whether the eth2 and eth3 are working or not? One way is to disable ...
3
votes
1answer
294 views

How to set wireless key with nmcli interactively and securely without entering it in the command

I can set my wifi key of the connection my_connection to my_password by running nmcli con modify my_connection wifi-sec.psk my_password How can I have a secured interactive password reading from ...