freenas-like solution for aoe?

2010-03-20 Thread Vadkan Jozsef
Does anybody know a FreeNAS-like solution, that supports AoE? - Ata over
Ethernet?

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1269078529.32263.30.ca...@ubuntu



bruteforce protection howto

2010-03-20 Thread Vadkan Jozsef
Two pc's:

1 - router
2 - logger

Situation: someone tries to bruteforce into a server, and the logger
get's a log about it [e.g.: ssh login failed].

What's the best method to ban that ip [what is bruteforcig a server]
what was logged on the logger?
I need to ban the ip on the router pc.

How can i send the bad ip to the router, to ban it?

Just run a cronjob, and e.g.: scp the list of ip's from the logger to
the router, then ban the ip from the list on the router pc?

Or is there any offical method for this?

I'm just asking for docs/howtos.. :\ to get started..

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1269123449.32263.57.ca...@ubuntu



aoe - with freenas, openfiler

2010-03-11 Thread Vadkan Jozsef
Does anybody has a link to a distro, that supports ata over ethernet,
and it's like: freenas, openfiler

sorry for the interesting question :D:S

thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268304756.6254.26.ca...@ubuntu



how to install debian on an usb pendrive

2010-03-10 Thread Vadkan Jozsef
Does someone has any docs/howtos/solutions about it? :\ i would thank
that:\

I just want a netinstall on a pendrive. [but when i just boot from a cd,
and install to the pendrive, it just hangs for 2 days, formatting the
pendrive... :\]

thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268240401.3422.4.ca...@ubuntu



this table in html how

2010-03-07 Thread Vadkan Jozsef
http://img52.imageshack.us/img52/7735/tablehow.png

i just can't write this table in html code.. :\

how can i make it?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1267959072.2365.66.ca...@ubuntu



perl/bash question - html link out of text

2010-03-07 Thread Vadkan Jozsef
I don't know how to modify the:

sed -r 's,.*(http://[^ \$]+).*,a href=\\1\\1/a,'

command, to not just:
$ echo test string http://somewhere.uk/ test | sed -r 's,.*(http://[^
\$]+).*,a href=\\1\\1/a,'
a href=http://somewhere.uk/;http://somewhere.uk//a

rather output this:
test string a href=http://somewhere.uk/;http://somewhere.uk//a test


can some perl/bash gods help me? :)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1267981676.2365.83.ca...@ubuntu



Re: this table in html how

2010-03-07 Thread Vadkan Jozsef
thank you! :)

On v, 2010-03-07 at 11:50 +, Camaleón wrote:
 On Sun, 07 Mar 2010 11:51:12 +0100, Vadkan Jozsef wrote:
 
  http://img52.imageshack.us/img52/7735/tablehow.png
  
  i just can't write this table in html code.. :\
  
  how can i make it?
 
 ***
 table width=50% border=1
 tr
 td colspan=2 width=50%cell1/td
 td colspan=2 width=50%cell2/td
 /tr
 tr
 td width=33%cell3/td
 td colspan=2 width=33%cell4/td
 td width=33%cell5/td
 /tr
 /table
 ***
 
 CSS no included ;-)
 
 Greetings,
 
 -- 
 Camaleón
 
 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1267981775.2365.85.ca...@ubuntu



truncate until delimiter

2010-02-28 Thread Vadkan Jozsef
e.g.:

$ ls -tr `find -type f` | grep .txt$ | rev
txt.nimdaymphp/.
txt.ccuc/aborp/.
txt.og/.
txt.osle/.
txt.kidosam/.


I Want to truncate this output, until the first /:

$ ls -tr `find -type f` | grep .txt$ | rev | THE-MAGIC-COMES-HERE
.
aborp/.
.
.
.

How?

I just want to modify the names of some files, but I can't do it if they
have their full path in their names..

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1267366416.2365.25.ca...@ubuntu



release cycles, security supports for multiple OSes

2010-02-27 Thread Vadkan Jozsef
Does anybody has a list of multiple distros/operating systems comparing
e.g.: security support time for a version, or what are the release
cycles, etc.?

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1267278528.2365.5.ca...@ubuntu



perl or bash question [convert strings in a txt to html links]

2010-02-27 Thread Vadkan Jozsef
How can I do that in bash or perl, that I have a txt file, e.g.:

$cat file.txt
Hi, this is the content of the txt file, that contains links like this:
http://www.somewhere.it/, and it could contain: http://somewhere.com,
etc..
This is the second line, that doesn't contains links..
..
This is the XYZ line, that contains a link: http://www.somewhere.net
$


...ok.. so how could I make a regexp for this?

Turning:

http://website.org
http://www.website.org

to this:

a href=http://website.orghttp://website.org/a
a href=http://www.website.orghttp://www.website.org/a

The solution would be:

sed 'SOMEMAGIC' file.txt  file.html
or
perl 'SOMEBIGMAGIC' file.txt  file.html

:D


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1267290722.2365.12.ca...@ubuntu



renamer script help..

2010-02-21 Thread Vadkan Jozsef
The script:
http://pastebin.ca/1804613

but it's not working too well:
http://pastebin.ca/1804612

e.g.: the script makes arviztur-ukorfurogep from árvíztűrő
tükörfúrógép, when it should be: arvizturo-tukorfurogep

Has someone a similar script, that works?

thanks:\
ps.: i tried it under lucid, dash is not installed as /bin/sh..


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1266759944.6612.12.ca...@ubuntu



regexp for rename command - please help!

2010-02-20 Thread Vadkan Jozsef
The filename, that i want to rename:

---vol.-01-disk-cantatas-bwv-3;

commands, that doesn't work:

$ rename 's/^---//g' *
Unknown option: -vol.-01-disk-cantatas-bwv-3;
Usage: rename [-v] [-n] [-f] perlexpr [filenames]


$ rename 's/.-/-/g' *
Unknown option: -vol.-01-disk-cantatas-bwv-3;
Usage: rename [-v] [-n] [-f] perlexpr [filenames]


$ rename 's/;$//g' *
Unknown option: -vol.-01-disk-cantatas-bwv-3;
Usage: rename [-v] [-n] [-f] perlexpr [filenames]


What is the regexp to get this filename?:

vol-01-disk-cantatas-bwv-3

Thank you:)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1266677069.6612.0.ca...@ubuntu



RE: how to find bad blocks

2010-02-15 Thread Vadkan Jozsef
pastebin.com/f5a5c595a

i just started badblocks -w


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1266236447.26031.8.ca...@ubuntu



how to find bad blocks

2010-02-09 Thread Vadkan Jozsef
Besides the badblocks app?

We have a samsung hdd, that keeps falling out of raid, but there are no
bad blocks on it, according to badblocks prog.

we would like to return it [warranty], but it would be better to find
e.g. bad blocks on it..:\ :D

thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



how to find out promiscuous mode

2010-02-03 Thread Vadkan Jozsef
How can I find out that someone is using it's network card in
promiscuous mode in a subnet?

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
How can I set ulimit?

when I give:

ulimit -n 10240

ok, 

ulimit -n

gives 10240. But. after a few minutes, it 1024 again!

How can I set the ulimit to be permanently 10240?

It would be important! :S

Thank you :\


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
so the question still is: how can I set ulimit to be permanent? e.g.:
10240 after reboot? :D

there's no way for it?:O

On k, 2010-01-26 at 15:42 -0500, Stephen Powell wrote:
 On 2010-01-26 at 14:40:23 -0500, Alex Samad wrote:
  have a look at /etc/security/limits.conf
  
  I have 2 lines in there that are not commented
  
  @user hard nofile 2048
  alex hard nofile 4198
 
 That works!  I modified my /etc/security/limits.conf file and added the 
 following entry:
 
 *   hardnofile  1048
 
 I then shutdown and rebooted.
 
 I login as a normal user and issue
 
$ ulimit -n
1024
$ ulimit -n 1048
$ ulimit -n
1048
$ ulimit -n 2000
-bash: ulimit: open files: cannot modifiy limit: Operation not permitted
 
 The limit starts at the default of 1024, just as before.  But ordinary users 
 can raise it
 up to and including the new hard limit of 1048.  But they cannot raise it 
 above that.
 To raise it above the hard limit you must be root.
 
 Thanks, Alex!
 
 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
i wrote this two lines:


*hardnofile10240
*softnofile10240

in /etc/security/limits.conf, reboot
but its now working.

On k, 2010-01-26 at 17:03 -0500, Stephen Powell wrote:
 On 2010-01-26 at 16:44:33 -0500, Stephen Powell wrote:
  In /etc/security/limits.conf, add the following line:
  
 databasehardnofile   10240
  
  In /home/database/.bash_profile add the following line:
  
 ulimit -n 10240
 
 I just thought of another way, which I think is even better.
 In /etc/security/limits.conf, add *two* lines, in this order:
 
  databasehardnofile10240
  databasesoftnofile10240
 
 That way, you don't have to mess with a bash profile.  And it
 should affect daemons too, without modifying their startup
 scripts.  If you want the change to affect all users, change
 the word database to an asterisk (*).  If you want it to
 affect all members of a group, use an at sign (@) in front
 of the group name, such as @sys.
 
 - Original Message -
 From: Stephen Powell zlinux...@wowway.com
 To: debian-user@lists.debian.org
 Sent: Tue, 26 Jan 2010 16:44:33 -0500 (EST)
 Subject: Re: how to set permanent ulimit
 
 On 2010-01-26 at 15:53:37 -0500, Vadkan Jozsef wrote:
  so the question still is: how can I set ulimit to be permanent? e.g.:
  10240 after reboot? :D
 
  there's no way for it?:O
 
 I believe that Alex and I just told you, in effect.
 But if you need detailed instructions, OK.  :-(
 
 First of all, it depends on whether you want this limit changed for
 all users, all users of a group, or just one user, such as a database
 server's userid.  I'll give you an example for a single user.
 I hope you can adapt these instructions if that's not the case.
 Let's suppose that user database needs to be able to open up to
 10240 files at once.
 
 In /etc/security/limits.conf, add the following line:
 
databasehardnofile   10240
 
 In /home/database/.bash_profile add the following line:
 
ulimit -n 10240
 
 Now shutdown and reboot.  Now, whenever database logs in, his
 file limit will be 10240.  This assumes that the login shell for
 database is bash.  Of course, if a daemon needs these
 privileges, this won't work, since there is no interactive
 login shell.  You may need to modify the daemon's start-up script
 in this case to add the ulimit command.
 
 If you want the limit to apply to all users, edit /etc/profile
 instead of ~/.bash_profile.  And in /etc/security/limits.conf,
 substitute an asterisk (*) for the userid database.  Again,
 this assumes an interactive login shell of bash.  Daemons, since they don't
 have an interactive login shell, won't execute that ulimit
 command.  You'll have to find a place to put it.  The startup
 script in /etc/init.d might be a good place.  But watch for
 upgrades to the startup script which remove the modification.
 If someone else has a better idea for how to implement this,
 let me know.
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 
 
 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to set permanent ulimit

2010-01-26 Thread Vadkan Jozsef
sorry:D

i wanted to write: it's not working. :\


On k, 2010-01-26 at 19:42 -0500, Stephen Powell wrote:
 On 2010-01-01 at 19:04:22 -0500, Vadkan Jozsef wrote:
  i wrote this two lines:
  
  *hardnofile10240
  *softnofile10240
  
  in /etc/security/limits.conf, reboot
  but its now working.
 
 That does not make sense.  Do you mean and it's now working,
 or do you mean but it's not working?
 
 The asterisk does start in column 1 of the file, right?
 And there's no pound sign (#) in front of it, right?
 The lines which start with a pound sign are comments.
 The default version of this file is either blank lines
 or comments; there are no effective lines in it.
 
 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



only sftp

2010-01-24 Thread Vadkan Jozsef
Now this is funny.

All the years pass, and theres no _NORMAL_ solution for this:

e.g.: 

1 - theres a webmin on a server, an admin creates a domain on it.
2 - another admin [who manages _one_ domain] creates e.g.: a new user in
the domain.
3 - missing thing: that they can only use chrooted sftp [with shell
like: /bin/false].

Why? Why can't I create a normal chrooted SFTP server?

Why is that I set ChrootDirectory %h option in sshd_config, and when I
SFTP to it, it puts me on /? [permission denied]
:D ...

This thing really s*cks.

Developers are very lazy.

Why isn't there a GOOD solution to replace the old FTP to
SFTP???.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



chrooted rssh

2010-01-24 Thread Vadkan Jozsef
Does someone has an easy howto for only allowing e.g.: scp with rssh
[chrooted]?

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



outdated ssl cert

2010-01-16 Thread Vadkan Jozsef
what does a self-signed outdated ssl cert worth? [https]

could it be tricked [https] in a way, that the end user will not
recognize? [e.g. he already accepted the cert one time, and the browser
would warn her, if it been attacked?]

..I mean does an outdated self-signed certificate give the same security
as a normal cert?

thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



only scp

2010-01-16 Thread Vadkan Jozsef
anybody got any tips/howtos/docs for this?:

- restrict the users, to only use scp [no shell]
- but a root, admin can still login with ssh


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



filezilla alternative

2010-01-11 Thread Vadkan Jozsef
Are there any good FTP programs that support SFTP, FTPS, FTP, SCP plus
doesn't store the password in plaintext like filezilla does?

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



100mbit router

2010-01-10 Thread Vadkan Jozsef
I have a 30/20 Mbit internet connection.

I want to buy a new router, because the old one: DL-604 is no longer
supported.

What router should I buy, that can handle a 30/20 connection?

No wifi, only ethernet.

Are there cheap routers that supports VLANs and can handle this speed
[uploading and downloading at the same time]?

It would share the connection to ~4 pc's.

RouterBoard 750G? with level 4 licence?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



chroot a few apps

2010-01-09 Thread Vadkan Jozsef
Hi.

What kind of chroot should I use, if I want to make a more secured
desktop, running e.g.:

pdf reader
webbrowser
audio player
video player
openoffice
picture viewer
mua
ooo
virtualbox

e.g.: if theres a javascript vulnerability in google chrome [I haven't
heard a NoScript extension for it :( ] a chroot would be good for
stopping it from doing something bad with the whole system.

or e.g.: I have to open a .doc file, that I don't trust, or a PDF can
contain malicious code :(

Any tips/docs/howtos?

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



how to get mac address

2010-01-06 Thread Vadkan Jozsef
How can I get the MAC address of a computer, if it isn't in the same
network segment?

e.g.: can I get the MAC from a normal, public IP?

There is no solution for this?

Thank you!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org