<?xml version="1.0"?>
<rss version="2.0"><channel><title>Command Line, Kernel and Programming Latest Topics</title><link>https://mandrivausers.org/index.php?/forum/15-command-line-kernel-and-programming/</link><description>Command Line, Kernel and Programming Latest Topics</description><language>en</language><item><title>Store one line at a time in array - Bash</title><link>https://mandrivausers.org/index.php?/topic/124575-store-one-line-at-a-time-in-array-bash/</link><description><![CDATA[<p>I have a file and in each file there is a link on each line. I need to read each line one at a time and then store each line in an array. I need to do this all in Bash. I have been doing lots of searching and have found out how to read one line at a time but not store it in an array. Any help is appreciated. Thanks!</p>]]></description><guid isPermaLink="false">124575</guid><pubDate>Tue, 26 May 2015 21:40:54 +0000</pubDate></item><item><title>Guidance With Script?</title><link>https://mandrivausers.org/index.php?/topic/109779-guidance-with-script/</link><description><![CDATA[
<p>Hi all.</p>
<p> </p>
<p>It seems I can not sort out my raid array boot issue, so I'll have to settle on a work around.</p>
<p> </p>
<p>I need to run 2 commands each boot. These are:</p>
<p> </p>
<p></p>
<pre class="ipsCode">
# Raid array discovery and activation
dmraid -ay

# Mount arrays for access
mount /dev/mapperxxxxxxxx /mnt/mount_point
</pre>
<div></div>
<p></p>
<p> </p>
<p>Is it as simple as creating a bash script and then placing it somewhere so as to be executed or is there another process? All this in new to me.</p>
<p> </p>
<p>Thanks</p>
]]></description><guid isPermaLink="false">109779</guid><pubDate>Fri, 07 Jun 2013 12:06:00 +0000</pubDate></item><item><title>Finding Hard Links/Login Gui as root</title><link>https://mandrivausers.org/index.php?/topic/109641-finding-hard-linkslogin-gui-as-root/</link><description><![CDATA[
<p>Pretty straight forward.</p>
<p>Mandriva 2011</p>
<p>I am looking for the script(syntax) that will find all the hard links in the "/sbin" directory.</p>
<p>The commands should include...find, grep, | (pipe), and search the inodes.</p>
<p> </p>
<p>This is a disposable installation that is on it's own hard drive and I have a lot of work to do exploring the file system. It would be really nice to log in to the GUI as "root:UID-0" for this work. I know this is not recomended (to say the least) for a newbe that cares about security and stability of the system. imagine...su root(password) cd /   rd -r /*       :-) I can't find the active kdmrc file :-(</p>
<p>Thanks</p>
<p> </p>
<p> </p>
<p>Update I found it <img src="https://mandrivausers.org/uploads/emoticons/default_18.gif" alt=":lol2:" data-emoticon="" /> It is at...</p>
<p>Mandriva 2011</p>
<p>/usr/share/config/kdm/kdmrc change to "allowrootlogin=true"</p>
<p> </p>
<p>"""WARNING""" Other users are right this feature makes it so easy to instantly shoot yourself in the foot, you can literally delete the operating system right out from underneath you. I dare you to login as root GUI--open Dolphin file manager--right click on the boot directory-choose move to trash--confirm--then restart system <img src="https://mandrivausers.org/uploads/emoticons/default_wall.gif" alt=":wall:" data-emoticon="" />  :D Hope you have Mr backup or are prepared for a nightmare. Also root GUI login leaves the system exposed to cyber attacks. The best policy when using this feature is """GET IN--BE CAREFULL--GET OUT"""</p>
<p> </p>
<p>The easiest way is to open up a terminal and authenticate as root "su root". navigate to the directory "cd /usr/share/config/kdm/" then to be on the safe side I made a backup </p>
<p>"cp kdmrc kdmrcbak" then execute the extrnal program authenticated as root by typing "kwrite"</p>
<p>within kwrite navagate to the directory and and choose open kdmrc. Make the modification and choose save. Just for pickyness kwrite creates a temp file that it does not remove, you can remove it from the terminal or from dolphin file manager once you login as root GUI.</p>
]]></description><guid isPermaLink="false">109641</guid><pubDate>Mon, 29 Oct 2012 07:42:02 +0000</pubDate></item><item><title>screensaver not working</title><link>https://mandrivausers.org/index.php?/topic/109389-screensaver-not-working/</link><description><![CDATA[
<p>Every time I boot up my computer, in konsole, I need to enter a command such as:</p>
<p> </p>
<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="109389" data-ipsquote-contentclass="forums_Topic"><div>$ xset dpms 50000 55000 60000<p></p>
</div></blockquote>
<p> </p>
<p>Whether it's in root or not, doesn't matter. Anyway to make such changes permanent? Also, what command would be best, because I just randomly choose 50000 55000 and 60000.</p>
<p> </p>
<p>Thanks,</p>
<p>Kieth</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Everything Linux by spinynorman]</span></p>
]]></description><guid isPermaLink="false">109389</guid><pubDate>Sat, 28 Apr 2012 12:43:34 +0000</pubDate></item><item><title>Installing PCDJ on my mandriva box [solved]</title><link>https://mandrivausers.org/index.php?/topic/109353-installing-pcdj-on-my-mandriva-box-solved/</link><description><![CDATA[
<p>I have an issue of failed dependencies but seems is more of an issue with the path, I am not sure I remember how to modify the prefix but I guet the following issues:</p>
<p></p>
<pre class="ipsCode">
checking for LIBJACK... no
configure: error: Package requirements (jack &gt;= 0.98.0) were not met:

No package 'jack' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBJACK_CFLAGS
and LIBJACK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
</pre>
<div></div>
<p></p>
<p>I have confirmed the existence of libjack</p>
<p></p>
<pre class="ipsCode">locate libjack
/usr/lib/libjack.so.0
/usr/lib/libjack.so.0.1.0
/usr/lib/libjackserver.so.0
/usr/lib/libjackserver.so.0.1.0
</pre>
<div></div>
<p></p>
<p>I tried going through the pkg-config man pages, but seemed a bit odd about setting the libjack.</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">109353</guid><pubDate>Mon, 02 Apr 2012 16:18:19 +0000</pubDate></item><item><title>How to add other characters to the same file</title><link>https://mandrivausers.org/index.php?/topic/109245-how-to-add-other-characters-to-the-same-file/</link><description><![CDATA[
<p>HI,</p>
<p>   I have a file(File1) which has the contents as below:</p>
<p> </p>
<p>Oct 25 21:06</p>
<p>Oct 25 22:17</p>
<p>Oct 25 22:39</p>
<p>Oct 25 22:41</p>
<p>Oct 25 22:51</p>
<p> </p>
<p>Now I have to write to another file(File2) everything in File1 and have to add additional data as below:</p>
<p>Oct 25 21:05</p>
<p>Oct 25 21:06</p>
<p>Oct 25 21:07</p>
<p>Oct 25 22:16</p>
<p>Oct 25 22:17</p>
<p>Oct 25 22:18</p>
<p>Oct 25 22:38</p>
<p>Oct 25 22:39</p>
<p>Oct 25 22:40</p>
<p>Oct 25 22:40</p>
<p>Oct 25 22:41</p>
<p>Oct 25 22:42</p>
<p>Oct 25 22:50</p>
<p>Oct 25 22:51</p>
<p>Oct 25 22:52</p>
<p> </p>
<p>So, I am adding the previous time and also one minute before and one minute after to the new file. </p>
<p> </p>
<p>Can someone help me with this ? I can later remove the duplicates with the uniq. </p>
<p> </p>
<p>Please help</p>
]]></description><guid isPermaLink="false">109245</guid><pubDate>Thu, 16 Feb 2012 05:12:57 +0000</pubDate></item><item><title>How to write a password-entering ssh script?</title><link>https://mandrivausers.org/index.php?/topic/109221-how-to-write-a-password-entering-ssh-script/</link><description><![CDATA[
<p>I use an ssh tunnel which needs a password, where the characters entered are not displayed. I tried different methods:</p>
<p> </p>
<p>#!/bin/bash</p>
<p>sh -c "password" | ssh -L 6700:127.0.0.1:4888 user@sshtunnel.net</p>
<p> </p>
<p>#!/bin/bash</p>
<p>ssh -L 6700:127.0.0.1:4888 user@sshtunnel.net</p>
<p>sh -c "password"</p>
<p> </p>
<p>I tried 'echo "password" | ssh -L 6700:127.0.0.1:4888 user@sshtunnel.net' but this only works where password characters are displayed.</p>
<p> </p>
<p>The technical support guy said that the ssh server won't allow public-key placement because of vulnerabilities of openssl.</p>
<p> </p>
<p>Incidentally, it always says "#!/bin/bash: no such file". I checked: it is there.</p>
<p> </p>
<p>I also tried to change the algorithms:</p>
<p>ssh -c aes128-ctr, aes192-ctr, aes256-ctr, aes128-cbc, cast128-cbc, arcfour128, arcfour256, arcfour, aes192-cbc, aes256-cbc, 3des-cbc</p>
<p>but it always says there's a problem resolving the second algorithm.</p>
]]></description><guid isPermaLink="false">109221</guid><pubDate>Thu, 09 Feb 2012 22:04:22 +0000</pubDate></item><item><title>Back-up log file</title><link>https://mandrivausers.org/index.php?/topic/108765-back-up-log-file/</link><description><![CDATA[
<p>Hi,</p>
<p> </p>
<p>Every night i use a bash scritpt to backup up my files form Drive A to Drive B.</p>
<p>Also there will be created a log file.</p>
<p>In this log file i like to see some info about a directory.</p>
<p> </p>
<p>For example:</p>
<p> </p>
<p>I start this command before the backup on my Freenas 7.x</p>
<p>      echo "  Web         - Files :`find $SOURCE_WEB_F -type f | wc -l`" "  /`find $DEST_WEB_F -type f |wc -l`" &gt;&gt;$LOG</p>
<p>After the backup i run this line again so i can see that all the files are on the backup disk</p>
<p> </p>
<p>So what i like is the info after the backup in one line</p>
<p> </p>
<p>     Backup files  -  Source files  -  Files after backup</p>
<p>web  200              300              300</p>
<p> </p>
<p>I like it this way but how can i see this info in one line after the backup (in the log file) :unsure: ??</p>
<p>Thanks for helping.</p>
<p> </p>
<p>Vriendje</p>
]]></description><guid isPermaLink="false">108765</guid><pubDate>Mon, 03 Oct 2011 19:40:31 +0000</pubDate></item><item><title>How to represent binary number in C</title><link>https://mandrivausers.org/index.php?/topic/9326-how-to-represent-binary-number-in-c/</link><description><![CDATA[
<p>I am trying to write a C program where I need to work directly with some binary numbers. The only thing that I can not find, and yes I have looked, is how to represent binary numbers.</p>
<p> </p>
<p>Basically what I am looking for is how to store am a 8 bit binary number, say 0110110, in a variable. The best that I have found so far would be to do something like this:</p>
<p> </p>
<p></p>
<pre class="ipsCode">#define BYTE char

BYTE myBinaryNo = 0x0110110;</pre>
<div></div>
<p></p>
<p> </p>
<p>Would this be correct though? I thought the 0x notation was for hex numbers.</p>
]]></description><guid isPermaLink="false">9326</guid><pubDate>Wed, 05 Nov 2003 16:49:44 +0000</pubDate></item><item><title>Can desktop version of Mandriva see 4GB of Memory?</title><link>https://mandrivausers.org/index.php?/topic/108561-can-desktop-version-of-mandriva-see-4gb-of-memory/</link><description><![CDATA[
<p>Hi,</p>
<p>I have 4GB memory on my computer. After installation I see all 4 GB.</p>
<p> </p>
<p>But after installing of kernel-desktop-latest and restarting I see</p>
<p> </p>
<p></p>
<pre class="ipsCode">    # uname -a
   Linux localhost 2.6.33.7-desktop-2mnb #1 SMP Mon Sep 20 19:00:25 UTC 2010 i686 i686 i386 GNU/Linux
</pre>
<div></div>
<p></p>
<p> </p>
<p></p>
<pre class="ipsCode">    # free
                total       used       free     shared    buffers     cached
   Mem:       3112588    2805048     307540          0     774308    1442424
   -/+ buffers/cache:     588316    2524272
   Swap:      2096440          0    2096440
</pre>
<div></div>
<p></p>
<p> </p>
<p>It looks like desktop version of Mandriva does not understand more 3GB memory?</p>
<p>I tried to work on server version of Mandriva, but encountered problems with some applications like smplayer, vlc â€“ when playing movies they make some pauses, which I do like at all.</p>
<p>Can desktop version of Mandriva work with 4GB Memory, something like PAE in Fedora ?</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">108561</guid><pubDate>Tue, 09 Aug 2011 11:18:00 +0000</pubDate></item><item><title>Replacing some text</title><link>https://mandrivausers.org/index.php?/topic/108441-replacing-some-text/</link><description><![CDATA[
<p>Will be interesting to see if anyone knows how I can do this :)</p>
<p> </p>
<p>I need to replace some text, the first 6 - 9 characters are numbers.  Then there are two letters, of which then follow four more characters which are a mix of numbers.  There is a possibility that the two letters that proceed the first 6 - 9 characters could occur in the last four, so need to make sure I only replace the first instance that follows the first 6 - 9 characters.  I'm thinking of sed, but I'm not sure exactly how I can get it to find the 6 - 9 characters, and then replace the two letters with a new string.</p>
<p> </p>
<p>Any ideas?</p>
]]></description><guid isPermaLink="false">108441</guid><pubDate>Wed, 06 Jul 2011 08:49:16 +0000</pubDate></item><item><title>Console menu option Add Bookmark not working</title><link>https://mandrivausers.org/index.php?/topic/108531-console-menu-option-add-bookmark-not-working/</link><description><![CDATA[
<p>Hi</p>
<p>In Mandriva 2010.2 with KDE in console there is menu "Bookmarks-&gt;Add bookmark". Selecting it current directory</p>
<p>1) Is not saved if I am logged in console as root. I mean opening "Bookmarks=&gt;EditBookmarks" menu I see empty items.</p>
<p>2) saved ok if I am logged as not root user</p>
<p>Can I fix it?</p>
<p> </p>
<p></p>
<pre class="ipsCode">uname -a
Linux localhost 2.6.33.7-desktop-2mnb #1 SMP Mon Sep 20 19:00:25 UTC 2010 i686 i686 i386 GNU/Linux
</pre>
<div></div>
<p></p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman - welcome aboard :)]</span></p>
]]></description><guid isPermaLink="false">108531</guid><pubDate>Wed, 03 Aug 2011 08:00:00 +0000</pubDate></item><item><title>sox runs slowly, uses 89% CPU</title><link>https://mandrivausers.org/index.php?/topic/108483-sox-runs-slowly-uses-89-cpu/</link><description><![CDATA[
<p>Using the command "rec new-file.wav" (as shown in the sox man page) I recorded for 1 minute but the resulting file captured only 16 seconds of audio.  During recording the top utility showed sox using 89% CPU.  For this test I am using a 64-bit version of Mandriva 2010.2 on a 64-bit single core laptop computer.</p>
<p> </p>
<p>Over on my 32-bit desktop computer, running a 32-bit version of Mandriva 2010.2, the command "rec new-file.wav" works fine.  Recording for 1 minute produces 1 minute of recorded audio, and sox doesn't use a significant amount of CPU time.</p>
<p> </p>
<p>What could be the problem with sox on my laptop?</p>
]]></description><guid isPermaLink="false">108483</guid><pubDate>Mon, 18 Jul 2011 03:16:55 +0000</pubDate></item><item><title>"Error in file" message while running urpmi</title><link>https://mandrivausers.org/index.php?/topic/108369-error-in-file-message-while-running-urpmi/</link><description><![CDATA[
<p>Today I did a package update using urpmi from command line.  Why the error and warning messages?  See below, there are two "Warning in file" messages and six "Error in file" messages.  Is this a bug that should be reported?</p>
<p> </p>
<p></p>
<pre class="ipsCode">starting installing packages
created transaction for installing on / (remove=0, install=0, upgrade=9)
Preparing...                     ##################################################################################################################
     1/9: mozilla-thunderbird   ##################################################################################################################
Warning in file "/usr/share/applications/mandriva-mozilla-thunderbird.desktop": usage of MIME type "x-scheme-handler/mailto" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/writer.desktop": "zz-application/zz-winassoc-wps" is an invalid MIME type ("zz-application" is an unregistered media type)
Error in file "/usr/share/applications/kde4/nepomuksimpleannotator-app.desktop": "all/all" is an invalid MIME type ("all" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kfontview.desktop": "fonts/package" is an invalid MIME type ("fonts" is an unregistered media type)
     2/9: lib64xulrunner1.9.2.18
                                ##################################################################################################################
     3/9: xulrunner             ##################################################################################################################
     4/9: gnome-python-extras   ##################################################################################################################
     5/9: firefox               ##################################################################################################################
     6/9: yelp                  ##################################################################################################################
     7/9: gnome-python-gtkmozembed
                                ##################################################################################################################
     8/9: mozilla-thunderbird-enigmail
                                ##################################################################################################################
     9/9: firefox-en_GB         ##################################################################################################################
removing upgraded package mozilla-thunderbird-0:3.1.10-0.1mdv2010.2.x86_64
Warning in file "/usr/share/applications/mandriva-mozilla-thunderbird.desktop": usage of MIME type "x-scheme-handler/mailto" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Error in file "/usr/share/applications/writer.desktop": "zz-application/zz-winassoc-wps" is an invalid MIME type ("zz-application" is an unregistered media type)
Error in file "/usr/share/applications/kde4/nepomuksimpleannotator-app.desktop": "all/all" is an invalid MIME type ("all" is an unregistered media type)
Error in file "/usr/share/applications/kde4/kfontview.desktop": "fonts/package" is an invalid MIME type ("fonts" is an unregistered media type)
removing upgraded package xulrunner-1.9.2.17-0.1mdv2010.2.x86_64
removing upgraded package gnome-python-extras-2.25.3-18.11mdv2010.2.x86_64
removing upgraded package yelp-2.30.1-4.11mdv2010.2.x86_64
removing upgraded package firefox-0:3.6.17-0.1mdv2010.2.x86_64
removing upgraded package gnome-python-gtkmozembed-2.25.3-18.11mdv2010.2.x86_64
removing upgraded package mozilla-thunderbird-enigmail-0:3.1.10-0.1mdv2010.2.x86_64
removing upgraded package firefox-en_GB-3.6.17-0.1mdv2010.2.x86_64
unlocking urpmi database
unlocking rpm database</pre>
<div></div>
<p></p>
]]></description><guid isPermaLink="false">108369</guid><pubDate>Wed, 22 Jun 2011 20:40:14 +0000</pubDate></item><item><title>Heavy Disk Traffic After Bootup</title><link>https://mandrivausers.org/index.php?/topic/92993-heavy-disk-traffic-after-bootup/</link><description><![CDATA[
<p>I did not know where to put this question, so please forgive me if this is the wrong place.</p>
<p> </p>
<p>Yesterday I booted my computer (Mandy 2008.1) and logged in. The computer was wicked slow and sluggish. Watching gkrellm, it was apparent that there was no network traffic, the CPU's were down at ~5%, and the disk indicator showed idle, but the computer took forever to do anything. It took half a minute to post the Start menu or run a command window.</p>
<p> </p>
<p>The access light on the front of the case showed the hard disk being hammered by something, but I could not figure out what it was. The disk activity was not indicated in the gkrellm display...???.. The KSysGuard process monitor showed the processes as mostly idle; nothing showed up as hogging any CPU time. There was zero swap in use, and about 700Meg of my 2 Gig in use..... basically lots of resources were available.</p>
<p> </p>
<p>After a few minutes it went away and was fine. I am baffled. It was almost like running my fnWindows box at work, which spends the first 20 minutes after it boots scanning the whole disk for bad guys.  <img src="https://mandrivausers.org/uploads/emoticons/default_wall.gif" alt=":wall:" data-emoticon="" /></p>
<p> </p>
<p>Today the computer booted OK no problems. It is as fast and crisp as usual.</p>
<p> </p>
<p>I am running the ext3 file system and thought that maybe it was doing a disk check or something, but it usually does that during the bootup, not after I am using it.</p>
<p> </p>
<p>Anybody out there have any idea what might have caused such a thing?</p>
<p> </p>
<p>Thanks</p>
<p>Banjo</p>
<p>(_)=='=~</p>
]]></description><guid isPermaLink="false">92993</guid><pubDate>Mon, 05 Oct 2009 00:49:57 +0000</pubDate></item><item><title>How to get total size of directory in shell?</title><link>https://mandrivausers.org/index.php?/topic/3995-how-to-get-total-size-of-directory-in-shell/</link><description><![CDATA[
<p>When I do an ls -l command I can get the size of files, but I can't get the total size of a directory -- i.e. the size of everything below that directory.</p>
<p> </p>
<p>Is there anyway of getting this information with a simple command form within a shell? I realize that I can open Konquerer and right click on a directory, but there must be a way of doing this from within the shell.</p>
<p> </p>
<p>Thanks.</p>
]]></description><guid isPermaLink="false">3995</guid><pubDate>Sun, 30 Mar 2003 16:25:51 +0000</pubDate></item><item><title>Am I messing up the system?[Solved]</title><link>https://mandrivausers.org/index.php?/topic/108147-am-i-messing-up-the-systemsolved/</link><description><![CDATA[
<p>Hello. This is a quick question:</p>
<p> </p>
<p> </p>
<p>I'm tired of having to modify bashprofile files for every single user to be able to run programs from commandline without having to type the entire path. So I discovered that by placing a symbolic link in /usr/local/bin, all users (including root) can run the program easily. Is this evil? Am I breaking the system?</p>
<p> </p>
<p>Thanks</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">108147</guid><pubDate>Thu, 07 Apr 2011 19:24:07 +0000</pubDate></item><item><title>Crond doesn't seem to be working</title><link>https://mandrivausers.org/index.php?/topic/108033-crond-doesnt-seem-to-be-working/</link><description><![CDATA[
<p>I have put things in the /etc/cron.daily folder and the script doesn't seem to run.  As I look, it doesn't seem any of those scripts in there (from Mandriva) seem to be running.  If I run the command: run-parts --report /etc/cron.monthly it will start executing those scripts...</p>
<p> </p>
<p>Crond is running according to mcc - so what is the deal?</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">108033</guid><pubDate>Fri, 11 Mar 2011 16:44:04 +0000</pubDate></item><item><title>Need help with mount, fstab and mtab [solved]</title><link>https://mandrivausers.org/index.php?/topic/107271-need-help-with-mount-fstab-and-mtab-solved/</link><description><![CDATA[
<p>Hello, after addressing the problem descibed in this post: <a href="https://mandrivausers.org/index.php?/topic/107187-annoying-warning-when-copying-to-ntfssolved/" rel="external nofollow">https://mandrivausers...-to-ntfssolved/</a> I got a weird beavior:</p>
<p> </p>
<p> </p>
<p>1 - I have 2 NTFS partitions mounted in /mnt/windows and /mnt/data.</p>
<p>2 - When I umount both partitions, everything goes well.</p>
<p>3 - If I use mount /mnt/data as root the partition is successfully mounted.</p>
<p>4 - If I use mount /mnt/windows I get this error "mount: couldn't find /mnt/windows in fstab or mtab"</p>
<p>5 - If I use mount /dev/sda2 instead of mount /mnt/windows, the partition is successfully mounted.</p>
<p>6 - Both entries appear in fstab.</p>
<p> </p>
<p>The problem seems to be the name. If I tell mount to mount the folder /mnt/windows, it doesn't work, but if I call it /dev/sda2 it works. Also, the entries in fstab are identical for both partitions. </p>
<p> </p>
<p> </p>
<p>What could the problem be?</p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">107271</guid><pubDate>Sun, 02 Jan 2011 07:49:47 +0000</pubDate></item><item><title>How to Optimize a Kernel for Multimedia on Low-End</title><link>https://mandrivausers.org/index.php?/topic/107385-how-to-optimize-a-kernel-for-multimedia-on-low-end/</link><description><![CDATA[
<p>Good Day,</p>
<p> </p>
<p>     I have been amazed at the abilities of some small hand held media players that can play DivX files and HD content on bright little touchscreens with small (&lt; 1GHz) processors inside.  I have also been amazed to read that many of these players are Linux-based.  I also understand that most of them have been built from the ground up to be able to play multimedia.  However, should it not be possible to use "excess" processing power on larger boards and achieve similar results?</p>
<p> </p>
<p>     I am interested in building a version of MDV2010 that uses a kernel that is optimized for multimedia playback on lower-end PCs.  Specifically, I would like to be able to play DVDs and DIVX files on Via EPIA motherboards.  Most (if not all) of Via's motherboards have Via CPUs on them such as their C3, C7 and Nano processors, and processor speeds are usually in the 500MHz to 1.5GHz range.  Some of these boards also have MPEG2/4 hardware acceleration however, the support for this in Windows and Linux is really spotty and limited to boards with the CLE266 chipsets (a few others, but none of the newer models).</p>
<p> </p>
<p>     However, I do not want to use the stock versions of most distros as they have kernels that are made to run on most hardware and contain tons of unneeded apps and services.  I've recompiled kernels before however, I've never gotten to the point of changing major parts of the kernel configuration for optimization.</p>
<p> </p>
<p>     Can anyone provide some recommendations on how to optimize a kernel for multimedia playback on Via processors?</p>
]]></description><guid isPermaLink="false">107385</guid><pubDate>Mon, 10 Jan 2011 15:39:06 +0000</pubDate></item><item><title>How to clear a pattern match in vim?</title><link>https://mandrivausers.org/index.php?/topic/3998-how-to-clear-a-pattern-match-in-vim/</link><description><![CDATA[
<p>I think this is programming related, anyway...</p>
<p> </p>
<p>I was using vim last night to edit some programs and accidently typed in '/y'. Now the program is highlighting every y on the page. And to make things worse, this pattern matching persists beyond closing the program.</p>
<p> </p>
<p>I am a vim newbie, how do I turn this off?</p>
]]></description><guid isPermaLink="false">3998</guid><pubDate>Sun, 30 Mar 2003 18:17:35 +0000</pubDate></item><item><title>Opening tabs in konsole from script</title><link>https://mandrivausers.org/index.php?/topic/28128-opening-tabs-in-konsole-from-script/</link><description><![CDATA[
<p>Hi all!</p>
<p>Here's a hard one :-)</p>
<p>How do I start multiple tabs in one (!) konsole from a script? I looked everywhere, but didn't find a solution.</p>
<p>if i do </p>
<p></p>
<pre class="ipsCode">#!/bin/bash
konsole -e command1 &amp;
konsole -e command2 &amp;</pre>
<div></div>
<p></p>
<p>I get two seperate konsole windows, not two tabs in one window...</p>
<p> </p>
<p>And "konsole -e command1 -e command2" doesn't work, too.</p>
<p> </p>
<p>And to make the question more complex:</p>
<p>How do I start multiple tabs with some being root and some being user while only entering the root-pw once... Why? Because I got a loooong and secure root pw and when I login on our company server I want to have "tail -f" on about 5 logs as root, have one root shell to work and two user shells to work as user... :-) And it would be nice to have all those terminals as tabs in a konsole (or any other terminal that supports tabs)</p>
<p> </p>
<p>Or - if it won't work in a script: how do I spawn a new tab from the current one with a command (keeping the user! As I mentioned, I wouldn't like to re-enter my root pw that often...) </p>
<p> </p>
<p>Thanks for your help.</p>
<p> </p>
<p>Panic. (No, not you, me.)</p>
]]></description><guid isPermaLink="false">28128</guid><pubDate>Tue, 13 Sep 2005 07:14:07 +0000</pubDate></item><item><title>How to find exe files? [solved]</title><link>https://mandrivausers.org/index.php?/topic/107073-how-to-find-exe-files-solved/</link><description><![CDATA[
<p>Hello,</p>
<p> </p>
<p>I have run into a problem here:</p>
<p> </p>
<p>I got this Win32:parite virus which infects executable files. It has infected my Linux installation via Wine (didn't know a virus could spread via Wine). All of the .exe files I have are infected. Now, I know that this virus will never be able to infect any Linux executable, but the problem is that this is a server here, and it's going to infect other machines running Windows via SAMBA. So I'd like to remove all the executables and replace them with new uninfected files.</p>
<p> </p>
<p>I found the file that briught the virus in, but it has spread all over, so I need to delete all .exe files first. </p>
<p> </p>
<p>Is there a search program which is as effective as Windows' tools? I don't care if it is a command, I just need a reliable way of locating any *.exe files. I have located most of them, but I need to make sure there are no more exe's in my Linux.</p>
<p> </p>
<p>Thanks in advance, I know this is quite simple.</p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">107073</guid><pubDate>Fri, 10 Dec 2010 04:54:51 +0000</pubDate></item><item><title>Is Mandriva 2010.1 ready for GPT partition tables?</title><link>https://mandrivausers.org/index.php?/topic/107067-is-mandriva-20101-ready-for-gpt-partition-tables/</link><description><![CDATA[<p>After reading <a href="http://www.ibm.com/developerworks/linux/library/l-gpt/" rel="external nofollow">"Make the most of large drives with GPT and Linux"</a> I would like to try GPT partitioning.  Can Mandriva 2010.1 recognize and boot from GPT partitions?  Is there any Mandriva rpm which provides GPT fdisk (consisting of the gdisk and sgdisk programs)?</p>]]></description><guid isPermaLink="false">107067</guid><pubDate>Fri, 10 Dec 2010 03:38:08 +0000</pubDate></item><item><title>Is it possible to re-compile a stock kernel?</title><link>https://mandrivausers.org/index.php?/topic/106659-is-it-possible-to-re-compile-a-stock-kernel/</link><description><![CDATA[
<p>I have a APC UPS ES750. When I plug in the USB cable to my Mandirva 10.1 system a device never gets created in /dev for the ups. </p>
<p> </p>
<p>See this link for more details on the problem. </p>
<p> </p>
<p>I have determined that </p>
<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="106659" data-ipsquote-contentclass="forums_Topic"><div>I have confirmed CONFIG_DYNAMIC_USB_MIRRORS is turned on in stock kernels, at least the ones I have installed.</div></blockquote>
<p> </p>
<p>I want to know if it possible to recompile a stock kernel, and turn off CONFIG_DYNAMIC_USB_MIRRORS. I have figured out how to edit kernel source, and change this option.</p>
<p>I am not at all sure if the Nvidia drivers, and drivers for Virtual Box will load into a reconfigured kernel.</p>
<p> </p>
<p>Your thoughts on how to proceed? </p>
<p> </p>
<p>Would I be better off getting the latest kernel source, and compiling it? If I go that route, I have very little experience, so I have no idea how to handle Nvidia or V-box stuff. </p>
<p>I know if I get the latest source, the patching Mandriva does would be gone, and it would have an impact on the built in tools, not sure what else.</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">106659</guid><pubDate>Thu, 11 Nov 2010 15:59:43 +0000</pubDate></item><item><title>adding to mandriva</title><link>https://mandrivausers.org/index.php?/topic/106539-adding-to-mandriva/</link><description><![CDATA[
<p>HELP&gt;&gt;&gt;&gt;&gt;</p>
<p>I'm a complete Linux newbe and have loaded Mandriva onto an old PC. I fitted a Wifi card to the PC and dragged up a driver for it in the form of a .tar.gz file. Managed to figure out how to access the tar files but have run into a complication.... There doesn't appear to be any make command and also no compiler loaded.???????</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Everything Linux by spinynorman - welcome aboard :)]</span></p>
]]></description><guid isPermaLink="false">106539</guid><pubDate>Wed, 03 Nov 2010 16:30:58 +0000</pubDate></item><item><title>symlink to a target directory [solved]</title><link>https://mandrivausers.org/index.php?/topic/106455-symlink-to-a-target-directory-solved/</link><description><![CDATA[
<p>I'm can not create a symbolic link to a directory. I have read, and re-read the man page. I can not get it right. </p>
<p> </p>
<p>What is the trick? </p>
<p> </p>
<p>I have tried: </p>
<pre class="ipsCode">ln -s --target-directory=linux-2.6.33.7-desktop-1mnb 
ln: missing file operand
Try `ln --help' for more information.</pre>
<div></div>
<p> </p>
<p> </p>
<p>Operand is missing? O.K. so I tried, </p>
<pre class="ipsCode">ln -s --target-directory=linux-2.6.33.7-desktop-1mnb linux</pre>
<div></div>
<p> This didn't work as I expected either. It created a link called 'linux' in the target directory, not in the directory I was in. </p>
<p> </p>
<p>I need a command that will create a sym link to the target, called linux, in the directory I'm in. The old link is pointing to the wrong source for the current kernel, and I can not get vboxdrv to compile. </p>
<p> </p>
<p>Your help is always appreciated...</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">106455</guid><pubDate>Fri, 29 Oct 2010 18:32:35 +0000</pubDate></item><item><title>Launching Totem from java</title><link>https://mandrivausers.org/index.php?/topic/106143-launching-totem-from-java/</link><description><![CDATA[
<p>I posted this already in another forum but I've got no responses so maybe the Mandriva guys can help me here...</p>
<p> </p>
<p>I've got a java program, and one of the things it should be able to do is play sound files. Now, I can play some wavs directly from java, but not all wavs (UnsupportedAudioFileException) and not oggs or mp3s. I can add a bunch of libraries to let me play oggs, but I can't guarantee that people have those libraries and don't want to include them all myself. So I figure why not just launch the system's media player and pass the file over?</p>
<p> </p>
<p>So I tried using "Desktop.getDesktop().open(soundFile)" and it certainly launches Totem, but Totem just says "Location not found" and the java program spits out the following error to the console:</p>
<pre class="ipsCode">** Message: Error: Resource not found.
gstfilesrc.c(977): gst_file_src_start (): /play/source:
No such file "/home/neddie/code/test/file:/home/neddie/sounds/test.wav"</pre>
<div></div>
<p></p>
<p> </p>
<p>I can print out the file's path, and check that it exists and is readable, but somehow it seems to be passing a file:/ url (to the absolute file path) which is then getting misinterpreted as a relative url (appended to the current path) and obviously then it doesn't work.  Note that I can double-click on the file in Nautilus and Totem plays the file no problem.</p>
<p> </p>
<p>Does anyone know, is this a Totem problem, or just a misconfig of my system, or what? If I do the same thing with a text file then it opens gedit ok, if I use a jpeg it opens the picture player ok, and if I change the default wav-file handler to either mplayer or VLC then they also work.  So it must be specific to Totem I guess.</p>
<p> </p>
<p>Or does anyone know if there's a more reliable method for launching a sound player in a cross-platform way?</p>
<p> </p>
<p>And while I'm here, does anyone know an easy way to determine the <em>duration</em> of a sound clip, whether it's wav or ogg or mp3 or whatever?  Preferably without my program having to understand all the audio formats and preferably without having to read the whole file into memory?  I see that Nautilus is able to show the length of audio files on the "audio" tab, but is there any way for a java program to access that meta-information?</p>
]]></description><guid isPermaLink="false">106143</guid><pubDate>Tue, 05 Oct 2010 20:00:42 +0000</pubDate></item><item><title>reading a data file with MATLAB</title><link>https://mandrivausers.org/index.php?/topic/104979-reading-a-data-file-with-matlab/</link><description><![CDATA[
<p>Hi everyone,</p>
<p> </p>
<p>please can anyone help me with this,</p>
<p> </p>
<p>I need to read a matix which is stored in data file,</p>
<p>here is how I generate the matrix from FORTRAN</p>
<p>do i=1:500</p>
<p>    do j=1:500</p>
<p>        write(*,*) X(i,j)</p>
<p>    end do</p>
<p>end do</p>
<p>the problem I do not how to read the matrix from the data file using MATLAB,</p>
<p>i want to know how to read the data file and then stored in a matrix,</p>
<p> </p>
<p>below what I did to read the element form the data file; then stored in X(i,j)</p>
<p> </p>
<p>fid = fopen('fort.dat', 'r');</p>
<p>for i=1:500</p>
<p>    for j=1:500</p>
<p>        X(i,j) = fscanf(fid, '%g );</p>
<p>    end</p>
<p>end</p>
<p>here is the error message after run these lines..</p>
<p>[Fatal Error] :-1:-1: Premature end of file.</p>
<p>??? Error: File: PlotContour.m Line: 12 Column: 30</p>
<p>A MATLAB string constant is not terminated properly.</p>
]]></description><guid isPermaLink="false">104979</guid><pubDate>Sat, 17 Jul 2010 20:06:29 +0000</pubDate></item><item><title>Reinstall urpmi in console</title><link>https://mandrivausers.org/index.php?/topic/105435-reinstall-urpmi-in-console/</link><description><![CDATA[
<p>How does one uninstall and install urpmi?</p>
<p> </p>
<p> </p>
<p>Edited: from a console screen. I do not have a workstation, therefore I have no MCC.</p>
<p> </p>
<p>Re-edited: Actually, I am trying to urpmi.addmedia --distrib --mirrorlist. I received an error that stated "retrieval of [<a rel="">ftp://mirror...]</a> failed (md5sum mismatch) problem reading synthesis file of medium "Main"" </p>
<p> </p>
<p>I have tried many other mirror sites, but I receive the same error. I have also attempted urpmi.removemedia but it says that there is no media.</p>
<p> </p>
<p>Again, I have no workstation. I am working strictly on a console.</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Installing Mandriva by spinynorman - welcome aboard :)]</span></p>
]]></description><guid isPermaLink="false">105435</guid><pubDate>Sat, 21 Aug 2010 15:50:23 +0000</pubDate></item><item><title>Limit upload filesize dynamically for Java app?</title><link>https://mandrivausers.org/index.php?/topic/105423-limit-upload-filesize-dynamically-for-java-app/</link><description><![CDATA[
<p>Need some advice from anybody here who might be a networking/Java guru. </p>
<p> </p>
<p>I'm working on a Java app that uses Apache/Tomcat and to which the users sometimes upload files. I know that Apache can be configured with a maximum file upload size, but this application needs to allow some users to upload certain file sizes and others a different size.</p>
<p> </p>
<p>The request header contains a content-length attribute that can be used to check the request size. The problem is that by the time the servlet is processing the request and can look at this information, the entire file has been uploaded. So a user might upload a huge file and then, after waiting, be told that his file is too big and has been discarded. What I'd really like is to peek at the request header as the request first starts coming in and close the connection if the file is too big.</p>
<p> </p>
<p>I considered writing a custom Valve for Tomcat, but it looks to me like a Valve also does not process a request until the entire request has been received.</p>
<p> </p>
<p>My next thought is to customize some kind of proxy between Apache and Tomcat. Is there any way that a Java component can be put in the pipeline to sniff out request headers and parse the content-length? (I'm assuming that Apache pipes requests through to Tomcat as they come in, rather than waiting for the entire request body and then passing it on. I think that's a reasonable assumption but really don't know.)</p>
]]></description><guid isPermaLink="false">105423</guid><pubDate>Fri, 20 Aug 2010 18:42:34 +0000</pubDate></item><item><title>urpmi.addmedia error "retrieving failed"</title><link>https://mandrivausers.org/index.php?/topic/104013-urpmiaddmedia-error-retrieving-failed/</link><description><![CDATA[
<p>Occasionally I see this "retrieving failed" error when trying to use urpmi.addmedia.  When the problem occurs I usually have to wait a few days, then try again and it works.  The example below is from 2010.1 x86_64 cooker RC2, however I have had the same problem with released  versions so I don't think it's a Cooker issue.  What causes this problem and how can I fix it?</p>
<p> </p>
<p> </p>
<p></p>
<pre class="ipsCode">[root@localhost urpmi_stuff]# urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'
adding medium "Main"
adding medium "Main Updates"
adding medium "Main32"
adding medium "Main32 Updates"
adding medium "Main Testing" (ignored by default)
adding medium "Main Backports" (ignored by default)
adding medium "Main debug" (ignored by default)
adding medium "Main Updates debug" (ignored by default)
adding medium "Main Testing debug" (ignored by default)
adding medium "Main Backports debug" (ignored by default)
adding medium "Contrib"
adding medium "Contrib Updates"
adding medium "Contrib Testing" (ignored by default)
adding medium "Contrib Backports" (ignored by default)
adding medium "Contrib debug" (ignored by default)
adding medium "Contrib Updates debug" (ignored by default)
adding medium "Contrib Testing debug" (ignored by default)
adding medium "Contrib Backports debug" (ignored by default)
adding medium "Non-free" (ignored by default)
adding medium "Non-free Updates" (ignored by default)
adding medium "Non-free Testing" (ignored by default)
adding medium "Non-free Backports" (ignored by default)
adding medium "debug_non-free_release" (ignored by default)
adding medium "debug_non-free_updates" (ignored by default)
adding medium "debug_non-free_testing" (ignored by default)
adding medium "debug_non-free_backports" (ignored by default)
   $MIRRORLIST: media/main/release/media_info/20100603-165332-synthesis.hdlist.cz
...retrieving failed:        0B/s|/var/cache/urpmi/partial/20100603-165332-synthesis.hdlist.cz
...retrieving failed:        0B/s|/var/cache/urpmi/partial/20100603-165332-synthesis.hdlist.cz
...retrieving failed: aria2 failed: exited with 3
problem reading synthesis file of medium "Main"
[root@localhost urpmi_stuff]#
</pre>
<div></div>
<p></p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Installing Mandriva by spinynorman]</span></p>
]]></description><guid isPermaLink="false">104013</guid><pubDate>Fri, 04 Jun 2010 19:45:06 +0000</pubDate></item><item><title>call subroutine inside another subroutine f77</title><link>https://mandrivausers.org/index.php?/topic/94983-call-subroutine-inside-another-subroutine-f77/</link><description><![CDATA[
<p>Dear all</p>
<p> </p>
<p>Hi, can I call a subroutine inside another subroutine in Fortran 77???, also can  I call a function in a subroutine???</p>
<p> </p>
<p>Best</p>
<p>Stephani</p>
]]></description><guid isPermaLink="false">94983</guid><pubDate>Fri, 13 Nov 2009 19:11:00 +0000</pubDate></item><item><title>How to format a floppy disk in a USB floppy drive?</title><link>https://mandrivausers.org/index.php?/topic/99683-how-to-format-a-floppy-disk-in-a-usb-floppy-drive/</link><description><![CDATA[
<p>What is the procedure to format a blank floppy disk in a USB floppy drive?  I am using Mandriva 2010.0.  I have some floppy disks which have been magnetically bulk erased, so they need the low level format as well as the file system format.  I'd like to format them as msdos FAT12 using a command line.</p>
<p> </p>
<p>While searching the web I found a program called "ufiformat" which is supposed to do the job, however ufiformat does not seem to be in the Mandriva repositories.</p>
]]></description><guid isPermaLink="false">99683</guid><pubDate>Fri, 05 Feb 2010 03:42:08 +0000</pubDate></item><item><title>fbgs, fbi and fbgrab [solved]</title><link>https://mandrivausers.org/index.php?/topic/104697-fbgs-fbi-and-fbgrab-solved/</link><description><![CDATA[
<p>Hello, I'm new to the world of linux and just found out about these console programs.</p>
<p></p>
<pre class="ipsCode">fbi - open images in console
fbgrab - take a snapshot 
fbgs - open *.pdf documents in console</pre>
<div></div>
<p></p>
<p>So i tried them out and none works as they should:</p>
<p></p>
<pre class="ipsCode">[paullik@localhost ~]$ fbi pic.png
using "DejaVu Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf
ioctl VT_GETSTATE: Invalid argument (not a linux console?)
[paullik@localhost ~]$ fbgs document.pdf

### rendering pages, please wait ... ###

GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
Loading NimbusSanL-Bold font from %rom%Resource/Font/NimbusSanL-Bold... 2770384 1077304 9361800 8057179 3 done.
using "DejaVu Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf
ioctl VT_GETSTATE: Invalid argument (not a linux console?)
[paullik@localhost ~]$ fbgrab con.png
Converting image from 16
Now writing PNG file
</pre>
<div></div>
<p></p>
<p> </p>
<p>So in gwenview I can see the pic.png, in Okular I can read document.pdf -but you can see what errors i get when i try to open them in console.</p>
<p>And about fbgrab, it grabs my console but the image looks like that:</p>
<p><img src="http://www.upload3r.com/serve/030710/1278146320.png" alt="1278146320.png" /></p>
<p>Its the same if its *.jpg or whatever...</p>
<p> </p>
<p>I'm running Mandriva 2009.1 Spring, x86.</p>
<p>MB:Asus P5VD2-MX SE</p>
<p>Video: Ati X1600 Series</p>
<p></p>
<pre class="ipsCode">[paullik@localhost ~]$ uname -a
Linux localhost 2.6.29.1-desktop-4mnb #1 SMP Mon Apr 20 18:57:56 EDT 2009 i686 Intel(R) Pentium(R) D CPU 3.00GHz GNU/Linux</pre>
<div></div>
<p></p>
<p>Thanks in advance!</p>
<p> </p>
<p>PS:</p>
<p>I'm not a native English speaker, so excuse my mistakes!</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman - welcome aboard :)]</span></p>
<p><span style="font-size:8px;">Sorry, I tought this area is for advanced users and I didn't read the rest of the categories.-PauLLiK</span></p>
]]></description><guid isPermaLink="false">104697</guid><pubDate>Sat, 03 Jul 2010 08:45:54 +0000</pubDate></item><item><title>"xine is not allowed to save from this source."</title><link>https://mandrivausers.org/index.php?/topic/104667-xine-is-not-allowed-to-save-from-this-source/</link><description><![CDATA[
<p>While trying to rip a DVD to disk using this command</p>
<pre class="ipsCode">xine dvd://1'#save:dvd-video'</pre>
<div></div>
<p>I encountered the following error message:</p>
<p> </p>
<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="104667" data-ipsquote-contentclass="forums_Topic"><div>Security message: "xine is not allowed to save from this source. (possibly copyrighted material?)"</div></blockquote>
<p> </p>
<p>I tried two (not copyrighted) DVDs but encountered the same error each time.</p>
<p> </p>
<p>Is there a way to rip a DVD using xine, maybe a PLF version of xine?</p>
]]></description><guid isPermaLink="false">104667</guid><pubDate>Wed, 30 Jun 2010 23:17:07 +0000</pubDate></item><item><title>mdv2010.0 chown question (solved)</title><link>https://mandrivausers.org/index.php?/topic/104523-mdv20100-chown-question-solved/</link><description><![CDATA[
<p>hi,</p>
<p> </p>
<p>(sorry if this is in the wrong section, move at your will)</p>
<p> </p>
<p>this isn't really a problem - at least i don't think it is, but its an annoyance</p>
<p> </p>
<p>i'm running mandriva 2010.0 one, fully updated and working as it should,</p>
<p> </p>
<p>the annoyance is i have a fixed ntfs storage drive which is owned by root, when i transfer file to it i get a message saying</p>
<p> </p>
<p>"could not change permissions for /media/sdb2/any.file"</p>
<p> </p>
<p>i have to click 'ok' for the message to go, its a bit annoying if i'm transfering, say, 10 files,</p>
<p> </p>
<p>now as an experiment i opened konqueror as root and changed the owner manualy to a folder that is on sdb2 - wouldn't change,</p>
<p>so i typed in a root terminal </p>
<pre class="ipsCode">chown -r dave /media/sdb2/foldername</pre>
<div></div>
<p> still no change,</p>
<p> </p>
<p>do i need to change ownership of the whole partition ?, can i do it editing fstab ?</p>
<p> </p>
<p>here is the line in my fstab</p>
<p> </p>
<p>UUID=2A1C807A1C8042B5 /media/sdb2 ntfs-3g defaults,umask=000 0 0</p>
<p> </p>
<p>i don't know whether this will help</p>
<p> </p>
<p></p>
<pre class="ipsCode">[dave@localhost ~]$ cd /media/sdb2
[dave@localhost sdb2]$ ls -l
total 10456
drwxrwxrwx 1 root root     4096 2010-06-20 19:41
drwxrwxrwx 1 root root    16384 2010-06-19 00:04
[dave@localhost sdb2]$
</pre>
<div></div>
<p></p>
<p> </p>
<p>(i've removed file names and file entries as they all say drwxrwxrwx 1 root root)</p>
<p> </p>
<p>thanks for any help</p>
]]></description><guid isPermaLink="false">104523</guid><pubDate>Mon, 21 Jun 2010 20:43:00 +0000</pubDate></item><item><title>How to activate 'Non-free' from command line?</title><link>https://mandrivausers.org/index.php?/topic/103973-how-to-activate-non-free-from-command-line/</link><description><![CDATA[
<p>After installing the 2010.0 free version and adding some repositories using the following lines</p>
<p> </p>
<p>urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'</p>
<p>urpmi.addmedia --distrib --mirrorlist 'http://plf.zarb.org/mirrors/$RELEASE.$ARCH.list'</p>
<p> </p>
<p>I find that 'Non-free' and 'Non-free Updates' are not active.</p>
<p> </p>
<p>How can I activate the 'Non-free' and 'Non-free Updates' repositories from command line?</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Installing Mandriva by spinynorman]</span></p>
]]></description><guid isPermaLink="false">103973</guid><pubDate>Wed, 02 Jun 2010 20:59:34 +0000</pubDate></item><item><title>Error compiling C++ program with C library</title><link>https://mandrivausers.org/index.php?/topic/103173-error-compiling-c-program-with-c-library/</link><description><![CDATA[
<p>I've created 3 files: swap.h and swap.c</p>
<p>then make static library from it</p>
<p> </p>
<p></p>
<pre class="ipsCode"> 
gcc -Wall -c swap.c
ar -cvq libswap.a swap.o
</pre>
<div></div>
<p></p>
<p>Then I write 2 program to test this library: test_swap.c and test_swap.cpp</p>
<p>I compile</p>
<p></p>
<pre class="ipsCode">
$ gcc -Wall -o testc test_swap.c libswap.a
$ ./testc
a = 100 | b = 1
$ g++ -Wall -o testcpp test_swap.cpp libswap.a
/home/user/tmp/cc2Lcf8G.o: In function `main':
test_swap.cpp:(.text+0x2b): undefined reference to `swap_int(int*, int*)'
collect2: ld returned 1 exit status
</pre>
<div></div>
<p></p>
<p> </p>
<p>What's wrong with this in C++?</p>
<p> </p>
<p>Here the source code</p>
<p> </p>
<p>+ swap.h</p>
<p></p>
<pre class="ipsCode">
#ifndef __SWAP_H__
#define __SWAP_H__

void swap_int( int *, int * );

#endif // __SWAP_H__
</pre>
<div></div>
<p></p>
<p>+ swap.c</p>
<p></p>
<pre class="ipsCode">
#include "swap.h"

void swap_int( int *a, int *b )
{
int tmp = *a; *a = *b; *b = tmp;
}
</pre>
<div></div>
<p></p>
<p>+ test_swap.c</p>
<p></p>
<pre class="ipsCode">
#include &lt;stdio.h&gt;
#include "swap.h"

int main ( )
{
int a = 1, b = 100;
swap_int( &amp;a, &amp;b );

printf("a = %d | b = %d\n", a, b );

return 0;
}
</pre>
<div></div>
<p></p>
<p>+ test_swap.cpp</p>
<p></p>
<pre class="ipsCode">
#include &lt;iostream&gt;
#include "swap.h"

int main( )
{
int a = 1, b = 100;
swap_int( &amp;a, &amp;b );

std::cout &lt;&lt; "a = " &lt;&lt; a
		  &lt;&lt; "b = " &lt;&lt; b
		  &lt;&lt; std::endl;

return 0;
}

</pre>
<div></div>
<p></p>
]]></description><guid isPermaLink="false">103173</guid><pubDate>Sun, 09 May 2010 02:54:15 +0000</pubDate></item><item><title>how to setting for my own header file and library</title><link>https://mandrivausers.org/index.php?/topic/103153-how-to-setting-for-my-own-header-file-and-library/</link><description><![CDATA[
<p>I have 3 files: main.c, mylib.h, mylib.c</p>
<p> </p>
<p>Now I want to put mylib.h into : /usr/include/mydir/mylib.h</p>
<p>And I create a static library: libmylib.a, and put into the folder: /usr/lib/mydir/libmylib.a</p>
<p> </p>
<p>Then I compile: $ gcc -o main main.c</p>
<p>Then I got linking error </p>
<p></p>
<pre class="ipsCode">main.c:(.text+0x3e): undefined reference to `extract_v1'
main.c:(.text+0x7b): undefined reference to `modify_v1'
collect2: ld returned 1 exit status
</pre>
<div></div>
<p></p>
<p>So I try with -l options: $ gcc -o main main.c -lmylib</p>
<p>I still got error</p>
<p></p>
<pre class="ipsCode">
/usr/bin/ld: cannot find -lmylib
collect2: ld returned 1 exit status
</pre>
<div></div>
<p></p>
<p> </p>
<p>Any idea about this?</p>
<p> </p>
<p>Also, I want to ask about: how to create my own header and library to put into /usr/include/mylib/ and /usr/lib/mylib/, so when I use function in my program, the compiler will automatically link to library.</p>
<p>It's like when you #include &lt;stdio.h&gt;, and you compile: $ gcc -o program program.c, you don't need to specify any linking folder or library.</p>
]]></description><guid isPermaLink="false">103153</guid><pubDate>Sat, 08 May 2010 05:21:22 +0000</pubDate></item><item><title>Changes to bashrc file</title><link>https://mandrivausers.org/index.php?/topic/101773-changes-to-bashrc-file/</link><description><![CDATA[
<p>Basically, I modified my bashrc file without backing it up first, and, after I modified it, none of my commands like ls will do anything. </p>
<p> </p>
<p>I added the following code to the startup file (~/.bashrc):</p>
<p> </p>
<p>    PATH=/usr/local/jdk1.6.0/bin:</p>
<p>    export PATH</p>
<p> </p>
<p>I just typed in this code at the end of the file, saved it, and logged out and back in. When I logged back in, no commands like ls or man will work anymore.. Does anyone know a solution to this?</p>
<p> </p>
<p>Thanks</p>
]]></description><guid isPermaLink="false">101773</guid><pubDate>Thu, 01 Apr 2010 17:57:37 +0000</pubDate></item><item><title>how to list all processes using 10% CPU?</title><link>https://mandrivausers.org/index.php?/topic/102583-how-to-list-all-processes-using-10-cpu/</link><description><![CDATA[
<p>How can I write a script that can list all processes use over 10%CPU time, process id and name are written into a text file as a report?</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Other Distributions by spinynorman]</span></p>
]]></description><guid isPermaLink="false">102583</guid><pubDate>Sat, 24 Apr 2010 04:23:54 +0000</pubDate></item><item><title>No Sudo-No kdesu or gksu [solved]</title><link>https://mandrivausers.org/index.php?/topic/102503-no-sudo-no-kdesu-or-gksu-solved/</link><description><![CDATA[
<p>I cant find the /etc/sudoers file on Mandriva like the old days &amp; I cant use kdesu or gksu outside of KDE .</p>
<p>When I try to use kdesu to load say Dolphin in ICEWM or WMaker etc ,I get error "kdesu: command not found".</p>
<p>Where can I possibly fix any of these as at least for using Sudo I could have gone to the etc/sudoers file but its not there that I can see .</p>
<p>Thanks AnyOne</p>
]]></description><guid isPermaLink="false">102503</guid><pubDate>Wed, 21 Apr 2010 04:38:24 +0000</pubDate></item><item><title>Missing Module.symvers from Kernel Source [solved]</title><link>https://mandrivausers.org/index.php?/topic/22893-missing-modulesymvers-from-kernel-source-solved/</link><description><![CDATA[
<p>I am trying to do a "make all" for my "linux-wlan-ng-0.2.1-pre26" [for Linksys wireless USB network adapter] to build the modules and programs, but it gives me this:</p>
<p> </p>
<p>---------------------------------------------------------------------------------------------------------------------</p>
<p>set -e; for d in src doc man etc; do make -C $d ; done</p>
<p>make[1]: Entering directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src'</p>
<p>set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make WLAN_SRC=/home/ryan/linux-wlan-ng-0.2.1-pre26/src/ -C $d ; done</p>
<p>make[2]: Entering directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/mkmeta'</p>
<p>mkdir -p obj</p>
<p>make[2]: Leaving directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/mkmeta'</p>
<p>make[2]: Entering directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211'</p>
<p>if test ! -d /home/ryan/linux-wlan-ng-0.2.1-pre26/src//.tmp_versions; then \</p>
<p>        if test -d /usr/src/linux/.tmp_versions; then \</p>
<p>                cp -rf /usr/src/linux/.tmp_versions /home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211/../ ; \</p>
<p>        fi ; \</p>
<p>fi</p>
<p>if test ! -e /home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211/Module.symvers ; then \</p>
<p>        cp /usr/src/linux/Module.symvers /home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211/../ ; \</p>
<p>fi</p>
<p>cp: cannot stat `/usr/src/linux/Module.symvers': No such file or directory</p>
<p>make[2]: *** [default] Error 1</p>
<p>make[2]: Leaving directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211'</p>
<p>make[1]: *** [all] Error 2</p>
<p>make[1]: Leaving directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src'</p>
<p>make: *** [all] Error 2</p>
<p>------------------------------------------------------------------------------------------------------------------------------------</p>
<p> </p>
<p>So it is saying that "Modules.symvers" is missing from /usr/src/linux. </p>
<p>I tried looking for that file in /lib/modules/2.6.8.1-12mdk/build  but it isn't there either.</p>
<p> </p>
<p>I think I might have accidentally deleted it when I did "make mrproper" in /usr/src/linux.</p>
<p> </p>
<p>Anyone know how I can create that file, or what I should do?</p>
<p> </p>
<p>Thanks,</p>
<p>netburn</p>
<p> </p>
<p>OS: Mandrake 10.1 Community</p>
<p>Kernel: 2.6.8.1-12mdk</p>
]]></description><guid isPermaLink="false">22893</guid><pubDate>Sun, 13 Feb 2005 07:14:48 +0000</pubDate></item><item><title>Reinstall grub [solved]</title><link>https://mandrivausers.org/index.php?/topic/101673-reinstall-grub-solved/</link><description><![CDATA[
<p>Hello, I have recently reinstalled Windows XP and that bastard overran my grub bootloader as usual.</p>
<p> </p>
<p>I tried to reinstall grub from a live cd, but I get the following error: "Bad file or directory type"</p>
<p> </p>
<p>What I typed:</p>
<p></p>
<pre class="ipsCode">grub&gt; root (hd0,4)
grub&gt; setup(hd0)</pre>
<div></div>
<p></p>
<p>What I got:</p>
<p></p>
<pre class="ipsCode">Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1"exists... no

Error 15: File not found</pre>
<div></div>
<p></p>
<p> </p>
<p>find command does not find it either and I don't see any stage1 in /boot or /boot/grub with any file manager.</p>
<p>/boot/grub only contains menu.lst.example or something like that.</p>
<p> </p>
<p>hd0,4 (sda5) is the / partition, but it is a logical partition. Could that be the problem?</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">101673</guid><pubDate>Mon, 29 Mar 2010 18:07:30 +0000</pubDate></item><item><title>Wbar in Mandriva, with summary</title><link>https://mandrivausers.org/index.php?/topic/87293-wbar-in-mandriva-with-summary/</link><description><![CDATA[
<p>EDIT:  <a href="https://mandrivausers.org/index.php?showtopic=87293&amp;view=findpost&amp;p=627163" rel="external nofollow">The steps for installing Wbar in the Mandriva GNOME desktop are summarized here</a>.</p>
<p> </p>
<p>From reading the Wiki... <a href="http://wiki.mandriva.com/en/Docs/Basic_tasks/Installing_and_removing_software/Installing_from_source" rel="external nofollow">  I am trying to install from source.</a></p>
<p> </p>
<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="87293" data-ipsquote-contentclass="forums_Topic"><div>Step 1<p> </p>
<p>For most applications, step 1 is accomplished by running the command ./configure in the top level of the source code directory.</p>
</div></blockquote>
<p> </p>
<p>I'm running mandriva 2009.Spring but when I run the ./configure I get "bash: configure: command not found"</p>
<p> </p>
<p>What am I doing wrong?</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman]</span></p>
]]></description><guid isPermaLink="false">87293</guid><pubDate>Tue, 23 Jun 2009 11:14:51 +0000</pubDate></item><item><title>Mandriva 2010.0 pwp g77 install</title><link>https://mandrivausers.org/index.php?/topic/101003-mandriva-20100-pwp-g77-install/</link><description><![CDATA[
<p>fard792@gmail.com</p>
<p> </p>
<p>Hi everyone. I want to install g77 compiler in Mandriva 2010.0 pwp.</p>
<p>but I cant find the package g77 which is supposed to contain it. Is g77 installed by other package under Mandriva 2010.0,</p>
<p>how can i install g77 ?</p>
<p> </p>
<p>please send me to : fard792@gmail.com</p>
<p>Thanks in advance for the support,</p>
<p> </p>
<p> </p>
<p>2010/03/05</p>
<p>-----------------------</p>
<p> </p>
<p><span style="color:#FF0000;">[root@localhost Desktop]# rpm -qa | grep gcc</span></p>
<p>manbo-mandriva-files-gcc-gfortran-4.4.1-1mnb2</p>
<p>gcc-4.4.1-4mnb2</p>
<p>gcc-gfortran-4.4.1-4mnb2</p>
<p>gcc-c++-4.4.1-4mnb2</p>
<p>manbo-mandriva-files-gcc-java-4.3.2-1mnb2</p>
<p>manbo-mandriva-files-gcc-c++-4.4.1-1mnb2</p>
<p>manbo-mandriva-files-gcc-4.4.1-1mnb2</p>
<p>opera-10.10-4742.gcc4.shared.qt3</p>
<p>libgcc1-4.4.1-4mnb2</p>
<p>gcc-cpp-4.4.1-4mnb2</p>
<p> </p>
<p>-----------------------</p>
<p>but :</p>
<p><span style="color:#FF0000;">[root@localhost Desktop]# rpm -qa | grep g77</span></p>
<p>***    no result !   ***</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Software by spinynorman - welcome aboard :)]</span></p>
]]></description><guid isPermaLink="false">101003</guid><pubDate>Sat, 06 Mar 2010 06:46:27 +0000</pubDate></item><item><title>USB device fails to load kernel module.</title><link>https://mandrivausers.org/index.php?/topic/100483-usb-device-fails-to-load-kernel-module/</link><description><![CDATA[
<p>When I connect my OnAir USB TV receiver I get the following 6 lines in dmesg.</p>
<p> </p>
<p></p>
<pre class="ipsCode">usb 2-3.3: new high speed USB device using ehci_hcd and address 3
usb 2-3.3: New USB device found, idVendor=11ba, idProduct=1101
usb 2-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-3.3: Product: USB HDTV-GT(1.1)
usb 2-3.3: Manufacturer: OnAirSolution
usb 2-3.3: configuration #1 chosen from 1 choice</pre>
<div></div>
<p></p>
<p> </p>
<p>A kernel module is supposed to load after those 6 lines from the USB stack, problem is it's not loading.  The module that's supposed to load is</p>
<p>/lib/modules/2.6.31.12-desktop586-1mnb/kernel/drivers/media/video/pvrusb2/pvrusb2.ko.gz</p>
<p> </p>
<p>Where should I begin to debug this problem?</p>
<p> </p>
<p>By the way, are Mandriva's kernel modules normally in .gz form when on disk?</p>
]]></description><guid isPermaLink="false">100483</guid><pubDate>Wed, 24 Feb 2010 16:04:58 +0000</pubDate></item><item><title>what does sh-4.0# mean?</title><link>https://mandrivausers.org/index.php?/topic/100373-what-does-sh-40-mean/</link><description><![CDATA[
<p>Hi</p>
<p> </p>
<p>I am using Mandriva 2010 and have made the error of trying to switch from KDM to GDM, now when I boot up in Mandriva I just get the little blue circle going around and around and around. When I try safe mode it loads until it says single user and then the following comes up sh-4.0#. I know I have done something pretty stupid, how do I get my system back to normal? I have tried putting in startx but that gives me a red screen with the little blue circle going round and around! There is probably a very simple answer, as there always is.</p>
<p> </p>
<p>Confused</p>
]]></description><guid isPermaLink="false">100373</guid><pubDate>Mon, 22 Feb 2010 00:20:31 +0000</pubDate></item><item><title>samba users</title><link>https://mandrivausers.org/index.php?/topic/99603-samba-users/</link><description><![CDATA[
<p>Hi folks ...</p>
<p> </p>
<p>I would like to know how to find out the users, who are currently usining (locking) the shared object files. Since smbstatus -L or smbstatus -S dont show me the full info of the users openning the files. Any clue. Thanks in advance.</p>
<p> </p>
<p>Fahd</p>
<p>100202</p>
<p> </p>
<p> </p>
<p><span style="font-size:8px;">[moved from Everything Linux by spinynorman]</span></p>
]]></description><guid isPermaLink="false">99603</guid><pubDate>Tue, 02 Feb 2010 14:59:46 +0000</pubDate></item></channel></rss>
