Manjaro Difference between pages "GRUB/Restore the GRUB Bootloader" and "Improve Font Rendering"

Difference between pages "GRUB/Restore the GRUB Bootloader" and "Improve Font Rendering"

From Manjaro
(Difference between pages)
imported>Verityproductions
 
imported>Aaditya
 
Line 1: Line 1:
= Overview =


As with any Linux operating system, the GRUB ('''GR'''and '''U'''nified '''B'''ootloader) is responsible for booting up Manjaro. If for any reason your GRUB is not working - perhaps due to being corrupted, mis-configured, or even deleted - then it may not be necessary to reinstall Manjaro. '''The GRUB can instead be fully repaired and restored, retaining your installed Manjaro system'''.
===How to improve font rendering with your installed fonts===




= Boot the Manjaro Installation Media =


'''1.''' Insert and boot your Manjaro installation media (e.g. CD/DVD or USB).  
''1. Create the file''
sudo gedit /etc/fonts/local.conf
with code:


'''2.''' Select your '''preferred language''' (F2) and '''keyboard layout''' (F3).
<match target="font">
  <edit name="autohint" mode="assign">
    <bool>true</bool>
  </edit>
  <edit name="hinting" mode="assign">
    <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle">
    <const>hintslight</const>
  </edit>
  <edit mode="assign" name="lcdfilter">
    <const>lcddefault</const>
  </edit>
</match>


{{tip|Setting the language and keyboard layout are undertaken by pressing the ''Function'' (F) keys. As many computers have multiple functions assigned to each function key, it may be necessary to hold down another key first to use them. For example, on a HP G62 laptop, to use the function keys, the 'fn' key must first be pressed and held.}}
Save changes in the file.




'''3.''' Boot Manjaro Linux. It does not matter which boot option you choose, as the installation media is being used solely to repair/reinstate the GRUB, and not to install a fresh system.
''2. Create backup a .Xresources file:''
cp .Xresources Xresources.bak


'''4.''' Open the terminal or access the command line of the live CD.


* '''From the desktop environment''': open the terminal from your desktop menu, or
''3. Open .Xresources file in text editor.''
* '''From the command line''' (e.g. NET-Edition or having used the ''Boot in Text mode'' option): enter the default username (manjaro) and password (manjaro) to log in.
gedit .Xresources


Delete current content, paste in:
! Xft settings ---------------------------------------------------------------
Xft.dpi:        96
Xft.antialias:  true
Xft.lcdfilter:  lcddefault
Xft.rgba:      rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight


= Identify and Prepare the Installed Partition(s) =
Save changes in the file.


'''1.''' Ensure that you are using the Root account, which is identified by a hash ('#') at the beginning of the command line, rather than a dollar ('$'). To switch to Root, enter the command:


  sudo su
''4.Run a command in terminal:''
  xrdb -merge ~/.Xresources


{{tip|The password - if requested - will be ''manjaro''}}


5.Make sure that ''antialiasing, hiting  is ON'' in system settings Your Desktop Environment.


'''2.''' List your partitions. This is necessary in order to identify the partition your Manjaro system is installed on. If you have used a separate boot partition, it will be necessary to identify this as well. For a list of your paritions, enter the command:
Finally reboot your computer to apply the settings.


sudo blkid


= Install Ubuntu/Infinality Fonts for better rendering =


In this particular instance, the partitions for the author's Manjaro system are as follows:


* '''/dev/sda1''': Boot partition
'''[http://forum.manjaro.org/index.php?topic=3459.0 How to install Ubuntu/Infinality fonts in Manjaro Linux - v2.0] '''by StealthPenguin
* '''/dev/sda2''': Swap partition
* '''/dev/sda3''': Manjaro system
* '''/dev/sda4''': Space for personal files.


{{tip|You can also use an application called '''gparted''' from the desktop menu to look at your partitions. This can help you identify what they are, if you are unsure. For example, if a seperate partition for the GRUB exists, it should only be about 100MB in size.}}
Follow the link given.




'''3.''' Mount your Manjaro system partition. The syntax to mount the Manjaro system partition is:


mount /dev/'''[partition used for Manjaro system]''' /mnt
=Support=




In this instance, as the Manjaro system partition is ''/dev/sda3'', this will be mounted using the following command:
Following is a link to this page's forum counterpart where you can post any related feedback: [http://forum.manjaro.org/index.php?topic=6879.msg62703#msg62703]


mount /dev/'''sda3''' /mnt
Feedback about StealthPenguin's post about installing Ubuntu/Infinality fonts can be made at his forum post [http://forum.manjaro.org/index.php?topic=3459.0].


=See Also=


'''IF''' you have used a seperate partition for your GRUB bootloader, then this must also be mounted. The syntax to mount a separate partition used to boot is:


mount /dev/'''[partition used for GRUB]''' /mnt/boot
[https://wiki.archlinux.org/index.php/Font_Configuration The Arch Wiki]




In this instance, a seperate partition - ''/dev/sda1'' - has been used for the GRUB, and will be mounted using the following command:
mount /dev/'''sda1''' /mnt/boot
{{note|Again, if you have not used a seperate boot partition, then it (obviously) does not need to be mounted!}}
'''3.''' Change to the root directory of your mounted partitions. This is undertaken so that you are working from  - and with - your installed system, rather than the installation media. To do so, it will be necessary to enter a series of commands in the following order:
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/dev/pts/
chroot /mnt
'''4.''' Install mtools and os-prober. mtools is a collection of tools to access Microsoft Operating Systems. os-prober is a utility that detects if there are any other operating systems present. Install them with the following command:
pacman -S mtools os-prober
= Restore the GRUB =
'''1.''' Install a new GRUB bootloader
grub-install /dev/sda
'''2.''' Recheck to ensure the that installation has completed without any errors.
grub-install --recheck /dev/sda
'''3.''' Configure the freshly installed GRUB bootloader
grub-mkconfig -o /boot/grub/grub.cfg
Once complete, close the terminal and reboot your system.
[[Category:Troubleshooting]]
[[Category:Contents Page]]
[[Category:Contents Page]]

Revision as of 10:16, 4 October 2013

How to improve font rendering with your installed fonts

1. Create the file

sudo gedit /etc/fonts/local.conf

with code:

<match target="font">
  <edit name="autohint" mode="assign">
    <bool>true</bool>
  </edit>
  <edit name="hinting" mode="assign">
    <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle">
    <const>hintslight</const>
  </edit>
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
 </edit>
</match>

Save changes in the file.


2. Create backup a .Xresources file:

cp .Xresources Xresources.bak


3. Open .Xresources file in text editor.

gedit .Xresources

Delete current content, paste in:

! Xft settings ---------------------------------------------------------------
Xft.dpi:        96
Xft.antialias:  true
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight

Save changes in the file.


4.Run a command in terminal:

xrdb -merge ~/.Xresources


5.Make sure that antialiasing, hiting is ON in system settings Your Desktop Environment.

Finally reboot your computer to apply the settings.


Install Ubuntu/Infinality Fonts for better rendering

How to install Ubuntu/Infinality fonts in Manjaro Linux - v2.0 by StealthPenguin

Follow the link given.


Support

Following is a link to this page's forum counterpart where you can post any related feedback: [1]

Feedback about StealthPenguin's post about installing Ubuntu/Infinality fonts can be made at his forum post [2].

See Also

The Arch Wiki

Cookies help us deliver our services. By using our services, you agree to our use of cookies.