LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-23-2018, 12:52 AM   #1
nejnej25
Member
 
Registered: Dec 2017
Location: Asia
Distribution: Slackware 14.2,CentOS 7, Ubuntu, Debian
Posts: 116

Rep: Reputation: Disabled
Persistent font console change


My goal is to change my font across reboots. I edit the /etc/vconsole.conf file and change FONT="ter-v12n"

- In command line I tried setfont ter-v12n and it works.
- I tried to edit rc.local and add setfont ter-v12n and give executable permission and reboot. It doesnt work.
- I tried to make custom service and execute same command, enable it and reboot it doesnt work too. But when I start it in command line it works.
- I edit my grub2 configuration and under linux16 I add vconsole.font=ter-v12n and reboot. Doesnt work also.


Any suggestion so when my machine starts the font is already set. Thanks!
 
Old 01-23-2018, 05:36 AM   #2
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware64-current
Posts: 85

Rep: Reputation: Disabled
I've this put into /etc/rc.d/rc.font (executable ofc) (Slackware)
Code:
#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
setfont -v LatArCyrHeb-19.psfu.gz
for n in 1 2 3 4 5 6; do
 echo -ne "\033(K" > /dev/tty$n
 
Old 04-08-2018, 09:21 PM   #3
cprasky
LQ Newbie
 
Registered: Dec 2014
Location: Portsmouth, VA
Distribution: Slackware 15.0
Posts: 5

Rep: Reputation: Disabled
It looks like you left the closing "done" off the "for" loop there.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change console font in OpenBSD? billy_bazooka *BSD 7 09-13-2016 11:23 AM
[SOLVED] Change Linux console font shahinism Linux - Software 2 10-29-2012 09:39 AM
To change font in Virtual Console Mr. Alex Linux - Newbie 3 07-14-2010 02:34 AM
change the console font color minike Slackware 3 08-30-2004 05:11 PM
change console font size? andrewlkho Debian 4 07-07-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration