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

Setup system

   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

   1 cfdisk /dev/sdb

   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

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

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

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

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

Fedora (last edited 2023-02-05 19:40:18 by localhost)