tag:blogger.com,1999:blog-68686148227162260402024-02-08T21:30:24.334+02:00CochleasA lot of time is spent on solving problems regarding software conflicts. Here you can find useful advice on solving them quickly.www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-6868614822716226040.post-41453153497914421192011-04-13T16:30:00.008+03:002011-04-13T16:37:13.661+03:00eth0 link up > Fedora not booting problemAfter upgrading to newer kernel with yum update kernel it might happen that your fedora will not boot, with error eth0: link up. <div><br /><div>1. In this case go to telinit 3 mode by pressing <b><span class="Apple-style-span"><span class="Apple-style-span"><span style="color:#33ff33;">Ctrl+Alt+F2</span></span></span></b> and login as root</div></div><div>2. <b><span class="Apple-style-span"><span style="color:#33ff33;">cd /etc/X11</span></span></b></div><div>3. <b><span class="Apple-style-span"><span style="color:#33ff33;">rm xorg.conf</span></span></b></div><div>4. <b><span class="Apple-style-span"><span style="color:#33ff33;">yum update kernel kernel-devel</span></span></b></div><div>5. <b><span class="Apple-style-span"><span style="color:#33ff33;">sh NVIDIA* -k $(uname -r)</span></span></b></div><div>6. <b><span class="Apple-style-span"><span style="color:#33ff33;">shutdown -r now</span></span></b></div><div><br /></div><div>and it should start normally again...</div>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-17749753706500765942010-10-18T11:40:00.004+03:002010-10-18T11:50:14.931+03:00Install Windows fonts on linux FedoraIn order to install Windows fonts to linux do the following:<br /><br />1. Copy all the windows fonts in diffent directories e.g. arial, calibri, candara, timesnewroman<br /><p>2. Open terminal and login as root: su<br /></p>3. Go to path where the folders are placed and make: <span style="color:#33ff33;"><strong>cp -r arial/ calibri/ candara/ timesnewroman/ /usr/share/fonts/</strong></span><p>4. Make all the fonts available to system: <strong><span style="color:#33ff33;">chmod 0775 -R arial/ calibri/ candara/ timesnewroman/</span></strong></p>5. Cache all the fonts on system: <span style="color:#33ff33;"><strong>fc-cache arial/ calibri/ candara/ timesnewroman/</strong></span>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com1tag:blogger.com,1999:blog-6868614822716226040.post-91096592162535379842010-06-22T11:01:00.002+03:002010-06-22T11:03:36.872+03:00DISPLAY ... xhost...<p>In order to set the display of another pc into yours do the following:</p><p>1. <span style="color:#33ff33;"><strong>xhost +</strong></span> ... in the pc that you are already logged in...</p><p>2. <strong><span style="color:#33ff33;">slogin user@machine_target</span></strong></p><p>3. <span style="color:#33ff33;"><strong>s</strong><strong>etenv DISPLAY machine_source:0.0</strong></span></p>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-67640627672124480902010-06-11T09:27:00.003+03:002010-06-11T09:29:24.178+03:00Find Strings in Files...<p><strong><span style="color:#33ff33;">grep "STRING" *.file</span></strong></p><p><strong><span style="color:#33ff33;">grep "STRING" */*.file</span></strong> to search in top level</p><p>(equivalent command for dos is <em><strong><span style="color:#33ff33;">findstr</span></strong></em>)</p>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-53175091997754106142010-06-10T17:52:00.003+03:002010-06-10T17:56:25.991+03:00Thunderbird open links in Firefox, while Opera is the default browser...<p>The first thing to do is add the lines:</p><p><strong><span style="color:#33ccff;">network.protocol-handler.app.http=/usr/bin/opera</span></strong></p><p><strong><span style="color:#33ccff;">network.protocol-handler.app.https=/usr/bin/opera</span></strong></p><p><span style="color:#cccccc;">and then turn this to true:</span></p><p><strong><span style="color:#33ccff;">network.protocol-handler.warn-external.http=true</span></strong></p><p><span style="color:#cccccc;">restart thunderbird and try to open a link... now thunderbird asks about the browser...</span><strong><span style="color:#33ff33;"><br /></span></strong></p><p><span style="color:#cccccc;">set </span><strong><span style="color:#33ccff;">/usr/bin/opera</span></strong><span style="color:#cccccc;"> and check "remember"...</span><span style="color:#000000;"><br /></span></p>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com2tag:blogger.com,1999:blog-6868614822716226040.post-65309584345405753852010-06-03T10:39:00.004+03:002010-06-04T07:59:25.666+03:00Open Office problems...<p>In Fedora 13 after installing oo3 it is not possible to start it:</p><p>so you get the message...</p><p><em><span style="color:#ff0000;">/opt/openoffice.org3/program/soffice.bin: error while loading shared libraries: libuno_sal.so.3: cannot open shared object file: No such file or directory</span></em></p><p>so the first thing to do is:</p><p><strong><span style="color:#33ff33;">cd /opt/openoffice.org/basis3.2/</span></strong></p><p><strong><span style="color:#33ff33;">ln -s /usr/lib/openoffice.org/ure/ ure</span></strong></p><p><strong><span style="color:#33ff33;">ln -s /usr/lib/openoffice.org/ure/ ure-link</span></strong></p><p>so now if you try again you get this:</p><p><em><span style="color:#ff0000;">libfreebl3.so: version `NSSRAWHASH_3.12.3' not found (required by /lib/libcrypt.so.1)</span></em></p><p>so now:</p><p><strong><span style="color:#33ff33;">cd /opt/openoffice.org/basis3.2/program/</span></strong></p><p><strong><span style="color:#33ff33;">mv libfreebl3.so libfreebl3.so_old</span></strong></p><p>in case you have problems with the libraries do this:</p><p><strong><span style="color:#33ff33;">cd /opt/openoffice.org3/program/</span></strong></p><p><strong><span style="color:#33ff33;">ldd soffice.bin</span></strong></p>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-7740201277256387262010-06-03T08:53:00.005+03:002010-06-04T09:21:22.246+03:00Tar Zip things...<p><span style="color:#33ff33;"><strong>tar -cvf file.tar file1 file2 ...</strong></span></p><p><span style="color:#33ff33;"><strong>gzip -9 file.tar</strong></span></p><p><span style="color:#33ff33;"><strong>split -b 20M (or 3GB) -d file.tar.gz</strong></span></p><p><span style="color:#33ff33;"><strong>cat x0* > file.tar.gz</strong></span></p><p><span style="color:#33ff33;"><strong>tar zxvf file.tar.gz</strong></span></p>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-23922394373278435362010-06-03T08:52:00.003+03:002010-06-04T09:21:32.334+03:00Size of things...<span style="color:#33ff33;"><strong>du -sh /folder</strong></span>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-28713025677279591232010-06-03T08:51:00.007+03:002010-06-04T09:22:15.561+03:00Find things:<span style="color:#33ff33;"><strong>find $HOME -name '*.jpg*'</strong></span>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-23522447837607854802010-06-03T08:51:00.006+03:002010-06-04T09:22:05.558+03:00Server Copy...<span style="color:#33ff33;"><strong>scp -r folder user@computername:/home/user/</strong></span>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-50792002056697129762010-06-03T08:20:00.006+03:002010-10-20T15:11:21.875+03:00Formatting - Installing Fedora 13 KDE from live cd...<p>First of all take backup of all your /home directory or any important data... So after you burn the cd reboot and start from there. Take care to preview the partition before to continue and make sure that your /root directory has a size of 5GB and the rest (big) is for your /home..<br />After the installation is complete open a terminal..<br /><br />1. <strong><span style="color: rgb(51, 255, 51);">yum install kernel-devel gcc</span></strong><br />2. <strong><span style="color: rgb(51, 255, 51);">yum update</span></strong><br />3. <strong><span style="color: rgb(51, 255, 51);">yum install firefox thunderbird gimp vim xbindkeys java</span></strong><br /><br />you can download opera, skype, acrobat, flash, openoffice and prefer the *.rpm files...it is easier.. so download then in a folder and then apply to all :<br /><br /><strong><span style="color: rgb(51, 255, 51);">chmod u+x *</span></strong><br /><br />and then install each one with the command:<br /><br /><strong><span style="color: rgb(51, 255, 51);">rpm -iUvh *.rpm</span></strong><br /><br />or just:<br /><br /><strong><span style="color: rgb(51, 255, 51);">./*.bin</span></strong><br /><br />if it is a bin file...<br /><br />4. Install vlc using the commands:<br /><strong><br /></strong><span style="color: rgb(51, 255, 51);"><strong>rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm<br />yum install vlc<br />yum install mozilla-vlc</strong></span><br /><br />5. Install VirtualBox using the command:<br /><br /><strong><span style="color: rgb(51, 255, 51);">yum install VirtualBox-OSE.i686</span></strong></p><p>and after the installation is complete do the following:</p><p>1. <strong><span style="color: rgb(51, 255, 51);">vi /etc/modprobe.d/blacklist.conf</span></strong><br />2. ++ lines:</p><p> <strong> </strong><span style="color: rgb(51, 204, 255);"><strong><em>#kvm<br /> blacklist kvm_intel<br /> blacklist kvm</em></strong></span><br /><br />then reboot and setup the virtual os.<br /><br />6. THE MOST IMPORTANT PART: INSTALL NVIDIA driver and disable the "NOUVEAU" driver...<br /><br /> 1. After logging in Fedora press <strong><span style="color: rgb(51, 255, 51);">Ctrl+Alt+F2</span></strong> to enter terminal mode.<br /> 2. <strong><span style="color: rgb(51, 255, 51);">telinit 3</span></strong><br /> <span style="color: rgb(51, 255, 51);"> <strong>sh NVIDIA* -k $(uname -r)</strong></span><br /> * the driver that you have downloaded from NVIDIA. The -k $(uname -r) is needed if you get the message that fedora can not load the kernel nvidia.ko<br /> 3. Press<strong> <span style="color: rgb(51, 255, 51);">Yes</span></strong> when being asked about creating the xorg.conf file.<br /> 4. vi /etc/modprobe.d/blacklist.conf<br /> ++ line:<br /> <strong> <em><span style="color: rgb(51, 204, 255);">blacklist nouveau</span></em></strong><br /> 5. <strong><span style="color: rgb(51, 255, 51);">vi /boot/grub/grub.conf</span></strong><br /> ++ at the end of the kernel line:<br /> <strong><em> <span style="color: rgb(51, 204, 255);">rdblacklist=nouveau vga=0x318</span></em></strong><br /> 6. <strong><span style="color: rgb(51, 255, 51);">yum remove '*nouveau*'</span></strong><br /> 7. reboot ... now fedora will start with your nvidia driver....<br /><br />7. Download java from the sun site and install. Type "is Java enabled" in firefox and you will find sites for testing this. If not then:<br /><br /> 1. <strong><span style="color: rgb(51, 255, 51);">cd /usr/lib/mozilla/plugins</span></strong><br /> 2. <strong><span style="color: rgb(51, 255, 51);">ln -s /usr/java/jre*..../lib/i386/libnpjp2.so .</span></strong><br /> * this is the version that you have previously installed.<br /><br />8. Mouse with many buttons configuration:<br /> Download the <strong>xautomation</strong> package... I prefer the *.rpm and install it. It install the xte software simulating mouse clicks. As user apply the command:<br /><br /><strong> <span style="color: rgb(51, 255, 51);"> xbindkeys --defaults > /home/user/.xbindkeysrc</span></strong></p><p align="left">A default file is created and now edit it and add the lines:<br /><br /><span style="color: rgb(51, 204, 255);"><em><strong>"xbindkeys_show"<br />control+shift + q<br /><br /># delele on right side mouse button<br />"xte 'key Delete'"<br />b:9<br /><br /># escape on left side mouse button<br />"xte 'key Escape'"<br />b:8</strong></em></span><br /><br />Comment out any lines if not needed.<br />Finally:<br /><br /><strong><span style="color: rgb(51, 255, 51);">vi /home/user/.bash_profile</span></strong><br /><br />and add the line:<br /><br /><em><strong><span style="color: rgb(51, 204, 255);">/usr/bin/xbindkeys</span></strong></em><br /><br />in order to load the application in each boot.<br /><br />9. The rest part is easy as you can configure all your setting from the system settings of fedora...<br /></p>www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-13502213915201634662010-02-04T16:41:00.000+02:002010-02-04T16:41:13.601+02:00Qt4 Unable to start gdb 'gdb': No such file or directorySet in Tools > Options > Debugger > Gdb > Gdb location: /usr/bin/gdb and then F5 will work fine!www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0tag:blogger.com,1999:blog-6868614822716226040.post-73394313555698006062010-02-04T15:13:00.003+02:002010-02-04T16:41:28.611+02:00Qt4 error exit code 2Set in Tools > Options > CMake > CMake executable : /usr/bin/qmake-Qt4<br />
and then press the play button. Your project should be compiled now.www.dimitrelim.grhttp://www.blogger.com/profile/06078983048135137136noreply@blogger.com0