问题描述
我无法找到如何启动扩展 GUI。我找到了一个关于如何启动这个 sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
\n\n的教程,但我无法找到如何启动这个
最佳思路
您可以使用下面的命令
如果你使用32位系统:
sudo /opt/lampp/manager-linux.run
如果你使用64位系统:
sudo /opt/lampp/manager-linux-x64.run
次佳思路
主要答案对我不起作用,直到我做了 followed of this example 中的一些内容,其中指出:
\\n
I believe that you want to add a GUI xampp control panel. To add a\\n GUI xampp control panel see below.
\\n
Just press Ctrl+Alt+T on your\\n keyboard to open Terminal. When it opens, run the command(s) below:
\\n
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop\\n
\\n
When the text editor opens simply paste the following, close and save.
\\n
[Desktop Entry]\\nComment=Start and Stop XAMPP\\nName=XAMPP Control Panel\\nExec=sudo -i python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py\\nIcon=/usr/share/icons/Humanity/devices/24/network-wired.svg\\nEncoding=UTF-8\\nTerminal=false\\nName=XAMPP Control Panel\\nComment=Start and Stop XAMPP\\nType=Application\\nIcon=/usr/share/icons/Humanity/devices/24/network-wired.svg\\n
\\n
If you have a problem with executing the program, install
gksu
, and\\n in the forth line, replacesudo -i
withgksudo
. Below is how to\\n
\\n
install gksu if not installed, since it has been removed from 13.04.
\\n
\\n
sudo apt-get install gksu\\n
\\n
Look for xampp control panel in dash
\\n
我正在使用 Ubuntu 14.04 和 Xampp 5.6.3。然后我就可以使用主要回答者发布的内容。这是 Kyusuf Muhammad 的代码引用:
\\n
You can use the command below if you use 32 system :
\\n
sudo /opt/lampp/manager-linux.run\\n
\\n
if you use 64 system:
\\n
sudo /opt/lampp/manager-linux-x64.run\\n
\\n
第三种思路
@HelpNeeder 给出的建议有两个重要注意事项:可执行代码周围应该有引号,并且 Xampp 图标的默认图标的图像可以通过 /opt/lampp/htdocs/dashboard/images/xampp-logo.svg
访问。将其复制到文件夹/usr/share/icons/Humanity/devices/24/
因此,最后的建议是打开一个新终端,运行
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop
并将以下内容保存在文件中:
[Desktop Entry]
Comment=Start and Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon="/usr/share/icons/Humanity/devices/24/xampp-logo.svg"
Encoding=UTF-8
Terminal=false
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Type=Application
第四种思路
这对我有用:
gedit ~/.local/share/applications/xampp-control-panel.desktop
[Desktop Entry]
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Type=Application
Categories=Development
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
您必须安装软件包 gksu
。