Search Results

Search: Posts Made By: arpagon
Forum: IP Networking 12-15-2014
2,477
Posted By arpagon
Openvvpn: cannot resolve when tunnel is mounted
Here is my (x)ubuntu version:
root@ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: ...
Forum: Ubuntu 12-15-2014
2,955
Posted By arpagon
remember that under ubuntu, Network-manager...
remember that under ubuntu, Network-manager manages networks. If you want to do it manually, first stop network-manager:
sudo service network-manager stop
then check your config in...
Forum: Ubuntu 12-15-2014
3,188
Posted By arpagon
you can customize a live cd with mkisofs command...
you can customize a live cd with mkisofs command and then load a kernel. I have personally never tried, but I think you need a certain linux experience first.
1,346
Posted By arpagon
Mount issue
I format a usb key:

mkfs -t ext4 /dev/sdf1
mkfs -t ext4 /dev/sdf2

(also tried mkfs.ext4 /dev/sdfx and mke2fs -t ext4 /dev/sdfx)
and have the following:

# fdisk -l
[...]
Device...
775
Posted By arpagon
Replace values between 2 files
I want to replace the third and fourth lines of a 2nd file by the first two lines of a file.

Input:
file_1
file_1.line_1
file_1.line_2

file_2

file_2.line_1
<file_2.line_2_blank>...
130,885
Posted By arpagon
Eh, thanx a bunch for your posts guys indeed ! ...
Eh, thanx a bunch for your posts guys indeed !
Chubler, my list was built with nc (sometimes, connection is ok with nc but not with firefox)
My script is running now (I sent the post from a proxy...
3,015
Posted By arpagon
I found what was the problem; Running: ...
I found what was the problem;

Running:

/usr/bin/mousepad &sleep 3;pkill mousepad

works. I put 'sleep 3' for testing purpose; we can put whatever command we want.

thanx guys!
...
3,015
Posted By arpagon
thanx in2nix4life I have already tried that: ...
thanx in2nix4life
I have already tried that:
mousepad&;pkill mousepad
bash: syntax error near unexpected token `;'
3,015
Posted By arpagon
Kill a program from bash
to kill a program in bash, for instance 'mousepad' I use
kill $(pidof mousepad);
or
pkill mousepad

But it only works if we use another bash window;

If it is started from the same bash,...
2,505
Posted By arpagon
thank you mate!
thank you mate!
2,505
Posted By arpagon
Assign a variable with awk
I launch 'netstat -a', if string 'ESTABLISHED' found, then VAR=1

#!/bin/bash
VAR=0;
netstat -a | awk '$6 ~ /ESTABLISHED/ {VAR=1}'

I cannot find the right syntax.

thanx guys!
130,885
Posted By arpagon
Proxy socks tester issue
I have a list of ip socks / port(eg: 192.168.0.1 80). I would like to write a bash to test automatically these addresses in a loop with firefox. The problem is that firefox process stays alive even...
2,431
Posted By arpagon
Thanx again Scrutinizer; Your solution with...
Thanx again Scrutinizer;
Your solution with grep is pretty cool.
To be honest, the missing -"- was a typo. it gave additional work. Sorry for that. Have a nice day!
2,431
Posted By arpagon
thanx again Scrutinizer! both awk...
thanx again Scrutinizer!

both
awk -F'ip=[(]|[)]|port="?|"' '/ip=/{print $2,$4}' file
and
sed -n 's/.*ip=(\([^)]*\).*port="*\([^"]*\).*/\1 \2/p' file

work. (do you know how to do it with...
2,431
Posted By arpagon
thanx Scrutinizer awk -F'port="?|"'...
thanx Scrutinizer

awk -F'port="?|"' '/ip=/{print $2}' file
prints ports only.
2,431
Posted By arpagon
Grep multiple pattern
I have got a text
from each line, I need to fetch port only if there is an ip

a.text text and port=25
b.ip=(12.32.54.256) and port="52"
c.ip=(55.251.253.12) and port=25"
d.text text and...
Forum: IP Networking 07-12-2014
3,710
Posted By arpagon
thank you. I start my laptop, so the cache...
thank you.

I start my laptop, so the cache should be empty , anyway, I issue:
arp -n
there is no entry for wlan0. Anyway, I flush everything:
sudo ip -s -s neigh flush all
-> msg: Nothing...
Forum: IP Networking 07-12-2014
3,710
Posted By arpagon
Cannot change mac address
ubuntu / xubuntu 13.10 and 14.04 (this issue should exist in debian as well)

I use wifi to connect to internet. I would like to change the wifi card mac address before connecting. Let's call the...
Forum: Ubuntu 08-11-2013
5,474
Posted By arpagon
My iptables does not work
Hello folks !

I am trying to set up my firewall the way it's done in this link:

in google, 'rusty's really quick guide to packet filtering' (cannot put web link in my post).

here is my fw...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 07:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy