New answers tagged server
You need to take care of two things: Redirecting the standard input/output streams to/from nowhere. Forking the process into the background reparented by init. The "reparented by init"1 bit is the most crucial part, since otherwise the process will receive a HUP when you log out. The nohup command can block the HUP, and the now orphan process will then ...
You can use disown, it is a bash builtin: disown [-ar] [-h] [jobspec ...] Without options, each jobspec is removed from the table of active jobs. If the -h option is given, each jobspec is not removed from the table, but is marked so that SIGHUP is not sent to the job if the shell receives a SIGHUP. If no jobspec is present, and neither the -a ...
Assuming you are working with httpd on a systemd based system - When logged into the server, you should run these commands: sudo systemctl enable httpd.service sudo systemctl restart httpd.service You can check to see if it is running on subsequent logins by running this command: systemctl status httpd.service
On the server itself you can always use localhost or 127.0.0.1 to reach the machine (as part of a URL e.g.). If the server got its IP address from a router via DHCP, you can see the one it has been given on the server by issuing the command: ifconfig and search for inet addr for (normally) eth0 Or you can select the GUI applicaton "System Settings" and ...
Check permissions on the destination machine on the $HOME directory (should not be group or wordl writable), $HOME/.ssh (should be 700), $HOME/.ssh/authorized_keys (should be 644).
There are several ways to do this Using SSMTP: You can find a detailed article here. Install ssmtp sudo aptitude install ssmtp Edit the configuration file: sudo vim /etc/ssmtp/ssmtp.conf And configure it with your gmail account: email@example.com mailhub=smtp.gmail.com:587 firstname.lastname@example.org UseSTARTTLS=YES AuthUser=username ...
i think what you are asking for is only partly possible, since the two requirements (accepting (and forwarding) administrative emails and rejecting mails from other users) are not orthogonal. e.g. what happens, if a service wants to send an email to root via PHP's mail() interface? should it be allowed? forbidden? what happens (as is usually the case) if a ...
What if you try route del default gw 10.0.0.1 route add default gw 10.7.0.1 It will use your old gw as your new default gateway. Those settings will be reset after a reboot.
Add an alias entry in your alias_maps file like root: email@example.com This will send all mails of root to firstname.lastname@example.org
Disabling via my.cnf This sounds like your issue, titled: InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.. excerpt and you find this error somewhere in it: 131201 19:22:27 InnoDB: Using Linux native AIO 131201 19:22:27 InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up. ...
I think that an easy way is with tasksel via command line. Open a terminal and digit: $ sudo apt-get install tasksel then $ sudo tasksel It will show a simple gui-cli that lets you to choose what you want by a simple check/uncheck (for eg. uncheck "Ubuntu desktop" and also check "Basic Ubuntu server" and "LAMP server". That's it
Create a user and set his login shell to your command. For example: sudo apt-get install sl sudo adduser foo sudo chsh -s $(which sl) foo ssh foo@localhost Also have a look at man sshd_config for some other ways to configure you ssh server. (Like adding a ForceCommand.)
ssh user@server telnet localhost 1234
According to the official FreeBSD documentation a regular chsh should do: chsh -s /usr/local/bin/bash The output about "... supports command line editing ..." probably comes from a fortune configured at your startup script. (It displays a random tip at login.)
If you're using systemd you should be able to set it up as a service. I found this thread which shows a similar task of setting up x11vnc as a Systemd service. The thread is titled: Index» Newbie Corner» how to enable x11vnc at startup using systemd ?. From a comment in that thread Create the file: /etc/systemd/system/x11vnc.service [Unit] ...
If it is safe to assume that $myparameter will not contain single quotes (otherwise see here or use the printf '%q' ... solution by janmoesen), you can just put single quotes around $myparameter to avoid the split-on-space problem on the server side. myparameter="foo \" bar" #myparameter="foo \" ' bar" ssh localhost "set -xv; printf '%s\n' myscript ...
Top 50 recent answers are included