Showing posts with label fedora. Show all posts
Showing posts with label fedora. Show all posts

Monday, September 10, 2012

Fedora: Skype Issue: libXv.so.1: cannot open


If you try to run skype and get the following error
skype: error while loading shared libraries: libXv.so.1: cannot open

$>sudo yum install alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686

Wednesday, August 29, 2012

Fedora: yum-complete-transaction taking forever?

It is possible that it may be in an infinite loop or such. Cleanup your yum transaction as follows:

yum install yum-utils
yum clean all
/usr/sbin/yum-complete-transaction --cleanup-only

Wednesday, August 15, 2012

Fedora: Remove old kernels

Update your system
$ sudo  yum -y update --skip-broken

Now remove old kernels
$ sudo package-cleanup --oldkernels -y

Friday, March 02, 2012

TIP: Fedora: No packages marked for update

Causes:
1) Your fedora distribution may have been EOL.  No more packages are available. You need to upgrade your version.    OR
2) Your yum cache is out of date and needs a refresh.

$ sudo yum clean expire-cache
$ sudo yum update

Thursday, February 09, 2012

TIP:Lenovo Thinkpad W520 Fedora 16 Internal Mic Not Working

Solution as mentioned in
https://bugzilla.redhat.com/show_bug.cgi?id=752610 is


$ sudo vi /etc/modprobe.d/dist-alsa.conf

Add as the first line.
options snd-hda-intel index=0 model=thinkpad

Then reboot and you should be good to go.


If you are keen on seeing what my file looks like:

# ALSA Sound Support
#
# We want to ensure that snd-seq is always loaded for those who want to use
# the sequencer interface, but we can't do this automatically through udev # at the moment...so we have this rule (just for the moment).
#
# Remove the following line if you don't want the sequencer.

options snd-hda-intel index=0 model=thinkpad

install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-seq

Wednesday, January 25, 2012

TIP: Passphraseless SSH on Fedora

If you are trying to set up passphraseless SSH on Fedora, then remember that the permissions on the file authorized_keys should be 644 ====================================================== .ssh$ chmod 644 authorized_keys anil@sadbhav:~/.ssh$ ssh localhost Last login: Sun Jan 22 21:42:06 2012 from localhost anil@sadbhav:~$ exit logout Connection to localhost closed. anil@sadbhav:~/.ssh$ chmod 644 known_hosts ================

Wednesday, June 01, 2011

Disk Cleanup : Linux Distribution

Lets assume that you are looking for TreeSize alternative in the Linux world. There are a few disk usage/cleanup tools available under GNome or KDE.

If you have some time, then cleaning up your home directory is pretty simple on the command line:

Assume you want to clean your /home directory.

$> du -H /home > cleanfile

Now when you open cleanfile in your text editor, you should see the files/directories. Looking at the directory names should tell you whether you need those dirs or now.

Tuesday, July 06, 2010

KNetworkManager and VPN

Since Fedora 13, I have been unable to use the nm-applet on KDE. It seems like KNetworkManager is the default in KDE on Fedora 13.

Try to get the knetworkmanager-openvpn and knetworkmanager-vpnc packages installed on your fedora instance.

$> sudo yum install knetworkmanager-openvpn
$> sudo yum install knetworkmanager-vpnc

The nm-applet settings for vpn are all lost. So you will need to login to gnome to get those settings and input them into knetworkmanager.

But there are some pending bugs because the knetworkmanager vpn is not really working for me (and also a co-worker). Keeping fingers crossed to see if a future update will fix it.

Friday, March 19, 2010

ld-linux.so.2 eating memory

Scenario: Linux Desktop is very slow or lethargic.

Step 1: run top

localhost:~$ top
top - 13:41:13 up 4:24, 3 users, load average: 1.06, 1.61, 1.42
Tasks: 194 total, 4 running, 190 sleeping, 0 stopped, 0 zombie
Cpu(s): 30.6%us, 38.0%sy, 0.0%ni, 31.2%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3985164k total, 3945144k used, 40020k free, 3168k buffers
Swap: 8193140k total, 725012k used, 7468128k free, 220940k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1820 root 20 0 191m 28m 5760 R 77.7 0.7 93:39.78 Xorg
9030 anil 20 0 2722m 2.2g 1044 R 35.5 57.3 57:44.48 ld-linux.so.2
10521 anil 20 0 1045m 866m 1108 S 19.9 22.3 12:09.73 ld-linux.so.2


Step 2: In my case, I see that ld-linux.so.2 is eating a lot of memory.

Step 3:
$> ps -f -C ld-linux.so.2

UID PID PPID C STIME TTY TIME CMD
anil 9030 1 41 11:24 ? 00:58:48 /lib/ld-linux.so.2 /opt/Adobe/Reader8/Reader/intellinux/bin/acroread --display :0.0 -progressPipe 3 -exitPipe 4
anil 10521 10501 27 12:58 ? 00:12:51 /lib/ld-linux.so.2 /opt/Adobe/Reader8/Reader/intellinux/bin/acroread --display :0.0 -progressPipe 3 -exitPipe 4

Step 4: So Adobe Acrobat Reader is the problem.
Adobe Blog: http://blogs.adobe.com/acroread/2007/09/known_issues_with_adobe_reader_1.html

Step 5: Kill the PIDs for the ld-linux.so usage

Monday, March 15, 2010

skype crashes on fedora 12

1) Check which skype package is installed.

$> sudo rpm -qa | grep skype
skype-2.0.0.72-fc5.i586

2) Go to skype website and download the rpm for the latest skype
skype-2.1.0.81-fc10.i586.rpm

3) Uninstall the old version
$> sudo rpm -e skype-2.0.0.72-fc5.i586


4) Install the new version
$> sudo rpm -i skype-2.1.0.81-fc10.i586.rpm

After this, skype should be stable.

Wednesday, March 10, 2010

OpenJDK on Fedora

Now, you are not sure if OpenJDK is installed on fedora or not. So you can try to install it. If it is already installed, nothing.

Step 1: We will try to install OpenJDK6 on fedora

If you are root, then do this:
$> yum install java-1.6.0-openjdk

else, if you have sudo rights, then

home $> sudo yum install java-1.6.0-openjdk


Step 2: Where is OpenJDK installed on fedora?


If you do not know the rpm name, try to do step 1 above to install. That will give you the rpm name.

$> sudo rpm -ql java-1.6.0-openjdk-1.6.0.0-34.b17.fc12.x86_64

/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
....

Wednesday, February 03, 2010

Package skype-2.1.0.81-fc.i586.rpm is not signed

Workaround:
/etc/yum.repos.d$ sudo mv skype.repo skype.repo.bak

Update:
$> sudo yum update

Putback:
/etc/yum.repos.d$ sudo mv skype.repo.bak skype.repo

/var is full and needs cleanup

Step 1: Determine which folder in /var is full (Clean /var)

$> sudo du -csh /var/*

Now you need to dive deeper to figure out the culprits.

Typically the /var/log may be full or contains a lot of log messages. Get rid of the large log files.

Step 2:If your /var/cache/yum is large/full and needs cleanup (Clean /var/cache/yum).

$> sudo yum clean packages

If this does not bring the size of the folder down.
$> sudo yum clean all

Step 3: If you have upgraded Fedora via preupgrade, then your /var/cache/yum/preupgrade folder is large. (Clean /var/cache/yum/preupgrade)

$>sudo rm -fr /var/cache/yum/preupgrade*

Wednesday, January 20, 2010

Eclipse Issues on Fedora 12

Now if you are facing issues with eclipse on Fedora 12, you need to do the following depending on how you start eclipse.

You will need to export GDK_NATIVE_WINDOWS=true before you start eclipse.

Relevant eclipse bug: https://bugs.eclipse.org/bugs/show%5Fbug.cgi?id=291257



If you use command line to start eclipse
:

Create a script that looks as follows:

#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla/
export ECLIPSE_HOME=/opt/IBM/eclipse
export GDK_NATIVE_WINDOWS=true
$ECLIPSE_HOME/eclipse $*


If you use a Desktop shortcut under KDE (Dolphin)
:

Then in the Properties dialog, under the application tab do the following:

export GDK_NATIVE_WINDOWS=1; /opt/eclipse/eclipse -showlocation -data /home/xxx/workspace

Please do not forget to the rename the workspace directory propertly. Also verify whether your eclipse installation directory is /opt/eclipse or change it accordingly.

Tuesday, January 12, 2010

Fedora: smartmontools = 1:5.38-2.fc9 is needed by (installed) smartmontools-config-1:5.38-2.fc9.x86_64

When you see this error, it means that you have some bad dependencies.

==============
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
smartmontools = 1:5.38-2.fc9 is needed by (installed) smartmontools-config-1:5.38-2.fc9.x86_64
Complete!
===============

Remedy:
You need to clean up bad deps using package-cleanup:

anil@localhost:~$ sudo package-cleanup --problems
Setting up yum
Loaded plugins: dellsysidplugin2, refresh-packagekit
Reading local RPM database
Processing all local requires
Missing dependencies:
Package smartmontools-config-5.38-2.fc9.x86_64 requires smartmontools = 1:5.38-2.fc9
Package libflashsupport-000-0.5.svn20070904.i386 requires libcrypto.so.7
Package libflashsupport-000-0.5.svn20070904.i386 requires libssl.so.7

anil@localhost:~$ sudo rpm -e smartmontools-config-5.38-2.fc9.x86_64
anil@localhost:~$ sudo package-cleanup --problems
Setting up yum
Loaded plugins: dellsysidplugin2, refresh-packagekit
Reading local RPM database
Processing all local requires
Missing dependencies:
Package libflashsupport-000-0.5.svn20070904.i386 requires libcrypto.so.7
Package libflashsupport-000-0.5.svn20070904.i386 requires libssl.so.7

anil@localhost:~$ sudo rpm -e libflashsupport-000-0.5.svn20070904.i386


anil@localhost:~$ sudo package-cleanup --problems
Setting up yum
Loaded plugins: dellsysidplugin2, refresh-packagekit
Reading local RPM database
Processing all local requires
No problems found
=====================================

Thursday, July 31, 2008

Where is Iced Tea javaws on Fedora?

If you are looking to run jnlp files via web start on Fedora, then look for javaws under either:

/usr/lib/jvm/java-openjdk/bin/

or

/usr/bin