linux

Is linux packet update server connection secured ?

hi, I'm distributing custom applications for redhat. I want to set up my update server to have the client applications auto-updated. I need the update process to be secured. Can the connection to the update server secured and certified ? Is there an encrypted update method ? With server certificate check ? Thanks. ...

how i can identify which process is making UDP traffic on linux ?

Hello, my machine is continously making udp dns traffic request. what i need to know is the PID of the process generating this traffic. The normal way in TCP connection is to use netstat/lsof and get the process associated at the pid. Is UDP the connection is stateles, so, when i call netastat/lsof i can see it only if the UDP socket...

SSL Handshake negotiation on Nginx terribly slow

I am using Nginx as a proxy to 4 apache instances. My problem is that SSL negotiation takes a lot of time (600 ms). See this as an example: http://www.webpagetest.org/result/101020_8JXS/1/details/ Here is my Nginx Conf: user www-data; worker_processes 4; events { worker_connections 2048; use epoll; } http { include ...

i need information on system calls and understanding them

Hello guys, i am new to the Operating System development , and in college i have to add a system call to linux kernel, could you guys give me some in sight on what i will have to learn to be able to do this please. i have to extend the linux kernel, so any cool ideas would also be very helpful... thank you ...

Monitor directory listing for changes?

On a unix system, how do I monitor (like how 'tail' works) a directory for changes made to files - either new ones created, or size changes, etc. Looking for a command line tool rather than something to be installed. ...

for loop with bash from variable

Lets say I have a variable which has values : #!/bin/sh MYVARIABLE="first,second,third" for vars in MYVARIABLE do echo $vars done this above doesn't work what I want but it looks fine, this should print first second third without , I wan't it to be printed without , any sugestions? ...

GDB-based Debugger: configuration for specific GDB?

Hi All, I am developing embedded software for an ARM-based target. The target software is compiled/linked using gcc (arm-none-eabi) and debugged using GDB (arm-none-eabi). The tool-chain has been successfully validated. To easy debugging of software I would like to use a graphical debugger interfaces based on GDB. The candidates are DDD...

How to assign /dev/fbX ?

I would like to assign /dev/fbX device like below. /dev/fb0 for USB-LCD device. /dev/fb1 for Main Display device. I try that. ver.1:created /etc/udev/rules.d/91-udev-fb.rules KERNEL=="fb0", ATTR{name}=="VESA VGA", ACTION=="add", NAME="fd1" KERNEL=="fb1", ATTR{name}=="I-O DATA USB-RG", ACTION=="add", NAME="fd0" result. ls /dev shown a ...

How can I install DBD::Pg if postgres is not installed?

I have a separate servers running with postgres and Nagios. I want to use "psql_replication_check.pl" with nagios to monitor the postgres replication status. This check script requires DBD::Pg module to connect to database. Installation of DBD::Pg asking for the path of pg_config file. #perl Makefile.PL Configuring DBD::Pg 2.17.1 Path ...

shell to filter prohibited words on a file

Good day shell lovers! basically i have two files: frequency.txt: (multiple lines, space separated file containing words and a frequency) de 1711 a 936 et 762 la 530 les 482 pour 439 le 425 ... and i have a file containing "prohibited" words: stopwords.txt: (one single line, space separated file) au aux avec le ces dans ... so ...

how to create a program

i want to create a C program ...

Measuring total CPU time of a program that uses precompiled libraries (C++, Linux)

Hi everyone, I am currently stumbled into this problem and I'd love to hear some suggestions from you. I have a C++ program that uses a precompiled library to make some queries to PostgreSQL database. Now the problem is I want to find out the total (combined) cpu time it takes to do all routines described in the source code of the prog...

PHP mail() contact form not delivering to Gmail - advice needed

I'm using a PHP contact form and it is sending mail to non gmail addresses, however when I set it to send to a gmail address, it doesn't get delivered (it doesn't even appear in junk mail). I've heard of issues like this before - I'm not a web developer/expert so can anybody suggest code/configuration changes to my PHP contact form belo...

bash redirect stdout and stderr to separate commands over ssh

I am using BASH 4. I am trying to find a way to legitimately prepend output to indicate the type of output that it is. I am able to do this with something kind of like this... ls -l /tmp/abcdefgh 2> >(sed 's/^/stderr: /') 1> >(sed 's/^/stdout: /') stderr: ls: cannot access /tmp/abcdefgh: No such file or directory ls -l /tmp/ 2> >(sed...

Best open source software load balancer for Linux

Hi All, I have a service that listens on a socket and handle requests arriving to it and a client loading this service. I want to setup more nodes of the service and use a load balancer to balance the workload. What is , in your opinion and experience, the best open source software load balancer for Linux? Thanks, Ronen, ...

LINUX - Is ubuntu a good platform to learn LINUX?

Hello all, Some new opening IT positions require solid LINUX or UNIX knowledge. I would like to know whether or not ubuntu is a good platform to start to learn such skills. Thank you ...

Linux iptables redirect

I am an ISP and I need to suspend with a message the clients who didn't pay. For every web page they acces they have to see " suspended " ( port 80 ) and all the other ports need to be closed. How can I accomplish this ? Thanks. ...

How to get functions names from Linux headers located in /usr/include

We have most of Gnu C Library Headers in /usr/include I'm looking for a way to open and read an include file and parse it to print all the declared functions which are located inside it. and can any one explain or provide a link talking about this headers formatting. I doing this because I'm trying to do an C Auto completion plug-in whic...

What are the empty 'pathname' entries of '/proc/smap' for a Java process?

I seem to have a huge memory leak in a large Java application. But the leak does not seem to be within the JVM memory itself (ie: heap, eden, survivor, code, perm_gen, etc.) since I don't run out of this type of memory (ie: it goes up during use, but it goes back down eventually when the GC runs). My problem is that I run out of system...

What should I use vim Visual mode for?

I have been using vim for a couple of years now, and though I have learnt a lot of time saving shortcuts, but I have never used the Visual mode, which is supposed to be all powerful : ... Visual block mode (to edit columns) is something many editors lack, but that I can't live without. I have shocked and awed people at work using jus...