0% found this document useful (0 votes)
130 views4 pages

Note

The document discusses connecting to a Raspberry Pi over SSH, running commands on the Pi like changing files and directories, and editing an HTML file on the Pi to add images.

Uploaded by

Most Won
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
130 views4 pages

Note

The document discusses connecting to a Raspberry Pi over SSH, running commands on the Pi like changing files and directories, and editing an HTML file on the Pi to add images.

Uploaded by

Most Won
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

how to remote in bash

ssh pi@192.168.0.18
tapos yes enter
password: raspberry

how to add 100 credit


type ruby credit.rb

ctrl + alt + t o

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$ nmap
bash: nmap: command not found

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$ arp -a

Interface: 192.168.0.21 --- 0xc


Internet Address Physical Address Type
192.168.0.1 a8-4e-3f-9e-1f-92 dynamic
192.168.0.255 ff-ff-ff-ff-ff-ff static
224.0.0.22 01-00-5e-00-00-16 static
224.0.0.251 01-00-5e-00-00-fb static
224.0.0.252 01-00-5e-00-00-fc static
239.255.255.250 01-00-5e-7f-ff-fa static
255.255.255.255 ff-ff-ff-ff-ff-ff static

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$ start 192.168.0.1
The system cannot find the file 192.168.0.1.

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$ start http://192.168.0.1

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$ ssh pi@192.168.0.18
The authenticity of host '192.168.0.18 (192.168.0.18)' can't be established.
ECDSA key fingerprint is SHA256:bS/dUtvRCByC4XUCjZlBppNC+GIKeA04J8W6TKMmaJg.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.0.18' (ECDSA) to the list of known hosts.
pi@192.168.0.18's password:
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent


permitted by applicable law.
Last login: Mon Sep 30 21:39:35 2019

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a
new password.

pi@raspberrypi:~ $ ls
boot.rb Desktop Downloads MagPi nohup.out Public VendShit-2.0
credit.rb Documents kiosk.rb Music Pictures Templates Videos
pi@raspberrypi:~ $ cat credit.rb
100.times { `echo w > /dev/ttyUSB0` }
pi@raspberrypi:~ $ client_loop: send disconnect: Connection reset by peer

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$ ssh pi@192.168.0.18
ssh: connect to host 192.168.0.18 port 22: Connection timed out

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$ ssh pi@192.168.0.18
pi@192.168.0.18's password:
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent


permitted by applicable law.
Last login: Mon Sep 30 21:45:32 2019

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a
new password.

pi@raspberrypi:~ $ ruby credit.rb


pi@raspberrypi:~ $ ls
boot.rb Desktop Downloads MagPi nohup.out Public VendShit-2.0
credit.rb Documents kiosk.rb Music Pictures Templates Videos
pi@raspberrypi:~ $ cd VendShit-2.0/
pi@raspberrypi:~/VendShit-2.0 $ ls
console embedded LICENSE web
pi@raspberrypi:~/VendShit-2.0 $ cd web/
pi@raspberrypi:~/VendShit-2.0/web $ ls
paho-mqtt.js vendo.html.backup vendo.js
vendo.html vendo.html.old vendo.js.save
pi@raspberrypi:~/VendShit-2.0/web $ cp vendo.html vendo.html.backup
pi@raspberrypi:~/VendShit-2.0/web $ sudo nano vendo.html
Use "fg" to return to nano.

[1]+ Stopped sudo nano vendo.html


pi@raspberrypi:~/VendShit-2.0/web $ fg
sudo nano vendo.html
pi@raspberrypi:~/VendShit-2.0/web $ sudo nano vendo.html
pi@raspberrypi:~/VendShit-2.0/web $ cd ~
pi@raspberrypi:~ $ ls
boot.rb credit.rb Desktop Documents Downloads kiosk.rb MagPi Music
nohup.out Pictures Public Templates VendShit-2.0 Videos
pi@raspberrypi:~ $ cd Downloads/
pi@raspberrypi:~/Downloads $ ls
download.html webstore.html
pi@raspberrypi:~/Downloads $ ls
69257819_2959935177368159_8196370155798790144_o.jpg download.html webstore.html
pi@raspberrypi:~/Downloads $ ls
69257819_2959935177368159_8196370155798790144_o.jpg download.html
[imagecyborg.com].zip webstore.html
pi@raspberrypi:~/Downloads $ tar -xvf [imagecyborg.com].zip
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
pi@raspberrypi:~/Downloads $ unzip
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).

-p extract files to pipe, no messages -l list files (short format)


-f freshen existing files, create none -t test compressed archive data
-u update files, create if necessary -z display archive comment only
-v list verbosely/show version info -T timestamp archive to latest
-x exclude files that follow (in xlist) -d extract files into exdir
modifiers:
-n never overwrite existing files -q quiet mode (-qq => quieter)
-o overwrite files WITHOUT prompting -a auto-convert any text files
-j junk paths (do not make directories) -aa treat ALL files as text
-U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields
-C match filenames case-insensitively -L make (some) names lowercase
-X restore UID/GID info -V retain VMS version numbers
-K keep setuid/setgid/tacky permissions -M pipe through "more" pager
See "unzip -hh" or unzip.txt for more help. Examples:
unzip data1 -x joe => extract all files except joe from zipfile data1.zip
unzip -p foo | more => send contents of foo.zip via pipe into program more
unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
pi@raspberrypi:~/Downloads $ unzip \[imagecyborg.com\].zip
Archive: [imagecyborg.com].zip
extracting: [www.google.com][370]emailgrey60024dp.png
extracting: [www.google.com][523]twitter32x32.png
extracting: [www.google.com][535]fb32x32.png
pi@raspberrypi:~/Downloads $ ls
69257819_2959935177368159_8196370155798790144_o.jpg [imagecyborg.com].zip
[www.google.com][370]emailgrey60024dp.png [www.google.com][535]fb32x32.png
download.html webstore.html
[www.google.com][523]twitter32x32.png
pi@raspberrypi:~/Downloads $ mv 69257819_2959935177368159_8196370155798790144_o.jpg
logo.jpg
pi@raspberrypi:~/Downloads $ mv logo.jpg ~/VendShit-2.0/web/
paho-mqtt.js vendo.html vendo.html.backup vendo.html.old
vendo.js vendo.js.save
pi@raspberrypi:~/Downloads $ mv logo.jpg ~/VendShit-2.0/web/
paho-mqtt.js vendo.html vendo.html.backup vendo.html.old
vendo.js vendo.js.save
pi@raspberrypi:~/Downloads $ mv logo.jpg ~/VendShit-2.0/web/
pi@raspberrypi:~/Downloads $ ls
download.html [imagecyborg.com].zip webstore.html [www.google.com]
[370]emailgrey60024dp.png [www.google.com][523]twitter32x32.png [www.google.com]
[535]fb32x32.png
pi@raspberrypi:~/Downloads $ ls
download.html [imagecyborg.com].zip webstore.html [www.google.com]
[370]emailgrey60024dp.png [www.google.com][523]twitter32x32.png [www.google.com]
[535]fb32x32.png
pi@raspberrypi:~/Downloads $ mv *.png ~/VendShit-2.0/web/
pi@raspberrypi:~/Downloads $ ls
download.html [imagecyborg.com].zip webstore.html
pi@raspberrypi:~/Downloads $ cd ~
pi@raspberrypi:~ $ ls
boot.rb credit.rb Desktop Documents Downloads kiosk.rb MagPi Music
nohup.out Pictures Public Templates VendShit-2.0 Videos
pi@raspberrypi:~ $ cd VendShit-2.0/web/
pi@raspberrypi:~/VendShit-2.0/web $ ls
logo.jpg vendo.html vendo.html.old vendo.js.save
[www.google.com][523]twitter32x32.png
paho-mqtt.js vendo.html.backup vendo.js [www.google.com]
[370]emailgrey60024dp.png [www.google.com][535]fb32x32.png
pi@raspberrypi:~/VendShit-2.0/web $ sudo nano vendo.html
pi@raspberrypi:~/VendShit-2.0/web $ sudo nano vendo.html
pi@raspberrypi:~/VendShit-2.0/web $ mv \[www.google.com\]\
[370\]emailgrey60024dp.png 1.png
pi@raspberrypi:~/VendShit-2.0/web $ mv \[www.google.com\]\[535\]fb32x32.png 2.pn
pi@raspberrypi:~/VendShit-2.0/web $ mv \[www.google.com\]\[523\]twitter32x32.png
3.png
pi@raspberrypi:~/VendShit-2.0/web $ mv 2.pn 2.png
pi@raspberrypi:~/VendShit-2.0/web $ sudo nano vendo.html
pi@raspberrypi:~/VendShit-2.0/web $ client_loop: send disconnect: Connection reset
by peer

Lhem@DESKTOP-M13O7EP MINGW64 ~/Desktop


$

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy