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
- 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,
Disk resize
- 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
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 |