Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
2
votes
2
answers
5529
views
Add new category in Menu (Xfce)
I tried doing the following to add a new category named "Electronics" in Whisker Menu on Linux Mint 17.1 with Xfce 4.10.1: 1. I added this text to `~/.config/menus/xfce-applications.menu` just after rest of entries for categories <Menu> <Name>Electronics</Name> <Directory>xfce-electr...
I tried doing the following to add a new category named "Electronics" in Whisker Menu on Linux Mint 17.1 with Xfce 4.10.1:
1. I added this text to
~/.config/menus/xfce-applications.menu
just after rest of entries for categories
<Menu> <Name>Electronics</Name> <Directory>xfce-electronics.directory</Directory> <Layout> <Merge type="menus" /> <Filename>geda-gattrib.desktop</Filename> <Merge type="files" /> </Layout> </Menu>and Electronics down in the file (with other similar entries). 2. Then, I added
Electronics
to ~/.config/menus/applications.menu
along with similar entries.
3. Last, I made a new file named ~/.local/share/desktop-directories/xfce-electronics.directory
and added wrote the following to it:
[Desktop Entry] Type=Directory Icon=file-manager Name=Electronics Comment=However, I am not seeing a new category in either Whisker Menu or Alacarte or Menulibre (menu editors). Is there something else to be done that I missed?
strNOcat
(383 rep)
Dec 25, 2014, 04:05 AM
• Last activity: Jul 17, 2025, 02:59 PM
0
votes
1
answers
41
views
How to debug the xdg free desktop menu
I'm using KDE on last debian and i get a lot of problem with the menu. I was using the kdemenu to organise the start menu, but i get a lot of trouble : Some .desktop shows in the start menu but not in kdemenu Some .desktop shows in kdemenu but not in the startmenu under the good menu Some .desktop c...
I'm using KDE on last debian and i get a lot of problem with the menu. I was using the kdemenu to organise the start menu, but i get a lot of trouble :
Some .desktop shows in the start menu but not in kdemenu
Some .desktop shows in kdemenu but not in the startmenu under the good menu
Some .desktop can only be called with the search option and show nowhere else (menu or kmenuedit)
I first try to look at applications-kmenuedit.menu but it's a mess, there is some old change which are keep for no reason i understand. This a test directory i made, which i deleted, but is kept :
test
a
test.directory
a
a.directory
So, i wanted to create my own .menu file, inside ~/.config/menus/applications-merged/ keeping /etc/xdg and basic kde menu file :
menu
_hidden
_new
AIMP.desktop
arduino.desktop
a
arduino.desktop
b
c
d
LTspice2.desktop
test.desktop
chrome-aghbiahbpaijignceidepookljebhfak-Default.desktop
Education
Web Development
Translation
Science & Math
I get that problem :
- Sometimes, the start menu refresh, sometimes it seems not. xdg-desktop-menu forceupdate --mode user change nothing
- "Education" menu disappear but not "Science & Math"
- Some .desktop are at the good place : arduino.desktop for example, but chrome[...].desktop don't show.
I don't know why, maybe some interract with others .menu file. So i'm looking for a tool or verbose to know how xdg will construct the start menu and will be able to debug my .menu file by my own.
Thanks in advance,
Regards,
Frog
(1 rep)
Jun 9, 2025, 09:13 AM
• Last activity: Jul 16, 2025, 06:03 PM
5
votes
1
answers
3927
views
In KDE, how to get the Application Menu (File, Edit...) back on top of each window?
[![enter image description here][1]][1] [1]: https://i.sstatic.net/Dn6Ba.png My File, Edit... Menus are gone from the Dolphin file manager. For the life of me I cant figure out how to get it back. Thank you.

Benzle
(151 rep)
Jun 7, 2021, 01:59 PM
• Last activity: Jun 11, 2025, 04:01 AM
0
votes
0
answers
137
views
XFCE4 panel: AppMenu plugin has excess left padding and the menu is cut-off?
My AppMenu panel plugin (global applications menu) on XFCE4 desktop has an excessive amount of left padding, and the menus are cut off: [ , this bug affects some desktop XFCE4 installations too. Here the version numbers on my sustem:

xfce4-appmenu-plugin 24.05 aarch64
xfce4-panel 4.20.3 aarch64
**Question:** Is there a patch or workaround I can apply to fix the AppMenu plugin?
MRule
(249 rep)
Feb 10, 2025, 08:29 AM
• Last activity: May 20, 2025, 05:46 AM
-3
votes
1
answers
92
views
Switching to a new default terminal breaks my desktop and panel shortcuts
I am a noobie running a Hyper-V instance of Kali Linux and have switched my default terminal editor to Ghostty. Doing so has broken the desktop and panel shortcuts I have, but only the ones that run from the terminal. Switching the default back fixes the issue, but I would like to keep using Ghostty...
I am a noobie running a Hyper-V instance of Kali Linux and have switched my default terminal editor to Ghostty.
Doing so has broken the desktop and panel shortcuts I have, but only the ones that run from the terminal.
Switching the default back fixes the issue, but I would like to keep using Ghostty as my default. I haven't tried anything described in this post, however This issue was described here and was only "fixed" by switching back.
The only shortcut I really use is Neovim so I will use that as the example here:
The following is a screenshot for the settings of the launcher
When I run this launcher, a blank Ghostty terminal opens and I receive a popup titled Configuration Errors:

One or more configuration errors were found while loading the configuration. Please
review the errors below and reload the configuration or ignore the erroneous lines.
nvim: invalid field
My current theory is that when I use the launcher, the command nvim
is run in the terminal, as this replicates the behavior. Why this is happening, I have no idea. It could have to do with the way Ghostty is run as the default Terminal, perhaps its launcher is broken?
(For reference this is my first week with Linux so go easy on me, but I had trouble installing Ghostty since there isn't an official version for the Testing version of Debian which is what Kali runs on right now. With much difficulty, I was able to do it using Snapd, so perhaps this is why it's all broken)
Please let me know what other information may help, I apologize that I don't know what else may assist.
Any and all help is appreciated, thank you for your time!
AudBid
(7 rep)
Mar 9, 2025, 08:28 PM
• Last activity: Mar 22, 2025, 09:32 PM
1
votes
2
answers
156
views
Multi level submenu, return to previous level and main menu as options
I am working on a multi-level menu and I want to implement the ability for sub menus and sub-sub menus to return to the previous menu or go directly back to the main menu. Please see below... ``` [Menu] 1 - Option 1 2 - Option 2 3 - Quit (exit command) Please choose option: #Under Option 1 1 - Sub-O...
I am working on a multi-level menu and I want to implement the ability for sub menus and sub-sub menus to return to the previous menu or go directly back to the main menu. Please see below...
[Menu]
1 - Option 1
2 - Option 2
3 - Quit (exit command)
Please choose option:
#Under Option 1
1 - Sub-Option 1
2 - Sub-Option 2
3 - back to main menu
#Under Sub-Option 1
1 - Sub-sub Option 1
2 - Sub-sub Option 2
3 - back to Sub-option menu
4 - back to main menu
My current code keeps each menu in a separate function. I included my Sub-Option menu below...
suite_menu() {
show_suite_menu
read -p "Pick Number> " choice
case $choice in
1) echo "1 selected."
fullsuite_menu ;;
2) echo "2 selected."
fullsuite_menu ;;
3) echo "3 selected."
fullsuite_menu ;;
0) break;;
*) echo "Invalid choice, please try again";;
esac
}
How could I code my sub-sub-option menu to have option 3 going to the menu above, and option 0 going to main menu?
Thanks in advance <3
Angela Zhou
(13 rep)
Mar 5, 2025, 04:54 PM
• Last activity: Mar 5, 2025, 09:23 PM
3
votes
2
answers
4180
views
How can I get maximized windows not to hide behind the menu bar on primary external?
I didn't have this happening on Mint 17.1 MATE. On the MATE version of Mint versions 18.1, 19.3, and 20.3, with a dual-monitor setup, and the external monitor being primary, the menu bar covers up the lower part of any maximized window (Firefox, Terminal, etc.) making some screen content inaccessibl...
I didn't have this happening on Mint 17.1 MATE.
On the MATE version of Mint versions 18.1, 19.3, and 20.3, with a dual-monitor setup, and the external monitor being primary, the menu bar covers up the lower part of any maximized window (Firefox, Terminal, etc.) making some screen content inaccessible. This is especially a problem with Terminal, since I can then never see the prompt and what I'm typing there.
Terminal in particular for some reason has different results depending on what I set the "Application font" to in the Appearances applet, which affects the size of the menu bar but not the size of the Terminal output. At 16 pt font it only half-covers the last line:
But at 14 pt font, it covers the whole last line:
16 pt seems to be a sweet spot---10 pt or less and 20 pt for example both cover most or all of the last Terminal line, just like 14 pt. More than 20 pt starts to cover multiple lines. But in any case, it's a no-go for Terminal windows and also for the bottom of web sites being hidden in browser windows.
If I make the laptop built-in primary, I do *not* have this issue on that screen. Only the external. The problem is, I don't want the tiny screen to be where apps launch by default, otherwise I wouldn't have an external in the first place.
Unmaximizing and remaximizing a window does not solve the issue.
Is there any way to fix this?
If not, is there any way to move the menu bar to the laptop screen, but have the external screen still be considered primary for the purpose of new window creation?
**Update regarding potential workarounds**
1. If I disable the laptop screen, and just use the external, the problem goes away. (Obviously this isn't a solution though if I want to use both screens.)
2. The "Autohide" and "Show hide buttons" options do not work for my case because while the menu bar is hidden, I cannot see (at a glance) unread status indicators in app title bars, the clock, or system tray icons.
3. Side orientation doesn't work well for me because I need to make the bar huge in order to have the same amount of app title bar width for readability, and also makes my app windows skinnier than works for me (Google Docs in a web browser, for instance, creates a horizontal scrollbar, when there's a comment column and it's zoomed in for readability.)
4. Top orientation seemed promising---Fitz' law for closing apps apparently died sometime in the mid-90's on most OSes for supposed aesthetic reasons anyway---but Chromium, oddly, does not play well with it all, taking up the whole screen and covering up the menu bar even though it's not supposed to be coverable. (Could be a bug in Chromium, MATE, or both...but that's already true of the main issue here in bottom orientation as well.)


Kev
(1759 rep)
Jan 20, 2017, 02:14 PM
• Last activity: Feb 13, 2025, 01:05 PM
0
votes
1
answers
26
views
Where is Kwrite's edit menu option "toggle comment"?
I use Kwrite for looking at code. Sometimes I want to test the result of removing a line and Kwrite had a very useful menu option : "Toggle comment" (before there were 2 lines in that menu, "Comment" and 'Uncomment"). As I don't do that every day and as the syntax differs from language to language (...
I use Kwrite for looking at code. Sometimes I want to test the result of removing a line and Kwrite had a very useful menu option : "Toggle comment" (before there were 2 lines in that menu, "Comment" and 'Uncomment"). As I don't do that every day and as the syntax differs from language to language (and sometimes within the same language if you consider CSS to be a part of HTML), I can never remember how to do it.
I've just noticed that this menu option is missing from my current version of Kwrite (on an up-to-date Lubuntu).
How can I get it back? Should I try to install an older version of Kwrite?
Alain Reve
(123 rep)
Feb 10, 2025, 08:08 PM
• Last activity: Feb 10, 2025, 11:05 PM
1
votes
2
answers
3945
views
Bash completely CLI interactive menu
I know there are programs which make a TUI (like `dialog`, `whiptail`) which allow selections in bash. However, I want a simple, nice, completely CLI menu (may not be simple to implement though). Note: - the program should **NOT** clear the terminal (it should keep current terminal contents intact)...
I know there are programs which make a TUI (like
If the user presses arrow up/down, the program should select the previous/next item and "cycle" through options (selection becomes last when arrow up is pressed on first option). This example shows the menu after arrow down is pressed:
If the user types "opt", the menu selection should only show options starting with "opt" and change back the current selection to the first item:
Is this even possible? If yes, please tell me how. Also, I am willing to add any description if requested.
dialog
, whiptail
) which allow selections in bash. However, I want a simple, nice, completely CLI menu (may not be simple to implement though).
Note:
- the program should **NOT** clear the terminal (it should keep current terminal contents intact)
- the program should change contents of the menu instead of spitting out lines every key input
The answer should be a bash/shell script.
Given an array of strings (4 in this case):
options=(opt1 "option 2" another "option here")
I want to construct a menu with the selected option highlighted (option will be chosen if pressed enter
):



sudoer
(65 rep)
Sep 2, 2022, 11:36 AM
• Last activity: Feb 10, 2025, 01:49 AM
0
votes
0
answers
170
views
KDE Plasma application launcher menu editing
Using kmenuedit on a KDE-Plasma 6.2.4 - KDE-FrameWorks 6.9.0 DeskTop in openSUSE Tumbleweed: I have added a sub-menu entry (QT Tools) under the menu entry Development and cut from the Development entry all QT Applications and pasted in the QT Tools sub-menu of Development. After saving, I select the...
Using kmenuedit on a KDE-Plasma 6.2.4 - KDE-FrameWorks 6.9.0 DeskTop in openSUSE Tumbleweed:
I have added a sub-menu entry (QT Tools) under the menu entry Development and cut from the Development entry all QT Applications and pasted in the QT Tools sub-menu of Development.
After saving, I select the application launcher surfing to the Development entry to find nothing has been updated or changed, not even the new sub-menu QT Tools is reflected. What am I doing so wrong here?
I've obviously missed the boat for I'm feeling wet behind my ears and more than slightly embarrassed.
briantopazruce
(1 rep)
Dec 19, 2024, 12:39 PM
0
votes
0
answers
50
views
Name of the arrow icons that tell you there is a subdirectory in a menu?
I don't know how exactly to describe it verbally, but I just mean the white triangular arrows in this example image: \ [![menu with “Accessories”, “Education”, etc.][1]][1] [1]: https://i.sstatic.net/IY5e5HbW.jpg In an icon theme that I'm trying to use they either don't exist or are t...
I don't know how exactly to describe it verbally,
but I just mean the white triangular arrows in this example image: \
In an icon theme that I'm trying to use they either don't exist or are the exact same color as the menus that they're on top of. I don't know how to look up what their standard filename is in GNOME/GTK/whatever icon sets because I also have no idea what they're called in a general sense.
I just want to go into that theme's folder in

/usr/share/icons
and either put them there
or replace them with ones that are actually visible.
cereallain
(1 rep)
May 5, 2024, 07:10 PM
• Last activity: May 5, 2024, 07:36 PM
0
votes
1
answers
469
views
How to reliably determine the name of an application for use in Gnome: Favorite Applications?
I have ran the following command to setup my Favorite Applications menu: ``` gsettings set org.gnome.shell favorite-apps "[ \ 'docker-desktop.desktop', \ 'org.gnome.Nautilus.desktop', \ 'firefox-esr.desktop', \ 'github-desktop.desktop', \ 'gnome-system-monitor.desktop', \ 'org.gnome.Terminal.desktop...
I have ran the following command to setup my Favorite Applications menu:
gsettings set org.gnome.shell favorite-apps "[ \
'docker-desktop.desktop', \
'org.gnome.Nautilus.desktop', \
'firefox-esr.desktop', \
'github-desktop.desktop', \
'gnome-system-monitor.desktop', \
'org.gnome.Terminal.desktop', \
'gnome-tweaks.desktop' \
]"
This is working perfectly (after working out the precise application names).
However I can't work out what the application name is for gnome-control-center
- I have tried all of these:
'gnome-control-center', \
'gnome-control-center.desktop', \
'gnome-controlcenter.desktop', \
'gnome.control-center.desktop', \
'org.gnome-control-center.desktop', \
'org.gnome.control-center.desktop', \
'org.gnome.controlcenter.desktop', \
'/usr/bin/gnome-control-center', \
'/usr/bin/gnome-control-center.desktop', \
None of them work. "Settings" (A.K.A. Control Center) does not show in my list of Favorite Applications.
How can I add it to my menu please? Do I have the application name wrong?
I am able to successfully launch it from the Terminal using both gnome-control-center
and /usr/bin/gnome-control-center
I am also looking for the name of the Text Editor (gnome-text-editor
) application - as I can't work that one out either, to add it to my Favorites.
How can we reliably determine the name of each application please?
I am running Gnome on Debian 12.
**Note:** I actually ended up setting the favorites system-wide for all users via 00-favorite-apps
- but the same is observed either way).

Danny Beckett
(797 rep)
Apr 5, 2024, 04:28 PM
• Last activity: Apr 6, 2024, 03:19 PM
37
votes
5
answers
36286
views
Arrow key/Enter menu
How to create a menu in a shell script that will display 3 options that a user will use the arrows keys to move the highlight cursor and press enter to select one?
How to create a menu in a shell script that will display 3 options that a user will use the arrows keys to move the highlight cursor and press enter to select one?
Mrplow911
(373 rep)
Jul 25, 2014, 02:37 PM
• Last activity: Feb 29, 2024, 07:55 PM
4
votes
2
answers
7242
views
Fully access DVD movies menu structure: any alternative to VLC?
I want to be able to just insert a DVD movie and be sure I'll have full access to all its features. - Can this be done without VLC in Linux? **VLC** is maybe the best video player out-there and as far as I can tell the best DVD player for Linux, but it may happen that it fails from time to time (I s...
I want to be able to just insert a DVD movie and be sure I'll have full access to all its features. - Can this be done without VLC in Linux?
**VLC** is maybe the best video player out-there and as far as I can tell the best DVD player for Linux, but it may happen that it fails from time to time (I sometimes lose video, audio, or synchronization between those) - so that it may be useful to know if there is a way to have full access to all features of a DVD movie with a different application.
Example (tested in Manjaro and Mint KDE):
- once the DVD disk inside the computer drive, VLC can show the menu like so:
and each menu entry may lead to other sub-menu entries:
This example is in **VLC**. Can other player do as well as this? Or better: I remember that in Windows I used players that at any moment during playback were able to show the first level of the menus by selecting a specific option. I cannot seem to find that in VLC neither - clicking the 'DVD Menus' added to the interface, it will just restart from the beginning.
What happens when trying the same DVD with a different player?
Well, **many video players don't even have an "Open DVD" option**.
**SMPlayer** has that option, shows the first level of the menus but does nothing then (it seems to see the menus just as a video stream or something).
**Gnome MPlayer** also has it, but cannot find the dvd as it looks for it by default in


/dev/dvd
and it doesn't have a way to change that. When starting the DVD in this player anyway, it treats menus as video stream.
Even without an "Open DVD" option I was able to test with other players.
Many do not see the menus as such but play them as a video stream, and so the menus are not usable. (I tested **mpv, Gnome MPV, bomi, Gnome MPlayer, Baka Mplayer, KPlayer, KMPlayer, Dragon Player**)
**Totem** player was able to display the first level of menus just like VLC but clicking any of them was just starting the first entry.
user32012
Oct 30, 2015, 01:41 PM
• Last activity: Dec 15, 2023, 09:32 PM
2
votes
2
answers
1165
views
XFCE - find out which command is executed by a given menu item
I would like to know which command is executed when I click on a given XFCE menu item. For instance, in my menu, `Applications` contains an item `Users and Groups`, but clicking on it does nothing. I would like to run the same program in the command line to see if there are any error messages, but I...
I would like to know which command is executed when I click on a given XFCE menu item.
For instance, in my menu,
Applications
contains an item Users and Groups
, but clicking on it does nothing. I would like to run the same program in the command line to see if there are any error messages, but I do not know which command it is.
anol
(835 rep)
Mar 5, 2014, 04:32 PM
• Last activity: Oct 27, 2023, 07:08 AM
0
votes
1
answers
208
views
Why is the properties option greyed out in the XFCE panel icon menu?
I'm using XFCE and I'm trying to change the properties on a panel icon. However, the option for properties on that icon is greyed out. For some reason it's only for that icon, the other icons are fine. Here is a cropped screenshot to show what I mean.[![enter image description here][1]][1] [1]: http...
I'm using XFCE and I'm trying to change the properties on a panel icon. However, the option for properties on that icon is greyed out. For some reason it's only for that icon, the other icons are fine. Here is a cropped screenshot to show what I mean.

deltaray
(1477 rep)
Oct 17, 2023, 03:28 PM
3
votes
2
answers
2374
views
overriding a single field in a desktop-entry
I'm setting up a Debian system, with LXDE as the Desktop Environment (really, I'm just remastering a *Raspberry Pi OS* image). I have an application that ships with a [`.desktop`](https://specifications.freedesktop.org/desktop-entry-spec/latest/) file. Cool! Unfortunately that `MyApplication.desktop...
I'm setting up a Debian system, with LXDE as the Desktop Environment (really, I'm just remastering a *Raspberry Pi OS* image).
I have an application that ships with a [
.desktop
](https://specifications.freedesktop.org/desktop-entry-spec/latest/) file.
Cool!
Unfortunately that MyApplication.desktop
file contains the following line that prevents the icon from being shown in the menu:
NoDisplay=true
Now, I would like to find a generic way to override just this single field in the MyApplication.desktop
file for the entire system, without touching any other fields - think of it as an overlay.
Especially, I try to *avoid* a solution like this...
sed -e 's/^NoDisplay=true/NoDisplay=false/' /usr/share/applications/MyApplication.desktop \
> /usr/local/share/applications/MyApplication.desktop
... as this would lose any changes of the MyApplication.desktop
introduced by newer upstream versions of that file (and presumable leave the menu-entry intact, even if after I've uninstalled MyApplication
from the system)
Obviously, the standard does not allow only partial .desktop files, e.g. this would not work:
$ cat /usr/share/applications/MyApplication.desktop
[Desktop Entry]
Name=My Cool Application
GenericName=My Application
Exec=myapp %f
Icon=myapp
Type=Application
Terminal=false
Categories=Application
NoDisplay=true
$ cat /usr/local/share/applications/MyApplication.desktop
[Desktop Entry]
NoDisplay=false
Similarily, there's no include
mechanism:
$ cat /usr/local/share/applications/MyApplication.desktop
include=/usr/share/applications/MyApplication.desktop
[Desktop Entry]
NoDisplay=false
what are my options to achieve that?
umläute
(6704 rep)
Sep 21, 2021, 08:10 AM
• Last activity: Aug 28, 2023, 06:56 PM
1
votes
1
answers
472
views
How do I add "Right click>close" option to a .desktop file?
I have created a `.desktop` file for a program I use frequently. When I left click the `.desktop` file, it runs the program. I would like to have an "exit/close" option when I right click the file. How would I go about doing this?
I have created a
.desktop
file for a program I use frequently. When I left click the .desktop
file, it runs the program. I would like to have an "exit/close" option when I right click the file.
How would I go about doing this?
John
(11 rep)
Jan 5, 2020, 04:27 AM
• Last activity: Apr 24, 2023, 06:17 AM
6
votes
3
answers
21426
views
Remove icons in gnome application menu
How can you hide unwanted apps from the gnome app menu? I've installed alacarte/main menu, unticked the apps but they still appear. I've also checked in `/usr/share/applications` and viewed one the apps I don't want to appear and it says `NoDisplay=true` but still it shows.
How can you hide unwanted apps from the gnome app menu?
I've installed alacarte/main menu, unticked the apps but they still appear.
I've also checked in
/usr/share/applications
and viewed one the apps I don't want to appear and it says NoDisplay=true
but still it shows.
Phil Stephenson
(461 rep)
Aug 7, 2014, 09:22 PM
• Last activity: Feb 5, 2023, 12:44 AM
0
votes
1
answers
72
views
Back to root_menu in script doesn't respond like it should
Menu and its submenus in single file bash script with a back to root menu for each. --- My issue is that the `show_root_menu` call sometimes just jump to the upper menu instead of the root. [Bash-installer-menu][1]. It goes most often wrong with the nvidia submenu, to get back to the root menu. Inst...
Menu and its submenus in single file bash script with a back to root menu for each.
---
My issue is that the
---
---
My ohter related questions resolved so far:
- https://unix.stackexchange.com/questions/733152/whats-the-difference-between-sh-command-and-run-as-executable/
- https://unix.stackexchange.com/questions/733425/creating-debug-of-a-bash-script-menu
`$ shellcheck myscript
No issues detected!`
The actual script is:
show_root_menu
call sometimes just jump to the upper menu instead of the root.
Bash-installer-menu .
It goes most often wrong with the nvidia submenu, to get back to the root menu.
Instead it goes to the "Package options" show_pckg_menu
, when "show root menu" is selected from the "Install graphic proprietary driver" submenu:



#!/bin/bash
show_root_menu(){
width=72
height=50
menu_height=8
backtitle="Installer-menu"
title="Setup opions"
menu="Choose one of the following options:"
options=(1 'Add Mint PPA and update'
2 'Install Cinnamon '
3 'update and upgrade '
4 'Additional software installation '
5 'Upgrade Kernel '
6 'Resolve Ubuntu Cinnamon issues '
7 'Install graphic proprietary driver'
x reboot
q quit )
result=$(dialog --clear \
--backtitle "$backtitle" \
--title "$title" \
--menu "$menu" \
$height $width $menu_height \
"${options[@]}" \
2>&1 >/dev/tty)
}
show_pckg_menu(){
width=72
height=22
menu_height=8
backtitle='Installer-menu'
title='Package options'
menu='Choose one of the following options:'
options=(1 'Install package list'
2 'Export package list'
3 'update and upgrade'
4 'Show root menu'
x reboot
q quit )
result=$(dialog --clear \
--backtitle "$backtitle" \
--title "$title" \
--menu "$menu" \
$height $width $menu_height \
"${options[@]}" \
2>&1 >/dev/tty)
}
show_solver_menu(){
width=72
height=22
menu_height=8
backtitle='Installer-menu'
title='Resolver menu'
menu='Choose one of the following options:'
options=(1 'Network applet problem'
2 'Sound problem'
3 'update and upgrade'
4 'Show root menu'
x reboot
q quit )
result=$(dialog --clear \
--backtitle "$backtitle" \
--title "$title" \
--menu "$menu" \
$height $width $menu_height \
"${options[@]}" \
2>&1 >/dev/tty)
}
show_nvidia_menu(){
width=72
height=22
menu_height=8
backtitle='Installer-menu'
title='NVidia driver selection'
menu='Choose one of the following options:'
options=(1 'Install nvidia 515'
2 'Install nvidia 525'
3 'Update and upgrade'
4 'Show root menu'
x reboot
q quit )
result=$(dialog --clear \
--backtitle "$backtitle" \
--title "$title" \
--menu "$menu" \
$height $width $menu_height \
"${options[@]}" \
2>&1 >/dev/tty)
}
show_root_menu
case "$result" in
1) echo 'Mint backport repos installed';
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A1715D88E1DF1F24 40976EAF437D05B5 3B4FE6ACC0B21F32 A6616109451BBBF2;
sh -c 'echo "deb http://packages.linuxmint.com vanessa main upstream import backport romeo" >> /etc/apt/sources.list.d/mint.list';
sh -c 'echo "deb-src http://packages.linuxmint.com vanessa main upstream import backport romeo" >> /etc/apt/sources.list.d/mint.list';
apt-key export 451BBBF2 | gpg --dearmour -o /etc/apt/trusted.gpg.d/mint.gpg;
apt update;
show_root_menu;;
2) echo 'Installation of Cinnamon';
apt install slick-greeter muffin cinnamon;
show_root_menu;;
3) echo 'Package upgrade';
apt update && apt upgrade -y;
show_root_menu;;
4) show_pckg_menu;;
5) sh ubuntu-mainline-kernel.sh;
show_root_menu;;
6) show_solver_menu;;
7) show_nvidia_menu;;
x) echo Reboot;
reboot;;
q) clear;
exit ;;
esac
show_pckg_menu
case "$result" in
1) echo 'Package Install';
sh installpkgs.sh;;
2) echo 'Manualy installed packages exported';
sh pkgsexport.sh;;
3) echo 'Package upgrade';
apt update && apt upgrade -y;
show_pckg_menu;;
4) show_root_menu;;
x) echo 'Reboot';
reboot;;
q) clear;
exit ;;
esac
show_solver_menu
case "$result" in
1) echo 'Applying changes to network settings';
clear;
option_picked "Option 1 Picked";
touch /etc/network/interfaces;
sh -c 'echo "auto lo" >> /etc/network/interfaces';
sh -c 'echo "iface lo inet loopback" >> /etc/network/interfaces';
sh -c 'echo " renderer: NetworkManager" >> /etc/netplan/*.yaml';
netplan apply;
show_solver_menu;;
2) echo 'Applying changes to sound settings';
ln -s /usr/share/pipewire /etc/pipewire;
touch /usr/share/pipewire/media-session.d/with-pulseaudio;
systemctl --user restart pipewire-session-manager;
systemctl --user start pulseaudio;
show_solver_menu;;
3) echo 'Package upgrade';
apt update && apt upgrade -y;
show_solver_menu;;
4) show_root_menu;;
x) echo 'Reboot';
reboot;;
q) clear;
exit ;;
esac
show_nvidia_menu
case "$result" in
1) echo 'NVidia driver 515 installation';
apt install nvidia-driver-515 -y;
show_nvidia_menu;;
2) echo 'NVidia driver 525 installation';
apt install nvidia-driver-525 -y;
show_nvidia_menu;;
3) echo 'Package upgrade';
apt update && apt upgrade -y;
show_nvidia_menu;;
4) show_root_menu;;
x) echo 'Reboot';
reboot;;
q) clear; exit ;;
esac
user330163
Jan 30, 2023, 03:53 PM
• Last activity: Jan 30, 2023, 04:57 PM
Showing page 1 of 20 total questions