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

Plasma 5 Network Manager Missing on systray


Wtf i dunno why i have installed 17.04 i can not see network manager applet … so basically no internet

a nasty solution it’s to run from a terminal this :

plasmawindowed org.kde.plasma.networkmanagement

you will get the silly plasma nm applet on your desktop and ytou can just use it to edit your connections and they will work even if you close the applet

another silly way that could be more polite it’s just to run this :

kde5-nm-connection-editor

et voila’ i was be able to connect and edit my fucking connections …i just hate this kind of things ,

btw i got this on ~/.xsession-erorrs

“KConfigIni: In file /usr/share/plasma/plasmoids/org.kde.plasma.networkmanagement/metadata.json, line 113: ” Invalid entry (missing ‘=’)
The desktop entry file “/usr/share/plasma/plasmoids/org.kde.plasma.networkmanagement/metadata.json” has Type= “Application” but no Exec line
org.kde.plasma: Could not load plugin info for plugin : “org.kde.plasma.networkmanagement” skipping plugin

so it says there is something of weird on /usr/share/plasma/plasmoids/org.kde.plasma.networkmanagement/metadata.json but i was not able to fix this shit by myself anyway i got the computer on internet with that trick

chrome how to download a video buffered?


this method it’s just for test  i am not responsable of an illegal use.

wel well well i just remember when i had my flash video just downloaded on fuckin /tmp folder and it was so easy to …. now ? there is no fuckin easy way to do that anymore if you search on the chrome’s cache folder it’s a mess the most of time and so .,…or you just use firefox with some tricks or there is no hope until today when i just got this method  that i will save here for my own usage .

i will add just this if you want save it just do  wget LINK  🙂

#How to download streaming video

Streaming just means a download that they don't want you to keep.  But Chrome's developer tools make it easy to access what's really going on under the hood.

##Open Developer Tools

From the page where you want to download some things, go into your chrome menu to open the developer tools.  You can either:

	1.  (On a mac): Command-option-J
	2.  (On a PC): Control-alt-J
	3.  (In your menu on a mac): Open View > Developer > Developer Tools
	4.  (On any Chrome machine): The far right menu button, to the right of the URL bar, you can press that, go down to "Tools", then open the "Developer Tools".
	
##Monitor Network Traffic

By clicking the "Network" tab, you'll get a list of all files requested since you opened that tab.  Our goal is to isolate the web request that returns the video of your choice.  At this point, you can navigate to the video you want, and I'd probably press the "clear" button in the developer tools right before finally pressing the "Play" button on the video, so it can be one of the only transfers you see.

##Identify the video transfer

It should be easy to recognize the video transfer:  It has a mime type of video, it's a transfer that should take a lot longer than the rest, etc.

Once you've found it, click on the request name, which represents the HTTP request that was sent to the server for the video file.

##Identify the Request URL

The first thing in the first tab of the request viewer should be the Request URL in the Headers tab.  You can just copy this URL into another video, and now if you right click the video, it should include a Save option, unlike when the whole thing was wrapped in Flash or whatever.

##Enjoy!