Share Files with a simple Ethernet cable and kde or terminal via SSH.


INSTALL WHAT  YOU NEED

sudo apt-get install openssh-client openssh-server

NETS

screenshot-3

fig1

In this scheme we have 2 computers connect to internet via wifi , thought a router and they are DIRECTLY connect via ethernet CABLE. Ok you can use wifi and ssh to connect but to copy and paste file a direct ethernet cable it’s faster  than samba or  even other ways 
A very crucial point it’s the IP ADRRES WE ARE GOING TO USE FOR ETHERNET CONNETION THE ROUTER INFACT HAS THIS IP ADDRESS 192.168.1.1 so we need to connect the ethernet cards to ANOTHER NET infact the address it’s

192.168 .0. 70\71

To undestand how to achieve that for your network then run this command

ifconfig

as you can see i have

ifconfig

enp9s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1  (Local Loopback)
RX packets 724210  bytes 36282573 (36.2 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 724210  bytes 36282573 (36.2 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet 192.168.1.46  netmask 255.255.255.0  broadcast 192.168.1.255
inet6 fe80::274c:b2d2:57ed:5074  prefixlen 64  scopeid 0x20 ether a4:17:31:c9:1c:29  txqueuelen 1000  (Ethernet)
RX packets 102070  bytes 133111059 (133.1 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 55750  bytes 7139648 (7.1 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

so i am connected with wifi , wlp7s0 , and i have a ethernet pci card called enp9s0 .

To get the configuration of fig 1  you can configure the network with a terminal or with networkmanager ( run on terminal)

TERMINAL WAY

If you prefer to use a terminal to connect  you have to do :

sudo ifconfig enp9s0 192.168.0.70 up

on the other computer instead you have to do

sudo ifconfig enp3s6 192.168.0.71 up

CONNECT WITH SSH

As usual it will ask for password and you get in

ssh  charlotte@192.168.0.71

he authenticity of host ‘192.168.0.71 (192.168.0.71)’ can’t be established.
ECDSA key fingerprint is SHA256:iHDff80m3z27FyvloThybOLBbvZcEjyVsm5U9Za1BS8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘192.168.0.71’ (ECDSA) to the list of known hosts.

charlotte@192.168.0.71’s password:

Welcome to Ubuntu Zesty Zapus (development branch) (GNU/Linux 4.9.0-11-generic x86_64)

charlotte@sam-Pavilion-ZV6100-EE991EA-ABZ:~$

So now you can copy and paste files or edit with vi , with the code

scp filefromcomputer2.txt  sem@192.168.0.70:~/Desktop/filefromcomputer2.txt

 

WITH  NETWORK MANAGER GUI INTERFACE

Other way could be instead the network manager gui

kde5-nm-connection-editor

An  on ipv4 add address  192.168.0.70 in the first computer and in the second we have to replace that ip with   192.168.0.71 subnet mask it’s alwasy for every computer 255.255.255.0

After that yuu have to click on connect in the normal way on network manager applet\plasmoid.

to share copy edit file you can use dolphin as you can see here :

STEP 1dolphin-nexus0

STEP2

screenshot-6

And dolphin will automatically open ,if you did all right , after you write down the password.

Advertisements

location plasma 5 kde 5 service menu


Well wtf i use often service menu on kde and they changed the location

before it was :

$HOME/.kde/share/kde4/services/ServiceMenus

AND NOW :

$HOME/.local/share/kservices5/ServiceMenus/

So you need to copy your stuff.desktop oin that folder

pdf preview kde kubuntu


NEED PDF PREVIEW ON DOLPHIN ?

here :

sudo apt-get install kdegraphics-thumbnailers

then run (for kde 4 or kde5 anyway the binary starts with kbuildsycoca) to refresh the stuff

kbuildsycoca
or
kbuildsycoca4
or
kbuildsycoca5

now enable it on dolphin settings

snapshot1