Image

Ubuntu

How to install gpart in Ubuntu Live CD

By  •  Ubuntu
  1. boot
  2. try
  3. open terminal
  4. apt update
  5. apt install

This tutorial is on installing gpart in Ubuntu Live CD because when you have to use gpart it’s basically to rescue an existing Ubuntu or Windows installation which has to be done via Live CD.

How to install full version of Vim in Ubuntu

By  •  Ubuntu

Vim is a very powerful text editor and is available in almost all modern computing platforms. It is bundled in the default installation of almost Linux distribution, though Ubuntu ships with the minimal version of Vim which lack features such as syntax highlighting making it less powerful or useful as it could be.

Details about the currently installed version could be gathered by running vi --version from the command line;

Note the list of enabled and disabled features.

$ vi --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jul 26 2017 20:13:43)
Included patches: 1-197, 322, 377-378, 422, 550
Modified by [email protected]
Compiled by [email protected]
Small version without GUI.  Features included (+) or not (-):
+acl             -farsi           -mouse_netterm   +tag_binary
-arabic          -file_in_path    -mouse_sgr       -tag_old_static
-autocmd         -find_in_path    -mouse_sysmouse  -tag_any_white
-balloon_eval    -float           -mouse_urxvt     -tcl
-browse          -folding         -mouse_xterm     -termguicolors
+builtin_terms   -footer          +multi_byte      +terminfo
-byte_offset     +fork()          -multi_lang      -termresponse
-channel         -gettext         -mzscheme        -textobjects
-cindent         -hangul_input    -netbeans_intg   -timers
-clientserver    +iconv           -num64           -title
-clipboard       -insert_expand   +packages        -toolbar
-cmdline_compl   -job             -path_extra      -user_commands
+cmdline_hist    +jumplist        -perl            +vertsplit
-cmdline_info    -keymap          -persistent_undo -virtualedit
-comments        -lambda          -printer         +visual
-conceal         -langmap         -profile         -visualextra
-cryptv          -libcall         -python          -viminfo
-cscope          -linebreak       -python3         -vreplace
-cursorbind      -lispindent      -quickfix        +wildignore
-cursorshape     -listcmds        -reltime         -wildmenu
-dialog          -localmap        -rightleft       +windows
-diff            -lua             -ruby            +writebackup
-digraphs        -menu            -scrollbind      -X11
-dnd             -mksession       -signs           +xfontset
-ebcdic          -modify_fname    -smartindent     -xim
-emacs_tags      -mouse           -startuptime     -xpm
-eval            -mouse_dec       -statusline      -xsmp
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_clipboard
-extra_search    -mouse_jsbterm   -syntax          -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-w5iGhr/vim-8.0.0197=. -fstack-protector-strong -Wformat -Werror=format-security -DTINY_VIMRC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim    -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo  -lselinux -lacl -lattr -ldl

The full version however is available in the default package repository and can easily be installed by following these steps at the terminal;

  1. Remove vim-tiny which is the default installation package.

    sudo apt -y remove vim-tiny
  2. Update package list.

    sudo apt -y update
  3. Install the full version of Vim.

    sudo apt -y install vim
  4. Verify package is successfully installed and view the list of enabled features.

    $ vi --version
    VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jul 26 2017 20:13:43)
    Included patches: 1-197, 322, 377-378, 422, 550
    Modified by [email protected]
    Compiled by [email protected]
    Huge version without GUI.  Features included (+) or not (-):
    +acl             +file_in_path    +mouse_sgr       +tag_old_static
    +arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
    +autocmd         +float           +mouse_urxvt     -tcl
    -balloon_eval    +folding         +mouse_xterm     +termguicolors
    -browse          -footer          +multi_byte      +terminfo
    ++builtin_terms  +fork()          +multi_lang      +termresponse
    +byte_offset     +gettext         -mzscheme        +textobjects
    +channel         -hangul_input    +netbeans_intg   +timers
    +cindent         +iconv           +num64           +title
    -clientserver    +insert_expand   +packages        -toolbar
    -clipboard       +job             +path_extra      +user_commands
    +cmdline_compl   +jumplist        -perl            +vertsplit
    +cmdline_hist    +keymap          +persistent_undo +virtualedit
    +cmdline_info    +lambda          +postscript      +visual
    +comments        +langmap         +printer         +visualextra
    +conceal         +libcall         +profile         +viminfo
    +cryptv          +linebreak       -python          +vreplace
    +cscope          +lispindent      +python3         +wildignore
    +cursorbind      +listcmds        +quickfix        +wildmenu
    +cursorshape     +localmap        +reltime         +windows
    +dialog_con      -lua             +rightleft       +writebackup
    +diff            +menu            -ruby            -X11
    +digraphs        +mksession       +scrollbind      -xfontset
    -dnd             +modify_fname    +signs           -xim
    -ebcdic          +mouse           +smartindent     -xpm
    +emacs_tags      -mouseshape      +startuptime     -xsmp
    +eval            +mouse_dec       +statusline      -xterm_clipboard
    +ex_extra        +mouse_gpm       -sun_workshop    -xterm_save
    +extra_search    -mouse_jsbterm   +syntax
    +farsi           +mouse_netterm   +tag_binary
       system vimrc file: "$VIM/vimrc"
         user vimrc file: "$HOME/.vimrc"
     2nd user vimrc file: "~/.vim/vimrc"
          user exrc file: "$HOME/.exrc"
           defaults file: "$VIMRUNTIME/defaults.vim"
      fall-back for $VIM: "/usr/share/vim"
    Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-w5iGhr/vim-8.0.0197=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
    Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl     -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m -lpthread -ldl -lutil -lm

How to configure Huawei E1552 in Ubuntu Linux

By  •  Ubuntu

Huawei E1552 is a HSDPA USB Stick capable of delivering HSDPA connectivity at up to 3.6Mbps. Being a USB stick cum modem cause some problem with Ubuntu (and Linux general), but is easily fixable by the following method.

How to login to GNOME 2 in Ubuntu 11.04 (Natty Narwhal)

By  •  Ubuntu

The default desktop environment for Ubuntu 11.04 (Natty Narwhal) Unity. While Unity itself is great, some might prefer the old GNOME 2.8.x desktop environment.

In Natty Narwhal, GNOME 2 is installed by default. To login to GNOME 2 session instead of Unity, follow these steps;

How to switch from KDM to GDM in Ubuntu / Kubuntu

By  •  Ubuntu

The default display (login) manager for Ubuntu/GNOME is GDM. KDM, which is the login manager for Kubuntu/KDE is installed when you install the kubuntu-desktop package in your Ubuntu system.

If you want to switch back to GDM as the login manager, run the following command at the terminal;

sudo dpkg-reconfigure gdm

At the ncurses menu, choose gdm and click OK.

You’ll now be presented with GDM every time you boot your Ubuntu system.

How to completely remove application and related settings in Ubuntu

By  •  Ubuntu

Whenever you uninstall or remove a program/package in Ubuntu, only the binaries are removed but some of the related configuration files remain in your system. They can be anywhere in /etc or as a hidden file/folder in your home directory.

At certain time and situation you might need to completely remove both the binaries and settings. There are 2 methods to do this in Ubuntu

How to install Chromium web browser in Ubuntu

By  •  Ubuntu

Chromium is the open source project behind Google Chrome. Chromium browser is available as source based install from the Chromium website, and has been available in Ubuntu‘s default repository since Maverick Meerkat (10.10). This means that you’ll no longer need to include the chromium-daily‘s PPA repository in order to install the Chromium browser in your system.

To install the Chromium browser in your system, follow these steps at the terminal.

  1. Update package list.

    sudo apt update
  2. Install chromium.

    sudo apt install chromium-browser
  3. You can now open Chromium from your application list or type the following command at the terminal;

    chromium-browser


How to fix no sound from headphone jack problem for Dell XPS Studio in Ubuntu 10.04

By  •  Ubuntu

After installing Ubuntu and its derivatives on a Dell XPS Studio, the headphone jacks are both unusable. Plugging in earphone to the jack produces no sound, and the system still output the sound on the laptop’s speaker.

This problem is confirmed to affect Ubuntu 10.04 (Lucid Lynx), up to the latest version (currently 12.10, Quantal Quetzal)

The problem is related to alsa. To fix it, follow these steps.

How to build a Ubuntu chroot environment

By  •  Ubuntu

As with Debian, you can use debootstrap to create your base Ubuntu system. You will then have to mount both your dev and proc filesystem for your chroot environment to work properly. Follow these steps for details.

  1. Create a chroot folder

    $ mkdir chroot-ubuntu
  2. Create a base Ubuntu system using debootstrap.

    $ sudo debootstrap --variant=buildd gutsy chroot-ubuntu http://archive.ubuntu.com/ubuntu/

    Change gutsy to any Ubuntu release that you want. E.g. hardy or feisty.

  3. Mount proc and dev filesystem on to the base system.

    $ sudo mount -o bind /dev chroot-ubuntu/dev
    $ sudo mount -o bind /proc chroot-ubuntu/proc
  4. Chroot .

    $ sudo chroot chroot-ubuntu /bin/bash
  5. Unmount both dev and proc filesystem once exiting chroot.

    $ sudo umount chroot-ubuntu/dev chroot-ubuntu/proc

Top