Skip to main content

Posts

Showing posts from January, 2019

how to install kivy in ubuntu

Install kivy using  python in ubuntu 18.0: first install python : $ sudo pip install pygame because kivy use pygame library to play video and play game with multi touch system. $  sudo apt install libglu1-mesa-dev freeglut3-dev  To solve the some error which is occur to install kivy like  /usr/bin/ld: cannot find -lGL     collect2: error: ld returned 1 exit status      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1         ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-te7d7diq/kivy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-b64enjrj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-te7d7diq/kivy/

whois command not found in ubuntu

whois command not found in ubuntu 18.0 or above then run the following  commands: sudo apt-get install python-software-properties  sudo add-apt-repository ppa:nathan-renniewaldock/ppa  sudo apt-get update  sudo apt-get install whois omprakash@omprakash :~$ sudo apt-get install whois Reading package lists... Done Building dependency tree       Reading state information... Done The following packages were automatically installed and are no longer required:   augeas-lenses bridge-utils cpu-checker ebtables ethtool   gir1.2-appindicator3-0.1 gir1.2-gtk-vnc-2.0 gir1.2-libosinfo-1.0   gir1.2-libvirt-glib-1.0 gir1.2-spiceclientglib-2.0 gir1.2-spiceclientgtk-3.0   ibverbs-providers ipxe-qemu ipxe-qemu-256k-compat-efi-roms libaugeas0   libfdt1 libgovirt-common libgovirt2 libibverbs1 libiscsi7 libnetcf1   libnl-route-3-200 libpcap0.8-dev librados2 librbd1 librdmacm1   libspice-server1 libvirt-clients libvirt-daemon   libvirt-daemon-driver-storage-rbd libvirt-daemon-system libvirt-gli

software installation in ubuntu 18.0 and above

software install in the Ubuntu operating system : chrome subline text vlc media player vim/vi 1. google-chrome: Follow the instruction for installation: Add Key: $ wget - q - O - https :// dl - ssl . google . com / linux / linux_signing_key . pub | sudo apt - key add - Set repository: $ echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee / etc / apt / sources . list . d / google - chrome . list Install package: $ sudo apt - get update $ sudo apt - get install google - chrome - stable 2. sublime text: 1. Open terminal via Ctrl+Alt+T or by searching for “Terminal” from desktop app launcher. When it opens, run command to install the key: $ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - 2. Then add the apt repository via command: $ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

configure aws smtp mail serever

Configuring Postfix Complete the following procedures to configure your mail server to send email through Amazon SES using Postfix. To configure Postfix At the command line, type the following command: sudo postconf -e "relayhost = [ email-smtp .us-west-2 .amazonaws .com ]:587" \ "smtp_sasl_auth_enable = yes" \ "smtp_sasl_security_options = noanonymous" \ "smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd" \ "smtp_use_tls = yes" \ "smtp_tls_security_level = encrypt" \ "smtp_tls_note_starttls_offer = yes" Note If you use Amazon SES in an AWS Region other than US West (Oregon), replace email-smtp.us-west-2.amazonaws.com in the preceding

RequestsDependencyWarning: urllib3 (1.24.1) or chardet (3.0.4) doesn't match a supported version

import tweepy /usr/lib/python2.7/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.24.1) or chardet (3.0.4) doesn't match a supported version!   RequestsDependencyWarning) Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/local/lib/python2.7/dist-packages/tweepy/__init__.py", line 14, in <module>     from tweepy.api import API   File "/usr/local/lib/python2.7/dist-packages/tweepy/api.py", line 12, in <module>     from tweepy.binder import bind_api   File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 11, in <module>     import requests   File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 97, in <module>     from . import utils   File "/usr/lib/python2.7/dist-packages/requests/utils.py", line 26, in <module>     from ._internal_utils import to_native_string   File "/usr/lib/python2.

Docker

Question:   Why introduce docker in the IT industry ? Ans: Docker provide the environment  for run or  perform the task according to your command and do not take extra resources from your computer system. it is write in go language, do not need to install os and do not need to run virtual. The software are use to launch that technology that is called LXC (Linux Container) LXC : It is the process to perform for the specific task like os building, start process, app/cmd/process run.  it is also create the environment for run the task like jvm in java programming . this the create the container of each and every process or task and that container have life time is to complete the process.  Tool for the LXC :  1- buildah 2- containerd 3-docker 4- podman   We are use the Docker technology : 1- Installation of docker    # yum install docker    # systemctl restart docker   #  systemctl enable docker  2- Install docker image   we have two method for installation of d

How to install mail server in linux

1.Install Dovecot. [root@mail ~]# yum -y install dovecot Dovecot  Configuration [root@mail ~]# vi /etc/dovecot/dovecot.conf # line 24: uncomment protocols = imap pop3 lmtp # line 30: uncomment and change ( if not use IPv6 ) listen = * [root@mail ~]# vi /etc/dovecot/conf.d/10-auth.conf # line 10: uncomment and change ( allow plain text auth ) disable_plaintext_auth = no # line 100: add auth_mechanisms = plain login [root@mail ~]# vi /etc/dovecot/conf.d/10-mail.conf # line 30: uncomment and add mail_location = maildir:~/Maildir [root@mail ~]# vi /etc/dovecot/conf.d/10-master.conf # line 96-98: uncomment and add like follows # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth {     mode = 0666     user = postfix     group = postfix } [root@mail ~]# vi /etc/dovecot/conf.d/10-ssl.conf # line 8: change (not require SSL) ssl = no [root@mail ~]# systemctl start dovecot [root@mail ~]# systemctl enable dovecot #yum install httpd This answer from AWS Amazon forum: #yum -y install y

solve the wi-fi problem in ubuntu

####--------->run that command to solve the wi-fi problem: $ git clone -b extended --single-branch https://github.com/lwfinger/rtlwifi_new.git $ cd rtlwifi_new $ make $ sudo make install If you are gatting Error then click reboot and then secure boot is   "disable" now, please make sure          ####---> To make the strong signal <------------#### Open Terminal, and enter:  $ iwconfig    :-- And note down the wl* number.    :-- Download the new driver rock.new_btcoex from Github and unzip it to Desktop folder.     In Terminal, now run these commands:       $ git clone https://github.com/lwfinger/rtlwifi_new/tree/rock.new_btcoex  $ cd Desktop/rtlwifi_new-rock.new_btcoex  $  make  $  sudo make install  # type your ubuntu password  $  sudo modprobe -rv rtl8723be  $  sudo modprobe -v rtl8723be ant_sel=2  $  sudo ip link set wl** up   # use your wl** number which is noted down  $  sudo iw dev wl** scan To make the settings permanent, use this command:   $ echo "opti

Installing Shellinabox on Linux

Installing Shellinabox on Linux : On Debian, Ubuntu and Linux Mint :  $ sudo apt-cache search shellinabox  $ sudo apt-get install openssl shellinabox On RHEL, CentOS and Fedora :  # yum install openssl shellinabox Configuring Shellinabox: On Debian, Ubuntu and Linux Mint  $ sudo vi /etc/default/shellinabox On RHEL, CentOS and Fedora  # vi /etc/sysconfig/shellinaboxd # TCP port that shellinboxd's webserver listens on PORT=6175 # specify the IP address of a destination SSH server OPTS="-s /:SSH:172.16.25.125" # if you want to restrict access to shellinaboxd from localhost only OPTS="-s /:SSH:172.16.25.125 --localhost-only" Starting Shellinabox: On Debian, Ubuntu and Linux Mint  $ sudo service shellinaboxd start On RHEL and CentOS:  # service shellinaboxd start On Fedora:  # systemctl enable shellinaboxd.service  # systemctl start shellinaboxd.service Verify Shellinabox:  $ sudo netstat -nap | grep shellinabox
wifi driver problem in the ubuntu  ####--------->run that command to solve the wi-fi problem: $ git clone -b extended --single-branch https://github.com/lwfinger/rtlwifi_new.git $ cd rtlwifi_new $ make $ sudo make install If you are gatting Error then click reboot and then secure boot is   "disable" now, please make sure          ####---> To make the strong signal <------------#### Open Terminal, and enter:  $ iwconfig    :-- And note down the wl* number.    :-- Download the new driver rock.new_btcoex from Github and unzip it to Desktop folder.     In Terminal, now run these commands:      $ git clone https://github.com/lwfinger/rtlwifi_new/tree/rock.new_btcoex  $ cd Desktop/rtlwifi_new-rock.new_btcoex  $  make  $  sudo make install  # type your ubuntu password  $  sudo modprobe -rv rtl8723be  $  sudo modprobe -v rtl8723be ant_sel=2  $  sudo ip link set wl** up   # use your wl** number which is noted down  $  sudo iw dev wl** scan To make the settings permanent,

tag