Tag Info

Hot answers tagged

21

Taken from Finding All Hosts On the LAN From Linux/Windows Workstation for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done But for a great tool, Nmap. Great for mapping networks.


20

You can restrict access to your ssh server in many ways. IMO the most important is to use ssh keys and disable password authentication. See the following wiki pages for details https://help.ubuntu.com/community/SSH/OpenSSH/Keys https://help.ubuntu.com/community/SSH/OpenSSH/Configuring#Disable_Password_Authentication You can restrict access to a specific ...


16

To ping a netbios name in Ubuntu you need to add wins to /etc/nsswitch.conf. Run: gksu gedit /etc/nsswitch.conf And add wins to the line: hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 So it looks like this: hosts: files mdns4_minimal [NOTFOUND=return] dns wins mdns4 Save the file, close the text editor, and ping away. ...


10

I finally found the cause thanks to this link. It seems that one shouldn't have spaces in the folder names (containing the driver of course) when building the driver. Replacing the spaces with underscores fixed the issue. I could build just like that. Strange... but it worked!


9

I would do this using just grep: $ sudo arp-scan --interface=eth0 --localnet | grep -oP '^[\d.]+' 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.10 192.168.0.23 192.168.0.72 192.168.27.1 192.168.27.14 192.168.27.30 Explanation: The -P tells grep to use Perl Compatible Regular Expressions, where \d matches any number. The -o means "print ...


8

Here's what you want to do: First, open up disk utility and select your hard drive in the sidebar: Now, click the little "Create Partition" icon. Make sure you're selecting the right drive, this is the dangerous part! Now, lets get this drive mounted on our computer. Click that, and then it will mount on your computer. Navigate to it and then right ...


7

The least complicated method to send audio from one Pulse Audio server to another over the LAN is to use the RTP/Multicast feature that you are able to set up using paprefs On the sender: Choose your local soundcard or choose a separate device you can select as audio output from Audio Preferences. On the receiver: By doing so audio will be sent from ...


7

About your current output ping wstation PING wstation.local.domain Clearly indicates that your pc is appending .local.domain to non-FQDN queries. This is something configured improperly or at least wrong in your set up. (unless you actually use the .local.domain suffix on purpose) Name resolving and periods One important thing what a lot of people don't ...


6

Go to system settings -> Network -> wired Then click on options, select IPV4 tab, and click on routes. Finally enable the Use this connection only for resources of its network This way Ubuntu will use only Wireless for accessing the Internet


6

If both are directly connected to the router and can access internet, then they already are in LAN. Maybe you want to share files and folders, right? If so, its easy: right-click any folder you want to share, go to "Sharing Options", check the "Share this folder" box, choose a share name, and youre basically done. If Samba support is not already installed ...


6

Ubuntu comes with an implementation of mDNS service discovery (also known under Apple's trademarked name Bonjour), which advertises your hostname over the local network under the .local domain. The standard hostname resolver will also do mDNS lookups. So if you set the hostname of one of your computers to foo, you should be able to ping it from another ...


6

This is just a modified version of: http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html How to configure the network interface using the terminal You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change ...


6

Arp-scan works great for me too... If using Wi-Fi: sudo arp-scan -l --interface=wlan0 -or if using ethernet: sudo arp-scan -l --interface=eth0 (this last is practically identical to what Rajesh Rajendran posted; the -l standing for --localnet) If you don't have arp-scan (it doesn't come with Ubuntu by default), just pull up a terminal and type: sudo ...


5

You can plug both in at the same time and be connected to both, but you can only use the Internet from one of them. The computer will prefer the cable. So if you only have Internet access via one of them then yes you can be connected to both networks. But if both are capable of providing Internet access, then Ubuntu will prefer the cable (Ethernet) network ...


5

Just set the IPs manually using the 'network connection' GUI to, say, 192.168.1.1 on ubuntu 11.04 machine and 192.168.1.2 on ubuntu 12.04 machine. Set the netmask to 255.255.255.0 on both of them. Leave the dns and gateway fields blank (I am assuming you only want each other to talk with no internet). This will work. If you wish to connect just these 2 ...


5

you need to go into network manager and change your ip4 settings to shared to other computers here is the other method using ip tables this will set the ip of your ethernet card sudo ip addr add 192.168.1.1/24 dev eth0 and this will configure the nat sudo iptables -A FORWARD -o wlan0 -i eth0 -s 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT ...


5

I'll assume that on your server eth0 is connected to the switch and eth1 is connected to the router. I'll assume that your LAN network address is 10.1.1.0/255.255.255.0 I'll assume that your router is 192.168.0.1/255.255.255.0 On the NIC connected to the switch, assign an IP address in the same range as the LAN served by your switch. But without gateway ...


4

Ubuntu allows multiple connections by default, but sometimes, we need to specify which one to use. In your comments, you have mentioned that you use LAN for the Intranet and WiFi for the Internet. So, firstly search for Network Connections in the unity dash. Then, under the Ethernet section, click 'Add' button. Then, we need to create a new Ethernet ...


4

I just used awk,tail and head to achieve what you want: sudo arp-scan --interface=eth0 --localnet| awk '{print $1}'|tail -n +3|head -n -2 this gives the output as 192.168.1.1 192.168.1.3 as I have only these two in my Lan. Here awk '{print $1}' prints the ip address which is situated in the first column. tail and head removes unnecessary stuff like ...


4

You could try adding 10.1.10.129 noranetserver to /etc/hosts, to make the computer you connect from aware of the server hostname. There are other ways as well, as pointed out in the following questions: 1 and 2.


4

"samba" is for connecting Windows machines with Linux machines. It can be used for Linuxes too but there are better methods. If all your systems are Linux based please use "nfs" (where 1 machine acts as the server and the others as clients). You can then mount discs from the other machines onto any of the other machines in exact the same fashion as you ...


4

As you're probably going to use IP the MAC addresses won't help you at all. What you want is mDNS to reslove local host names. In Ubuntu, this is activated automatically. You should be able to resolve other computer's IP addresses using their name plus .local as in: my-pc.local


4

I found the solution myself. I created an additional NIC in both the VMs and configured the ip of the new network interfaces. Should I leave my question so that others can benifit or should I vote to delete?


4

Here's how I did it: Equipment: Ubuntu 11.04 Desktop on 1st Gen. eeePC Linksys WRT120N Wireless N Router Huawei E620 USB Broadband Modem Ethernet cable Hardware Setup: Huawei plugged into eeePC Ethernet cable plugged into Ethernet port other end of Ethernet cable plugged into the Internet port of The Linksys Ubuntu Setup: connect the Huawei to the ...


4

I used wicd for a long time, but I think Network Manager has matured quite a bit and is quite a decent all round network (including wifi) manager. Especially since it has support for VPN too.


4

You may have to install the package libnss-winbind to be able to find windows computers by hostname. Simply installing winbind may not work. See answer.


4

Follow the instructions Allan posted, but you need to install the "winbind" (Samba nameservice integration server) package too so you can get name resolution.


4

All the details you need should be found here: http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html


4

launch gparted. (if its not installed "sudo apt-get install gparted") select the disk from the drop-down menu to the right. right click on the disk and select new if available, else select format to and select ext4 or someother linux format press the green checkmark at the top to commit your changes Or you could keep it as HFS, but i would guess ...


3

There are two different settings you need to think about - one is for the IP address, and the other is for the DNS address. Automatic DHCP (default) will set both. Your other choices under the IPv4 Settings tab, are: Automatic (DHCP) addresses only, which sets the IP addresses via DHCP, but allows you to set the DNS addresses yourself, in case you want ...



Only top voted, non community-wiki answers of a minimum length are eligible