Skip to content

Latest commit

 

History

History
76 lines (76 loc) · 1.79 KB

File metadata and controls

76 lines (76 loc) · 1.79 KB

Boot Repair

$ sudo add-apt-repository ppa:yannubuntu/boot-repair
$ sudo apt update
$ sudo apt install boot-repair
$ boot-repair

Clean up boot partition

$ uname -r 
$ sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`

You will get the list of images Now its time to remove old kernel one by one as:

$ sudo apt-get purge linux-image-3.19.0-25-generic
$ sudo apt-get autoremove
$ sudo update-grub

Disable X at boot time so that the system boots in text mode

$ sudo vi /etc/default/grub

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

# GRUB_CMDLINE_LINUX_DEFAULT="text"

Update GRUB:

$ sudo update-grub

To find out what is the current run-level name

$ systemctl get-default

To change it to "multi-user.target"

$ systemctl set-default multi-user.target

Using add-apt-repository command

$ sudo add-apt-repository ppa:libreoffice/ppa

For other hosted repositories, can be also configured by providing its reference as below:

$ add-apt-repository 'deb http://archive.getdeb.net/ubuntu wily-getdeb games'

Arabic in Linux Console

$ sudo dpkg-reconfigure console-setup
$ sudo apt-get install libfribidi0 libfribidi-dev
$ wget https://launchpad.net/~behnam/+archive/ubuntu/ppa/+files/bicon_0.2.0-1ubuntu0~ppa4_amd64.deb
$ sudo dpkg -i ./bicon_0.2.0-1ubuntu0~ppa4_amd64.deb
$ /usr/bin/bicon.bin

Check the available session managers

$ update-alternatives --list x-session-manager

Get a more verbose description

$ update-alternatives --display x-session-manager

Use the following ~/.xsession file:

  #!/bin/sh
  exec startlxde

Try out other environments as a one-off

$ startx /usr/bin/startkde