What is the Linux command to add tftp service for Ubuntu? [closed] - ubuntu-10.10

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
i'm following instructions about: "Installing and setting TFTPD in Ubuntu":
it asks to: Create /etc/xinetd.d/tftp and put this entry:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
what does it mean to create....
is there any command i need to type??
and "put this entry" - it means to type in one line all the lines above?
i don't know Linux & i need your help please........

And note this warning in the tftpd package description:
Tftpd is a server which supports the Internet Trivial File Transfer Protocol
(RFC 783). The TFTP server operates at the port indicated in the `tftp'
service description; see services(5). The server is normally started by
inetd(8).
Tftpd is not suitable for use with the PXE bootloader; for that,
use atftpd or tftpd-hpa.
I don't know why it isn't suitable, but when it is labeled like that, I would suggest paying attention. :)

That is a file. What you will do is open up a terminal and
sudo nano /etc/xinetd.d/tftp
paste the contents, save & close. All done.

Related

Raspberry pi NTP working without conf file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
On raspberry, I was looking at the NTP configuration file under /etc/systemd/timesyncd.conf. All lines are commented (by default) but when I run the timedatectl status command, I get:
...
Network time on : yes
NTP synchronized : yes
...
How NTP works without configuration in conf file ? Where are NTP server links ?
Raspberry pi 3 ; Raspbian 9.13 (stretch)
The NTP management of systemd is called systemd-timesyncd. On my Ubuntu system, the corresponding systemd service is /lib/systemd/system/systemd-timesyncd.service. Typically, when you don't have items activated in a configuration file, daemons use default values. Moreover, if you look at the comment in the configuration file, you will see that the commented items are actually default values:
Entries in this file show the compile time defaults.
You can change settings by editing this file.
Defaults can be restored by simply deleting this file.

vapor: Address already in use (errno: 98) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I deployed my vapor project to Ubuntu. And made the configuration of supervisor and Nginx.
When I invoke my server. first call is success but When I try second call I get 502 bad gateway error from browser. When I check error log, the error is
"Fatal error: Error raised at top level: bind(descriptor:ptr:bytes:) failed: Address already in use (errno: 98) : file /home/buildnode/jenkins/wo$"
If I kill the port(8080) process. And after, I try to connect again first try is success then get fail again.
What should I do to get rid of this error?
This might be caused by another process using that port.
I had the same issue and was able to solve it by listing all the processes on port :8080:
$ sudo lsof -i :8080
and then killing all of them one by one by typing:
$ kill {PID of the process}
After that, my app built again properly.
taken from here
I had the same issue. This worked for me:
$ kill -9 {PID of the process}
Hope this helps!

CPAN download failing [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Has anyone noticed a serious problem with CPAN downloads?
All of the download links seem to be iunable to resolve www.cpan.org,
but the directory structure inside CPAN doesn't allow any simple swapping to search.cpan.org.
Has anyone found a fix?
Tried to use metacpan.org:
wget http://metacpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-1.7.tar.gz
Result:
--2013-06-15 16:00:17-- https://metacpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-1.7.tar.gz
Connecting to metacpan.org|46.43.35.68|:443... connected.
ERROR: certificate common name “cpan.metacpan.org” doesn’t match requested host name “metacpan.org”.
To connect to metacpan.org insecurely, use ‘--no-check-certificate’.
Tried without certificate: page not found.
What is happening in CPAN?
http://search.cpan.org seems temporarily broken. You can use https://metacpan.org instead. For the certificates, you can bypass it by using :
export PERL_LWP_SSL_VERIFY_HOSTNAME=0
cpan https://metacpan.org/path/to/Module.pm

How would I go about running the Dart VM on a windows server ? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have seen some tutorials on how to run a webserver on the Dart VM on linux machine. But what are the basic steps for doing the same on a windows server? Would you need to turn off the ISS if that is running? I assume I would need to hook up the VM through some environmental variables, but I have not seen a tutorial.
It's a different mental concept to something like IIS.
Essentially, you run a .dart script from the command line using the dart binary dart.exe
For example, the following script represents a "dart server" listening on port 8080
import 'dart:io';
void main() {
var httpServer = new HttpServer();
httpServer.defaultRequestHandler = (req, HttpResponse res) {
var result = "${req.method}: ${req.path}";
print(result); // log to console
res.outputStream.writeString("You requested $result"); // return result to browser
res.outputStream.close();
};
httpServer.listen("127.0.0.1", 8080);
}
Save the text above as myServer.dart and from the command line, run dart.exe myServer.dart.
Then navigate to http://127.0.0.1:8080/foo/bar and you will get the output below shown in the browser:
You requested GET: /foo/bar
From that, you can write code to add more handlers for specific methods / paths etc..., load files from the file system to send to the browser, access data sources, return data, anything, really that you can write in Dart code and send to the browser.
(Clarification: You would only need to turn of IIS if it is already serving on the same port, for this example, port 8080).

I am not able to start ejabberd server [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
When i try to start my ejabberd server using following commond
/etc/init.d/ejabberd start
it shows following but nothing starts when i fire www.example.com:5280\http-bind
Starting ejabberd: [ OK ]
as my logs at /var/log/ejabberd/ejabberd.log are empty but to figure it out i tried running
ejabberdctl live
and got following log ,i really don't know wht this says specially over here {error,duplicate_name} so can any please help me how to get rid off this and start ejabberd successfully.
{error_logger,{{2012,2,4},{14,28,18}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}
{error_logger,{{2012,2,4},{14,28,18}},crash_report,[[{pid,<0.20.0>},{registered_name,net_kernel},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{initial_call,{net_kernel,init,['Argument__1']}},{ancestors,[net_sup,kernel_sup,<0.8.0>]},{messages,[]},{links,[#Port<0.94>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,23},{reductions,484}],[]]}
{error_logger,{{2012,2,4},{14,28,18}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[['ejabberd#example',shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2012,2,4},{14,28,18}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2012,2,4},{14,28,18}},crash_report,[[{pid,<0.7.0>},{registered_name,[]},{error_info,{exit,{shutdown,{kernel,start,[normal,[]]}},[{application_master,init,4},{proc_lib,init_p_do_apply,3}]}},{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{ancestors,[<0.6.0>]},{messages,[{'EXIT',<0.8.0>,normal}]},{links,[<0.6.0>,<0.5.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,233},{stack_size,23},{reductions,123}],[]]}
{error_logger,{{2012,2,4},{14,28,18}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: /var/log/ejabberd/erl_crash_20120204-142801.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
It means you have already an ejabberd running, that is an Erlang node with the same name (Duplication name).
Stop / Kill your existing beam processes.