apt show

apt show command shows information about a package. root@ok-vm:~# apt show apache2 Package: apache2 Version: 2.4.18-2ubuntu3.5 Priority: optional Section: web Origin: Ubuntu Maintainer: Ubuntu Developers Original-Maintainer: Debian Apache Maintainers Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 501 kB Provides: httpd, httpd-cgi Pre-Depends: dpkg (>= 1.17.14) Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.18-2ubuntu3.5), apache2-utils (>= 2.4), apache2-data (= 2.4.18-2ubuntu3.5) … Read more

apt policy

apt policy command show information about a package. root@ok-vm:~# apt policy apache2 apache2: Installed: 2.4.18-2ubuntu3.5 Candidate: 2.4.18-2ubuntu3.5 Version table: *** 2.4.18-2ubuntu3.5 500 500 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 100 /var/lib/dpkg/status 2.4.18-2ubuntu3 500 500 http://azure.archive.ubuntu.com/ubuntu xenial/main amd64 Packages root@ok-vm:~# It shows the installed version “Installed: 2.4.18-2ubuntu3.5” and the repo from where it … Read more

automysqlbackup

Auto backup all your MySQL databases daily, weekly and monthly. To install on Debian/Ubuntu, run apt install automysqlbackup -y To manually backup, run automysqlbackup MySQL backups will be stored in folder /var/lib/automysqlbackup/ See backup

subprocess installed post-installation script returned error

When installing software on Ubuntu, i get following error. It is likely that 4.5.2-armada375 belongs to a chroot’s host Building only for 4.9.58-armada375 Building initial module for 4.9.58-armada375 Error! Bad return status for module build on kernel: 4.9.58-armada375 (armv7l) Consult /var/lib/dkms/spl/0.6.5.6/build/make.log for more information. dpkg: error processing package spl-dkms (–configure): subprocess installed post-installation script returned … Read more

update-alternatives

Set default editor in Ubuntu To change vi editor run root@backup:~# update-alternatives –config vi There are 2 choices for the alternative vi (providing /usr/bin/vi). Selection Path Priority Status ———————————————————— * 0 /usr/bin/vim.basic 30 auto mode 1 /usr/bin/vim.basic 30 manual mode 2 /usr/bin/vim.tiny 10 manual mode Press to keep the current choice[*], or type selection number: … Read more

apt doesn’t support architecture i386

After adding facebook hhvm repository on Ubuntu 16.04, i get following error when running “apt update” command. root@backup:~# apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Hit:4 http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu xenial InRelease Ign:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease Get:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Hit:7 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Hit:8 … Read more

add-apt-repository

add-apt-repository command can be used to add repository in ubuntu. To install, run apt-get install software-properties-common python-software-properties Example apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94 add-apt-repository https://dl.hhvm.com/ubuntu

apt

List all Dependencies for a package. If you don’t want to upgrade a package, you can use apt-mark command to hold it, the package won’t be upgraded If you want to remove the hold and allow the package to be upgraded, use Errors This website allow you to generate /etc/apt/sources.list file for Ubuntu/Debian. https://repogen.simplylinux.ch This … Read more

huawei e8231 usb modeswitch

By default, device work in Mass Storage mode root@fwhlin:~ # lsusb | grep Huawei Bus 009 Device 007: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode) root@fwhlin:~ # Create file vi /etc/usb_modeswitch.d/12d1:1f01 With following content root@fwhlin:~ # cat /etc/usb_modeswitch.d/12d1:1f01 # Huawei E3531s-2 – switch to modem mode instead of HiLink CDC-Ether mode TargetVendor=0x12d1 … Read more

getting huawei e8231 work on ubuntu 14.04

After connecting, i get following in lsusb root@fwhlin:~ # lsusb | grep 12d1 Bus 009 Device 004: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode) root@fwhlin:~ # It says “Mass storage mode”. If you check demesg, you will see [ 2385.775523] usb 9-2: New USB device found, idVendor=12d1, idProduct=1f01 [ 2385.775527] usb 9-2: … Read more

Enable remote desktop in xubuntu

Install vino sudo apt-get install vino Configure Vino Configure vino, run vino-preferences Start vino on boot XFCE settings > Session and Startup > Add Name: vino Description: vino desktop sharing Command: /usr/lib/vino/vino-server Now restart the computer. See Ubuntu