General :: Set Distro To Be A POSIX Compliant?
Oct 2, 2010How to set you distro to be a POSIX compliant?
View 3 RepliesHow to set you distro to be a POSIX compliant?
View 3 RepliesMany times I have heard people saying that "It opens best in IE but not in Firefox". Have anyone come up with tool which can detect which browser would suite best to open with?It would surely save one's time in forwarding him / her mail that "PLS OPEN THIS IN IE #$ %^"
View 3 Replies View RelatedIs it possible to add support for POSIX Trace to my Ubuntu?
# getconf _POSIX_VERSION
200809
# getconf _POSIX_TRACE
undefined
nominate a disastrous distro from past or present that was simply AWFUL and what exactly was so bad about it?
View 14 Replies View RelatedI just read this article on the new hard disk format URL...Is the Ubuntu 9.10 kernel compliant ??
View 1 Replies View RelatedI have a UVC Compliant Webcam and want to use it on Lucid to take screenshots. I tried different application like vgrabbj, streamer, cheese and all of this does not work. It seems some problem with the UVC driver in lucid.
View 7 Replies View RelatedThis is for a Gateway 3018gz with a "PC2001 Compliant AC '97 Audio" for its sound card. Problem, as mentioned in title is that there is no sound at all. Running Open Suse 11.2 on it. Anyone know of a driver for it? This is my sister in law's laptop, and this is suppose to be "ready" in a matter of hours if someone can help as soon as possible, I would be greatful. Meanwhile I'll continue my google search.
View 9 Replies View RelatedI am trying to find a PCI compliant anti-virus that will scan uploads automatically for the debian lenny operating system. We are running the OS as a server with kernel 2.6.24 I am trying to avoid ClamAV as it is a pretty big system hog.
View 1 Replies View RelatedLubuntu is nice - but it seems the LXDE version is not as up to date as Fedora LXDE Spin or even Debian squeeze with LXDE installed. I do like Chromium on Lubuntu though... its faster and a nice touch. I am looking for a lightweight 64-bit distribution for my main laptop (it is by no means "old" or "low spec" but I like that Lubuntu starts up in like 2 secs).
LXDE version seems not to be recent (esp in 10.04 version which seems to work more stably for me - with Nvidia drivers etc)64 bit install is currently a pain - requires first install of minimal CD or alternate CD both of which required wired Ethernet, then install of lubuntu from PPA. Native 64-bit support would be nice. Linux Mint LXDE, for example, is also only 32-bit.
I am trying to compile splasutis in my debian wheezy. ./configure run well, but during make I get the following error
make --silent all-recursive
Making all in libs
CONF libjpeg.a
[code]....
I found out from here that it is not enable URL...I ran the command mount | grep "shm" and got.none on /dev/shm type tmpfs (rw,nosuid,nodev)So how do I enable it?It is need for my ATI graphic card.
View 2 Replies View Relatedi'm trying to understand the POSIX threads and i can't understand when does the thread start: does it start when i do
pthread_create()
or when i do
pthread_join()
or maybe i'm missing something. i do understand that pthread_join() causes the calling thread to wait till the called thread is finished.
use phpldapadmin can add ou,but can not add posix group.following is software version
[root@localhost config]# rpm -qa | egrep '(ldap|db4)'
openldap-devel-2.3.27-8.el5_1.3
db4-utils-4.3.29-9.fc6
[code]....
I have 2 threads and both of them are deleting memory at the end nedded by both.
My problem is that maybe it can happen that a thread start and finish before the other one starts and so it deletes the memory nedded by the other thread. How can I synchronize them so that this can't happend.
As a design my threads look like this:
Code:
The other thread looks the same, but this isn't unoff to stop thread1 to finish before thread2 starts.
It is known that binaries with the SetUID bit enabled are a threat for the system.I saw on this ArchLinux wiki[URL].tead_Of_Setuida way to limit the use of SetUID bit thanks to POSIX capabilities.It looks very interesting.Does anyone of you used it already?Is it a burden for the system afterwards (like binaries not working, needing to be fixed); or is it seamless
View 3 Replies View RelatedI've implemented a program URL... which reads digital IF data from a radio receiver through a named pipe, measures power levels, and sends the result to stdout. The program is interactive; there is a thread that reads from stdin to watch for commands, a thread that constantly either reads data from the named pipe or throws data away, and an array of processing threads. The program uses GTK+extra to plot the signals. The IF data stream bandwidth exists at the limits of today's technology (is very very fast).
Problem Statement:The program works fine with a few bugs. I've learned since I've made it that using global state variables to coordinate threads isn't a good way of doing it. I also only had knowledge of mutexes and polled the state variable instead of using other methods.My reimplementation will use the following:
- One "Stdin Command Monitoring" thread
- One "Get data from named pipe" thread
- One post-processor thread
- N Processing threads
All threads are alive during the life of main()There are N buffers. Data will come in from the named pipe, and the "Get data" thread will write the data to an "available" buffer. When the buffer is full it will be marked as "full". There will be N processing threads, one for each buffer. When a processing threads' buffer is full, it will process the buffer and save the result to a final buffer. At the end of a number of averages, the post-processor thread will perform a final process on the final buffer and send the results to stdout.
All my LC environment variables are currently set to POSIX at boot, though I can't find the startup script that does this. I've grepped through /etc/rcS.d and /etc/rc2.d but no luck. In /etc/default/locale, LANG is set to en_GB.UTF-8, which is my preferred locale. But this doesn't stop all the LC's being set to POSIX. Consequently, my dates follow the American convention, which I find hard to read.
I tried resetting with update-locale LC_TIME=en_GB.UTF-8. This changed all the locales to en_GB but only for the session. When I rebooted, everything went back to POSIX. The only change is that en_GB.utf-8 is now in the /etc/default/locale file as the value of LC_TIME as well as LANG.
I have a pthread waiting forever on a POSIX message queue and then call mq_close and mq_unlink on the POSIX message queue. I've found that the pthread never wakes up from it's call to mq_receive and remains blocked indefinitely. Is there a way to wakeup all pthreads blocked on a POSIX message queue after calling mq_close/mq_unlink? The goal is to include error handling during message queue deletion to avoid leaving any pthreads blocked forever.
View 2 Replies View RelatedI want to add some users to multiple groups. syntax of the file to pass to ldapadd? or would I use lapmodify? Does one add/modify a user record to specify the groups that user is a member of? Or does one add/modify each group record to specify which users are members?
View 1 Replies View RelatedI would like to know can we post more than one thread at a time.I have code like below
Code:
#include <stdio.h>
#include <unistd.h>
[code]...
I'm in the process of writing a program that is a server- it will accept connections and stuff, and spawn a child process for each. However, i've run into a small problem. I do NOT want to bother with keeping track of the processes unless i need to. So, i set SA_NOCLDWAIT (#ifdef) on a SIG_IGN to the SIGCHLD handler through sigaction interface. The standard says that it the kernel will then keep track of reaping zombie processes for me (a HUGE plus). However, upon receiving a SIGINT signal, i want to stop the server from accepting new connections (done), and then wait for there to be no new connections. I was thinking of just putting a loop like so:
Code:
while((wait(NULL) != (pid_t)-1) && errno != ECHILD);
However, I'm not *sure* that this will work, especially with SIGCHLD still ignored. So how can i tell if there are still child processes? I can't find any call like int getnumchld(pid_t proc); (i wish). Plus it would be inefficient to spin on that function anyway. OTOH, i would rather *NOT* have to do the same thing in a loop with a system("ps |...>file"); read(file); etc. either. Is there a way i can portably implement this feature (I was hoping i could run it on linux and the major BSDs, at least).
TO SUM IT UP:
How can i tell if a process has no child processes if i've SIG_IGN'd SA_NOCLDWAIT'd the SIGCHLD? Is there a _reasonably_ portable way to do so? I *don't* want to manually wait for EVERY process. Maybe only those still active at the time of SIGTERM, but that requires keeping track of the number of connections and whether those have terminated...
EDIT: Does anyone know if the above code *would* work, even with SIGCHLD ignored and the kernel cleaning up zombies *for* me? I checked the manpage and it doesn't say much.
EDIT1: Note that all of the processes are in the same process group and session. SO i can find them through this as well. Perhaps even setting the uid/gid and finding all processes run by that group?
EDIT2: i have an idea if the above isn't feasible. If there is no "elegant" way to do it, i could reduce the complexity by sending a SIGUSR1 to the whole process group. Each process would then set a flag telling it to send a SIGUSR1 in reply and send a SIGUSR2 when it is done executing. Then i could keep a count of signals. Maybe that would be *easier*. Or perhaps a count of all child processes and just a termination signal to decrement the counter.
I want to communicate between two threads, each belonging to a different process. Iam using message queues for this. I use mq_open()call. I created the queues with the same queue name starting with a '/'. But when I open the queue, the queue ID is different in both the process. What should I do so that both the process have the same queue ID?
View 1 Replies View RelatedI have created two threads:
Thread 1 and thread 2
In the main thread, i have put up a timer which generates a signal periodically when it expires, which reults in execution going to signal catcher function.when this function is invoked, under certain condition it goes to thread 1 and under another condition it goes to thread 2. The problem lies here that when it goes to thread2,i have a loop to process but it doesnt come out of the loop and hence from thread2, even though timer has expired.
I have a linux box set up as a multi-purpose server for my home with three Windows client PC's. The linux box is based on a slightly modified Slackware 9.0 distribution using Linux 2.4.20 and an unfortinately old, slow AMD processor with a miserable 512Kb RAM. The linux box serves the CIFS file system to the Windows boxes, runs the SQUID HTTP proxy, the Apache web server, a print server, does masquerading, mail serving and a very effective firewall using iptables.
This system, although slow, has run perfectly for several years.Let me say that again - This system works perfectly.I had decided that now is the time to upgrade the hardware, so I bought a Gigabyte LGA775 motherboard which has two 1Gb network interfaces on it, an ASUS 256Mb PCI-E display card, 2Gb of DDR3 RAM, an Intel Core2-Quad processor and a bunch of 500Gb SATA drives to set up a RAID5 array (but I intend that the system boot off one of several 40Gb PATA drives I have).I set up the processor, motherboard, display card, RAM, a SATA DVD Drive and a 40Gb PATA hard disk in a "breadboard" layout and installed distro 13.1, being careful to set up the static IP for the local network, dhcpcd to get an IP address from the cable modem (my internet connection) and to enable ip_forward in the network configuration.
Then I installed a script invoked by /etc/rc.d/rc.local which installed all the SAME iptables rules as my old Linux box. There was one minor glitch when I had to change 8 occurrences of "-d ! $LOCAL_NET to" "! --destination $LOCAL_NET" but that was no problem. I also set up /etc/resolv.conf, /etc/hosts , the BIND server files etc. etc. exactly as in the old box.
I am able to ping mirror.aarnet.edu.au (this is at the heart of Australia's internet hub network - if it's down the whole bloody thing is down) and have the system find the correct IP from the designated nameservers and contact that server with a return trip time of 35ms. I am able to run a telnet session from one of the Windows boxes and edit files on the Linux server. So both network interfaces work and I've got them the right way around.I am able to run FTP on one of the Windows boxes and connect through to mirror.aarnet.edu.au, although it seems to hang when I try a DIR (but then so does the old linux system).
In a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario:
View 1 Replies View RelatedI have Windows and Pclinuxos on my machine. I get the option of selecting either when I boot up. I now want to add Mandriva One, giving me three choices. I've created a new partition for Mandriva and the table now looks like this:
[Code]...
I have tried installing a third OS (Windows + 2 distros) in the past but still only got two choices - Windows and the last installed distro. The first distro was still in the machine but not showing on the boot up screen. I've tried to read up about chainloading but don't really understand it.
How can I know all the tools and app that comes with a distro, for example Debian 6 ?I can see that linux distros have a lot a small , medium apps (natives like cat, join, paste, etc; and 3rd party like iwconfig, etc=)So , how can I know what i have with a linux distro ?
View 4 Replies View RelatedI would like a new linux distro. I've been using ubuntu for like 2 years or more and I'm just done with it. Some things that I want out of the new distro are:
Since I like learning, I want the distro to NOT be so user-friendly. I want a challenge. Just anything new to learn would be amazing. I need wireless support out of the box though, since that's the only source of internet I have around here.. I need it to be installable from usb, since i'm using a netbook without a cd drive.
I've had Ubuntu (8.10) on my netbook in the past and I really liked it. I'm currently running Fedora and feeling like I should "change it up" again. I've played around with Ubuntu 10.04 Lucid a little, and so far I'm very impressed. I've always wanted to try Arch, but I'm worried I won't have the driver support I need for all the non-standard hardware in a netbook.
Does anybody have a suggestion for a new distro to try? I'm preferably looking for something feature-rich over light-weight, and something that I can have up and running with a minimum of configuration (at least partially working).
I bought an Eee PC 1000, the Linux SSD model, a couple years ago. I ended up putting Easy Peasy (then called Ubuntu Eee) onto it, only to be dissatisfied with the speed. Then I put Windows XP on it, and with a LOT of tweaking it ran sort of okay. Now I pulled it out and dusted it off but I want it to run Linux.
It has the Intel Atom 1.6ghz processor and 2gb of RAM (I upgraded it) so there's no lack of power there, but the SSD is extremely slow; it has a small write buffer, but when you do anything slightly significant you can feel the system stutter every second or two as the SSD halts everything while it dumps its full cache to disk. I'm talking serious stutters, and the cache isn't very big; to get Firefox to not stutter I had to move all caching into RAM and disable history (even just writing the history log to disk froze the system with every webpage).
Anyway, I hope I've given you a decent idea of just how slow this SSD is. With that said, is there a Linux distro that is optimized for an extremely slow hard drive but decent powered system? I'm not looking for something underpowered because the processor and RAM are plenty powerful, I just want something that perhaps is optimized for not writing to disk often.