How can I stop Ubuntu 18 from moving the active window in a group of windows on the sidebar (e.g. all open chrome windows or all open terminal windows) to the top of the list of those windows (the list that get's displayed when you hover over that group?
Bananach's questions
I installed Windows 10 first.
Next, I installed Ubuntu 18 and chose "Install alongside Windows Boot Manager".
When I start my computer, it goes directly to Windows, not giving me any choice to start Ubuntu.
How can I fix this?
EDIT:
I just started reinstallation of Ubuntu to see that the current partitions on the single disk I have, as shown by the Ubuntu installation program, are:
Device Type Size Used System
/dev/nvme0n1
free space
/dev/nvme0n1p1 ntfs 554 441
/dev/nvme0n1p2 efi 104 33 Windows Boot Manager
/dev/nvme0n1p3 16 unknown
/dev/nvme0n1p4 ntfs 397782 36471
/dev/nvme0n1p5 ext4 101646 9796 Ubuntu 18.04.3 LTS (18.04)
free space 1
I found some instructions for installing up to date versions of R but they're all incredibly complicated. I tried them nonetheless, but they didn't work. Is there really no clicky way to get this done?
I tried
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran36/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt update
with two different URLs and always get stuff like
Get:21 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages [51.4 kB]
Reading package lists... Done
E: The repository 'http://www.stats.bris.ac.uk/R/bin/linux/ubuntu bionic/ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.canonical.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
E: The repository 'http://archive.canonical.com precise Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
(I also tried it with --allow-unauthenticated even though it feels uncomfortable having to do this, but that didn't change anything.)
I also tried
sudo echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list
but that also didn't help. (this required me to chown that file. This is ridiculous)
By the way, the r-project website itself says stuff like ``To obtain the latest R 3.4 packages, add an entry like
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
``
Finally, not surprisingly, trying to install from source also crashes with the message
Configure: error: Maybe check LDFLAGS for paths to Fortran libraries?
I need R3.6 because some software I need to run requires it. It almost seems like R3.6 doesn't exist from googling though.
I have a bunch of files that I make small edits too all throughout my day.
They are each in their own directory within a common super directory, e.g.:
test
├── foo
│ └── foo.tex
└── bar
└── bar.tex
Is it possible to create a shortcut, such as Ctrl + Alt + E such that if enter that shortcut and then sufficiently many initial letters and then hit enter the corresponding file (in the directory of the same name) get's opened in a vim session in the terminal?
If not, is there something close to it? Creating a different shortcut for each file would be acceptable but not optimal because it is around 10 files, so all the shortcuts would be hard to remember (and they would take up shortcut space)
I just installed Ubuntu 18. Since the top bar is only on the primary monitor, I can't use the mouse to grab and move my Chrome window (the top of the screen looks like below). Trying to do so results in grabbing a single tab and opening it in a new window.
Is there a way around this? Ideally, I'd like to have the top bar across all screens. Another obvious disadvantage of only having the top bar on one screen is that the window menu of any window, not just Chrome, is displayed on the left upper corner of my left screen even when the window is in the lower right corner of the right screen.
I am using the vim mode in my bash (i.e. I setup readline to use vim mode through ~/.inputrc
).
If I do a history-search-backward
and then history-search-forward
in insert mode with some characters already typed, the bash jumps to command mode when the forward-search arrives at the end.
For example, this happens when I:
- Type
echo "foo"
- Type
e
- Press Up Arrow (prompt shows
echo "foo"
in insert mode) - Press Down Arrow (prompt shows
echo "foo"
in command mode)
It does not happen if I omit the step where I type e
.
Furthermore, bash also jumps to command mode whenever I press the Delete
key, plus it toggles capitalization.
For example, this happens when I:
- Type
echi
- Move left
- Press
Delete
(prompt showsecHi
in command mode)
This happens independent of moving left, only the letter that is toggled changes.
(The first phenomenon occurs exactly the same way in ipython
, which also uses readline
. The second phenomenon is a bit diferent in ipython
: Pressing delete in command mode does what it's supposed to do, pressing delete in insert mode also does what it's supposed to do, unless I am at the end of the line, in which case it also jumps back to command mode, but does not toggle capitalization.)
EDIT To fix the problem with the Delete
key, put "\e[3~": delete-char
in your '~/.inputrc`
I am using the following .inputrc
:
1 set editing-mode vi
2 set keymap vi-command
3 "\e[A":history-search-backward
4 "\e[B":history-search-forward
5 "\e[C":forward-char
6 "\e[D":backward-char
7 ##
8 "j":history-search-forward
9 "k":history-search-backward
10 set keymap vi-insert
11 "\e[A":history-search-backward
12 "\e[B":history-search-forward
13 "\e[C":forward-char
14 "\e[D":backward-char
15 ##
16 set show-mode-in-prompt on
17 ##
18 set vi-cmd-mode-string "\1\e[2 q\2\1\e[1;31m\2(cmd)\1\e[0m\2"
19 set vi-ins-mode-string "\1\e[5 q\2(ins)"
20 ##
21 set keymap vi-insert
22 RETURN "\e\n"
23 set keymap vi-command
24 v: ""
and the following .vimrc
:
filetype plugin on
set shellslash
set grepprg=grep\ -nH\ $*
filetype indent on
let g:tex_flavor='latex'
set ff=unix
nmap <CR> o<Esc>
set number
set showcmd