Send 'Enter' key to a computer with shell script - bios

I want to send an 'Enter' key to my workstation with a shell script.
The problem is the following: When my workstation turning on, it writes a hardware problem (901-chassis fan not detected) to the screen and it sais press ENTER. When I would like to work at home, I can wake up my computer with a script which runs by the server, but I can't press Enter. Is there any way to send 'Enter' with a script? I can use the my workstation mac address.
(I have no permission to solve the hardware problem in my company)

No you can't send an ENTER key until shell is started.

Related

How to I disable login prompt when connecting to the Dev Board via serial console?

I can't use mdt as I have already disabled ssh on the dev board. When connecting to the board via serial, I often get stopped with a login prompt, this makes it hard to write automated tasks. Any suggestions?
Good question!
Please open this file:
/lib/systemd/system/serial-getty#.service
And change the ExecStart=... line to this:
ExecStart=-/sbin/agetty --autologin mendel --keep-baud 115200,38400,9600 %I $TERM
Then reboot and serial console won't be showing a login prompt any more.

mac os keychain password pops up

after I first learned how to code in swift I tried to run a simple app on my own iphone but I keep getting keychain asking me about a password. till now I've never seen this notification can you tell me what should I type as my keychain password?
Type in your computer password and hit Always Allow. That will get you passed that box and let your app load up on your Iphone.
If you've hit Deny and the box is not popping up anymore but you are still getting the same error message, then all you need to do is shut down your computer and restart. The the box should pop up again, that will give you a second chance to put in your computer password and hit Allays Allow

iPhone/ Android will not dismiss wifi landing page implemented with DNS

I am trying to implement a splash page/ wifi landing page on my existing public wifi network, using the DNS method mentioned in Wiki, in which I host a custom DNS server, that will redirect ALL dns lookup to a local address where a web server is hosted, for all user before they click agree.
After the user clicked agree, my custom DNS server starts returning correct ip for the look up, thus, user will be able to get online.
note: We totally understand that this is in no way secure our network, and even putting our network at risk. But the goal here is to just to pop the landing page up in front of our users.
This approach actually works on Windows Phone (Windows 8 I tested) as splash page, and even on a computer when I try to open a random website, it redirects me to my page, and after I hit agree, I can get to the internet.
When I try it on iPhone/ Android, once I connect to the hotspot, the splash page/ wifi landing page appear as expected (because the device is trying to verify internet access by going to the set of pages) However, after I click agree, and allow internet access, both iPhone and Android splash screen will not go away. I have to force iphone to "use this wifi without network" to exit.
I wonder if there is a special (javascript?) method I can call in the page, or some package I need to send to the device? I noticed on iOS, if I click a link to the App Store, the splash page go away without disconnecting from the network, So, I guess I am missing something here.
For example, clicking the link to the iOS StackOverflow App on iOS device can be a workaround.
Had been googling around for a week now, nothing seems to came up.
by the way, I am building my custom dns server on node js, with the module dnsd.
=-=-=
=-=-=-=-= edit =-=-=-=-=-=
I also uploaded a demo of my code on GitHub:
https://github.com/kylelam/dnsd_wifi
To test it, run it in your local network (sudo node demo.js). Then, change your phone's dns to your machine's IP. Disconnect your phone from wifi and connect to it again. (on iOS, you might need to go into detail, and enable auto-login, and auto-join, or if you can't, just reboot.)
*note1: the server will need to run on port 53, and 80, so it need sudo.
*note2: please don't laugh at my code, I'm very new to this. But please do point out.
*note3: you will need to npm install these packages: os, express, dns, dnsd
ttl set to 0 might be the cause of the issue, try a different value like 5.

Browser to browser calls with free account press any key to continue?

I am trying out twilio using the quick start tutorial. I am doing browser to browser calls. I have followed the tutorial. When I try to make a call it rings and connects. It then plays the "free account" message and asks me to press any key to continue. When I press a key it does nothing for a few seconds and then hangs up without going through to the other browser.
Is this happening because I am on a free account or is there something else I need to do in order for it to register the key press from the browser?
Twilio evangelist here.
I can see where this might be confusing and its good feedback. The prompt to press any key is apparently making the assumption that you are calling from an actual phone, which would include a keypad that lets you press any key. Obviously with a simple Twilio Client app there isn't by default a number pad to press, but the JavaScript SDK does include the sendDigits function, which makes it pretty trivial to wire up a button (or some other UI) in your app to send the equivalent of a key press (aka a DTMF tone) to Twilio.
Hope that helps.

How can I detect that a windows printer is printing to file

I have a service application that generates files to print as a result of user action. If the user selects a printer that "prints to file" the service hangs waiting for a file name to be supplied. Is there anyway I can detect that the printer I am printing to is sending data to a file rather than a device?
Check the name of the port that is connected to the queue. If the name is "FILE:", then windows will show a dialog asking for the output file name.
The user might of course also use some custom 3rd party port monitor, in that case you would need to go thru the window/dialogs for your process, and check if there is a modal dialog waiting for user input.
If it is a V4 printer driver, you can also check out the DriverCategory, if it is PrintFax.Fax, PrintFax.Printer.File, PrintFax.Printer.Virtual,...

Resources