我在SBC上运行Debian 2.6,我打算在嵌入式设置中使用它.我需要做的是配置它,以便linux启动并运行我的Qt GUI应用程序.我是否需要窗口管理器来执行此操作,或者我可以使用X11执行此操作.另外,因为它将用于嵌入式系统,我不想加载任何桌面管理器.有关如何做到这一点的任何信息都会很棒!
我想知道在iPhone启动时允许在后台/前台启动什么类型的应用程序,它们是否仅限于iOS 4?
我有一个窗口服务,我用c#开发(vs2008).请告诉我如何使其在安装后自动启动,并在系统重新启动时自动启动.
编辑:我正在使用安装和部署项目来安装它.谢谢
好,朋友们,
这让我疯了......无法让我的nodejs应用程序在覆盆子pi上自动启动@boot ...
机器:覆盆子2(Raspbian Jessie)
尝试了我在Google上找到的几乎所有可能的解决方案.
这就是我最终得到的结果:
安装pm2
$ sudo npm install -g pm2
Run Code Online (Sandbox Code Playgroud)
这将安装为init.d脚本并以pi用户身份运行应用程序
$ sudo pm2 startup raspberry -u pi
[PM2] Generating system init script in /etc/init.d/pm2-init.sh
[PM2] Making script booting at startup...
[PM2] -raspberry- Using the command:
su -c "chmod +x /etc/init.d/pm2-init.sh && update-rc.d pm2-init.sh defaults"
[PM2] Done.
Run Code Online (Sandbox Code Playgroud)
我已经读过脚本引用了错误的.pm2文件夹(看起来在根文件夹中,而不是用户的文件夹中)所以我改变了
$ sudo vi /etc/init.d/pm2-init.sh
Run Code Online (Sandbox Code Playgroud)
改变export PM2_HOME="/root/.pm2"以export PM2_HOME="/home/pi/.pm2"
$ cd /opt/mycoolnodeproject
Run Code Online (Sandbox Code Playgroud)
用pm2启动我的节点项目
$ pm2 start server.js -x --name "node-project"
Run Code Online (Sandbox Code Playgroud)
保存活动进程,以便在重新启动时重新启动它们(如果pi崩溃,它会自动将其保存在关闭状态)
$ pm2 dump
Run Code Online (Sandbox Code Playgroud)
所以现在服务器启动并运行正常......直到我重新启动!我以为pm2会自动启动我的节点应用程序但由于某种原因它不会...... :(
知道问题可能是什么? …
有没有办法以编程方式获得华硕(自动启动管理器),miui(安全中心)的许可?由于这些应用禁用了应用的自动启动功能
我可以使用以下代码打开我的应用程序的AutoStart意图......
try {
Intent intent = new Intent();
String manufacturer = android.os.Build.MANUFACTURER;
if ("xiaomi".equalsIgnoreCase(manufacturer)) {
intent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity"));
} else if ("oppo".equalsIgnoreCase(manufacturer)) {
intent.setComponent(new ComponentName("com.coloros.safecenter", "com.coloros.safecenter.permission.startup.StartupAppListActivity"));
//intent.setComponent(new ComponentName("com.coloros.oppoguardelf", "com.coloros.powermanager.fuelgaue.PowerConsumptionActivity"));
} else if ("vivo".equalsIgnoreCase(manufacturer)) {
intent.setComponent(new ComponentName("com.vivo.permissionmanager", "com.vivo.permissionmanager.activity.BgStartUpManagerActivity"));
} else if ("huawei".equalsIgnoreCase(manufacturer)) {
intent.setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.process.ProtectActivity"));
}
List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
if (list.size() > 0) {
startActivity(intent);
}
} catch (Exception e) {
e.printStackTrace();
}
Run Code Online (Sandbox Code Playgroud)
但是,尽管启用了AutoStart权限,但这将始终打开权限意图.如何在启动意图之前检查此AutoStart权限是打开还是关闭?
我需要构建一个执行以下操作的安装程序:
知道如何去做吗?
java installer software-distribution cross-platform autostart
有我要通过ubuntu中的/etc/init.d启动的自定义dropr消息队列轮询器。所有这三个脚本都是非常简单的一个衬板,并且可以通过命令行完美运行,但是由于某些原因,当服务器启动时,只有其中一个实际上可以运行。所有人都有775个烫发,而且效果很好:
sudo /etc/init.d/app-poller.sh
Run Code Online (Sandbox Code Playgroud)
这是一个示例脚本(必须以www-data用户身份运行):
[/etc/init.d]$ cat /etc/init.d/app-poller.sh
#!/bin/sh
su - www-data -c "bash -c '/path/to/dropr-server/daemons/app-poller.php'"
Run Code Online (Sandbox Code Playgroud)
我通过以下方式多次运行了删除/重新输入inittab条目的操作:
updates-rc.d -f app-poller.sh remove
updates-rc.d app-poller.sh defaults
Run Code Online (Sandbox Code Playgroud)
rcconf脚本还说一切正常。我跟着都在这里说明:http://jonathonhill.net/2009-04-23/auto-start-a-shell-script-on-ubuntu-server/这里和这里:HTTP://stringofthoughts.wordpress .com / 2009/04/16 / adding-removing-shell-scripts-ubuntu-810 /
而且我一直在寻找所有常见的可疑对象(/ var / log / messages,/ var / log / daemons等)中的输出...仍然没有任何线索。
非常想至少了解一下为什么会失败。任何人都知道我可以参考哪些日志文件以查看出了什么问题以及为什么?
我正在开发一个Forms应用程序,它应该在Windows启动时启动(通过在注册表中注册密钥)或由实际用户启动.
如果用户手动启动它(即单击可执行文件),我希望表单显示.如果Windows触发了该事件,我希望隐藏应用程序(进入托盘栏).
有没有办法以编程方式确定发生了哪些情况?
我是emacs的新手.事实上,我正在学习编辑器并尝试设置一些可以复制"转到项目内部的文件"的功能,这些功能可以从Code :: Blocks或记事本++的某些插件中获知.
'projectile'满足了这个需求,我通过MELPA安装了它.正确安装包,因为我可以启动它M-x projectile-global-mode并C-c p识别命令.
但是,如果我将它放入我的.emacs文件中,Emacs会以错误开头:
Symbol's function definition is void: projectile-global-mode
Run Code Online (Sandbox Code Playgroud)
我的.emacs文件内容如下:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, …Run Code Online (Sandbox Code Playgroud)