LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2005, 05:47 PM   #1
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Rep: Reputation: 15
general questions


Hi,

1) I'm going to add my second ethernet card in my linux box, do I have to do any special? Like adding a command line somewhere or something else ?

2) My second linux box, will be my store machine like a server, but it won't be a server. I have already installed slackware on it. It will have a dd of 6gb (the one with slackware installed on it) and one of 160 gb. I'd like to have total control on this machine from my first one. It would be great if I could move data from my first pc to my second one and vice-versa. Which one is the way to transfer data from the PC to the second one? I'd be great if the answer could be clear because I really don't know anything about it.

3) For my two slackware machines what is the best protection, firewall, antivirus ecc... Still do this distro need one?

4) Thanks for answering clearly and explain like if you were talking to an old man who doesn't understand anything.

Cheer, enjoy life and Linux

Thanks

See you all.
 
Old 05-04-2005, 08:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: general questions

Quote:
Originally posted by piva.francesco
1) I'm going to add my second ethernet card in my linux box, do I have to do any special? Like adding a command line somewhere or something else ?
Depends on whether you just want the card to sit
in the computer or actually do something with it.

Quote:
2) My second linux box, will be my store machine like a server, but it won't be a server. I have already installed slackware on it. It will have a dd of 6gb (the one with slackware installed on it) and one of 160 gb. I'd like to have total control on this machine from my first one. It would be great if I could move data from my first pc to my second one and vice-versa. Which one is the way to transfer data from the PC to the second one? I'd be great if the answer could be clear because I really don't know anything about it.
ssh for the "control"
scp or sftp would be quite easy and straight-forward in
terms of data-transfer ... setting up NFS wouldn't be too
hard, either.

Quote:
3) For my two slackware machines what is the best protection, firewall, antivirus ecc... Still do this distro need one?
Every machine, no matter what OS, needs protection.
Firewall is a minimum, AV is a bonus, IDS may be
overkill ... it's always the question how much time and
effort you want to put into it.

Cheers,
Tink
 
Old 05-04-2005, 08:41 PM   #3
Krugger
Member
 
Registered: Oct 2004
Posts: 229

Rep: Reputation: 30
1) adding the network card

For your network card to function properly you need to have the right module in your kernel. To find the correct module you should use lspci and make not of a new Ethernet controller entry there. Then you can either google for it or go to http://www.linuxquestions.org/hcl/index.php an see what is there.

Once you know the modules you can try to modprobe module_name it to see it everything is ok. If it is ok you should add the module_name to your /etc/rc.d/rc.modules so it is loaded when you boot you machine(Assuming it is too slackware).

After that you need to configure the IP address and routing between your computers. I think there is a network configuration utility named netconfig. if there isn't check to see if you have a /etc/network/interfaces and add there the necessary information so the system can configure your network when it boots. If you don't have that file you can do it by hand using the ifconfig and route command.

/sbin/ifconfig eth0 192.168.0.1 up

sets up your network card IP address to 192.168.0.1

/sbin/route add default gw 192.168.0.2

makes the system send all its messages to that host so that they can be forwarded. This is useful as you probably want something like

Internet <---> Computer with 2 cards <---> Other computer

you can then forward messages using iptables.

2) You have to consider how big are the transfers going to be and how much security you want.

The fastest way to setup the system is just to use ssh and scp. However the encryption will take some bandwidth away. Just put a ssh server in each machine and you will be able to copy files back and forth.

3) The security you need depends on the thread level. For slackware you should disable the inetd so it doesn't start uneeded services and change the /etc/ssh/sshd_config to say "AllowRootLogin no" so that people aren't able to crack your root password remotely. If you need added local security you should password protect your bios and make the bios ask for a password every time.~

So theorically you should only see a server in port 22 when you do netstat -ap
 
Old 05-05-2005, 02:51 AM   #4
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Krugger


makes the system send all its messages to that host so that they can be forwarded. This is useful as you probably want something like

Internet <---> Computer with 2 cards <---> Other computer
Actually my home network is like this:

Router (connected throught the internet, ip : 192.168.1.1) <---> Switch <---> Computer with 2 cards (ip: 192.168.1.12 <---> Other Computer (ip 192.168.1.7).


Quote:

2) You have to consider how big are the transfers going to be and how much security you want.

The fastest way to setup the system is just to use ssh and scp. However the encryption will take some bandwidth away. Just put a ssh server in each machine and you will be able to copy files back and forth.
Well, in some transfers >35gb of data will be moved to one pc to the other. In other case it will be only some <5gb...
With the ssh and scp thing will I be able to just turn on the second pc and from the "Computer with 2 cards" do whatever I want from it? Or I'll have to put the screen on the second pc and login etc...?

Thanks for the explanation for the ethernet card. It was clear and perfect. If I'll have any problems I'll just put it down here.

Quote:
Originally posted by Tinkster

Every machine, no matter what OS, needs protection.
Firewall is a minimum, AV is a bonus, IDS may be
overkill ... it's always the question how much time and
effort you want to put into it.
Is IDS a name of a Firewall? Where can I buy it/download it and read tutorials on it?

Thanks for answering

See you all.
Enjoy life.

fp
 
Old 05-05-2005, 03:44 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,420

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
RE 2.
It depends if you really want to txfr the 35G from one box to the other, or just need to be able to access it, in which case you could NFS share the disk between the 2 boxes.
You can also use Samba to do the same thing (even between 2 Linux boxes).
For Txfr, use scp (as suggested), or rsync, which can be set to auto-update differences between systems, so if your files are amended rather than completely different each time, updates take much shorter time.
Uses compression ssh encryption if needed.

RE 3.
IDS is Intrusion Detection System.
Maybe overkill for you.

In general, I'd say load Bastille (http://www.bastille-linux.org/) a 'hardening' script, tightens up your system, explains itself, and src is Perl, so you can read it if you want.
Also, use Tripwire http://www.tripwire.org/ , prob comes with your OS anyway.
Basically runs a cron job every day, and checks checksums of any/all designated files & emails list of changes.
Try nmap http://www.insecure.org/nmap/ to check your firewalls
HTH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
General questions - Help :-) sdudi76 Linux - Software 5 08-09-2005 08:17 AM
few more general questions xushi Solaris / OpenSolaris 1 05-16-2005 02:54 AM
3 General Questions AndrewZorn Linux - Newbie 4 04-02-2005 11:09 PM
few general questions and what now Vid Linux - Newbie 1 01-27-2004 11:10 PM
general questions [cacheflow] Linux - Newbie 4 01-25-2002 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration