Archive for the ‘Fedora Administration’ tag
Fedora R Install
I’ve started building the new image for the database courses. This one needs to include Oracle, MySQL, Cassandra, Hive, and MongoDB databases; and include examples for C, C++, Java, Perl, PHP, Python, R programming languages.
Installing R was a surprise when I saw how many packages there are for it. It’s a standard yum command from the repository, but it will install 256 packages. The command is:
yum install -y R |
Once you install it, you simply start the R interpreter, which is part of the Comprehensive R Archive Network (CRAN). Any installation of the R packages includes CRAN, but there are many additional libraries that you may install.
You can launch the R interpreter by typing the following at the Linux command-line:
R |
It will display the following licensing information and then the command prompt:
R version 3.2.0 (2015-04-16) -- "Full of Ingredients" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. |
You have two options for help. As qualified above, you can type help() to get a Linux man page, and q at the colon quits the man page. Typing help.start() launches a browser interface (shown below), which is more helpful.
You can discover your installed R packages with a call to the installed.packages() function but the output lacks clarity and is verbose. You can see a formatted summary of your installed packages with the following command:
print(as.data.frame(installed.packages()[,c(1,3:4)]),row.names=FALSE) |
It should display the following:
Package Version Priority
base 3.2.0 base
boot 1.3-16 recommended
class 7.3-12 recommended
cluster 2.0.1 recommended
codetools 0.2-11 recommended
compiler 3.2.0 base
datasets 3.2.0 base
foreign 0.8-63 recommended
graphics 3.2.0 base
grDevices 3.2.0 base
grid 3.2.0 base
KernSmooth 2.23-14 recommended
lattice 0.20-31 recommended
MASS 7.3-40 recommended
Matrix 1.2-0 recommended
methods 3.2.0 base
mgcv 1.8-6 recommended
nlme 3.1-120 recommended
nnet 7.3-9 recommended
parallel 3.2.0 base
rpart 4.1-9 recommended
spatial 7.3-9 recommended
splines 3.2.0 base
stats 3.2.0 base
stats4 3.2.0 base
survival 2.38-1 recommended
tcltk 3.2.0 base
tools 3.2.0 base
utils 3.2.0 base |
The print() function allows us to remove the text-based indexes from display. The indexes would be the same as the package names. If you call frame() function with a second argument of row.names=FALSE, then R converts the text-based indexes to numeric indexes.
You can quit the R environment with the q() or quit() function calls. It will prompt you whether or not you want to save your workspace before you exit.
It’s time to play with R now. I hope this helps you get started by installing and playing with the R programming language.
MySQL Workbench on Fedora
The early release of Fedora 20 disallowed installation of MySQL Workbench but the current version allows it. Almost like Tom Cruise’s Edge of Tomorrow without the drama. All you need to do is follow my earlier instructions for installing MySQL on Fedora 20. I’d check your kernel to know whether it’s supported. You can check that with this command:
<shell> uname -r |
My Fedora is at the following version:
3.14.8-200.fc20.x86_64 |
Then, you can install MySQL Workbench with yum, like this:
<shell> sudo yum install mysql-workbench |
It generates the following log file, and if you have Oracle 11g XE installed you can ignore the mime-type error:
Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package mysql-workbench-community.x86_64 0:6.1.7-1.fc20 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: mysql-workbench-community-6.1.7-1.fc20.x86_64
--> Processing Dependency: libvsqlitepp.so.3()(64bit) for package: mysql-workbench-community-6.1.7-1.fc20.x86_64
--> Processing Dependency: libtinyxml.so.0()(64bit) for package: mysql-workbench-community-6.1.7-1.fc20.x86_64
--> Processing Dependency: liblua-5.1.so()(64bit) for package: mysql-workbench-community-6.1.7-1.fc20.x86_64
--> Processing Dependency: libgtkmm-2.4.so.1()(64bit) for package: mysql-workbench-community-6.1.7-1.fc20.x86_64
--> Processing Dependency: libgdkmm-2.4.so.1()(64bit) for package: mysql-workbench-community-6.1.7-1.fc20.x86_64
--> Processing Dependency: libctemplate.so.2()(64bit) for package: mysql-workbench-community-6.1.7-1.fc20.x86_64
--> Running transaction check
---> Package compat-lua-libs.x86_64 0:5.1.5-1.fc20 will be installed
---> Package ctemplate.x86_64 0:2.2-5.fc20 will be installed
---> Package gtkmm24.x86_64 0:2.24.4-2.fc20 will be installed
---> Package libzip.x86_64 0:0.11.2-1.fc20 will be installed
---> Package tinyxml.x86_64 0:2.6.2-4.fc20 will be installed
---> Package vsqlite++.x86_64 0:0.3.13-3.fc20 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql-workbench-community x86_64 6.1.7-1.fc20 mysql-tools-community 24 M
Installing for dependencies:
compat-lua-libs x86_64 5.1.5-1.fc20 updates 158 k
ctemplate x86_64 2.2-5.fc20 fedora 174 k
gtkmm24 x86_64 2.24.4-2.fc20 fedora 748 k
libzip x86_64 0.11.2-1.fc20 updates 59 k
tinyxml x86_64 2.6.2-4.fc20 updates 49 k
vsqlite++ x86_64 0.3.13-3.fc20 updates 58 k
Transaction Summary
================================================================================
Install 1 Package (+6 Dependent packages)
Total download size: 26 M
Installed size: 119 M
Is this ok [y/d/N]: y
Downloading packages:
(1/7): compat-lua-libs-5.1.5-1.fc20.x86_64.rpm | 158 kB 00:01
(2/7): ctemplate-2.2-5.fc20.x86_64.rpm | 174 kB 00:01
(3/7): tinyxml-2.6.2-4.fc20.x86_64.rpm | 49 kB 00:00
(4/7): gtkmm24-2.24.4-2.fc20.x86_64.rpm | 748 kB 00:01
(5/7): vsqlite++-0.3.13-3.fc20.x86_64.rpm | 58 kB 00:00
(6/7): libzip-0.11.2-1.fc20.x86_64.rpm | 59 kB 00:02
(7/7): mysql-workbench-community-6.1.7-1.fc20.x86_64.rpm | 24 MB 00:08
--------------------------------------------------------------------------------
Total 2.9 MB/s | 26 MB 00:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gtkmm24-2.24.4-2.fc20.x86_64 1/7
Installing : libzip-0.11.2-1.fc20.x86_64 2/7
Installing : vsqlite++-0.3.13-3.fc20.x86_64 3/7
Installing : ctemplate-2.2-5.fc20.x86_64 4/7
Installing : compat-lua-libs-5.1.5-1.fc20.x86_64 5/7
Installing : tinyxml-2.6.2-4.fc20.x86_64 6/7
Installing : mysql-workbench-community-6.1.7-1.fc20.x86_64 7/7
Error in file "/usr/share/applications/oraclexe-startdb.desktop": "Application/database" is an invalid MIME type ("Application" is an unregistered media type)
Verifying : tinyxml-2.6.2-4.fc20.x86_64 1/7
Verifying : compat-lua-libs-5.1.5-1.fc20.x86_64 2/7
Verifying : ctemplate-2.2-5.fc20.x86_64 3/7
Verifying : vsqlite++-0.3.13-3.fc20.x86_64 4/7
Verifying : mysql-workbench-community-6.1.7-1.fc20.x86_64 5/7
Verifying : libzip-0.11.2-1.fc20.x86_64 6/7
Verifying : gtkmm24-2.24.4-2.fc20.x86_64 7/7
Installed:
mysql-workbench-community.x86_64 0:6.1.7-1.fc20
Dependency Installed:
compat-lua-libs.x86_64 0:5.1.5-1.fc20 ctemplate.x86_64 0:2.2-5.fc20
gtkmm24.x86_64 0:2.24.4-2.fc20 libzip.x86_64 0:0.11.2-1.fc20
tinyxml.x86_64 0:2.6.2-4.fc20 vsqlite++.x86_64 0:0.3.13-3.fc20
Complete! |
After successfully installing MySQL Workbench, you can launch it with the following command:
<shell> mysql-workbench |
It should launch the following MySQL Workbench home page (click on it to see the full size image):

