How to replace Network-Manager with Ceni?  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 4:15 am

How to replace Network-Manager with Ceni?

#1 Post by pemartins »

On this laptop I've had a constant struggle with my wifi network in which, as far as I understand, my router sometimes just kicks my laptop out while transferring data, in example while downloading stuff. This happens frequently with network-manager, connman and sometimes with wicd.
I have a script running on the background testing the connection status every minute and if not active it restarts the connection, which helps a lot, but it's not exactly a solution for the problem.

Using antiX I realized that with ceni this does not happen, so I'd like to try ceni on MX to check if it solves the problem and, if so, I would replace network-manager with it.

Now the question is: how to properly replace network-manager with ceni? And how to revert back if needed?

Thank you very much in advance.

My specs:

Code: Select all

System:    Kernel: 5.10.0-20-amd64 [5.10.158-2] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-20-amd64 
           root=UUID=<filter> ro quiet splash acpi_backlight=video 
           Desktop: Xfce 4.18.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower September 18  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: ASUSTeK product: X55U v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X55U v: 1.0 serial: <filter> UEFI: American Megatrends v: X55U.423 
           date: 08/06/2013 
Battery:   ID-1: BAT0 charge: 0 Wh (0.0%) condition: 29.3/47.5 Wh (61.7%) volts: 10.8 min: 10.8 
           model: ASUSTek type: Li-ion serial: N/A status: Unknown cycles: 475 
CPU:       Info: Dual Core model: AMD E2-1800 APU with Radeon HD Graphics bits: 64 type: MCP 
           arch: Bobcat family: 14 (20) model-id: 2 stepping: 0 microcode: 5000119 cache: 
           L2: 512 KiB 
           flags: lm nx pae sse sse2 sse3 sse4a ssse3 svm bogomips: 6787 
           Speed: 893 MHz min/max: 850/1700 MHz Core speeds (MHz): 1: 893 2: 1161 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass status: Vulnerable 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Wrestler [Radeon HD 7340] vendor: ASUSTeK driver: radeon v: kernel 
           bus-ID: 00:01.0 chip-ID: 1002:9808 class-ID: 0300 
           Device-2: Sunplus Innovation Asus Webcam type: USB driver: uvcvideo bus-ID: 1-2:2 
           chip-ID: 1bcf:2883 class-ID: 0e02 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: loaded: radeon 
           display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
           s-diag: 414mm (16.3") 
           Monitor-1: LVDS res: 1366x768 hz: 60 dpi: 101 size: 344x193mm (13.5x7.6") 
           diag: 394mm (15.5") 
           OpenGL: renderer: AMD PALM (DRM 2.50.0 / 5.10.0-20-amd64 LLVM 14.0.5) 
           v: 3.3 Mesa 22.0.5 compat-v: 3.1 direct render: Yes 
Audio:     Device-1: AMD Wrestler HDMI Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus-ID: 00:01.1 chip-ID: 1002:1314 class-ID: 0403 
           Device-2: AMD FCH Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403 
           Sound Server-1: ALSA v: k5.10.0-20-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Ralink RT5390 Wireless 802.11n 1T/1R PCIe vendor: Foxconn driver: rt2800pci 
           v: 2.3.0 modules: wl port: f100 bus-ID: 01:00.0 chip-ID: 1814:5390 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Qualcomm Atheros AR8161 Gigabit Ethernet vendor: ASUSTeK driver: alx 
           v: kernel port: e000 bus-ID: 02:00.0 chip-ID: 1969:1091 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 34.66 GiB (7.4%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST500LM012 HN-M500MBB 
           size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s type: HDD 
           rpm: 5400 serial: <filter> rev: 0001 scheme: GPT 
Partition: ID-1: / raw-size: 59.57 GiB size: 58.33 GiB (97.92%) used: 34.66 GiB (59.4%) fs: ext4 
           dev: /dev/sda10 maj-min: 8:10 
           ID-2: /boot/efi raw-size: 300 MiB size: 296 MiB (98.67%) used: 51.5 MiB (17.4%) 
           fs: vfat dev: /dev/sda1 maj-min: 8:1 
Swap:      Kernel: swappiness: 3 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 3.59 GiB used: 1 MiB (0.0%) priority: -2 
           dev: /dev/sda6 maj-min: 8:6 
Sensors:   System Temperatures: cpu: 59.2 C mobo: N/A gpu: radeon temp: 59.0 C 
           Fan Speeds (RPM): cpu: 3000 
Repos:     Packages: 3078 note: see --pkg apt: 3073 lib: 1685 flatpak: 5 
           No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/antix.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bullseye main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://mirrors.ptisp.pt/debian/ bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://mirrors.ptisp.pt/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.cica.es/mirrors/Linux/MX-Packages/mx/repo/ bullseye main non-free
           2: deb http://ftp.cica.es/mirrors/Linux/MX-Packages/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/protonvpn-stable.list 
           1: deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main
Info:      Processes: 216 Uptime: 2h 12m wakeups: 1 Memory: 3.43 GiB used: 2.09 GiB (61.0%) 
           Init: systemd v: 247 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI

User avatar
dolphin_oracle
Developer
Posts: 22701
Joined: Sun Dec 16, 2007 12:17 pm

Re: How to replace Network-Manager with Ceni?  [Solved]

#2 Post by dolphin_oracle »

IIRC, if you isntall and set up your connection with ceni, then network-manager will stop managing the connection anyway.

ceni is really an editor for the /etc/network/interfaces file, and manually sets up a connection in that file. it does not run after the file is set up.

to revert back to network-manager, I think you would just remove the information from the /etc/network/interfaces file and restart network-manager
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 4:15 am

Re: How to replace Network-Manager with Ceni?

#3 Post by pemartins »

Thank you very much for your help @dolphin_oracle

I was about to test it but strangely ceni is not listing the hardware interfaces:
https://i.imgur.com/8erNFQC.png

Is there something that has to be done before running ceni?



Moderator: image changed to link, read the forum rules please.

User avatar
dolphin_oracle
Developer
Posts: 22701
Joined: Sun Dec 16, 2007 12:17 pm

Re: How to replace Network-Manager with Ceni?

#4 Post by dolphin_oracle »

well that I don't know. there are a lot of posts about this issue on the internet, but I haven't seen any solutions. FWIW i get the same as you, no interfaces. I even installed the antiX version to try that one. The last time I used Ceni it worked fine.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
anticapitalista
Developer
Posts: 4315
Joined: Sat Jul 15, 2006 10:40 am

Re: How to replace Network-Manager with Ceni?

#5 Post by anticapitalista »

Try messing around with resolvconf.
Install it if it is not there, reinstall if it is or try removing it.
You might need to reboot though.
In my experience, Network manager does not play nice with ceni, which is why we use connman (and wicd in the past).
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 4:15 am

Re: How to replace Network-Manager with Ceni?

#6 Post by pemartins »

Thank you both @anticapitalista and @dolphin_oracle very much for your help.

Ceni in antiX works really great for me, I'd really love to be able to use it on MX. Or something else that worked, and this error would stop happening:

Code: Select all

$ sudo dmesg -w
...
deauthenticating from ******** by local choice (Reason: 3=DEAUTH_LEAVING)
@anticapitalista messing around with this stuff is something that I'd rather stay away from, I do not know much about the subject and I'd most probably end up without internet connection and not knowing what to do to try to get it back... or maybe even end up with a broken system. I've had my fair share of that, unfortunately.

User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 4:15 am

Re: How to replace Network-Manager with Ceni?

#7 Post by pemartins »

dolphin_oracle wrote: Fri Jan 20, 2023 2:41 pm IIRC, if you isntall and set up your connection with ceni, then network-manager will stop managing the connection anyway.

ceni is really an editor for the /etc/network/interfaces file, and manually sets up a connection in that file. it does not run after the file is set up.

to revert back to network-manager, I think you would just remove the information from the /etc/network/interfaces file and restart network-manager
Following this I used my expertise in computer science with all the knowledge I carry and... just copied whatever extra stuff there was in /etc/network/interfaces in antiX after a ceni setup to the same file in MX :happy:
I added to the file content something like this:

Code: Select all

auto wlan0
iface wlan0 inet static
	address 192.168.1._
	broadcast 192.168.1.255
	dns-nameservers 1.1.1.1 1.0.0.1
	dns-search my.domain
	gateway 192.168.1.1
	netmask 255.255.255.0
	network 192.168.1.0
	wpa-psk ____
	wpa-ssid ____
saved, rebooted and after network-manager was no longer managing the network connection.
I'll leave it like this for now, hoping that my connection stops dropping.

Thank you all for your help.

edit: my connection hasn't dropped yet, not even once, and more than 10 days have passed since.
Last edited by pemartins on Sat Feb 04, 2023 1:49 am, edited 2 times in total.

User avatar
pemartins
Posts: 32
Joined: Fri Nov 09, 2018 4:15 am

Re: How to replace Network-Manager with Ceni?

#8 Post by pemartins »

By the way, is there another application that also does this like Ceni does, that can be used instead, either gui or command line?

Post Reply

Return to “MX Help”