Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Rep:
NIC not functioning on old machine in xubuntu
I'm having trouble connecting my computer to my router. I think it could be hardware problems with the NIC since it is a fairly old computer, but I don't know what commands can be used to diagnose it more completely.
lshw tells me this for the Network card
I assume it was disabled because it's not working properly but I don't know whether it could be that or misconfiguration somewhere. It's just two machines connected to a router, this one and a laptop. This machine is running xubuntu and the laptop is running ubuntu and the laptop connected just fine. The laptop is also using NetworkManager.
What can I do to further diagnose whether it be hardware or misconfiguration?
Let me see if I can help you out. I run Xubuntu on an old laptop. The command lshw I had never seen before. It works on my Xubuntu system, but not on Mandriva. I guess the Ubuntu people built a script to show installed hardware. I feel a little unfamiliar with the command.
It appears the system sees the card, and a driver ( 8139too ) is loaded. Could you confirm that by running the command 'lsmod | grep 8139too' ( without the quotes. ) The command lsmod lists installed modules. If hardware detection worked, and found the card, then it should be loaded. If it is not you can use the command modprobe to load the driver.
From the desktop, and the XFCE menu, click System --> Networking. This should bring up a window called Network Admin. On the Connections tab you should see eth0 listed. Click it, and then Properties. This should show you how it is configured. You can set IP address, DHCP, Gateway and Enable interface here.
The command /sbin/ifconfig will produce some output about your ethernet hardware. It will tell you if it is up, and what IP address it has etc, or if it is not up. You can use ifconfig to enable the interface. The command 'ifconfig eth0 up' ( as root, no quotes ) will attempt to activate the interface.
Post back the output of the above, and we'll go from there.
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Original Poster
Rep:
thanks so much, onto file sharing
thanks. It appears to be working. When I followed your instructions, nothing seemed wrong oddly enough. lsmod showed that the module was installed. I did modprobe nonetheless. I went into System->Networking, and it appeared to already be configured to DHCP, but I checked the box which I thought I couldn't check before. This time it worked, and I was able to access the router. I think I may have just never checked that box I guess. Now all I have to do is figure out to setup Samba to share the home folder between them.
I'm glad you had success. If you want to share files between two Linux machines, NFS is much easier to set up than Samba. Samba is for sharing files with winddoze machines. Have a look in the Tutorial - Networking section on this board for a how-to for NFS. BTW, NFS stands for Network File System. The directories you share can be mounted into the other systems file system, so you can execute files, edit, play them, what ever you want.
Location: Brooklyn, originally from Trinidad and Tobago
Distribution: (Ku, Xu, U)buntu
Posts: 30
Original Poster
Rep:
Thanks. I managed to get Samba setup and NFS setup as well. They both seemed pretty straightforward once I followed ubuntu's wiki instructions. I haven't set the nfs to mount on startup thoughI have some questions though
Which one is better/faster/more versatile for just linux to linux? Since neither is really a server that's always on, the situation arises where one can't access the other easily because the other was turned on after the first. does nfs handle that better?
As I understand it, I had to add each computer in the other's /etc/hosts file since I don't have a DNS server. Can I setup one? I probably don't need to since it's just two computers, but would it be difficult?
How would I go about securing it? I figure it's probably not a good idea to have the share on the laptop mount on startup but will having a firewall like firestarter make it alright? Right now it's set to just allow the host that's the other machine access the samba share. I doubt that this is enough, but letting it mount on startup seems easier.
When I choose the Places -> Connect to Server... option that seems to be adequate as well. How exactly does that option work though? It doesn't seem to access it like a regular folder. Movies are only playable in Totem and the preview thumbnails don't show up. Is that using Gnome VFS? How does that work?
Which one is better/faster/more versatile for just linux to linux? Since neither is really a server that's always on, the situation arises where one can't access the other easily because the other was turned on after the first. does nfs handle that better?
In my opinion, NFS is easier to manage. If you have added the NFS shares to /etc/fstab, and you boot ( or re-boot ) the systems in an order such that the shares are not mounted, just issue a mount command for the share. That should mount the share.
Quote:
As I understand it, I had to add each computer in the other's /etc/hosts file since I don't have a DNS server. Can I setup one? I probably don't need to since it's just two computers, but would it be difficult?
Yes, you can set one up, linux can be a DNS server. How difficult it is I can not comment on. I have never set one up. I have six machines, I set up static IP addresses on the my desktops, so my hosts file doesn't need to change. For the laptops, I set up the DHCP server in my router to always give the laptops the same IP address, even though it is DHCP for those machines. If you get different IP addresses it can cause problems.
Quote:
How would I go about securing it? I figure it's probably not a good idea to have the share on the laptop mount on startup but will having a firewall like firestarter make it alright?
I'm not sure I can give you a good answer here. NFS you can restrict who can connect, and what access they have, read only or read write. A firewall will stop unwanted snooping, but you have to leave ports open so the service you want connected can connect. The security measures you take depend a lot on who has physical access to the lan, and what type of external connectivity you have.
Quote:
When I choose the Places -> Connect to Server... option that seems to be adequate as well. How exactly does that option work though? It doesn't seem to access it like a regular folder. Movies are only playable in Totem and the preview thumbnails don't show up. Is that using Gnome VFS? How does that work?
One: Firestarter will be strong enough for YOUR setup IF Two: YOU change your LAN setup to an address that is only known by YOU. Firestarter is customizable in two schemes. One is YOUR Local Network and the other is YOUR External Network. Firestarter has advantages with being able to set the parameters for these two Networks differently. This increases the options for YOUR setup and creates more stability with increased specivity.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.