Friday, 26 December 2014

Fedora 21 (Workstation) Installation Steps with Screenshots


Fedora 21 (Workstation) Installation Steps with Screenshots

Given that I have no internet connection, somehow I have managed a copy of Fedora 21 workstation , or, I have downloaded the concerned .iso file from Fedora 21 official site using https://getfedora.org/en/workstation/ and burnt the iso file in a dvd.
Now to install, I already know the minimum requirements 1GHz or faster Processor, 1GB RAM & atlaest 10GB unallocated Disk Space . So let's walk through the installation steps, screen by screen, and see what it does.

Step-1 :Boot the computer with the installation DVD.
Select the First Option ‘Start Fedora Live’ & hit Enter.

Step-2: Choose ‘Install to Hard Drive’ option

 Step-3 :Language Selection


Since no network connection keep the default (English (United States)). If there is an active network connection, Installer will attempt to determine the geographic location and then make an educated guess at the appropriate language based on that.

Step-4 :Installation Summary

 

Here four tasks to be completed, one of which is mandatory before installation can begin and has not been completed yet. Note the yellow warning across the bottom of the screen, and the fact that the 'Begin Installation' button is not active.

Step-4(a) Set Time Zone
For active internet connection, installer wil determine location and set the Timezone. Otherwise need to set the timezone, click on that item and you get this screen:



 
There are two ways to set the timezone here: either click somewhere near the appropriate location on the map, or choose the Region and City from the drop-down lists.
You can also set the time and date in this screen, if necessary, and choose 12- or 24-hour format.click Done.

Step -4(b): Keyboard selection - click on the Keyboard selection - Keep the default .
 
 
Step-4(c): Installation Destination, and you will get this screen:

 
Click on the hard drive to select it, and see the check-mark appear (shown above). At that point, alternatives for normal/standard/typical installation available.

Step-4(c)(i):automatic partitioning
Just click Done and Installer will figure things out .
In automatic partitioning (default), Installer will create one small ext4 partition for /boot, and one large LVM partition to hold the rest of the installation (root, home, var, etc.) assuming sufficient free disk space, Installer will simply take it all for the LVM partition.
If there is not enough free space, it will ask for help in freeing up space, by deleting, shrinking or taking over existing partitions.



 

Step-4(c)(ii): Manual Partition
For complicated/non-standard disk layout, and you have to specify the partitions yourself, and need to click the 'I will configure partitioning' radio button. Click Done, and if accept automatic partitioning, Installer will only bother for more input if it is not able to figure out a reasonable automatic partitioning scheme.

If selected 'I will configure partitioning', will get this screen: a logical view of the disk partitioning.

Step-4(c)(ii)(*): LVM
At the top of the screen find the default partitioning scheme is still LVM, and if 'Create them automatically' is clicked, Installer will go off and do exactly what it would have done in automatic partitioning in the previous screen. Here, however, find the results of that:

 
In this case there will be a Btrfs partition for root and home, a separate ext4 partition for /boot (sorry, still no booting from btrfs here), a new FAT32 partition for EFI boot, and a new separate partition for swap.

Step-4(c)(ii)(***): Standard Partitions
The other automated option is to choose Standard Partitions and then click 'Create them
automatically', which results in this layout:

 
Here there will be separate ext4 partitions for root, home and boot, a FAT32 for EFI boot and a swap partition. Goodness, that's a lot of partitions!

Step-4(c)(iii) - to create new partitions
Finally, for absolute control over the partitions, to create new partitions, click the 'plus' button at the bottom; to take over (or merge) with a partition in an existing installation, click on the title for that installation and then select the partitions you want.
a minimum installation will include at least three partitions - , Root (/), Swap & home. Simply select them from the list, and then give the new installation details.

Step-5: Accept Changes
Once the partitioning is complete, click Done. Installer will analyze the new layout, and if it is unacceptable for some reason (no root, whatever) it will complain. If it requires reformatting or otherwise destroying an existing partition, it will display this warning and ask for confirmation:

 
It is important to know that whatever may be the disk partitioning sequence, there will be no changes made to disk drive(s) until the actually start the installation is clicked. So at this point click Accept Changes.

Step-6: Begin Installation


 
Here find that the yellow warning bar is gone from the bottom of the screen, and the Begin
Installation button is now active. Click Begin Installation, and Installer will get busy. At this point, if chosen to overwrite any existing partitions, they are toast... once clicked, it's too late to go back.

Step-7: root password and user account

Now, while Installer is performing the installation, enter the root password and user account info.

Root Password Creation

 
This is pretty obvious, just click on Root or User configuration.

 
Once you have entered the user account and root password information, you just have to wait for the installation to finish. This takes about 20 to 30 minutes on the systems I have installed so far. When Installation is done, you will get this screen:



Click on Quit and you will be returned to the Live desktop. Reboot the system.
(Note: Don’t forget to unplug the DVD / USB stack after the reboot process (So that you don’t boot it again).
Once you reboot, the system will ask you to select your new Fedora Linux from the boot menu. On the login screen, enter your new user login credentials that you’ve created during installation.








Monday, 15 December 2014

Fedora 21 customisation dvd making - Two things I can't do


Two things I can't do at Fedora 21 customisation dvd making.
(1) Inclussion of dvd_codecs directly to the customised dvd through kickstarts file
libdvdcss2
libdvdcss
libdvdcss-devel

I got a message -
Error creating Live CD : Failed to build transaction : libdvdcss2-1.2.13-7.fc20.i686 requires /usr/sbin/ldconfig

(2) (i) Overriding the favorite desktop application in Dash
(ii) Enable categories in Gnome Shell

These two could be done in Fedora 20 very easily by

# Override the favorite desktop application in Dash
cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
[org.gnome.shell]
favorite-apps=['firefox.desktop', 'evolution.desktop', 'shotwell.desktop', 'gimp.desktop', 'rhythmbox.desktop', 'bijiben.desktop', 'anaconda.desktop','libreoffice-writer.desktop', 'libreoffice-calc.desktop','vlc.desktop','brasero.desktop','gnome-terminal.desktop']

#Enable categories in Gnome Shell
-app-folder-categories=['Utilities', 'Sundry', 'Office', 'Network', 'Internet', 'Graphics', 'Games', 'Multimedia', 'System', 'Development', 'Accessories', 'System Settings', 'Other']
+app-folder-categories=['Utilities', 'Games', 'Sundry', 'Office', 'Network', 'Internet', 'Graphics', 'Multimedia', 'System', 'Development', 'Accessories', 'System Settings', 'wine-wine', 'Crossover', 'Crossover Games', 'Science', 'Education', 'Universal Access', 'Other']

FOE

In Fedora 21 /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override is bydefault

[org.gnome.shell]
enabled-extensions=['background-logo@fedorahosted.org']

And while at customisation with

#Override the favorite desktop application in Dash
cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
[org.gnome.shell]
enabled-extensions=['background-logo@fedorahosted.org']

favorite-apps=['firefox.desktop', 'evolution.desktop', 'shotwell.desktop', 'gimp.desktop', 'rhythmbox.desktop', 'bijiben.desktop', 'anaconda.desktop','libreoffice-writer.desktop', 'libreoffice-calc.desktop','vlc.desktop','brasero.desktop','gnome-terminal.desktop']

#Enable categories in Gnome Shell
-app-folder-categories=['Utilities', 'Sundry', 'Office', 'Network', 'Internet', 'Graphics', 'Games', 'Multimedia', 'System', 'Development', 'Accessories', 'System Settings', 'Other']
+app-folder-categories=['Utilities', 'Games', 'Sundry', 'Office', 'Network', 'Internet', 'Graphics', 'Multimedia', 'System', 'Development', 'Accessories', 'System Settings', 'wine-wine', 'Crossover', 'Crossover Games', 'Science', 'Education', 'Universal Access', 'Other']

FOE

I got the message

No such key '-app-folder-categories' in schema 'org.gnome.shell' as specified in override file '/usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override'; ignoring override for this key.
No such key '+app-folder-categories' in schema 'org.gnome.shell' as specified in override file '/usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override'; ignoring override for this key.

Friday, 12 December 2014

Fedora 21 & My Personal Settings


Fedora 21 & My Personal Settings

12th Dec 2014

Note
This guide uses 'GNOME Desktop' as that is the default for Fedora. Either 'Xfce' or 'LXDE' is recommend if your computer is slightly older (4yrs+). If you don't have issues with installation from the web, I would recommend selecting a desktop and adding more software later.

Install fedora 21 from DVD.
Download the

Fedora Workstation is a reliable, user-friendly, and powerful operating system for your laptop or desktop computer. It supports a wide range of developers, from hobbyists and students to professionals in corporate environments.

The Fedora installer is very minimal and most configuration steps will need to be done post-installation. With some minor exceptions most of the default settings are correct. The settings which are most critical are your partitioning and boot loader options.
The Fedora 21 installer has 3 main setup options (with some sub options):
  • Localization
    • Date & Time
    • Keyboard
    • Language
  • Software
    • Installation Source
    • Network Configuration
    • Software Selection
  • Storage
For SOFTWARE, select SOFTWARE SELECTION
On the left you see 'Choose your environment' where you will get an option for what type of Installation of Fedora you would like to setup. NOTE: The Fedora 21 installer only allows ONE desktop environment to be installed at setup .
On the right you see 'Choose your add-ons' where you can add additional software that is either complements the environment you picked or add other software independent of the desktop. I recommend adding 'Development Tools', but this is not required.
Select [Done] at the top of the screen.
For NETWORK CONFIGURATION unless you have specific network configuration needs, most settings should be correct by default.
For STORAGE this step is incredibly confusing, make sure you read the steps very carefully.
On the INSTALLATION DESTINATION screen, select your hard drive where you want to install and then click on [Done] at the top of the screen.
On the INSTALLATION OPTIONS dialog, I set 'Partition scheme: Standard Partition' for Partition scheme configuration. Then I select [Custom partitioning] at the bottom of the dialog. If you don't have any partitions, you will see the option:
"I want to review/modify my disk parititions before continuing."

On the MANUAL PARTITIONING screen, I click the '+' (plus sign) on bottom left to add a new mount point. I have at least 3 mount points:
  • / size: 16GB
  • swap size: 4GB (double the size of ram)
  • /home (remaining space)
Once you add a Mount point you can customize it (this usually is not necessary). Once done, I click on [Done] at the top of the screen.
You will get a confirmation dialog with SUMMARY OF CHANGES before anything is done to your disk.
NOTE: If you are dual-booting with Windows I recommend leaving Windows to boot Fedora. In order to do this you must make sure the 'bootloader' is NOT installed on the MBR (this will typically be the first partition on the hard drive). In the INSTALLATION DESTINATION screen there is a small blue link 'Full disk summary and bootloader...' I made sure I did not overwrite the windows bootloader. PLEASE READ the bootloader notes in the official documentation.
To boot Linux from Windows I use EasyBCD (a freeware download for Windows).
Back on the INSTALLATION SUMMARY screen I click on [Begin Installation] on the bottom right.
As it installs, click on ROOT PASSWORD and set a password. This is for the adminstrative control over the whole machine, and not a personal user password.
After setting the 'root' password, create a user account with USER CREATION. Make sure you create an account for yourself. If this user account will also be administering the computer, make sure to select "Make this user administrator"
(acknowledgement- Mauriat Miranda)
After Installation expansion
1. Open Terminal and go to root
Activities > Show Applications > ter in search box > click on terminal
[kalyan@localhost ~]$ su -
Password:
[root@localhost ~]# cd /
[root@localhost /]#

2. Disable Selinux
[root@localhost /]# gedit /etc/selinux/config

You will get SELINUX=enforcing
make it disabled, i.e, SELINUX=disabled
Now, save it and reboot the computer.

3. Keep Cache for latter use.

[root@localhost /]# gedit /etc/yum.conf
Make keepcache=0 to keepcache=1
You will find all installed files (downloaded from repositories) files in /var/cache/yum/21

3.Repositories to Add.
You will find the repositories in /etc/yum.repos.d
Fedora comes with following repositories -
fedora.repo
fedora-updates.repo
fedora-updates-testing.repo

We have to add RPMFUSHION Repositories (both free & non-free).
Download rpmfusion-free-release-21.noarch.rpm & rpmfusion-nonfree-release-21.noarch.rpm from http://rpmfusion.org/Configuration/ and install them for rpmfusion-free.repo, rpmfusion-free-updates.repo, rpmfusion-nonfree.repo, rpmfusion-nonfree-updates.repo

[root@localhost /]# rpm -ivh '/home/kalyan/Downloads/rpmfusion-free-release-21.noarch.rpm'
[root@localhost /]# rpm -ivh '/home/kalyan/Downloads/rpmfusion-nonfree-release-21.noarch.rpm'


4. Set Fastest Mirror & Take Updates
[root@localhost /]#yum install yum-plugin-fastestmirror
[root@localhost /]#yum update


5. Set TWEAKs for Gnome Extensions for an Easy Desktop

[root@localhost /]#yum install gnome-tweak-tool.noarch gnome-shell.i686 gnome-shell-extension-common.noarch gnome-shell-extension-alternate-tab.noarch gnome-shell-extension-apps-menu.noarch gnome-shell-extension-auto-move-windows.noarch gnome-shell-extension-background-logo.noarch gnome-shell-extension-drive-menu.noarch gnome-shell-extension-gpaste.noarch gnome-shell-extension-launch-new-instance.noarch gnome-shell-extension-native-window-placement.noarch gnome-shell-extension-places-menu.noarch gnome-shell-extension-pomodoro.i686 gnome-shell-extension-screenshot-window-sizer.noarch gnome-shell-extension-systemMonitor.noarch gnome-shell-extension-user-theme.noarch gnome-shell-extension-window-list.noarch gnome-shell-extension-windowsNavigator.noarch gnome-shell-extension-workspace-indicator.noarch gnome-shell-frippery.noarch gnome-shell-extension-iok.noarch

Down load from http://intgat.tigress.co.uk/rmy/extensions/index.html gnome-shell-frippery-0.9.0-1.noarch.rpm and install it
[root@localhost /]# rpm -ivh '/home/kalyan/Downloads/gnome-shell-frippery-0.9.0-1.noarch.rpm'

inactive extensions
gnome-shell-extension-remove-bluetooth-icon.noarch
gnome-shell-extension-remove-volume-icon.noarch
gnome-shell-extension-calc.noarch
gnome-shell-extension-fedmsg.noarch
gnome-shell-extension-sustmi-historymanager-prefix-search.noarch
gnome-shell-extension-pidgin.i686
gnome-shell-extension-weather.noarch
gnome-shell-extension-sustmi-windowoverlay-icons.noarch

Now, open tweak box,
Activities > Show Applications > tweak in search box
Make ON & tick the following boxes
Desktop > Icon on Desktop >ON
Tick Mark on Home, Trash, Mounted Voluemes
(These will show Home, Trash folder & Mounted volumes (pen drive, external storages if attached on the desktop)

Extensions > Alternatetab >ON
Applications menu
Auto move windows >ON
Background logo
Frippery applications menu
Frippery bottom panel
Frippery move clock
Frippery panel favourites >ON
Gpaste
Indic onscreen keyboard
Launch new instance
Native window placement >ON
status indicator
pomodor
Removable drive menu >ON
Screenshot window sizer >ON
systemmonitor
user thems
Window list
Workspace indicator
Windownavigator >ON


Top Bar> Show Application Menu >ON
Tick Mark on Show date

Windows > Attached Modal Dialogs >ON
> Automatically Raise Windows > ON
> Titlebar Buttons > Maximize > ON
> Minimize > ON

6.utilities

[root@localhost /]#yum install wget gcc gcc-c++ make unrar p7zip p7zip-plugins gftp unace zip unzip sharutils lha arj cabextract file-roller rpmdevtools rpm-build gparted alacarte dconf-editor


Tools for local-repositories, livecd etc
[root@localhost /]#yum install createrepo livecd-tools spin-kickstarts liveusb-creator

Nautilus
[root@localhost /]#yum install nautilus* nautilus-image-converter.i686

7. Themes
[root@localhost /]#yum install gnome-shell-theme-selene.noarch gnome-shell-theme-zukitwo.noarch gnome-shell-theme-zukiwi.noarch

8.Enabling Categories in GNOME Shell Application Menu


9. media codecs
[root@localhost /]#yum install gstreamer* ffmpeg* lame* mpg* mpeg* libXp mjpegtools lsdvd dvd+rw-tools h264enc mpeg2dec id3v2 id3lib libmpg123-devel icedax nautilus-sound-converter flac libmpeg* uudeview libdvdnav-devel.i686 libdvdread-devel.i686 libdvdnav.i686 libdvdread.i686

dvd_codecs
download from http://packages.atrpms.net/dist/f20/libdvdcss/ libdvdcss2, libdvdcss & libdvdcss-devel and install. ( Note: These three not yet been updated for fedora 21, will be available soon.
[root@localhost /]#rpm -ivh '/home/kalyan/Downloads/libdvdcss2-1.2.13-7.fc20.i686.rpm'
[root@localhost /]#rpm -ivh '/home/kalyan/Downloads/libdvdcss-1.2.13-7.fc20.i686.rpm'
[root@localhost /]#rpm -ivh '/home/kalyan/Downloads/libdvdcss-devel-1.2.13-7.fc20.i686.rpm'

windows-codec
[root@localhost /]#rpm -ivh '/home/kalyan/Downloads/win32-codecs-all-20110131-1.i686.rpm'

11. Adobe Acrobat, Flash etc
Adobe
[root@localhost /]#yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm -y

flash
[root@localhost /]#yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

[root@localhost /]#yum install mozplugger xpdf


12. Java
[root@localhost /]#yum install java-*-openjdk java-*-openjdk-plugin icedtea-web subversion-javahl

13. Fonts

a)microsoft fonts
The Microsoft TrueType fonts package includes:
Andale Mono
Arial: bold, bold italic, italic, regular
Arial: black
Calabri: bold, bold italic, italic, regular
Cambria: bold, bold italic, italic
Candara: bold, bold italic, italic, regular
Consolas: bold, bold italic, italic, regular
Constantia: bold, bold italic, italic, regular
Corbel: bold, bold italic, italic, regular
Comic: bold, regular
Courier: bold, bold italic, italic, regular
Impact
Times: bold, bold italic, italic, regular
Trebuchet: bold, bold italic, italic, regular
Verdana: bold, bold italic, italic, regular
Webdings
[root@localhost /]#rpm -ivh '/home/kalyan/Downloads/msttcore-fonts-installer-2.6-1.noarch.rpm'

b)bengali unicode fonts

30 bengali fonts will be installed.

[root@localhost /]#rpm -ivh '/home/kalyan/Downloads/ttf-banglaunicode-0.2b2-2.noarch.rpm'
c)ubuntu family fonts

Ubuntu Font Family is an OpenType TTF based font, designed to be a modern humanist-style font.

[root@localhost /]#rpm -ivh '/home/kalyan/Downloads/ubuntu-font-family-0.80-10.1.noarch.rpm'

14. Unijoy Layout for Bengali Input ( an extra key-board for Bijoy users)

Download bn-unijoy.mim from https://stuff.mit.edu/afs/athena/system/amd64_deb50/os/usr/share/m17n/bn-unijoy.mim & copy it in /usr/share/m17n/


[root@localhost /]#cp '/home/kalyan/Downloads/bn-unijoy.mim' /usr/share/m17n/
[root@localhost /]#cp '/home/kalyan/Downloads/bn-unijoy.png' /usr/share/m17n/

Reboot the machine, then, Settings > Region & Languages > + in Input Source > Bengali (India) in Add an Input Source > Select Bengali(bijoy(m17n)) > Add
Now input selection menu will appear on the top-bar.

15.audio & video
[root@localhost /]#yum install vlc smplayer audacity pitivi avidemux brasero banshee devede digikam minitube sound-juicer youtube-dl /usr/bin/gnome-sound-recorder gnome-screenshot gtk-recordmydesktop


16.graphics
[root@localhost /]#yum install blender bluefish cmyktool colord-extra-profiles darktable dia entangle fontforge font-manager gimp gimp-*-plugin gimp-data-extras gimp-gap gimp-paint-studio gimp-high-pass-filter gimp-normalmap gimp-paint-studio gimp-resynthesizer gpick GREYCstoration-gimp gnuplot hugin ImageMagick mypaint inkscape nautilus-image-converter optipng phatch screenruler simple-scan scribus colord-extra-profiles synfigstudio xournal


17.office extra & dictionary
[root@localhost /]#yum install vym pdfshuffler hunspell-bn hunspell-en


18. internet
[root@localhost /]#yum install filezilla


19.printer-fax-scanner
[root@localhost /]#yum install avahi-tools apcupsd-cgi apcupsd-gui apcupsd bluez-cups cups* c2esp dbus* foomatic-filters gutenprint-cups hpijs hplip hplip-common hplip-gui hplip-libs libgnomecups libgnomecups-devel libjpeg-devel libsane-hpaio libtool* libusb* mingw32-libusbx.noarch mingw32-libusbx-static.noarch mingw32-libltdl.noarch openssl-devel perl-Net-CUPS polkit-gnome ptouch-driver pyppd.noarch python-cups python-cups-doc python-imaging net-snmp-devel rasterview sane* xsane* foo2zjs.i686

Note: foo2zjs.i686 is the driver for hp 1020 series, hp psc 1000 printers