Debian Configuration :: Shared Memory Segments ?

Apr 5, 2010

I'm running a Debian based distro.

When I run ipcs this pops up:

This happens only while KDE3 is running. Regardless of the runlevel, if kdm is not started, this will not show.

By running ipcs -p the PID points to process

Is there anything wrong with that command?

View 8 Replies


ADVERTISEMENT

Programming :: Create A Shared Memory And Some Shared Objects?

Jun 11, 2010

I want to create a "Shared Memory" in linux, then create multiple "Shared Objects" that can access to a Table for example; And one of them can write something into the Table and the other can access and read it, so that these operations can be handled by programmer! I'm using Ubuntu 9.04 and I've set it's runlevel at 3 (I have commandline environment now!) I've searched the Internet so much, but couldn't find a good sample code for this! I have no experience about it and need your help to introduce me a sample code about it and advise me how to compile and use it with "GCC"?!

View 6 Replies View Related

Debian Configuration :: Android SDK And The Shared Libraries?

Aug 10, 2011

i have a notebook where i wont to install andorid SDK, I have a Debian 6, 64bit that work well.After install android sdk, i test installation but i have this

:~/android-sdk-linux_x86/tools$ ./emulator
./emulator: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
i use comand ldd
:~/android-sdk-linux_x86/tools$ ldd ./emulator

[Code]...

View 6 Replies View Related

Debian Configuration :: Make Shared Directory Safe And Access Dir From VPN

Apr 4, 2010

I am planning to build a server in future. That will be a computer with GNU. It will be a router and file server. It will get the VPN-Internet and share it with all the PCs connected to LAN. There will be Samba for file sharing. And I'm thinking that if I just share some directory on that server with Samba, it will be possible to get access to that dir from VPN. So it's not very safe to do that. Is it possible to prevent access to Samba dir from VPN connection?

View 7 Replies View Related

Debian Configuration :: Erase Memory At Shutdown

Jul 10, 2010

Without being paranoiac, it seems possible to keep the memory content for some minutes after shutdown and dump it accessing directly to the hardware.So how to fill the memory with constant or random pattern before halting? Is there a kernel option that I can give at boot time , or an other tool I can install from Debian/Ubuntu to achieve this ?

View 14 Replies View Related

Debian Configuration :: Courier Including SSL - No Shared Cipher After Upgrade To Jessie

Feb 26, 2016

I had a pretty much standard installation according to some tutorial (I don't remember, which one) for courier, including ssl. After upgrading from Wheezy (7) to Jessie (8) everything continued working fine, excep ssl connections to pop or imap.

In the log I get this error message while connecting to imapd-ssl:

Code: Select allFeb 26 20:16:22 mx imapd-ssl: couriertls: connect: error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher

First I thought there got some chiphers removed from default configuration. But even when I try to allow all protocols and all ciphers:

Code: Select allTLS_PROTOCOL="SSL23"
TLS_CIPHER_LIST="ALL"

And then test via s_client:

Code: Select all# openssl s_client -connect 127.0.0.1:993 -cipher ALL
CONNECTED(00000003)
3073349308:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:770:

---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 341 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---

TLS over STARTTLS is also not working and does not invoke a log-entry. So I want to solve the ssl-problem first. I guess the STARTTLS-problem is automatically solved then.

My update procedure was:

Editing /etc/apt/sources.listapt-get updateapt-get upgradeapt-get dist-upgradeKeep all configuration files regarding courier.

View 2 Replies View Related

Debian Configuration :: Standardizing System Account UID/GIDs To Allow Shared Config

Feb 6, 2010

I run a network with about twenty Debian systems, currently running Etch. I maintain a central passwd and group file, which is regularly copied to each system. This works fairly well, but I have some problems with the system account UIDs and GIDs.

I find different systems often pick different UID and GID values for system accounts like bind, ntp, sshd etc. I think the values chosen at install come from the system UID and GID ranges, and are allocated sequentially, so the values on a system depend on which packages were installed, and the order they were installed in.

Is there any way to specify the UID and GIDs for system accounts at installation time? Are there any other thoughts on how to implement shared passwd and group files (apart from NIS, which I don't want to use)?

View 1 Replies View Related

Debian Configuration :: Setting Up A CUPS/Samba Shared Network Printer?

Aug 19, 2010

how to get clients connecting to an office printer. during a migration from windows server to debian/samba.

We have:

5 windows XP machines one Windows Server 2003 machine, PDC of the old domain One debian Samba PDC (of TEST domain)/print server (with CUPS installeD) running in a virtual machine hosted by the windows server One Toshiba eStudio 3511 printer

Using the CUPS control panel, I've been able to autodetect and add the printer, and it appears as an available share in SWAT for samba. However, the driver isn't perfect. CUPS could only supply drivers for the 3510c, not the 3511.

However, clients on the TEST domain are unable to access it. Doing so gives an error about a local policy preventing a connection to the print queue. I've tried googling this error and the fix that comes up in every result about changing a point and print policy setting, does not work.

however, I've been able to work around the issue. by first logging in as local administrator, navigating to the domain server, then inputting the domain root account credentials at the prompt. That allows me to attempt to connect to printers, but with a different error

"The server for the printer does not have the correct driver installed...."

I very strongly suspect that the 3510 driver actually will work, but it's just not being shared properly. The printer driver share folder is /var/lib/samba/printers, and that directory contains only a few empty subfolders. CUPS did not place the driver there as I would expect, and that is where clients are looking for it.

The thing is, I have no idea where CUPS DID put the driver.

On the old domain, the printer uses drivers for es4511, and looking on the toshiba site, this seems to be what they provide. The Toshiba Site provides a huge variety of drivers, including several windows ones, a universal driver, and a CUPS PPD. Cups asks for an optional PPD during install and I tried supplying that. It said installed successfully, but didn't change anything.

I've tried pasting the windows drivers into /var/lib/samba/printers/W32X86 too, and likewise with other drivers from toshiba's site. but this doesn't change anything either, so I'm at a bit of a loss.

how to install/setup drivers on a samba PDC, for windows machines?

Also relevant, my smb.conf:
anyone see any possible causes of problems?
# Samba config file created using SWAT
# from UNKNOWN ()
# Date: 2010/08/19 13:03:07

[code]....

View 12 Replies View Related

Programming :: Shared Memory IPC Variations ?

Apr 19, 2010

I have 2 applications that send and receive messages through shared memory IPC. When I run the app ..it works but the number of messages per sec keeps changing drastically sometimes it is 400-500 per sec..then 800 then 1200 then 2000. is this normal with SHM IPC or could it be a code related issue.

View 9 Replies View Related

Hardware :: Shared Memory Is Only Using 4 Gigs Of Ram?

Feb 4, 2011

how come shared memory is only using 4 gigs of ram?

Code:

localhost router # free -m
total used free shared buffers cached
Mem: 8001 858 7142 0 130 235
-/+ buffers/cache: 492 7508

[code]...

View 3 Replies View Related

Server :: Does RES In Top Reflect Any Shared Memory?

Apr 20, 2010

I am trying to troubleshoot an Apache/Mysql server that once every few days falls over due to memory starvation. I thought I had tuned my httpd.conf file with relativley small MaxClients and so on, but then noticed some unusual RES values in top while monitoring.

In short, `top -b -n1 -u apache` shows that I have 28 httpd processes. their VIRT is ~300MB for each process (I understand this is shared), and the RES ~50MB for each. I thought this wasn't shared. Is this true? I just noticed 2 of the processes jump to 1.2g. If RES represents non-shared memory then concievably 1.2g x 28 processes would be a problem on an 8GB server.

View 2 Replies View Related

Red Hat :: Shared Memory Limitations In RHEL AS 4?

Jul 16, 2010

Does anyone know if there is a size limitation for shared-memory segments in RHEL AS 4?

View 1 Replies View Related

Red Hat / Fedora :: Unable To Remove Shared Memory?

Aug 20, 2010

When I boot into Linux i see some shared memory which is blocked, due to this I am unable to start my processes which needs some shared memory.I tried removing the shared memory using ipcrm -m but no use, the shared memory is not cleaned but its still in use.I tried removing the shared memory using root user also normal user but unable to remove the shared memory.

[pin01]$ ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status

[code]...

View 1 Replies View Related

Software :: Shared Memory Between Fortran & C++ Applications?

May 7, 2010

I have to figure out how to pass data between a Fortran application and a C++ application. The memory has to be locked/unlocked to prevent data corruption. I know very little about Fortran. I have done mutex lock/unlock stuff in Linux apps, multi-threaded, using mutex locks before.

Digging around on the Web, I do not find any info on a Fortran app including linux headers, library calls such as those in ipc.h, shm.h and sem.h. What is an approach to this problem?

View 1 Replies View Related

Programming :: Dynamic Memory Across Shared Libraries

Jun 1, 2009

Any good tutorial on sharing dynamically allocated objects across shared libraries in the same process and between shared libaries and main(). In particular, I need to know what creation and destruction sequences are valid when libraries are being loaded and unloaded. For example, is it valid to allocate an object from inside a shared library procedure, and then delete that pointer from a different module, especially in the case where the allocating module has already been unloaded.

I imagine there might be all kinds of problems with this. Although my preliminary tests seem to work most of the time, I get crashes from time to time, but I'm not sure if they're caused by memory management or by threading issues. I've been restructuring my code to use a global context object to manage object creation and destruction from main(), but I'd like to find a clear exposition of the specific issues I'm dealing with before I go too much further.

View 4 Replies View Related

Programming :: Getting Segmentation Fault Using Shared Memory?

Jan 8, 2011

I'm writing a producer-consumer program, where the producer and the consumer are different processes and they communicate using queued signals, and when I run it it comes out always 'segmentation fault'.

Here is my code:

(note: I tried using both 'shm_open()' and 'mmap()', and 'shmget()' and shmat()')

Code:

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>

[code]....

View 10 Replies View Related

Programming :: Shared Memory - Should They Show The Same Address?

Mar 17, 2010

So I'll try to be brief and to the point here: I've got a couple of C / C++ apps that communicate with one another via shared memory. These worked completely fine until.. well, about twenty minutes ago when I finished making some network card changes and suddenly, I've got a weird problem going on. At one point, Parent app waits for Child app to set a boolean indicating it's finished initialization. This worked fine the last time I ran this app up (a few days ago). But right now, the shared flag never seems to get triggered (I've added a printf("Waiting..."); in Parent app until the flag is set). All the code leading up to it being set in Child app seem to be running smoothly, so I tried spitting out the addresses of the shared memory locations. The addresses mapped by Parent app and Child app are different; this seemed odd, so I went back and wrote a simple miniature app that just opened a shared structure on my own box, and I get the same thing - different addresses - but the miniature apps work just fine.

Is it normal for a shared memory space to be mapped to two different addresses across two processes?

If so, does anyone have any idea what might be the issue at hand with my Parent / Child app scenario? The Child creates the shared memory, the Parent has a wait before it opens it, and if it doesn't exist should fail (opening with PROT_READ | PROT_WRITE)... it doesn't fail so it's evidently there.

All of this worked until literally just a few hours ago and I made some changes to my network cards, and I can't even imagine how that could have changed whether or not shared memory mapping worked...

View 2 Replies View Related

OpenSUSE Install :: Kthreads Uses No Cpu Time Or Shared Memory

Aug 13, 2010

When the systen is running there is a program/utility/kernel-driver? kthreadd in system monitor all the following programs are a child process of kthreadd. Is kthreadd part of elevator=cfq and can kthreadd be influenced by params. kthreads uses no cpu time memory or shared memory so it must be in kernel. is there any documentation on this subject? System 11.3 on quad processor 8 gb mem nvidia-card and driver.

View 3 Replies View Related

General :: Changing Maximum Shared Memory Size

Jul 17, 2011

How do I change the size of the available shared memory on Linux?evidently 4GB is not enough for what I am doing (I need to load a lot of data into shared memory - my machine got 8GB of RAM).

View 2 Replies View Related

Programming :: Dereferencing Pointer To A Shared Memory Struct?

Feb 5, 2011

I have what should be a relatively simple program (fadec.c) that maps a struct from an included header file (fadec.h) to a shared memory region, but Im struggling accessing members in the struct from the pointer returned by shmat. Ultimately, I want to access members in the shared memory structure with a globally declared version of the struct, shm__. Not only do I not know how to accomplish that, but I cant even seem to access members of the shared struct directly from the pointer itself (compiler complains about dereferencing pointer to incomplete type). Im at a loss and could use another set of eyes if you guys dont mind taking a gander:

Compile Errors:
tony-pc:/cygdrive/p/test> cc -o fadec fadec.c
fadec.c: In function 'main':
fadec.c:30: error: dereferencing pointer to incomplete type
fadec.c:31: error: dereferencing pointer to incomplete type

[Code]...

View 1 Replies View Related

Ubuntu :: Increase Maximum Amount Of Allowed Shared Memory?

May 17, 2011

My problem is I installed Zone Minder for camera security and I'm testing it on my laptop with the built in webcam and everything seems to work perfectly except when I try to view the live feed from the camera, it's just a black box. No video.

I checked this website and it's exactly the problem I'm having with a fix for it but his fix doesn't work. He says to type:

Code:
user@ubuntu:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
user@ubuntu:~$ sudo service apache2 restart
user@ubuntu:~$ sudo service zoneminder restart

But when I do the first line, I get this:

Code:
deemar@Clementine:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
bash: /proc/sys/kernel/shmmax: Permission denied

View 2 Replies View Related

CentOS 5 Server :: Apache - Anonymous Shared Memory Failure

Jan 12, 2010

I just opened an (unmanaged) VPS account and and have been encountering nothing but problems with trying to get Apache up and running (its something I've done many times before).Basically the inital error was with LDAP not having enough space, so I disabled the related extensions and Apache still would not run. Looking at the log, it contains: (28)No space left on device: Unable to create scoreboard (anonymous shared memory failure)

View 1 Replies View Related

General :: Find Memory Usage Of Shared Library Running In System?

Nov 30, 2010

I need to find the memory usage of a shared library loaded in Linux environment.

I need this information for deciding on whether to make the library part in to application or a seperate application itself.

View 3 Replies View Related

Programming :: Find Out - How To Detach And Delete Shared Memory Segment When Hit Crtl-C

Mar 4, 2011

I have a program that creates and uses a shared memory segment. I am trying to find out how to detach and delete this shared memory segment when I hit crtl-C, and I still need the process to terminate.shmdt() and shmctl() have variables that are local to the main passed to them(shared and shmid)

Code:
//Prototype
void leave(int sig);
//part of code trying to use signal handling
if(signal(SIGINT, leave))

[Code]...

View 3 Replies View Related

General :: Wrote A Program That Multiplies 2 Matrices Using Multi-threads And Another One Using Multiple Processes And Shared Memory?

Sep 22, 2010

I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs

View 1 Replies View Related

Ubuntu Multimedia :: How To Cut Segments Of Video Out

Jun 9, 2010

How do I cut parts of a video out, like a time interval out of it? I want to get rid of the last 10 to 15 seconds of the video. I know Pitivi is a great video joiner/combiner, but I don't know how to take parts out.

View 1 Replies View Related

Fedora :: Share Files Across Network Segments?

Nov 1, 2009

I'm trying to setup file sharing between computer A and computer B on the following diagram.

The green waves denote a wireless connection. The black lines are standard cat5. The grey lines are what happens via the electrical lines in the house.

I labelled them, "There be Dragons here..." since something odd happens that prevented the PS3 from connecting when attached directly, or through a switch, to these adapters. Computers attached to the same connection had dns problems, but manually setting the dns servers resolved the issue for them.

This same approach did not help with the PS3. Installing the router resolved the issue for both computers without manual dns's and the PS3.

So, any ideas how to get this working? I've looked through a few file sharing guides between fedora systems and none of them I can find mention setting anything up across network segments. Both systems are running fedora 11.

View 5 Replies View Related

General :: Command For Showing The Segments Of A Program

Sep 2, 2010

The Linux command for showing the different segments of a program. The output of the command should show me which elements go to stack, heap, and data segments.

View 3 Replies View Related

Networking :: Bridging Or Routing Between 2 Segments With 2 Internet Providers

Mar 23, 2010

My roommate has a slow ADSL provider, and i have a much faster cable connection. He has his own residential gateway, and as do i. The goal i am trying to accomplish is to share 2 printers (1 behind each residential gateway) and also files between computers on the different LAN segments, but not share ISPs or DHCP servers.

Thus far, i have configured my residential gateway's DHCP server to have control of the 192.168.1.0/24 network and his gateway's DHCP server controls the 192.168.0.0/24 network. We've got a Slackware 13.0 Linux box connected on the 192.168.0.0/24 network which currently just serves a web page and accepts e-mail for a domain. My knowledge of networking fails me here as I'm not sure what piece of equipment i would need to buy to solve this puzzle (bridge or router). I know iproute2 can do wonderful things on Linux, and i figure it would be easier to just shove a NIC or 2 in the Linux box and make it do what i need instead of buying more networking equipment.

View 1 Replies View Related

Programming :: Shared Memory Address Area In Process Address Space?

Feb 21, 2011

if i attach a shared memory to my process whch part of the address space it will add(like stack, heap, data, code...).

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved