recentpopularlog in

kme : console   126

« earlier  
[SOLVED] Set console font in minimal install - CentOS
With CentOS 6 I could specify the console font in /etc/sysconfig/i18n with SYSFONT="foo"

It is now /etc/vconsole.conf
centos  centos6  centos7  consolefont  console  font  solution 
18 days ago by kme
How do you remap a key to the Caps Lock key in Xubuntu? - Ask Ubuntu
Another way:
<code class="language-bash">sudo vi /etc/default/keyboard</code>
then find the line that starts with XKBOPTIONS, and add ctrl:nocaps to make Caps Lock an additional Control key or ctrl:swapcaps to swap Caps Lock and Control.

For example, mine looks like
code class="language-bash">XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"</code>
hen run
<code class="language-bash">sudo dpkg-reconfigure keyboard-configuration<code>
The reason this way is better is that it will take effect on the virtual consoles (e.g. Ctrl+Alt+F1) as well as in the graphical desktop.
linux  ubuntu  xubuntu  swapcapslockandctrl  capslock  keymap  console  solution 
10 weeks ago by kme
How do I increase console-mode resolution? - Ask Ubuntu
No amount of 'GRUB_GFXMODE' or 'GRUB_GFXPAYLOAD' seemd to do me any good, but this old trick worked
This helped me on Ubuntu 14.04 with ESXi 5.5
<code class="language-bash">sudo vi /etc/default/grub</code>
Change line to:
<code>GRUB_CMDLINE_LINUX_DEFAULT="splash vga=792"</code>
centos  centos7  grub  hiresconsole  console  vga  font  solution 
september 2019 by kme
macos - How to run mvim (MacVim) from Terminal? - Stack Overflow
My solution: add /Applications/ to the PATH.
macvim  macos  console  terminal  cli  movein  solution 
september 2019 by kme
Chrome DevTools  |  Tools for Web Developers  |  Google Developers
When you want to work with the DOM or CSS, right-click an element on the page and select Inspect to jump into the Elements panel. Or press Command+Option+C (Mac) or Control+Shift+C (Windows, Linux, Chrome OS).
webdevel  chrome  chromium  browser  devtools  debugging  javascript  console 
august 2019 by kme
Firefox Developer Tools | MDN
You can open the Firefox Developer Tools from the menu by selecting Tools > Web Developer > Toggle Tools or use the keyboard shortcut Ctrl + Shift + I or F12 on Windows and Linux, or Cmd + Opt + I on macOS.
webdevel  firefox  browser  devtools  debugging  javascript  console 
august 2019 by kme
GitHub - slap-editor/slap: Sublime-like terminal-based text editor
Sublime-like terminal-based text editor. Contribute to slap-editor/slap development by creating an account on GitHub.
editor  terminal  cli  console  nodejs  sublime  texteditor  alternativeto  sublimetext 
may 2019 by kme
Baltasarq/cscrutil: Multiplatform screen console management for C |
Multiplatform screen console management for C. Contribute to Baltasarq/cscrutil development by creating an account on GitHub.
c  cplusplus  ansi  colors  ansicolors  console  cli  commandline  library  maybesolution 
february 2019 by kme
Enhanced Tk Console: tkcon |
Minimal ~/.tkconrc for a decent font and window size:

<code class="language-tcl">
tkcon font mononoki 14
set ::tkcon::OPT(cols) 100
set ::tkcon::OPT(rows) 25
tcl  tk  console  cli  repl  history  readline 
january 2019 by kme
firebug - Access variables in jsFiddle from Javascript console? - Stack Overflow |
With Firefox (34+) and the new Firefox Developer Edition, it's possibile to do the same by enabling the Select a frame as the currently targeted document extra tool into the developer tools, then click on it and select
jsfiddle  webdevel  console  devtools  jquery  solution 
november 2018 by kme • View topic - Paste into Linux Console?
Hrm, yeah, no, I'm not sure whether bidirectional clipboard sharing ever worked in the console
virtualbox  console  clipboardsharing  clipboard  gpm 
december 2017 by kme
How do I change the color for directories with ls in the console? - Ask Ubuntu
It's just a workaround; ANSI blue is still too dark most of the time, especially in VirtualBox consoles.
To change your directory colors, open up your ~/.bashrc file with your editor
<code class="language-bash">nano ~/.bashrc</code>
and make the following entry at the end of the file:
<code class="language-bash">LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS</code>
lscolors  linux  console  colors  sortof  solution  bash 
december 2017 by kme
6.12. pam_issue - add issue file to user prompt
Yeah, but in elementaryOS Luna, the pam.d/login thing mentioned in the README.Debian doesn't work. You have to edit /etc/init/ttyX.conf, and add '-f /etc/issue.linuxlogo' to each "getty" invocation.
debian  ubuntu  elementaryos  elementary  console  eyecandy  configfile  workaround  maybe  solution 
december 2017 by kme
linux - How do I set the default kernel parameters in CentOS for all existing and future kernels? - Server Fault -
You can have it apply to all current and any future kernels by using ALL. grubby --update-kernel=ALL --remove-args="rhgb quiet" – benjarrell Jul 2 '13 at 18:04

You can also add '--args="vga=792"' to get a decent console resolution.
centos  centos6  grub  console  consolefont  framebufferconsole  configfile  solution 
october 2017 by kme
macos - How to find offending Finder Extension? - Ask Different |

I found the offenders in my case (plural, for several apps were using this plugin), using a ps -axe | grep FinderSyncExt .

Before removing the apps using it from my /Applications folder, I decided to kill each of the processes using a killall -9 FinderSyncExt.
mac  osx  finder  console  errormessage  logging  solution 
october 2017 by kme
Increasing Command Line Resolution Centos 6.4 VirtualBox - Unix & Linux Stack Exchange
2.6.X kernels

You can increase the resolution at the console like so via your /etc/grub.conf file. Find the kernel ... line pertaining to your system booting up:

kernel /vmlinuz-2.6.32-358.11.1.el6.x86_64 ro
root=/dev/mapper/vg_mungr-lv_root rd_LVM_LV=vg_mungr/lv_root
rd_LVM_LV=vg_mungr/lv_swap rd_NO_LUKS rd_NO_MD
console=ttyS0,115200 crashkernel=auto vga=791

Where some of the values you can use for vga=:

791 - 1024x768, 16 bit
792 - 1024x768, 24 bit
794 - 1280x1024, 16 bit
795 - 1280x1024, 24 bit
linux  centos  hiresconsole  hires  console  vesafb  solution 
march 2016 by kme
Php get list of locales installed on system
On linux , the list of locales installed on the system can be fetched through the terminal command locale -a :
locale  i18n  unix  linux  console  encodings  solution 
july 2015 by kme
12.04 - Boot to Runlevel 3 - Ask Ubuntu
start on ((filesystem
and runlevel [!06]
and runlevel [!03]
and started dbus
and plymouth-ready)
or runlevel PREVLEVEL=S)

You'll also need to set the default runlevel as shown here:
ubuntu  runlevel  init  boottoconsole  console  cli  solution 
may 2015 by kme
linux - Description of kernel.printk values - Unix & Linux Stack Exchange
The four values in printk denote: console_loglevel, default_message_loglevel, minimum_console_loglevel and default_console_loglevel respectively.

These values influence printk() behavior when printing or logging error messages. See man 2 syslog for more info on the different loglevels.

console_loglevel: messages with a higher priority than this will be printed to the console
default_message_loglevel: messages without an explicit priority will be printed with this priority
minimum_console_loglevel: minimum (highest) value to which console_loglevel can be set
default_console_loglevel: default value for console_loglevel

A sensible default for CentOS 6 (to prevent basically harmless but annoying messages from flooding the console if you set '--noclear' option for the init's mingettys) is:

# /etc/sysctl.conf
kernel.printk = 3 4 1 3
sysctl  centos  boot  console  logging  configfile  solution 
may 2015 by kme
linux - How to stop kernel messages from flooding my console? - Super User
suggest you alter your /etc/sysctl.conf. Specifcally, you want to tweak the kernel.printk line.

# Uncomment the following to stop low-level messages on console
kernel.printk = 3 4 1 3
I am not sure what the centos default settings are, but I seems likely that have things set more verbose then you need.

See also: (description of printk values)
centos  bootlogging  console  debugging  sysctl  solution 
may 2015 by kme
version control - "git push" produces Gtk-WARNING - Stack Overflow
I have finally discovered a solution to the problem. As it was described here, I ran the following command in the terminal:


and then running git push origin master works the way it should. You can also add the line to your .bashrc file.
ssh  git  errormessage  console  commandline  solution 
december 2014 by kme
Execute a command without saving it in the history |
Lots of caveats about this; you need to set HISTIGNORE to one of these:
<code class="language-bash">export HISTCONTROL=ignorespace:erasedups
#export HISTIGNORE="[ \t]*:cd *:ls *:history *"
#export HISTIGNORE="[ ]*"</code>

Another suggestion that's more straightforward:
Yes, by correctly setting the HIST* variables you can make certain commands not saved in history. But that's complicated and easy to make a mistake. If you set HISTFILE= to blank, nothing in your current shell session will be saved in history. Although this is not a precise answer to the subject, but it's very simple.
<code class="language-bash">HISTFILE= ; your_secret_command</code>
dammitbrain  bash  history  sysadmin  cli  console  commandilne  tipsandtricks 
december 2014 by kme
How do I call controller/view methods from the console in Rails? - Stack Overflow
To call helpers, use the helper …hmm… helper.

$ ./script/console
>> helper.number_to_currency('123.45')
=> "R$ 123,45"
rails  helper  console  debugging  devel  controller  solution 
july 2014 by kme
Clear the screen - C+ Forum

#include <unistd.h>
#include <term.h>

void ClearScreen()
if (!cur_term)
int result;
setupterm( NULL, STDOUT_FILENO, &result );
if (result <= 0) return;

putp( tigetstr( "clear" ) );

Don't forget to add '-lncurses' (and possibly -ltinfo) to LDFLAGS in your Makefile (or pass to g++ on the command line). If you don't, you'll get some newbie-unfriendly error messages that are difficult to decipher. Also be aware of the positioning of $(LDFLAGS) in the Makefile. Newer g++es want the linker flags *after* the -o option.
terminal  console  unix  cplusplus  c  curses  solution 
march 2014 by kme
« earlier      
per page:    204080120160

Copy this bookmark:

to read