Curl : connection refused

I got the following error while running curl: curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused. It seems that it is easy to debug, but, I didnt find how to solve it. The adress 127.0.0.1 is mentioned in the file etc/hosts. I am using curl version 7.47 on Ubuntu system. Anyone has … Read more

Syntax error near unexpected token ‘then’

There must be a space between if and [, like this: These (and their combinations) would all be incorrect too: These on the other hand are all ok: Btw these are equivalent: These are also equivalent: And, the middle part of your script would have been better with an elif like this: (I also dropped … Read more

Gedit command not working in kali linux terminal

Although I am not sure, what the actual error here is, but purging the package will help. You can try this After this try reinstalling with Moreover, you should Prefer AskUbuntu and SuperUser for such questions, you can expect a detailed and possibly faster response.

Where is the header file on Linux? Why can’t I find ?

conio.h is a C header file used with old MS-DOS compilers to create text user interfaces. Compilers that target other operating systems, such as Linux-based, 32-bit Windows and OS/2, provide equivalent functionality through other header files and libraries. The #include <curses.h> will give you almost all of the functionality provided by conio.h. “ncurses” needs to be installed in the … Read more

How to make rpm auto install dependencies

Create a (local) repository and use yum to have it resolve the dependencies for you. The CentOS wiki has a nice page providing a how-to on this. CentOS wiki HowTos/CreateLocalRepos. Summarized and further minimized (not ideal, but quickest): Create a directory for you local repository, e.g. /home/user/repo. Move the RPMs into that directory. Fix some … Read more

Is there an alternative sleep function in C to milliseconds?

Yes – older POSIX standards defined usleep(), so this is available on Linux: DESCRIPTION The usleep() function suspends execution of the calling thread for (at least) usec microseconds. The sleep may be lengthened slightly by any system activity or by the time spent processing the call or by the granularity of system timers. usleep() takes … Read more