News aggregator

LXer: This is Why You Do It: Open Source Software Saves Charity

LinuxQuestions.org latest posts - 2 hours 11 min ago
Published at LXer:

We love feel-good stories about how open source software helps improve living conditions in third-world countries or comes to the rescue in times of crisis, but this one really takes the cake. A Canadian non-profit foundation specializing raising awareness about schizophrenia was saved from going under by deploying open source software to manage its day-to-day office needs. If FOSS developers need a reminder of why you grind away at code for so little in return, here it is.

Read More...


Linux shell script .sh file consumes high memory

LinuxQuestions.org latest posts - 2 hours 20 min ago
Hi Friends

I am having a php script which is used for bulk mailing. I run the script every minute through cron job.

I have mentioned the path of the php script in a .sh file and execute the .sh file through cron job.

Every time i run the script it utilizes high memory which results to server crash.

Please advice how to restrict memory usage for that process to be a minimum one or how to set priority to be low for that process so that it is executed when there is no high priority jobs, so that the server runs normally without going down when the script runs

Thanks
Siva.D


[SOLVED] Audacious in Current

LinuxQuestions.org latest posts - 2 hours 29 min ago
I am using KDE 4.5.1 (Although this issue persisted with 4.5 as well), Multilib and Slackware current as of 6th September (Issue has been present for me in most current releases since 10th August).

Audacious simply fails to load. I have tried recompiling, using older versions and even tried compiling the newer version 2.4.0 from the site but to no avail.

I really like the new XORG update since my laptop runs cooler and would rather fix audacious than revert xorg.








EDIT:


I fixed this my editing the .desktop file in /usr/share/applications/ to exec "audacious", not "audacious2 %U" and it works flawlessly now.


Is Arch like Gentoo? Can I recompile the base system for my system? Easily?

LinuxQuestions.org latest posts - 2 hours 34 min ago
So once upon a time (few days ago) I did an emerge --update --newuse --world all omgxHAxCKXS to update my gentoo system. So it's compiling everything and sure enough later in the day there's an error. So I tried to emerge the package it errored on and guess what? Emerge didn't do a thing. It didn't even say (no such file or directory for emerge) it just did nothing and wen't back to prompt? So basically my system became borked. I re-downloaded a portage tarball but that overwrote my portage directory and messed up my squashfs filesystem that I made for the portage directory. Yeah I don't wanna deal with all this b.s. so now I'm really looking at arch.

As I write this right now my new gentoo install (chrooted) going from ubuntu (I'm running linux mint) is emerging the linux kernel and keeps getting a checksum failure! Like omg!

So from what I read, Arch seems like a really enjoyable O.S.. Completely rock solid with no b.s. in the way. Really easy package manager (that makes real packages unlike gentoo!) which sounds very similar to ubuntu's ease of use. Also I read that you can pick optional dependencies with each package which sounds very much like gentoo's use flags except it's for each package rather than globally. I.M.O. it's atrocious and tedious to set so many use flags to make the system how you wan't it. What if you change your mind on something later?! Arch sounds just like what I wan't. Oh and if I wanna try something before I decide to compile it later I can do that too without affecting everything else I compiled right?! Sounds alot better to me but how difficult is it after everything is the way you wan't it? What if I wanna update my whole entire system? Can you use unstable packages and have the latest stuff available?

I read someone was trying to recompile just there base install and arch wanted to install other packages that the user didn't even have in the first place. It turn's out it needs them just to do the building process but afterwards they just sit there useless. I guess somehow they figured out how to fix that but it seemed kinda quirky there. I mean I don't wan't abunch of garbage I don't need sitting their. I don't mind the extra wait just to temporarily build the build dependecies (yeah the dependencies for just the building process to build the package you wan't LOL) but will it get rid of it afterwards. Here's the post where this quirk came about https://bbs.archlinux.org/viewtopic.php?id=102418&p=2

So far Gentoo is disappointing for me in that: /usr/portage takes a huge amount of space just to sit there (I'm talking gigs here folks). This is perhaps the worst thing I've ever seen especially considering this o.s. is supposed to be minimal and fast! Ridiculous! It's so much bandwidth to be downloading an entire portage tree to the user's hdd. Wouldn't it be better to have a master portage tree on a server and let everyone's emerge read from it instead of downloading the whole thing, and then reading it from the downloaded tree on the user's hdd which is taking gigs of space. Crazy! It can easily break, use flags are global so if you change even just one use flag it can cause hours of recompiling affecting the rest of your system. If I wan't a package that doesn't exist in gentoo's portage nor doesn't have an ebuild, it'd be very scary and unclean to manually ./configure && make && make install, and then have no way to uninstall it via a package manager. Maybe I'm missing something here but even something like Slackware has what you need to make your own packages. Yeah I have many issues here with gentoo but it's amazing for me to be able to build everything from source so seamlessly. I first heard about gentoo and thought how amazing it was, but it turns out there are other distro's that can do the same thing and probly worlds better. It bums me out knowing what a great community gentoo has and their support and documention is like no other!

So yeah will arch linux fill me in on these flaws I have with Gentoo. If I recompile the base system from source and everything else will it be pretty easy in comparison to Gentoo.

I like Slackware but sometimes recompiling your system from source is true pain! There's no dependency tracking whatsoever and you pretty much have to make your own packages. There's gslapt-get but it doesn't automagically compile everything. SBOpkg I think does that but I never really used it. Oh and it only gives you what's available from slackbuilds.org which isn't too much either... It's nice though since you're learning linux rather than a distro. Also if I don't feel like compiling and wan't to just use something I can install a binary (if I can find it), have fun and then decide if it's worth keeping and recompiling it. Overally I've felt pretty lonely using slackware. And it wears you out alot.

Ubuntu is nice with apt-get. Easy smooth sailing with everything! That's my favorite part about it. A real package manager! But it doesn't do me any good if I can't nit pick and recompile everything with leet uber epic flags and OMG haXIngORsz meLikeLOTSWinDOUGHmanGEErzs cuSTOmxsz.

From what I read It sounds alot like Arch would give me the best of all the distro's I've mentioned.

Would really like to hear what other user's have to say about it in regards to the issues I have with the distro's I mentioned.


Template algorithm for std::vector and std::string

LinuxQuestions.org latest posts - 2 hours 41 min ago
Hello! For example, I have two functions:
Quote: void func1(std::string &s)
{
s.clear();
}

void func2(std::vector &v)
{
v.clear();
} Is there a way to create one template function for both vector and string that would clear them?


create soft link and hard link in RHEL5

LinuxQuestions.org latest posts - 2 hours 48 min ago
hi


how can we create soft link and hard link in RHEL5

when am using in command it is giving format error

Please help me

Thanks in advance


Firefox 3.6.x - video flash don't work - OS 64 bit

LinuxQuestions.org latest posts - 2 hours 54 min ago
Some week ago, after an update of firefox (package taken directly from mozilla and update every day), i noticed that video flash don't work anymore.
While i haven't problem using firefox 4.x and google chrome.


Why dual booting, with virtualization possibilities around???

LinuxQuestions.org latest posts - 3 hours 15 min ago
Hi there,

I have been running Linux for more than 15 years. I have tried many different distribution, on different architecture. I have to admit, I am not a great MS Windows fan, but I understand that you cannot get around it in the world today. I also admit that I have tried dual booting, for probably half an hour. I realized that I would never boot from this system, so I scrap it.

I have been looking around this forum lately. I am surprised to see that there are still some dual booters out there.

My question is what are the advantages of dual booting, over the many different virtualization possibilities around???

I mean if you want to run normal executable in Linux, the fastest way I found is through WINE. But if you really need a complete Windows desktop, why dual boot, when you can simply virtualize it from the Linux desktop.

Cheers


iPod Data Recovery Mac/Windows

LinuxQuestions.org latest posts - 3 hours 24 min ago
AppleXsoft have 5 products which can be used for iPod Data Recovery Mac/Windows, you can view information carefully to determine which one you should download.


Centos 5.2 squid problem AGAIN

LinuxQuestions.org latest posts - 3 hours 25 min ago
Hello Linux Gurus

I've tried to install CentOS 5.2 w/ squid service and w/ 2 lan cards 1 for the public ip and 1 for the private network for users gateway, I used to configure it correctly on a redhat 9 machine and it works smoothly w/ minimal configurations. But in CentOS 5.2 I'm stuck on clients pc browsing because of the browser still cant access internet, I've checked /var/squid/access.log and there it Hits.

I am encountering a message:

SELinux is preventing squid (squid_t) "read" to ./squid.pid (var_run_t)

I've tried to disable SElinux using:
echo 0 >/selinux/enforce

but still failure I used to be, :(
please help me


Mac Video Recovery, recover deleted videos files

LinuxQuestions.org latest posts - 3 hours 25 min ago
I buy Mac Video Recovery, recover deleted videos files software, and found it very friendly, and share for everybody.


LVM repair of working disk with corrupted but known partition structure

LinuxQuestions.org latest posts - 3 hours 37 min ago
I have a hard drive where one partition is used as part of a logical volume (LV) using LVM. The partition table is corrupted and prevents the partitions from showing as devices in /dev/. The corruption prevents the logical volume from coming on-line b/c LVM cannot find the part on the corrupted disk. I (am pretty sure) I know the block offsets and lengths for each partition on the disk but do not want to write to the disk in case I am wrong.

How do I go about recovering the logical volume in this scenario?


Unable to create home directory in Open Suse 11.3

LinuxQuestions.org latest posts - 3 hours 39 min ago
When i am adding a user using "useradd -d /home/test test" or "useradd test", it is now creating the home directory, whereas when i am using the graphical mode and going through several menu options, i am getting the home directory. Dont know what is missing.


ssh host (get host, get domaine)

LinuxQuestions.org latest posts - 3 hours 44 min ago
Dell Optiplex Gx-1 running Debian Lenny 5.04. I can connect to my debian machine using vncviewer on port 5900 windows machine. I can control the debian machine, Obviously my ssh is working(I believe) because I can scroll thru windows documents using debian.

I'm trying to connect to my Debian machine using ssh but also want to be able to connect and login upon powering up.

I have it set so far where if I let the debian machine sleep, I can connect and login only if it wasn't logged out.

How do I set it to where I don't have to have the machine logged in and either running or sleep. Also get connected on 22 instead of 5900.

Now about: (get host, get domain)

(get host & set hostname) isn't that supposed to be the name of debian machine or is it the other machine?


LXer: Awesome Right Click Menu Alternative Mockup for Ubuntu

LinuxQuestions.org latest posts - 3 hours 51 min ago
Published at LXer:

Even the seemingly simple right click menu in Ubuntu Gnome is getting designer's attention. Has anybody noticed that, there are already about 20 or so entries in the right click menu of a folder in Nautilus? Somebody has. Take a look at this 'right click menu alternative' mockup.

Read More...


PREEMPT_RT and Xenomai

LinuxQuestions.org latest posts - 4 hours 19 min ago
Hello,

Can we install Xenomai on real-time kernel (With PREEMPT_RT)?


How to block FTP and SMTP service?

LinuxQuestions.org latest posts - 4 hours 23 min ago
Hi guys i would like to block FTP and SMTP service as a part of linux server hardening.

How would i do the same?


LXer: 10 Free WordPress Themes for Small Businesses

LinuxQuestions.org latest posts - 4 hours 51 min ago
Published at LXer:

There are a lot of WordPress themes out there. Whether you’re looking for a souped up, paid premium template or a free alternative, it seems everyone and their grandma has created a tweak on the basic two-column or three-column WordPress model. While it can be a little daunting to sort through the many options, the explosion of available templates is a healthy sign of a vibrant, sometimes prolific, design community. This is good news, of course, if you’re a designer. This is not such good news if you’re a small business looking for a simple, free, and adequately outfitted theme for your company.

Read More...


Best Linux OS for Old Computer?

LinuxQuestions.org latest posts - 5 hours 16 min ago
I have tried using many different Linux Distributions but all of them are unstable on my computer. I am assuming that my hardware is too dated so I'm wondering what kind of distribution I should use based on my hardware. I have already tried LinuxMint, Ubuntu, and Mandriva but the computer goes into a partial freeze after one minute or so. I would really love some help.

Processor: Athlon 64 3400+ 2.4 GHz
-1600 MT/s (Mega Transfers/second)
-Socket 754
Chipset: SiS 760/964
Motherboard:
-Manufacturer: Asus
-Motherboard Name: K8S-LA
-HP motherboard name: Salmon-GL6E
Memory:
-Memory Installed: 512 MB (1 x 512)
-Maximum allowed: 2.0 GB (2 X 1 GB)
-Speed supported: PC3200 MB/sec
-Type: 184 pin, DDR SDRAM
-DIMM slots: Two
-Open DIMM slots: One
Hard drive: 200 GB; 7200 rpm


Postfix Error: Address not found in virtual alias table

LinuxQuestions.org latest posts - 5 hours 18 min ago
Hi there

I setup a virtual server with these configurations:
1. Mail server: POSTFIX / DOVECOT
2. Webmin / Virtualmin

I am getting email to desired folders locally but I am not getting email from outside to desired users. Emails are bounced back with message "Address not found in virtual alias table".

Recent log errors are:

Sep 8 04:25:49 server1 postfix/smtpd[28002]: cannot load Certificate Authority data
Sep 8 04:25:49 server1 postfix/smtpd[28002]: warning: TLS library problem: 28002:error:02001002:system library:fopen:No such file or directory:bss_file.c:122:fopen('/etc/pki/postfix/root.crt','r'):
Sep 8 04:25:49 server1 postfix/smtpd[28002]: warning: TLS library problem: 28002:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:125:
Sep 8 04:25:49 server1 postfix/smtpd[28002]: warning: TLS library problem: 28002:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:by_file.c:279:
Sep 8 04:25:49 server1 postfix/smtpd[28002]: connect from mail-wy0-f172.google.com[74.125.82.172]
Sep 8 04:25:49 server1 postfix/smtpd[28002]: warning: 172.82.125.74.list.dsbl.org: RBL lookup error: Host or domain name not found. Name service error for name=172.82.125.74.list.dsbl.org type=A: Host not found, try again
Sep 8 04:25:49 server1 postfix/spawn[28008]: warning: command /usr/bin/perl exit status 2
Sep 8 04:25:49 server1 postfix/smtpd[28002]: warning: premature end-of-input on private/spfpolicy while reading input attribute name
Sep 8 04:25:50 server1 postfix/spawn[28008]: warning: command /usr/bin/perl exit status 2
Sep 8 04:25:50 server1 postfix/smtpd[28002]: warning: premature end-of-input on private/spfpolicy while reading input attribute name
Sep 8 04:25:50 server1 postfix/smtpd[28002]: warning: problem talking to server private/spfpolicy: Connection reset by peer

When I send email from my gmail a/c:

Sep 8 04:25:50 server1 postfix/smtpd[28002]: NOQUEUE: reject: RCPT from mail-wy0-f172.google.com[74.125.82.172]: 451 4.3.5 Server configuration problem; from=<xx@gmail.com> to=<x@xx.com> proto=ESMTP helo=<mail-wy0-f172.google.com>
Sep 8 04:25:51 server1 postfix/smtpd[28002]: disconnect from mail-wy0-f172.google.com[74.125.82.172]


main.cf settings:

address_verify_map = btree:/var/spool/postfix/verify
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = xx.com
myhostname = server1.xx.com
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = unix:/var/run/dkim-milter/dkim.sock
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
recipient_canonical_maps = hash:/etc/postfix/canonical
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sender_canonical_maps = hash:/etc/postfix/canonical
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_CAfile = /etc/pki/postfix/root.crt
smtp_tls_cert_file = /etc/pki/postfix/server.pem
smtp_tls_key_file = /etc/pki/postfix/key.pem
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_tls_cache
smtp_use_tls = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_error_sleep_time = 5s
smtpd_hard_error_limit = 20
smtpd_helo_required = yes
smtpd_milters = unix:/var/run/dkim-milter/dkim.sock
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_recipient_access hash:/etc/postfix/access reject_unknown_recipient_domain reject_unknown_sender_domain reject_unverified_recipient reject_non_fqdn_recipient reject_non_fqdn_sender reject_invalid_hostname reject_rbl_client list.dsbl.org reject_rbl_client zen.spamhaus.org reject_rbl_client l1.spews.dnsbl.sorbs.net reject_rbl_client combined.njabl.org reject_rbl_client bl.spamcop.net reject_rhsbl_sender dsn.rfc-ignorant.org reject_rhsbl_sender bogusmx.rfc-ignorant.org reject_rhsbl_sender rhsbl.sorbs.net reject_rhsbl_client dsn.rfc-ignorant.org reject_rhsbl_client bogusmx.rfc-ignorant.org reject_rhsbl_client rhsbl.sorbs.net check_policy_service unix:private/spfpolicy
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = hash:/etc/postfix/sender_access
smtpd_soft_error_limit = 10
smtpd_tls_CAfile = /etc/pki/postfix/root.crt
smtpd_tls_cert_file = /etc/pki/postfix/server.pem
smtpd_tls_key_file = /etc/pki/postfix/key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_cache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
unverified_recipient_reject_code = 550
unverified_sender_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

What is the problem here? Please help ... thanks


Syndicate content