Showing posts with label Install. Show all posts
Showing posts with label Install. Show all posts

04 February 2024

08 November 2023

How to install .deb files on Ubuntu?

$ sudo dpkg -i xxx.deb

if you still faces issues with dependencies execute the following command to install the required dependencies.

$ sudo apt-get install -f

 

02 May 2023

How to install Google Chrome browser on Ubuntu 22.04?

https://linuxhint.com/install-google-chrome-on-ubuntu-22-04/


$ sudo apt update

$ sudo apt install wget

$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

$ sudo dpkg -i google-chrome-stable_current_amd64.deb

 To run Google Chrome,

$ google-chrome


30 April 2023

How to install supertab plug-in for vim?

https://github.com/ervandew/supertab


Use vim 8+ plugins:

$ mkdir -p ~/.vim/pack/plugins/start
$ git clone --depth=1 https://github.com/ervandew/supertab.git ~/.vim/pack/plugins/start/supertab

How to install jedi-vim for Python automatic code completion?

 

 

Step 1. Install Pathogen vim plug-in manager

https://github.com/tpope/vim-pathogen 

Installation

Install to ~/.vim/autoload/pathogen.vim. Or copy and paste the following into your terminal/shell:

mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

(If you're using Windows, change all occurrences of ~/.vim to ~\vimfiles.)

Runtime Path Manipulation

Add this to your vimrc:

execute pathogen#infect()

If you're brand new to Vim and lacking a vimrc, vim ~/.vimrc and paste in the following super-minimal example:

execute pathogen#infect()
syntax on
filetype plugin indent on

Now any plugins you wish to install can be extracted to a subdirectory under ~/.vim/bundle, and they will be added to the 'runtimepath'. Observe:

cd ~/.vim/bundle && \
git clone https://github.com/tpope/vim-sensible.git

Now sensible.vim is installed.

 


Step 2. Install jedi-vim plug-in


Installation

Requirements

You need a VIM version that was compiled with Python 3 or later (+python3). You can check this from within VIM using :python3 import sys; print(sys.version).

Manual installation

You might want to use pathogen to install jedi-vim.

(The first thing you need after that is an up-to-date version of Jedi. Install git submodule update --init --recursive in your jedi-vim repository.)

Example installation command using Pathogen:

git clone --recursive https://github.com/davidhalter/jedi-vim.git ~/.vim/bundle/jedi-vim 

14 March 2023

How to install Chinese input on Ubuntu?

To install Chinese Pinyin input on Ubuntu, you'll first install the ibus-pinyin package, then configure it within the Settings app. After installing the necessary packages and logging out and back in, you can add the Chinese Pinyin input source in the Region & Language settings.

Here's a more detailed breakdown:


1.
Install ibus-pinyin:

    • Open a terminal (Ctrl+Alt+T).
    • Run sudo apt install ibus-pinyin.
    • Restart ibus: ibus restart.
    • Configure ibus: ibus-setup.
      • In the ibus-setup window, click the "Input Method" tab, then "Add".
      • Select "Chinese" and then "Pinyin".
  1. 2. Configure Settings:
    • Open the Settings app (type "Settings" in the search bar).
    • Go to "Region & Languages".
    • Click "Manage Installed Languages".
    • Ensure "Keyboard input method system" is set to "ibus".
    • Install Chinese, simplified if prompted.
    • Log out and back in.
  2. 3. Add the Input Source:
    • Open Settings and go to Keyboard.
    • Click "Input Sources" and the "+" button.
    • Add the Chinese Pinyin input source.

 

 

===================================================

https://askubuntu.com/questions/1408873/ubuntu-22-04-chinese-simplified-pinyin-input-support



  1. Open Settings, go to Region & Language -> Manage Installed Languages -> Install / Remove languages.
  2. Select Chinese (Simplified). Make sure Keyboard Input method system has Ibus selected. Apply.
  3. Reboot
  4. Log back in, reopen Settings, go to Keyboard.
  5. Click on the "+" sign under Input sources.
  6. Select Chinese (China) and then Chinese (Intelligent Pinyin).

In newer version of Ubuntu, I seem to have to install ibus-pinyin 

$ sudo apt-get install ibus-pinyin 

$ ibus restart

08 March 2023

How to install .deb files on Ubuntu?

https://linuxconfig.org/install-deb-file-on-ubuntu-22-04-jammy-jellyfish-linux


$ sudo dpkg -i example.deb
 
If the package requires dependencies that aren’t already on your system, you will see 
this error in the terminal:
 
dpkg: error processing package 

Don’t fret, because we can install the required dependencies with a single command, 
assuming that they are available in Ubuntu’s package repository. Just run this command 
to install the dependencies: 

$ sudo apt install -f

10 May 2022

How to install vim plugin from github?

e.g.1  install ctrlp from github


Clone the plugin from the git repository
To clone from github:

git clone https://github.com/kien/ctrlp.vim.git ~/.vim/bundle/ctrlp.vim

2
Update your vimrc
Add the following to your vimrc file:

set runtimepath^=~/.vim/bundle/ctrlp.vim

To edit vimrc, type:

vim ~/.vimrc

3
Restart vim

============================

e.g. 2 install airline from github


git clone https://github.com/bling/vim-airline ~/.vim/bundle/vim-airline

Put the following line into ~/.vimrc

set funtimepath^=~/.vim/bundle/vim-airline

I got :help airline to work with this command:

:helptags ~/.vim/bundle/vim-airline/doc

Like you, now the help-page displays when I type :help airline.

To add airline and the buffer list, install airline, and then just add this to your .vimrc:

" Enable the list of buffers
let g:airline#extensions#tabline#enabled = 1

" Show just the filename
let g:airline#extensions#tabline#fnamemod = ':t'


Next I needed to replace the tab shortcuts that I’d no longer be using. I did this by adding these to my .vimrc as well:

" This allows buffers to be hidden if you've modified a buffer.
" This is almost a must if you wish to use buffers in this way.
set hidden

" To open a new empty buffer
" This replaces :tabnew which I used to bind to this mapping
nmap <leader>T :enew<cr>

" Move to the next buffer
nmap <leader>l :bnext<CR>

" Move to the previous buffer
nmap <leader>h :bprevious<CR>

" Close the current buffer and move to the previous one
" This replicates the idea of closing a tab
nmap <leader>bq :bp <BAR> bd #<CR>

" Show all open buffers and their status
nmap <leader>bl :ls<CR>
These settings gave me a hybrid approach to how I expected tabs to work in Vim yet it still gave me the same power that comes from understanding and using buffers.



26 June 2021

On Windows, How to Install, Create and Activate a Python Virtual Environment (Project) for Django? mkvirtualenv is not recognized as an internal or external command, operable program or batch file

 (For Windows)

How to Install, Create and Activate a Python Virtual Environment (Project) for Django? 

mkvirtualenv is not recognized as an internal or external command, operable program or batch file


https://stackoverflow.com/questions/56778211/error-message-mkvirtualenv-is-not-recognized-as-an-internal-or-external-command


For Python 3.3 or newer, Commands for installing, creating and activate virtual environment has been changed.

You can install virtual environment using pip:

py -m pip install --user virtualenv

For creating new environment:

py -m venv myproject

To activate your virtual environment:

.\myproject\Scripts\activate

After activating virtual environment, You’ll see “(myproject)” next to the command prompt.