Tag Info

Hot answers tagged

15

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. ...


13

Taken from: http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/ 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.


13

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 ...


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 ...


7

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 ...


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

I finally found the cause thanks to this link: https://bbs.archlinux.org/viewtopic.php?id=149817 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 ! Many thanks for the help in ...


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 ...


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

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


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

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 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

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

"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 ...


3

Adding a user To add a user account, use the following syntax, and follow the prompts to give the account a password and identifiable characteristics such as a full name, phone number, etc. sudo adduser {username} Deleting a user To delete a user account and its primary group, use the following syntax: sudo deluser {username} Deleting an account does ...


3

You can drop from a source MAC address, yeah: sudo iptables -A INPUT -m mac --mac-source 00:00:00:00:00:AA -j DROP Obviously, you'll need to change that address. If you want to make that permanent, make sure ufw is installed and then edit /etc/ufw/before.rules to have something like this before the COMMIT: -A ufw-before-input -m mac --mac-source ...


3

you can use this method : open terminal : sudo gedit /etc/network/interfaces you can add the following iface eth0 inet static (eth0 is the name of my interface ) address (your Ip) netmask (your netmask) gateway (gateway) dns-nameservers (your dns ) save and quit


3

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 ...


3

No. Bonding is something you can do with a server that has two ethernet ports connected to the same network, then you can bond them to increase your aggregate transmission speed.


3

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 ...


3

There is no easy way to do this... if you change your default route, you will break all of your existing connections. There is a section in the famous Linux Advanced Routing and Traffic Control HOWTO about routing for multiple upstream providers. But it's not light reading. Expect to spend a good amount (possibly many hours, depending on your current ...


3

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?


3

Since you decline to say what you have as far as hardware it would be a WAG answer. Therefore here goes. Your NIC has the wrong drivers installed. Consult one of these links provided Networking Tutorial Network Manager Ubuntu Wireless How to install Ethernet Drivers



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