kfoewfj9042u890jf8035vj3489vjn385vn358vhn358vh35809hv5
vgj34ivh38gfh3789vh34280vh408923vh835809vh358hb+3hb+035b
gvjbvh3589hv8vhj 3pçgjk 204guj340935nb3r5jbitbç
gvjriovbhj83409hvnuvb3r8hv3r8ivbheruobniernb er9jhb439ugj423
__________________________________________________________________________________________________
tunnelling ssh
so to make use of vncserver:
+--------------------------------------------+
|ssh -L 5901:localhost:5901 USER@REMOTE_IP |
+--------------------------------------------+
prompt pass and leave open.
in remote machine (hereby) lets check server is up and runnin
for rpi, maight have to do this:
+-------------------------------------+
| $ sudo apt install tightvncserver |
| $ tightvncserver |
| $ vncpasswd |
+-------------------------------------+
after that create init.d script...
+-------------------------------------+
| sudo nano /etc/init.d/vncboot |
+-------------------------------------+
...........................................................
#! /bin/sh
# /etc/init.d/vncboot
### BEGIN INIT INFO
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.
### END INIT INFO
USER=pi
HOME=/home/pi
export USER HOME
case "$1" in
start)
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
su - $USER -c "/usr/bin/vncserver :1 -geometry 1280x600 -depth 24"
;;
stop)
echo "Stopping VNC Server"
/usr/bin/vncserver -kill :1
;;
*)
echo "Usage: /etc/init.d/vncboot {start|stop}"
exit 1
;;
esac
exit 0
...........................................................
after this done, change permissions on vncboot file recently created
+--------------------------------------+
| $ sudo chmod 755 /etc/init.d/vncboot |
+--------------------------------------+
Now leave this terminal and go to local machine, the one you are using ;-)
as root, install:
+---------------------------------+
| apt-get install xtightvncviewer |
+---------------------------------+
then promt -not as root!-:
+-----------+
| vncviewer |
+-----------+
and fill server and port (if copnfigured as uphere, yourser.ver:5901)
and password created...
Renember, in server side, to stop the server:
+----------------------------------------+
| vncserver –kill :1 (pick your display) |
+----------------------------------------+
...and to start it again
+-------------------------------------------+
| vncserver :1 –geometry 1024x600 –depth 24 |
+-------------------------------------------+
4 example!
=)
__________________________________________________________________________________________________
Oh!. Sorry. What you were looking for:
+----------------------------------------------------+
| scp /path/to/file username@a:/path/to/destination |
| |
| scp username@b:/path/to/file /path/to/destination |
+----------------------------------------------------+
Really. This command is most amazing!!!
__________________________________________________________________________________________________
sources:
https://www.techrepublic.com/article/how-to-connect-to-vnc-using-ssh/
https://librebit.github.io/raspberry/raspbian/vnc/server/2016/09/14/habilitar-vnc-server-en-raspberry-pi.html
https://www.tightvnc.com/vncviewer.1.php
fewrhufio43qh8f843yt14789tyty 9pyhfewu8fy 8247r bh7r575kj
tr76498 75 bn7t58041 7rbn57n8 nt0 t3rqq3er qergeqrg3qr9
t 9886 8n9pq3fuiq3r`f82134f80 98f4¡3 9gae50giq3 ger f
refgq953qt 14¡39ie0fi w'782481yhru ogu0984239 tu423pgi0df
Mostrando entradas con la etiqueta copy. Mostrar todas las entradas
Mostrando entradas con la etiqueta copy. Mostrar todas las entradas
18 dic 2024
scp 2 copy and paste files && tunnelling ssh 2 make use of vncserver:
5 sept 2016
How to access LAN windows network shares from Debian command line
If you are using Debian OS running in Terminal, console or SSH and you would like to access shares available in that machine's Local Network Area connection capability, you may want to try these easy steps. To me it worked just perfect! Do not forget to run commands as root, involving it by writing su. Also an apt-get update && apt-get upgrade is always recommended. Then after:
1.- Install needed stuff:
apt-get install samba
apt-get install cifs-utils
2.-Edit fstab file
nano /etc/fstab
Nano is a small editor. Use the one you prefer the most, and add the line:
//192.168.x.x/nameOfShare /mnt/smb cifs guest,uid=1000,iocharset=utf8 0 0
Check you local server IP to be right, and also check that your local smb folder path is real. You could also set user and password, but this is not explained hereby.
4.- Run the command:
mount -a
If it all worked all right you should be able to list (ls) and copy (cp) files, in the event of a guest user account available to connect.
I do not remember where I got this info, surely available in the world wide web. This I write to myself as a reminder, in the event I find myself in the need of having to repeat this easy steps, and not remembering where did I find the instructions. Sorry for not crediting properly the source of the information.
1.- Install needed stuff:
apt-get install samba
apt-get install cifs-utils
2.-Edit fstab file
nano /etc/fstab
Nano is a small editor. Use the one you prefer the most, and add the line:
//192.168.x.x/nameOfShare /mnt/smb cifs guest,uid=1000,iocharset=utf8 0 0
Check you local server IP to be right, and also check that your local smb folder path is real. You could also set user and password, but this is not explained hereby.
4.- Run the command:
mount -a
If it all worked all right you should be able to list (ls) and copy (cp) files, in the event of a guest user account available to connect.
I do not remember where I got this info, surely available in the world wide web. This I write to myself as a reminder, in the event I find myself in the need of having to repeat this easy steps, and not remembering where did I find the instructions. Sorry for not crediting properly the source of the information.