Skip to content

Instantly share code, notes, and snippets.

@ennisa-ire
Last active December 20, 2018 09:42
Show Gist options
  • Save ennisa-ire/6734984a1d0c5cae4a05eec61111c189 to your computer and use it in GitHub Desktop.
Save ennisa-ire/6734984a1d0c5cae4a05eec61111c189 to your computer and use it in GitHub Desktop.
00 - IOT Tech - Linux Administration Center

Update Your System

sudo apt-get update

SW To Manage Repose

  • sudo apt-get install software-properties-common -y

Adding PPAs

sudo add-apt-repository ppa:couchdb/stable -y

Must not be boring!!! I repeat it must not be boring - this is not church!!!

This is Tony T, from IoT Tech its kinda dreamy Note, this is not a hip hop challenl is a learning platform!!!

I promised I would not be boring, i lied, here is boring fact of the day Philosy 101 :

  • Thales the man who want to know what everything was made of!!! Ok
  • Queue - Music little richie!!!!

Now onto the serious fun stuff.....

Lets learn together!!! I Start You go next

Demo Time!!!

Questions.

Remember learning is fun!!!

Hosts File

127.0.0.1       localhost
127.0.1.1       ae-Unknow
127.0.1.1       skuli.com
10.0.3.45       service-accountinfo
10.0.3.152      artifact-db

The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Spin up a browser

ae@ae-Unknow:~$ ssh -XT ubuntu@artifact-db firefox
The authenticity of host 'artifact-db (10.0.3.152)' can't be established.
ECDSA key fingerprint is SHA256:ASTwtGDRrReK9kE0xmoXfdl1/tQyp5lO5U9r0dhJDkA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'artifact-db,10.0.3.152' (ECDSA) to the list of known hosts.
ubuntu@artifact-db's password: 

X11 forwarding request failed on channel 0
Error: GDK_BACKEND does not match available displays
ae@ae-Unknow:~$ 

If you see this error you need to install xauth, on the server your are trying to visualize..

ubuntu@artifact-db:~$ sudo apt-get install xauth  

Tunnelling

Oh yeah, you want to secure your DB, or any port service from the public, then create a personal tunnel to it from your local machine lol

ae@ae-Unknow:~$ ssh -L5984:127.0.0.1:5984 ubuntu@artifact-db 
ubuntu@artifact-db's password: 
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-89-generic i686)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Sun Aug 27 09:20:43 2017
ubuntu@artifact-db:~$ 

How about to your best friends machine!!! Does your tunnel survive a reboot?

Search

Date

find . -mtime -1 -type f -exec grep -Iq . {} ; -and -print the "-1" ensures that everthing "modified" yesterday will be found.

Type

find . -type f -exec grep -Iq . {} ; -and -print
The "I" means binaries will be excluded, The "q" and the "." ensure the match is on text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment