LinuxQuestions.org latest posts

Syndicate content LinuxQuestions.org
LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.
Updated: 55 min 22 sec ago

LXer: Joint European Parliament ACTA Transparency Resolution Tabled, Vote on Wednesda

1 hour 48 min ago
Published at LXer:

A joint resolution on Transparency and State of Play of ACTA negotiations from virtually all party groups in the European Parliament was tabled earlier today. It will debated tonight and faces a vote on Wednesday. If approved, the resolution marks a major development in the fight over ACTA transparency. It calls for public access to negotiation texts and rules out further confidential negotiations. Moreover, the EP wants a ban on imposing a three-strikes model, assurances that ACTA will not result in personal searchers at the border, and an ACTA impact assessment on fundamental rights and data protection.

Read More...


after suspend to RAM -- unable to unlock or startx

2 hours 15 min ago
I am using Slackware 13 x86_4. I have it set so that when I close my lid, it suspends to RAM. When I open my lid, it asks for password, but after I enter it, it freezes. I force KDE down by Ctrl+Alt+Backspace then read the errors. It says: Code: xauth: error in locking authority file /home/ridwan/.Xauthority
rm: cannot remove '/home/ridwan/.serverauth.3457': Read-only file system When I try to startx again, it says Code: /usr/bin/startx: line 158: cannot create temp file for here document: Read-only file system
/usr/bin/startx: line 174: cannot create temp file for here document: Read-only file system
/usr/bin/startx: line 174: cannot create temp file for here document: Read-only file system

Fatal server error:
Could not create lock file in /tmp/.tX0-lock

xauth: error in locking authority file /home/ridwan/.Xauthority
rm: cannot remove '/home/ridwan/.serverauth.4151': Read-only file system It forces me to power off the laptop by holding down the power button. When I try ctrl+alt+delete, I get an error saying "can't execute from /sbin/shutdown/"

Thanks!


VmRSS increases but VmData does not

2 hours 19 min ago
I have written one sample code where I allocate memory and then free it. What I observed was whenever allocation was done, VmData is increased. Whenever that memory is accessed (memset or use it), VmRss is increased. When that pointer is freed, both VmData and VmRSS come back to original value.

But I am working on an existing code, where the system memory is constantly increasing. I have used all memory leak tools and am not finding leaks. What my observation is VmRSS is increasing by 4k constantly. When it increases by a few times then only VmData is increases and eventually VmSize and system then runs out of memory.

Can anybody explain why VmRSS is increasing and VmData is not increasing.

I have verified it on Linux - 2.4 kernel

Regards,
Prashant


delete history from computer

2 hours 19 min ago
I'm using RHEL 5.0 and i want to delete history for n users at a time.
i can use history -c from each user login and delete but i want another way.
or i want to create a shell script by using which i can do d task at a glance for all users.


printer issue

2 hours 28 min ago
Hi,

I have an issue with the client PC which is running windows XP.But the user is in Linux server. when i try to connect a printer from that user it is giving me the follwing error message

"A policy is in effect in this computer which prevents you from connecting to this print queue.Please contact your system administrator"

Pls let me know whether this is related to the user in server or the computer?

and how to solve this issue


Bash-script basic level

2 hours 46 min ago
Hi there
I´m like my alias a retired person, and Its never to late to learn something, I´ve just installed Ubuntu and found a tutorial online about bash-script.Manage some, but I cant to this one:

[Write a script that makes file executable and writes a message that it has been done.
If I run the command > <scriptName> <fileName> , then the file fileName should be executable and then it should indicate that fileName have been executable.]

I´ve read man pages up-n-down and search the web, and I think I should let the script use chmod and ls -l, but I cant get the hole picture here. Actually I have nothing to show up, so I hope someone could help me with some ideas or a soloution - just to the how it should look.

This is my first post, ever, at a forum like this, so please be nice if I didnt follow any rules here, I dont know if you even will answer this post, but at least give me some clues, a skeleton-code ti be based on.

Thank you!


mysqladmin: connect to server at 'localhost' failed(Confusion abot MySQL and mysqladm

2 hours 46 min ago
Hi,
Hope you all are at good health:).I have some confusion about mysqladmin and mysql.I am using mysql version
Quote: [root@localhost freepbx-2.7.0]# mysql --version
mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1 My MySQL is running
Quote: [root@localhost freepbx-2.7.0]# /etc/init.d/mysqld status
mysqld (pid 11440) is running... I have a root account named root and i am easily connect with it.When i try to execute command. I get the following error

Quote: [root@localhost freepbx-2.7.0]# mysqladmin create asterisk
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)' If i connect to mysql root account by mysql -u root -p and after that if i execute command then i get this

Quote: [root@localhost freepbx-2.7.0]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 23
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> mysqladmin create asterisk
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqladmin create asterisk' at line 1
mysql> mysqladmin create asterisk;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqladmin create asterisk' at line 1
mysql> I want to ask why this command is not working
Quote: [root@localhost freepbx-2.7.0]# mysqladmin create asterisk Do i suppose to start mysqladmin like i start mysql(/etc/init.d/mysqladmin start or something like this)
I am using
Quote: [root@localhost freepbx-2.7.0]# mysqladmin --version
mysqladmin Ver 8.41 Distrib 5.0.77, for redhat-linux-gnu on i686 Also in mysqladmin create asterisk. Is asterisk is a username or database name?
Thanks you.


LXer: Lubuntu 10.04 Alpha 3 Screenshots

2 hours 48 min ago
Published at LXer:

Julien Lavergne has released the next Alpha 3 of lubuntu. lubuntu is a faster, more lightweight and energy saving variant of Ubuntu using LXDE, the Lightweight X11 Desktop Environment. The lubuntu team aims to earn official endorsement from Canonical. Lubuntu 10.04 Alpha 3 Screenshots at My SEO Company

Read More...


Access main program function from library

2 hours 52 min ago
Hi, is it possible to access main program function from dynamically linked library in c language?

For example:
main.c:
Code: #include<stdio.h>

void func()
{
        printf("I'm main program function");
}

int main()
{
        /*
        load library code here
        */
        (*lib_func)();
        return 0;
} How can I access func() function from library? My first idea was to access it by adress but is there simpler way?


ATI driver installlation

3 hours 21 min ago
Hi
I use kubuntu 9.10 and downlaoded ati driver then after this command:
fakeroot sh ati-driver-installer-9-6-x86.x86_64.run --buildpkg Ubuntu/karmic

I saw these messages:

(synaptic:28573): Gtk-WARNING **: cannot open display: :0
Unable to resolve cdbs. Please manually install and try again.
Package build failed!
Package build utility output:
building fglrx-installer in fglrx-installer_8.620.orig.tar.gz
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.620-0ubuntu1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
fakeroot debian/rules clean
fakeroot: FAKEROOTKEY set to 1478555234
fakeroot: nested operation not yet supported
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 1
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.620-0ubuntu1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
debian/rules build
dpkg-buildpackage: host architecture amd64
debian/rules:6: /usr/share/cdbs/1/rules/debhelper.mk: No such file or directory
make: *** No rule to make target `/usr/share/cdbs/1/rules/debhelper.mk'. Stop.
dpkg-buildpackage: error: debian/rules build gave error exit status 2
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.620-0ubuntu1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
debian/rules build
dpkg-buildpackage: host architecture amd64
debian/rules:6: /usr/share/cdbs/1/rules/debhelper.mk: No such file or directory
make: *** No rule to make target `/usr/share/cdbs/1/rules/debhelper.mk'. Stop.
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Removing temporary directory: fglrx-install.4k4HAD

what is the problem?
Tanx


ALSA playing multiple sounds at same time

3 hours 32 min ago
Hi,
I've worked out how to get ALSA libasound code working for an application.
However I can't workout how to get multiple sounds working at once. Can anyone tell me or point me to an example of how to do this? I can't seem to find any google examples of mutiple sounds. EG tune plays while pressing buttons makes clicks.

I'm using an embedded board so need to use ALSA not an addon eg sdlmixer,jack etc.

Thanks :)


Importing data in OpenLDAP from remote Active Directory

3 hours 34 min ago
Hi Friends,

I am running an openldap server on fedora core 10 and now running into a need of get all users data from Active Directory. Actually I have a php based application which will be using that data from OpenLDAP and it will need to be updated on weekly bases.

Can you please suggest me how can I do it and any script which can help me.


How to set up syslog server on Fedora 10 Linux server ?

3 hours 40 min ago
Hi all,

How to set up syslog server on Fedora 10 Linux server ?
Thanks !

Rgds,
gutiojj


Java - How do i modify (add/remove etc.) an ArrayList from outside of the class...

3 hours 41 min ago
Okay so I'm working on a program here as I'm learning java,
I have an array that is initialized with 5 objects that are hard coded.
I have made a GUI that takes the input needed and creates an object with those values.
I need to add that object to the ArrayList that I have previously made.

Okay, so I have three classes, guiclass.java, main.java and gladiator.java

Objects are made and defined in "gladiator"
Main contains my public static void main section, launches my gui, creates my five hard coded objects, creates my ArrayList and adds my five hard coded objects to the ArrayList.

Now, I need to add the object that I generated in the guiSection [action Listener]to the ArrayList that I created in my main class's public static void main string... section. Problem is my arraylist "cannot be resolved" from guiclass.

How do I do this?


The ide i'm using is Eclipse.

Thanks for your help.


solaris with ZFS and informix DB memory issue.

3 hours 42 min ago
Hi,

We are using Solaris 10 5/09 s10s_u7wos_08 SPARC

Patch level Generic_142900-02 (Dec 09 PatchCluster release)

Informix DB version 11.5FC6

OS File systems ZFS

System is connected with SAN wich is also configured with ZFS in OS.


Now Problem is Memory

Total memory in system Memory size: 32640 Megabytes

vmstat displays that only 4 GB is left

Code: vmstat 1 3
 kthr      memory            page            disk          faults      cpu
 r b w  swap  free  re  mf pi po fr de sr s0 s4 sd --  in  sy  cs us sy id
 0 0 0 23060608 11491848 5 16 0 0  0  0  0  1 -0 27  0 1063 1777  901  0  0 100
 0 0 0 12122312 4326912 8 20 0  0  0  0  0  0  0  8  0 1163 3830  948  0  0 99
 0 0 0 12121992 4326656 0 1  0  0  0  0  0  0  0  7  0 1136 3308  787  0  0 100
While informix is using just 5 to 6 GB and no other process on the system is using significant memory.

On thoroughly investigating I found

Code: mdb -k
Loading modules: [ unix genunix specfs dtrace zfs sd mpt px ldc ip hook neti sctp arp usba fcp fctl emlxs nca ssd lofs md cpc random crypto fcip logindmux ptm ufs sppp nfs ipc ]
> ::memstat
Page Summary                Pages                MB  %Tot
------------    ----------------  ----------------  ----
Kernel                    240843              1881    6%
ZFS File Data            3163768            24716  77%
Anon                        99395              776    2%
Exec and libs                5218                40    0%
Page cache                  33874              264    1%
Free (cachelist)          296163              2313    7%
Free (freelist)            262696              2052    6%

Total                    4101957            32046
Physical                  4070982            31804
ZFS File Data is using most of the memory.

Kindly help me what is that ? Is it normal behaviour ?


making megaraid_sas as a module

3 hours 43 min ago
I’m trying to recompile the 2.6.29.4 kernel to have the megaraid_sas driver built as a module instead of built-in to see if it solves a problem that is happening on a Dell Perc 6 contoller. I’m having some trouble getting it to boot. It compiles fine as a module, but when the system boots, it freaks with a kernel panic and not being able to mount / . It looks like it can’t find the scsi disk controller since it complains about not being able to mount /. I’ve seen this before where I had to rebuild initrd…and preload the right modules…

I’m compiling and installing the modules then rebuilding initrd with --preload=megaraid_sas, but that does not help. Maybe there are more scsi drivers needed to preload?

Any thoughts?

I've searched the net, but it doesn't look like others have had to go from built-in to modules and have this issue.


php applications running slow

4 hours 2 min ago
hello all
i am facing one issue, after changing my server i have noticed the php application are working very slow on this new server. I have already compared the rpm of the new and old server. Also checked some of the file like resolve.conf etc .


seems like its waiting for some time out thing and then loading the application , can any one of you suggest where should i check ?


LXer: StrongVPN on Ubuntu: Simple VPN Solution That Works

4 hours 7 min ago
Published at LXer:

Ask any knowledgeable mobile user, and she will tell you that the best way to securely access the Internet in public places is through a VPN (virtual private network) connection.

Read More...


(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

4 hours 14 min ago
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

hi folks i am new to apache2 server i have been trying to start the server using the default httpd.conf file provided in the source code but when i give the following command sudo /usr/local/apache/bin/apachectl start i receive the above error and the server shuts down. any kind of help will be highly appreciated.


Installing any Open-Source web browser on a linux BOX and share it over NFS

4 hours 35 min ago
Folks;

I am planning to install any Open-Source ( LINUX ) web browser having all dependencies/plugin-ins on one single location [DIR] and share it over NFS to all other users; So all users can run the executable to start browsing local files (Flash Tutorials) without the need of installing a web browser on every single workstation.

In my case I am using Red Hat Linux 4 update 7 WS all over my work place.

Please advice; Share Ideas :)

Thanks,