Linux debian change the config??

jxnasa

New Member
Joined
Apr 7, 2021
Messages
6
Reaction score
2
Credits
41
Hello I am supposed to change my internet config in Debian and open the file / etc / network / interfaces.
However, this cannot be opened in itself, so I went to the path / etc / network and tried to open interfaces with an editor. It didn't work either. Now I am overwhelmed and need your help.

What do I have to do to change the config :/
 


captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,538
Reaction score
1,674
Credits
15,151
lets back up a little; who said i have to change my internet config ?

I'm a slackware user but looking into Debian (as well as Arch). Debian philosophy was to be "free" as per Richard Stallman. Wifi software unfortunately usually isn't. So depending on your iso it may be lacking firmware. Theres a lot of gaps in your info which we would like to know ; for instance did you try Debian live from a usb first and everything was Ok network-wise or you just went for direct install ? wifi is the issue or ethernet also not working ? I can tell you that i have debian-live-10.9.0-amd64-xfce+nonfree.iso (you see the nonfree bit) on a usb and have no problems connecting to internet .
 
OP
J

jxnasa

New Member
Joined
Apr 7, 2021
Messages
6
Reaction score
2
Credits
41
I installed it as an vm ware and it is an school poject. It is an quest from my teacher.
 

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,538
Reaction score
1,674
Credits
15,151
ok you can start by looking in /etc/network/interfaces.d

permissions may block you looking around, but you can always use "cat' command as normal user to get contents of a file

what is the output of :

Code:
apt-cache policy ifupdown


to change config, it can be done manually , but is there any stipulation not to use a config tool ?
 
Last edited:
OP
J

jxnasa

New Member
Joined
Apr 7, 2021
Messages
6
Reaction score
2
Credits
41
The output is: ipupdown: installed : 0.8.35

installation canidate: 0.8.35

and we have to use an text editor.

I already looked in interfaces.d and saw that there is something written.


Symbol „Von der Community überprüft“
 

Vrai

Well-Known Member
Joined
Mar 16, 2019
Messages
1,042
Reaction score
975
Credits
3,915
Hello I am supposed to change my internet config in Debian and open the file / etc / network / interfaces.
However, this cannot be opened in itself, so I went to the path / etc / network and tried to open interfaces with an editor. It didn't work either. Now I am overwhelmed and need your help.

What do I have to do to change the config :/
You probably need to be "root" or "superuser" or "administrator".

Also, you may need to use "Vi" to edit the config.
 

Vrai

Well-Known Member
Joined
Mar 16, 2019
Messages
1,042
Reaction score
975
Credits
3,915
wdym with i need Vi? I am logged in as root
"Vi" = Vim Improved.
A text editor (and so much more). It is akin to EMACS.
Do a search for Vi, Vim, and Emacs and you will learn what I am referring to.
It should not matter which text editor one uses but I have read tutorials where "Vi" was specifically required. There may be built-in functions which affect the end result.
 
OP
J

jxnasa

New Member
Joined
Apr 7, 2021
Messages
6
Reaction score
2
Credits
41
Ok but if i want wo open the file interfaces, there is nothing written in there
 

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,538
Reaction score
1,674
Credits
15,151
ok short story i live booted bare metal Debian Buster

vi , vim doesn't seem to be available nano is avaialble though

command was sudo nano /etc/network/interfaces
 

Attachments

  • network_debian.png
    network_debian.png
    109.8 KB · Views: 154

craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
274
Reaction score
274
Credits
1,897
vim-tiny is usually installed, but nano is the default editor. Nano is much easier for a newbie. Heck after almost 20 yrs of using linux I have yet to be bothered with learning to use vi/vim.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top