Hot answers tagged lan
9
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.
...
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
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 ...
6
There are 4 steps to setting up a simple repository for yourself
1.Install dpkg-dev
2.Put the packages in a directory
3.Create a script that will scan the packages and create a file apt-get update can read
4. Add a line to your sources.list pointing at your repository
Install dpkg-dev
Type in a terminal
sudo apt-get install dpkg-dev
The ...
5
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 ...
5
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 ...
5
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 ...
4
Sounds as if you are configuring a router.
You only need to make a few changes to enable IP forwarding
Enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
Configure iptables
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A ...
4
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 ...
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
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 ...
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
3
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
To quote my own blog post:
This dnsmasq server isn’t a caching server for security reason to avoid risks related to local cache poisoning and users eavesdropping on other’s DNS queries on a multi-user system.
So there's nothing to disable
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
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 ...
3
I think you might be making this harder than it has to be. I have the same situation with my laptop (except it's a normal ethernet port instead of a dock). When I plug in the wired network, it automatically takes precedence over the wireless and everything goes over the (faster) ethernet cord. The wireless was connected all along, but unused. When I unplug ...
3
First you will need to assign IP addresses to your eth interface, then you'll need to setup shared folders. Both can be done quite easily:
Assign IP addresses
I will show you how to add a seperate setup only for this connection, so you can switch back to the default behaviour when connecting to the Internet over LAN (if you don't want this, instead of step ...
3
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 ...
2
The only other problem here might be the WIFI controller. Sometimes these are configured to isolate clients. In other words, you can browse the internet, but you are forbidden to see anything in the same subnet as you - this is the default on many Cisco systems and an option on draytek and presumably others.
If you have access to the WIFI gateway, check ...
2
I'm assuming you don't have any routes set locally on the Ubuntu box.
If your target IP address shares address space with the directly connected interface, it should by default route to the correct IP.
You will be able to see what networks your interfaces 'own' with ip route show.
For example,
$ ip route show
192.168.2.0/24 dev eth0 proto kernel ...
2
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
...
2
Network Manager is the default manager for Ubuntu. This doesn't mean it's the best, but it does mean that it's a very good solution.
Depending upon your needs, Network Manager is most likely going to provide all the functionality that you need, however, I prefer to use wicd, as it interferes less with other configurations.
If you have reasons to leave ...
2
I'm a little unsure how far you want the guide to go. But if you simply want Internet connection / local file sharing:
With the computer you are connecting to your router:
Click on your network indicator (top right of your screen...) and select 'Edit Connections'. In the wired tab hit the button 'Add'. Give the connection a helpful name, and under the ...
2
That's how it works in 11.10 and it should work similar in 10.04:
Edit Network Connections:
Choose your LAN connection:
Uncheck Connect automatically:
2
No disrespect, but the question was hurt, badly. See, you don't need "Internet" to use your router, you can connect most wireless gadgets these days to a router to use other functions that do not need a connection to the Internet at all. So yes, he/she could be plugged in to the router with Internet access, and also connected via wireless to a different ...
2
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 ...
2
So you want to set up a LAN game server?
Server setup
Install the game as per the instruction provided by the game authors.
Be sure to adjust any config files as needed to specify the port you want to run the game on.
If using UFW on the server you need to have an allow rule. Example:
anthony@minecraft:~$ sudo ufw allow from 192.168.1.0/24 to any port ...
2
I'd suspect the following statement
There is no light on for the port my computer is plugged into on the router, although this makes sense as usually the computer has to tell the router it has set up.
The port light on your router is typically lit due to, not software or TCP/IP settings, but electrical connectivity. If you plug into the router, and the ...
Only top voted, non community-wiki answers of a minimum length are eligible
