How to use GRUB2 with UEFI for secure booting Ubuntu? - grub2

I have a mirco computer board such as BeagleBone black.How I can make secure boot of Ubuntu in it using Grub2 and UEFI?

You cannot use GRUB/UEFI with BBB.
You have to use U-Boot since that's the only officially (and actually) supported boot loader.
Please refer the user guide.
However, if you explain what kind of security you need, people here may suggest different solutions.

Related

How we can monitor a service status using Zabbix?

We are using Zabbix for server monitoring and its working fine for system resources like disk, CPU, memory etc.
Now we want to monitor some services also whether they are running fine or not like Apache, Nginx, Puma, Sidekiq etc.
Can you please help me how we can monitor such services using Zabbix?
Any guidance will be appreciated.
Thanks in advance.
You should refer to the documentation, it covers windows service monitoring and generic process monitoring with proc.* items.
Here you can find the supported item by platform matrix.
There's an external template for systemd lld, you can find it on Zabbix Share
for Nginx monitoring you can use that template
also take a look this repository, probably you can find there something useful
For sidekiq specifically, using
proc.num[,,,sidekiq]
seems to work. It uses the cmdline -argument.
Source:
https://zabbix-users.narkive.com/EKVrN9VY/proc-num-item-for-sidekiq-process

Connecting to MySQL through Objective-C (Desktop)

I've been searching for resources to be able to connect to MySQL through Objective-C (a desktop application, not iOS) and I can't seem to find anything newly relevant that works. Since it's desktop based would I be able to skip using middleware (JSON/XML)? And sorry for the lack of a better term but am I right in saying Objective-C for the desktop, and not iOS or is there another word for Objective-C for the desktop?
Any help in regards to connecting to MySQL and upping my terminology would be great.
Depending on what you need to do, using a middleman such as PHP may be easier, but you can accomplish directly connecting using sockets.
Take a look at this. http://macbug.org/macosxsample/mysql#.Ui9xLT5s25c
Also keep in mind your MySQL server must be configured to allow remote connections from your IP address.

Comet (Ajax Push) in Godaddy dedicated server?

I want to know if it's possible and I'm looking for tutorials to set it up.
APE website says that knowledge of JavaScript programming is sufficent to follow the tutorial however I haven't been able to puzzle even the first 2 lines of the tutorial.
I'm using Ubuntu. After downloading APE I have no idea what to do. I already set up SSH to access the server.
What should be my following steps or where can I find an easier to tutorial to use comet be it through APE or something else?
Assuming your GoDaddy server is running some flavor of Linux, I don't see any reason it would not be possible. I was just looking over the documentation and I am not clear on what part you are having trouble with. What Linux distribution are you using? Do you have SSH access?
If you have ssh access and a root account you should be able to just follow the instructions to get APE running on the default port.
If you are running a Debian dist (Ubuntu and others) it looks like you should download the source from Git and compile it. There are instructions for the compilation there. You can learn about what you need to do wth Git by search for "clone git".
If you can be more specific about what you are having trouble with, we can probably be more helpful. But ultimately you should be able to install this on any dedicated server without issue.

How to configure mod_dbd with MySQL on Apache 2.2

I find it a bit strange that it is so difficult to find information about how to do this.
I want to configure my Apache2 to use mod_dbd when authenticating users. But I cannot find any examples or good descriptions anywhere about how to do this. How can I configure mod_dbd on my Apache-httpd installation?
I am using OsX and Apache 2.2. I hope there is a way to do this which is the same for both OsX and other Linux version.
I have asked this before wihtout any good answers. I assume it must be possible to do without any difficult recompiling of the Apache, etc.
The Apache documentation for this module contains an example that seems pretty clear - is that enough?
I don't use it because of the limitations of the password hashing which make it incompatible with many existing user databases such as those used for Dovecot IMAP. NB: Dovecot can use other hashing for passwords but requires a somewhat odd format for the password which makes life rather complex. So I use the older mod-auth-mysql

Local use of MySQL database

Is it possible to use MySQL local? I mean NOT at a server. I read a lot about MySQL on a webserver with PHP, Joomla etc.
I want to program a piece of software and use a database local to store results. Can I use MySQL for that?
If so, is ther anyware on the net a good tutorial how to do that?
You can install MySQL on your workstation, it doesn't need to be on a "server" per se. You still need to use something that can connect to it. From a Java application, for instance, you'd use JDBC; from .Net, you'd probably use ADO.Net; etc.
As far as I know, it will still want to have its server process (mysqld) running and for you to connect to that process via sockets and the like; there's no standard in-process version that I'm aware of. (The server can be listening only on the local interface, though.) There are several alternatives if you want in-process stuff, such as SQLite and HSQLDB.
Of course, if you're feeling really enterprising, there's the open source version of MySQL, which means you could compile it into your app (if you're using C or something that can link to it), but I suspect that's going rather too far. :-)
Yes, works like a charm for this.
Mysqls homepage has lots of info for this.
use SQLite. it is a popular embedded database.
It can be deployed via XCopy and no server installs.
But it can only be used locally. i.e if you later on decide to allow remote access, then you will need to migrate it to MySQL or other databases.
Try xampplite - it will painlessly install MySQL for you (on your local windows machine) as well as apache, php and a few other web apps if you need them.
If you don't want to install a server, you may be interested into Sqlite! It's the most widely deployed embedded database, and it's Public Domain.
http://www.sqlite.org/
Firebird is also an alternative. It's fully ACID-compliant and runs under the Interbase Public License.
http://www.firebirdsql.org/