Showing posts with label Fedora. Show all posts
Showing posts with label Fedora. Show all posts

Tuesday, February 4, 2020

[WORKAROUND] Could not load GLX/OpenGL functions /usr/lib64/VirtualGL/libvglfaker.so: undefined symbol: glXGetProcAddressARB

I've encountered the following problem while starting IntelliJ IDEA via optirun:

$ optirun -c yuv ./idea-IC-193.5662.53/bin/idea.sh
...
[VGL] ERROR: Could not load GLX/OpenGL functions
[VGL] /usr/lib64/VirtualGL/libvglfaker.so: undefined symbol: glXGetProcAddressARB

Quick search gave me this link - https://github.com/VirtualGL/virtualgl/issues/102

Checked VirtualGL version:

$ rpm -qi VirtualGL
VirtualGL-2.5.2-4.fc31.x86_64

Added original VirtualGL yum repo according to https://virtualgl.org/Downloads/YUM

$ cat /etc/yum.repos.d/VirtualGL.repo 
[VirtualGL]
name=VirtualGL official RPMs
baseurl=https://sourceforge.net/projects/virtualgl/files
gpgcheck=1
gpgkey=https://sourceforge.net/projects/virtualgl/files/VGL-GPG-KEY
enabled=1
exclude=VirtualGL-*.*.9[0-9]-*

Thursday, January 30, 2020

[SOLVED] Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "nvidia" (module does not exist, 0)

$ optirun -b none nvidia-settings -c :8
[   70.861063] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) \
Failed to load module "nvidia" (module does not exist, 0)

[   70.861138] [ERROR]Aborting because fallback start is disabled.

The above is the problem I've encountered recently during NVIDIA proprietary driver installation on Fedora 31. Here're some details about a kernel and graphics card:

$ uname -r
5.4.13-201.fc31.x86_64

$ lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core \
processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M \
[GeForce GT 650M] [10de:0fd1] (rev ff) (prog-if ff)


I followed these instructions - https://docs.fedoraproject.org/en-US/quick-docs/bumblebee/index.html#_installation_nvidia_proprietary_driver. But after system restart "nvidia" module failed to load.

Here's a good troubleshooting page - https://github.com/Bumblebee-Project/Bumblebee/wiki/Troubleshooting. But there was nothing related to the mentioned error.

After reviewing bumblebee config I found out that "nvidia" module was actually missed:

$ grep "XorgModulePath" /etc/bumblebee/bumblebee.conf 
XorgModulePath=/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules

$ find /usr/lib64/xorg/modules -iname *nvidia*
$

Installing nvidia-driver and restarting the system solved the problem:

$ sudo dnf install nvidia-driver

$ find /usr/lib64/xorg/modules -iname *nvidia*
/usr/lib64/xorg/modules/drivers/nvidia_drv.so
/usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so

Friday, October 4, 2019

How to merge multiple PDFs into a single PDF

Having multiple PDF files you can merge them into a single PDF file using pdfunite command.

Example:

pdfunite 1.pdf 2.pdf 3.pdf result.pdf

The command is included in poppler-utils package and is available in Fedora out of the box. If missed, can be installed as follows:

sudo dnf install poppler-utils

Thursday, February 9, 2017

How to connect Sony LT25i to Android Studio under Fedora 24

0. Turn on USB debugging mode via Settings > Developer options

1. Connect smartphone to PC via USB and get vendor's id

$ lsusb
...
Bus 003 Device 013: ID 0fce:6186 Sony Ericsson Mobile Communications AB
...

Note: here vendor's id is: 0fce

2. Create udev rules file to allow Fedora to detect device

$ cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="rdiachenko"

Note: here you need to change GROUP onto your own

Thursday, May 14, 2015

Convert images to pdf and back

Today I found out a simple and flexible tool which converts images to pdf and vice versa - convert. It was already built in my Fedora 21.

Example:

Let's say I have 1.jpg, 2.jpg, 3.jpg files. To convert them into a single result.pdf run the following command:

$ convert 1.jpg 2.jpg 3.jpg result.pdf

or

$ convert {1..3}.jpg result.pdf

Now I want to get my images back from the result.pdf:

$ convert -density 300 result.pdf image.jpg

where "-density 300" is a precision in points per inch. Each pdf page will be converted into a separate image.

convert supports a lot of different flags and options. To learn more about it:

$ man convert

or

Tuesday, February 3, 2015

Useful installations for Fedora to keep in mind

Creating a bootable USB

$ sudo dd if=/path/to/Fedora-Live-xxx.iso of=/dev/sdc

where sdc can be found by inserting the usb drive and executing:

$ dmesg | tail

yum plugin which helps to choose the fastest mirrors

$ sudo yum install yum-plugin-fastestmirror

RPM fusion reposetories

# su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

Codecs

$ sudo yum install gstreamer1-libav gstreamer1-plugins-bad-free-extras gstreamer1-plugins-bad-freeworld gstreamer1-plugins-good-extras gstreamer1-plugins-ugly gstreamer-ffmpeg xine-lib-extras xine-lib-extras-freeworld k3b-extras-freeworld gstreamer-plugins-bad gstreamer-plugins-bad-free-extras gstreamer-plugins-bad-nonfree gstreamer-plugins-ugly gstreamer-ffmpeg

E-book management tool

$ sudo yum install calibre

UI package manager

$ sudo yum install yumex

Nvidia Optimus (Bumblebee installation)

Visit: http://fedoraproject.org/wiki/Bumblebee

Move applications in tray to the top bar

Install TopIcons Gnome Extension

Wednesday, December 10, 2014

New Fedora 21 release


Release Notes: http://docs.fedoraproject.org/en-US/Fedora/21/html/Release_Notes/

Download: https://getfedora.org/en/workstation/download/

Some changes/improvements I found interesting:

GNOME 3.14
Update GNOME to the latest upstream release, 3.14

GCC49
Switch GCC in Fedora 21 to 4.9.x, rebuild all packages with it.

Headless Java
Server installations of Fedora should usually not pull in packages related to X system or sound subsystem. For this reason part of OpenJDK package has been split into headless subpackage which has smaller dependency chain. Fedora packages should be migrated to require java-headless instead of full java package when appropriate

Java 8
Make Java 8 (provided by OpenJDK 8 which is java-1.8.0-openjdk) the default Java runtime. The current default Java runtime (Java 7, provided by OpenJDK 7, java-1.7.0-openjdk) will be obsoleted and removed.

Tuesday, July 16, 2013

Eclipse: Internal browser is not available: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]

PROBLEM: I've got the following error message when was configuring Eclipse after installing a new Fedora 19:

Error
Unhandled event loop exception
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(SWT.java:4423)
at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1993)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:701)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)

SOLUTION: The solution was just install missed lib and restart Eclipse:

1. $ sudo yum install libwebkitgtk*
2. Restart Eclipse

Saturday, July 13, 2013

Fedora 19 (64-bit) - Installation notes

1. Install Chrome

$ sudo nano /etc/yum.repos.d/google-chrome.repo

[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub


$ sudo yum install google-chrome-stable

2. Install gnome-tweeak-tool and customize it

$ sudo yum install gnome-tweak-tool

To run it, press Alt+F2 and type in 'gnome-tweak-tool'. Simple selecting the options performs the changes.

3. Add "Open Terminal" to Gnome Context Menu

$ sudo yum install nautilus-open-terminal

4. Install rpmFusion reposetory

$ sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Wednesday, May 15, 2013

Install and run Windows applications on Fedora/Ubuntu

PlayOnLinux is a tool which allows to install/run Windows applications under Linux. It is a kind of shell for wine.



Installation for Fedora:

$ wget http://rpm.playonlinux.com/playonlinux.repo
$ sudo cp  playonlinux.repo /etc/yum.repos.d/
$ sudo yum install playonlinux

Installation for Ubuntu here

Thursday, February 28, 2013

SSH log-in without entering the password

1. If you have no public and private ssh keys run the following command and press Enter for all the input requests:

$ ssh-keygen

2. Copy your public key to the remote server you want to log-in to via ssh without entering the password:

$ ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote_host

3. Try to log-in to the server without entering the password:

$ ssh username@remote_host

Tuesday, December 4, 2012

Run multiple Skypes under linux

In order to run several Skypes there should be a separate skype config folder in your home directory for each skype process.

$ mkdir ~/.Skype_1
$ skype --dbpath=~/.Skype_1 &

$ mkdir ~/.Skype_n
$ skype --dbpath=~/.Skype_n &

Tuesday, May 8, 2012

C++: First steps on Fedora

Install compiler, autoconf and automake tools:

$ sudo yum install gcc gcc-c++ autoconf automake

autoconf - a tool for producing configure scripts for building, installing and packaging software on computer systems where a Bourne shell is available [1];

automake - a programming tool that produces portable makefiles for use by the make program, used in compiling software [2];

GNU GCC C compiler (gcc)  - the package contains a GNU Compiler Collection;

GNU GCC C++ compiler (gcc-c++) - the package adds C++ support to the GNU Compiler Collection [3].

$ man g++

gcc - GNU project C and C++ compiler
...
When you invoke GCC, it normally does preprocessing, compilation, assembly and linking. The "overall options" allow you to stop this process at an intermediate stage.  For example, the -c option says not to run the linker.  Then the output consists of object files output by the assembler.
...

Friday, April 13, 2012

Configure FTP server on Fedora 16/17

This post is about the configuration of FTP server for the specified users.

$ sudo yum install vsftpd
$ sudo nano /etc/vsftpd/vsftpd.conf

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
ftpd_banner=Welcome to FTP server!!
chroot_local_user=YES
listen=NO
log_ftp_protocol=YES
max_per_ip=5 # Max number of allowed connections per IP Address.
max_clients=5 # Max number of different IP Addressed which are allowed to connect.
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


Wednesday, April 11, 2012

Install Lexmark Z600 printer driver on Fedora 16/17

$ sudo yum install glibc-2.* cups-libs-1.5.* compat-libstdc++-33.i686 popt.i686 cups-libs.i686

Download CJLZ600LE-CUPS-1.0-1.TAR.gz.

$ tar xvzf CJLZ600LE-CUPS-1.0-1.TAR.gz
$ export _POSIX2_VERSION=199209
$ tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz
$ tar -xvzf install.tar.gz
$ sudo rpm -ivh z600cups-1.0-1.i386.rpm z600llpddk-2.0-1.i386.rpm
$ sudo systemctl restart cups.service


 Add the printer using the Lexmark Z600 driver in System > Administration > Printing.

Source: http://heuristically.wordpress.com/2010/12/03/install-lexmark-x1150-printer-driver-fedora/

Install Skype on Fedora 16/17

$ sudo yum install alsa-lib.i686 fontconfig.i686 freetype.i686 glib2.i686 libSM.i686 libXScrnSaver.i686 libXi.i686 libXrandr.i686 libXrender.i686 libXv.i686 libstdc++.i686 pulseaudio-libs.i686 qt.i686 qt-x11.i686 zlib.i686

Download Skype for Fedora from here: http://www.skype.com/intl/en-us/get-skype/on-your-computer/linux/

$ sudo yum install skype-2.2.0.35-fedora.i586.rpm

Gedit configuration

Here is some useful configuration for gedit:

Open gedit and go to Edit > Preferences

View tab:
Display line numbers = true
Highlight current line = true
Highlight matching brackets = true

Editor tab:
Tab width = 4
Enable automatic indentation = true
Create a backup copy of files before saving = false

Sunday, February 12, 2012

How to make QDialogs movable in Gnome 3

$ su -c "yum install gconf-editor"

Press Alt+F2 and enter 'gconf-editor' to open it.


Desktop > Gnome > Shell > Windows (attach_modal_dialogs = false)


Type 'r' in Alt+F2 prompt to restart Gnome shell and see the changes.

In Fedora 17 there is no "shell > windows" configuration, so the alternative is:

$ gsettings set org.gnome.shell.overrides attach-modal-dialogs "false"

Saturday, February 11, 2012