Ask / Submit
6

Netcat on Sailfish

asked 2015-09-01 10:47:22 +0300

vadd98 gravatar image

updated 2015-09-01 15:47:29 +0300

M.Bln. gravatar image

hi there, I found that nc is available in recovery mode but it isn't available in normal mode. Is there a way to use nc in normal mode??

edit retag flag offensive close delete

Comments

Bumping this as I'm also looking for netcat. I'm sure I saw it somewhere on openrepo's but I can't seem to find it anymore.

Niju ( 2015-09-26 18:24:16 +0300 )edit

I want to send an UDP message to my server, so netcat would be the easiest way. nc is absolutely basic functionality and is a must have!

Edit: Solved it with python script! This works out of the box ;)

SaimenSays ( 2015-10-08 00:17:44 +0300 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2015-10-11 12:26:20 +0300

Mced gravatar image

Netcat is a small program, so it's far easy to compile and install:

-- Go netcat.sourceforge.net and download the source file (netcat-0.7.1.tar.gz)

-- Open Terminal or log into Sailfish through SSH. No need to devel-su, just proceed using the standard 'nemo' account.

-- Uncompress:

tar zxf ./Downloads/netcat-0.7.1.tar.gz

-- Enter directory:

cd ./Downloads/netcat-0.7.1

-- If you didn't previously, you must install a bunch of packages needed for compiling:

pkcon install gcc #(say Y when asked "Proceed with changes?")
pkcon install make

-- Configure:

./configure

-- Compile:

make

-- Install:

Option A: next step should be logging as root (devel-su) and type:

make install

Option B: but if you don't have Developer Mode enabled or you don't want to install stuff as 'root', just create a 'bin' directory at home:

mkdir ~/bin

Copy the Netcat executable (I'm renaming it to 'nc'):

cp -a src/netcat ~/bin/nc

and you're done.

-- The uncompressed directory is useless now. You can erase it (check the route carefully, 'rm -rf' is a very dangerous command; or just delete it with your favorite file browser)

cd ~/Downloads
rm -rf netcat-0.7.1
edit flag offensive delete publish link more

Comments

it works, thanks a lot!!

vadd98 ( 2015-10-11 13:31:16 +0300 )edit
1

answered 2015-10-11 16:34:29 +0300

Nieldk gravatar image

No need to compile. You can download rpm here

http://t.co/duVmjgwEr9

edit flag offensive delete publish link more

Comments

@Nieldk is today a void link, Error 404. Who has a good address instead?

prometheos ( 2017-03-12 01:31:37 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2015-09-01 10:47:22 +0300

Seen: 847 times

Last updated: Oct 11 '15