LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   how to set network? where's nm-applet? (https://www.linuxquestions.org/questions/bodhi-92/how-to-set-network-wheres-nm-applet-4175667874/)

bakui 01-17-2020 12:56 AM

how to set network? where's nm-applet?
 
after booting into Bodhi moksa desktop,
there's only a quickstart guide telling me that
all I need to do is left-click on an nm-applet icon

but the problem is : there isn't such an icon there.
https://s2.ax1x.com/2020/01/17/lz0k1H.png


after some time, I found that if I logout ,
and then login again, using 'bodhi' and blank password,
then, this nm-applet icon appears, and it works.

https://s2.ax1x.com/2020/01/17/lz0F9e.png

or, without logout, it works if I execute command 'nm-applet' manually

why?

it's latest 5.0 and I tried in both vmware and laptop

rbtylee 01-17-2020 04:06 PM

Quote:

Originally Posted by bakui (Post 6079366)
after booting into Bodhi moksa desktop,
there's only a quickstart guide telling me that
all I need to do is left-click on an nm-applet icon

but the problem is : there isn't such an icon there.
https://s2.ax1x.com/2020/01/17/lz0k1H.png


after some time, I found that if I logout ,
and then login again, using 'bodhi' and blank password,
then, this nm-applet icon appears, and it works.

https://s2.ax1x.com/2020/01/17/lz0F9e.png

or, without logout, it works if I execute command 'nm-applet' manually

why?

it's latest 5.0 and I tried in both vmware and laptop

Are you using the live ISO? I note you say log in with blank password.


Anyway that happens to some users. I think it is related to this known issue: Implement X-GNOME-Autostart-Delay


So if you are using the live ISO and BOdhi is not installed and you want to install it. Go ahead and install it and see if the issue persist on an actual install.

If the issue does persist, be sure your system is up to date. Then open with a text editor as root /usr/share/applications/nm-applet.desktop and add the line:

Quote:

X-GNOME-Autostart-Delay=5
Now reboot and see if the issue persist. If it does increase the delay. Hopefully this will help.

bakui 01-19-2020 05:58 AM

yes it's live ISO. add
X-GNOME-Autostart-Delay=60 not work

rbtylee 01-19-2020 06:17 AM

Quote:

Originally Posted by bakui (Post 6080290)
yes it's live ISO. add
X-GNOME-Autostart-Delay=60 not work

I did some research on this issue yesterday. It is complex problem and can not be fixed on the live ISO without making another ISO.

bakui 01-19-2020 09:30 AM

when doing iPXE live netboot, it’s easy to change scripts in initramfs,
by adding more overlay cpio initrd image, without making another ISO

bakui 01-20-2020 10:27 PM

where'e the hidden first script to run Midori?

when first boot, there's only a quickstart guide midori, no nm-applet,
and when logout and login again, there's nm-applet, and no quickstart guide midori.

ps -aef showd there's a process: sh -c file:///...quickstartEN
I thought there must be some script to run only once at first boot.
and I want to change that script, to run nm-applet, instead of midori.

tried grep -rI quickstartEN / but didn't find this script,
only a config in /etc/skel/.config/midori

bakui 01-21-2020 01:01 AM

though I didn't know the very script to run midori,
since I dont't want midori to run, and I want nm-applet to run,
so, simply, I changed command 'midori' to run nm-applet, '
and it works!

in /tmp/abc I see midori is called by /init, username is bodhi

I just add some these lines after mount_images_in_directory :

Code:

mount_images_in_directory "${livefs_root}" "${rootmnt}"
mv /root/usr/bin/midori /root/usr/bin/midori2
echo echo $0 \>  /tmp/abc  > /root/usr/bin/midori
echo whoami  \>\> /tmp/abc  >> /root/usr/bin/midori
echo sudo rm -f /usr/bin/midori  >> /root/usr/bin/midori
echo sudo mv /usr/bin/midori2 /usr/bin/midori >> /root/usr/bin/midori
echo sleep 5                >> /root/usr/bin/midori
echo xrandr -s  1440x900    >> /root/usr/bin/midori
echo nm-applet              >> /root/usr/bin/midori
chmod +x /root/usr/bin/midori


bakui 01-21-2020 01:04 AM

X-GNOME-Autostart-Delay this only work after logout.
maybe ugly, but it works. I just want it to show up in live mode, without logout.

rbtylee 01-21-2020 06:54 AM

Quote:

Originally Posted by bakui (Post 6081021)
though I didn't know the very script to run midori,
since I dont't want midori to run, and I want nm-applet to run,
so, simply, I changed command 'midori' to run nm-applet, '
and it works!

Interesting approach. There is no script to run our quick start guide in midori. This is 'hard-coded' in Moksha to run after first boot.

kozaki 02-03-2020 11:07 PM

Had this issue on an old Intel Atom netbook. Nice job men :)


All times are GMT -5. The time now is 03:36 PM.