LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2017, 01:49 PM   #1
nick094
LQ Newbie
 
Registered: Jul 2017
Posts: 8

Rep: Reputation: Disabled
/etc/udev/rules.d/ contains empty files?


Hello fellas,

I've been reading one book, and i got to the part where in /etc/udev/rules.d i should amend some NIC settings, thru those rules files.

I have the following files in /etc/udev/rules.d*/

70-persistent-cd.rules
73-special-net-names.rules
73-usb-net-by-mac.rules

and all 3 files are empty. This doesn't make any sense, please help.
 
Old 07-12-2017, 02:33 PM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi Nick094 - Welcome to LQ.

You don't mention which linux distribution you're using, so I'll hazard a guess that those files are either meant as examples of titles that could be used or they could be files that were previously created but are no longer used ...

.. or maybe some entirely different explanation.

Best would be to provide some further basic info:

- Describe your hardware

- Identify the version (distribution) of linux that you are using

- Are you the person that installed and configured the OS on this system ? Are there / have there been other users of the system ?

- What behaviour are you hoping to control for the NIC you mention ?

Cheers :-)
 
Old 07-12-2017, 03:11 PM   #3
nick094
LQ Newbie
 
Registered: Jul 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks Rickkkk,

Yeah, I figured out that I should provide more info, sorry about that.

I have Kali Linux, installed on VM. It's me who installed it, and i'm the only person using it. I have connection on my Linux so i thought there should be at least some info written down in that 73-special-net-names.rules file.

My OS is win8.1. Please advise which hardware info do you need.

I'm a noob when it comes to Linux so you might have to draw me things.

Here's what I need to do:
Let’s imagine that you recently added a PCI Express network interface card (NIC) to your
system. Because it’s new, udev assigned it the name em1 rather than em0 (the name used
by your existing integrated NIC). The problem is that you’ve hard coded em0 into various
scripts and programs, so they all expect to find a working interface with that name. But
as you want to connect your network cable to the new interface, em0 will no longer work.
Since you’re far too lazy to update all your scripts, how can you edit a file in the /etc/
udev/rules.d/ directory to give your new NIC the name em0?

Many thanks
 
Old 07-12-2017, 03:26 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Networking is disabled by default in Kali. Kali is an advanced distro, designed for those who already know how to use it.
 
Old 07-12-2017, 03:29 PM   #5
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hei Nick094 - thx for the info.

This question of network interface names comes up regularly. A quick web search turned up the following link which you may find useful:

https://www.cyberciti.biz/faq/howto-...ed-using-udev/

Just a note - on my own system, the file :

Code:
/etc/udev/rules.d/70-persistent-net.rules
...doesn't exist. If you don't yet have it on your Kali system either, I would simply create it and add the line referenced in the above link, obviously substituting the details for your PCIe card.

.. Let us know how you manage - feel free if more assistance is required.

Cheers !

Last edited by Rickkkk; 07-12-2017 at 03:30 PM.
 
Old 07-12-2017, 09:17 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If Kali is using systemd, try this: https://www.freedesktop.org/wiki/Sof...nterfaceNames/
 
Old 07-15-2017, 11:52 AM   #7
nick094
LQ Newbie
 
Registered: Jul 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you Rickkkk & AwesomeMachine, it worked
 
Old 07-15-2017, 05:06 PM   #8
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by nick094 View Post
Thank you Rickkkk & AwesomeMachine, it worked
Great news, nick094 - glad we were able to help.

Have a great weekend :-) !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /etc/udev/rules.d/70-persistent-net.rules and 'ip link' rename rakeafake Linux - Networking 4 02-01-2016 08:34 PM
RKHunter ASCII text in /dev/.udev/rules.d/root.rules metrx Linux - Security 2 03-07-2014 08:37 AM
[SOLVED] Missing /etc/udev/rules.d/70-persistent-net.rules - Chapter 7.2.1. Mordillo98 Linux From Scratch 5 06-11-2012 08:37 PM
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory rcg1984 Linux From Scratch 2 09-17-2008 07:02 AM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration