MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

  • Fedora

Fedora

Fedora is an operating system based on the Linux kernel, developed by the community-supported Fedora Project and owned by Red Hat.

Installation on Lenovo Thinkpad L440 - Virtualbox

  • VirtualBox

  • Name Fedora18
  • Linux
  • Fedora (64 bit)
  • next
  • 4GB RAM
  • create virtual hard drive
  • create , VDI, next , Fixed disk size: 8GB, create
  • Change to 2 CPUs and 128 video memory
  • Start
  • Choose ISO
  • Start Fedora 18
  • Live User System , * Ctrl + f
  • Install to hard disk
  • Language english
  • continue
  • keyboard, +, portugese (portuguese)
  • Add
  • Remove english keyboard
  • done
  • Date and time, region europe, city Lisbon, Done
  • Installation destination, ATA VBOX HardDisk, done

  • Begin installation
  • Root password: ********
  • confirm, done, quit
  • Live System User, Power off, restart

Setup system

  • Welcome
  • Forward, forward, create user vitor, password: ********, Finish
  • Sign in vitor
  • Activities, terminal,

   1 su
   2 cat /etc/redhat_release
   3 yum install kernel-devel-3.6.10-4.fc18.i686
   4 yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel
   5 yum update
   6 yum install gcc
   7 ./VBoxLinuxAdditions.run # after mounting the guest additions with virtualbox
   8 

Disk resize

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/logical_volume_manager_administration/physvol_admin

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/logical_volume_manager_administration/vg_admin

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/logical_volume_manager_administration/lv

  • Fedora 18 VM, settings, storage, controller SATA, add hard disk
  • create new disk, VDI, next, dynamic allocation, Fedora18Disk2, 8GB, create

   1 cfdisk /dev/sdb
  • new, primary, type 8e (Linux LVM), write, quit

   1 fdisk -l
   2 pvcreate /dev/sdb1 # pvcreate - initialize a disk or partition for use by LVM 
   3 vgdisplay # vgdisplay - display attributes of volume groups 
   4 vgextend fedora /dev/sdb1 # vgextend - add physical volumes to a volume group
   5 pvscan # pvscan - scan all disks for physical volumes 
   6 lvdisplay # lvdisplay - display attributes of a logical volume
   7 lvextend /dev/fedora/root /dev/sdb1 # lvextend - extend the size of a logical volume
   8 vgdisplay  # vgdisplay - display attributes of volume groups 
   9 resize2fs /dev/fedora/root # resize2fs - ext2/ext3/ext4 file system resizer
  10 

Setup resolution

  • VBoxManage setextradata "Fedora 18" "CustomVideoMode1" "1366x768x32"

  • vi /etc/default/grub

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) vconsole.keymap=pt-latin1 rd.luks=0 rd.lvm.lv=fedora/root rhgb quiet "
GRUB_DISABLE_RECOVERY="true"
GRUB_THEME="/boot/grub2/themes/system/theme.txt"
GRUB_GFXMODE=1366x768
GRUB_GFXPAYLOAD_LINUX=1366x768
  • vi /etc/X11/xorg.conf.d/50-screen.conf

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 50.0
    VertRefresh 40-90
EndSection

Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "vesa"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor     "My Monitor"
   DefaultDepth 24
    Subsection "Display"
        Depth       8
        Modes "1366x768" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1366x768" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1366x768"  "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes "1366x768"  "1024x768" "800x600" "640x480"
    EndSubsection
EndSection
  • grub2-mkconfig -o /boot/grub2/grub.cfg

Other software

   1 yum install qt qt-x11 qt-webkit
   2 # Get skype-4.3.0.37-fedora.i586.rpm
   3 rpm -i skype-4.3.0.37-fedora.i586.rpm
   4 yum install eclipse jboss-as mysql wget netbeans #jboss as 7.1
   5 

SysV to systemd cheatsheet

  • Check https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

SysV init Command

Systemd Command

service frobozz start

systemctl start frobozz

service frobozz stop

systemctl stop frobozz

service frobozz restart

systemctl restart frobozz

chkconfig frobozz on

systemctl enable frobozz

chkconfig frobozz off

systemctl disable frobozz

chkconfig frobozz

systemctl is-enabled frobozz

chkconfig --list

systemctl list-unit-files --type=service

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01