Click to See Complete Forum and Search --> : Extreme Newbie Questions...
LinuXP
03-17-2002, 10:10 AM
Ok, I bought this Mandrake 8.1 Standard Edition with 3 CD's to play around with. I had it installed, but had to format since my dual boot XP did not detect my FireWire card.
So now only XP is installed. Soon a 60 Gb HD will arrive. I will put Mandrake on it.
Ok, first dumb question:
Do .exe files run on Linux?? I tried to install RtCW on it, but it did not react to the exe file. Also with other programs. No reaction to .exe files.
Number 2: I have this Èthernet card, but can't go on the internet with it. A driver for Linux came with it. the readme says:
Installation:
1. copy the source code fealnx.c to Linux,
2. compile the source code, the instruction for compiling the driver is
as follows:
#gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c fealnx.c
3. insert the driver as module,
#insmod fealnx.o
4. bind your card to an IP address
#ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
5. add your card to IP routing table,
#route add -net ${NETWORK} netmask ${NETMADK} eth0
6. now, you should be able to ping local network.
I have like NO idea what that means at all. What do i do? there's also a file called FEALNX.o and also a FEALNX.C.
Please help a newbie. Thanks.
evilcartman
03-17-2002, 10:33 AM
You gotta start reading @ www.linuxdoc.org (http://www.linuxdoc.org)
vee-eye
03-17-2002, 10:35 AM
Originally posted by La Résistance:
<STRONG>You gotta start reading @ www.linuxdoc.org (http://www.linuxdoc.org)</STRONG>
Are you kidding?! What a perfect way to scare off a Linux newbie. :mad:
LinuXP, for your first question...
MSDOS executables (.exe) do not run in Linux because they are compiled under a completely different operating system (Windows). However, you can use programs like WINE (http://winehq.com) to run MSDOS executables. These programs emulate Windows system calls and such, so they may run some Windows applications. Use of WINE (including installation and configuration) is a bit complicated for someone with no Linux experience. You can give it a try, but you will need to read this (http://www.linuxnewbie.org/nhf/intel/compiling/softinstall.html) and the documentation that comes with the WINE package.
[ 17 March 2002: Message edited by: vee-eye ]
LinuXP
03-17-2002, 10:37 AM
Well, can't you be so kind please to asnwer my questions?? thanks.
evilcartman
03-17-2002, 10:39 AM
Originally posted by vee-eye:
<STRONG>Are you kidding?! What a perfect way to scare off a Linux newbie. :mad:</STRONG>
Hey you gotta read that the rule that exe question shows that a little *start reading* is needed I dont say go and learn how to compile kernel!
Anyway (exe)s doesnt work in LinuX because linux api is different then windows.
Second GCC is Gnu C Compiler mostly you will have drivers like *.c extension you have to compile them with gcc before using them.
LinuXP
03-17-2002, 10:54 AM
A dumb question...how do i open the GCC?
evilcartman
03-17-2002, 11:33 AM
For example you got file.c
You opena terminal if you are in KDE ( a Desktop ) you will see a DOS like icon click it its terminal
you write gcc -c file file.c
then gcc -o file file.o
Now file is an executable no exe entension is needed! ;)
nuisance
03-17-2002, 11:41 AM
All the lines in your first post with '#' in front of them are meant to be typed at the command line, and would have to be executed as the root user (not the gcc, but the rest). You can switch to the root user by entering 'su', then when prompted, the password. Also, anything you type at the command line is case-sensitive (upper and lower case matter). Since you already have a fealnx.o file (a default?) you might be able to skip to #3 and just install it. I'd be on the safe side and go through the whole process in the README.
[ 17 March 2002: Message edited by: nuisance ]
LinuXP
03-17-2002, 12:06 PM
Oh ok, so all the stuff in the readme that says "#" i type in the command thing? Then it will be ready for use?
Sounds not too hard.
PS. It says copy source code to Linux. Does this mean I just paste it to like the desktop??
I tried that, pasting it to the desktop, and then typing the first # command in a command thing. It said some kind of error.
[ 17 March 2002: Message edited by: LinuXP ]
mdwatts
03-17-2002, 12:07 PM
Copy fealnx.o to your hd and then try to insert the module using
insmod fealnx.o
If you get errors that the module is not built for your kernel version, then try rebuilding the module as per the instructions.
From the commandline
gcc -DMODULE -D__KERNEL__ I/usr/src/linux/net/inet -Wall-Wstrict-prototypes -O6 -c fealnx.c
where fealnx.c will need to be in the current working directory.
Give that a try and post back for additional help if you get stuck.
LinuXP
03-17-2002, 12:11 PM
Thanks for your help guys. I really appreciate it. Minor question: KDE or gnome?
evilcartman
03-17-2002, 12:37 PM
Originally posted by LinuXP:
<STRONG>Thanks for your help guys. I really appreciate it. Minor question: KDE or gnome?</STRONG>
Its up to you :) Personally I use KDE.
LinuXP
03-17-2002, 02:17 PM
Ok, Mandrake read the fealnx driver. I have to do the command stuff, the stuff I wrote in my first post. Can anyone please tell me what exactly I need to write? Like the IP, Netmask, etc... Once I can get on-line, I don't have to use my brother's comp as I am doing right now, so I just want to get on-line with it! Thank you so much.
Molecule Man
03-17-2002, 02:34 PM
While learning how to do it the command line way will be agreat learning experience, you might appreciate using the GUI config tools. You don't mention which ethernet card, but the module should already be a part of your Mandrake install.
Go ahead and open the Mandrake Control Center. It will have a section to setup your Network card. Just go through the wizard.
http://www.mandrakesoft.com/products/81 for links to demos. good luck.
Dark Ninja
03-17-2002, 02:44 PM
Thanks for your help guys. I really appreciate it. Minor question: KDE or gnome?
:D BlackBox :D
Dark Ninja
LinuXP
03-17-2002, 03:06 PM
Well, the wizard comes to this step where I have to choose a "net driver to try". I don't know which one to choose, it's a card made by a small company called Sandberg in Denmark. :confused:
It has a long list. What do i do from here??
´Thank you guys, thanks a lot.
mdwatts
03-17-2002, 04:14 PM
Try copying the module you created (fealnx.o) to /lib/modules/<kernel version>/kernel/drivers/net and then see if the 'wizard' can detect the module.
If not, then you can add the module to /etc/rc.d/rc.modules so the module is loaded during boot. Then try configuring the ip address, netmask etc.
LinuXP
03-17-2002, 04:24 PM
It says I don't have permission to do it :confused: :confused:
LinuXP
03-17-2002, 04:32 PM
Ok, i logged in as root and could change it. I coped both the files there, but in the Network Wizard Guide, it can't see them. But, in the Network Connections, it says Eth0 if i remember correctly, and next to it, fealnx and state down.
I don't know where to go from here, sorry if I don't know a lot about this stuff.
Molecule Man
03-17-2002, 04:51 PM
What sort of network do you have? I presume if you are using a network card then you have a DSL or Cable modem. Is this connected to another computer or are you using a Cable/DSL router?
LinuXP
03-17-2002, 04:55 PM
ADSL. Well, we have this hub and my computer is simply connected to it. All I had to do in windows was install the driver and type 192.168.1.1 in the URL of Iexplorer.
but Windows sucks! I want Linux! and i want it to work!
mdwatts
03-17-2002, 06:10 PM
Try add this to /etc/modules.conf
alias fealnx eth0
and if you have /etc/modules/default add a line to default
fealnx
Next edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add you ip address etc. you will use
DEVICE="eth0"
IPADDR="192.168.1.4"
NETMASK="255.255.255.0"
NETWORK="192.168.1.0"
BROADCAST="192.168.1.255"
GATEWAY="192.168.1.1"
ONBOOT="yes"
DYNAMIC=""
Next edit /etc/resolv.conf and add your isp dns servers
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
or in my case, mine just points to my Linksys Router
nameserver 192.168.1.1
After all that, try
/etc/rc.d/init.d/network restart
I hope that all helps.
Next time get a well known ethernet card that is detected automatically. ;)
LinuXP
03-18-2002, 12:55 PM
Ok, I am kinda lost:
/etc/modules.conf says:
pre-install pcmcia_core CARDMGR_OPTS=-f /etc/rc.d/init.d/pcmcia start
alias usb-interface usb-uhci
alias sound-slot-0 via82cxxx_audio
probeall scsi_hostadapter ide-scsi
alias eth0 fealnx
/etc/sysconfig/network-scripts/ifcfg-eth0 says:
DEVICE=eth0
IPADDR=192.168.1.4
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.1
ONBOOT=yes
DYNAMIC=
/etc/resolv.conf says:
# search localdomain
search localdomain
# ppp temp entry
nameserver 192.168.1.1 nameserver 192.168.1.1
What AM I Doing Wrong?!?!?!?!?!?!?!?!?
:mad: :confused: :mad: :confused:
knute
03-18-2002, 01:15 PM
With the nameserver lines...
If you have only one nameserver, only put one nameserver line in.
and each nameserver entry has to be on it's own separate line.
If you are root and issue the command ifconfig
it will tell you what network interfaces you have up and running.
if eth0 doesn't show up, you could try ifconfig eth0 up
and then see if it comes up.
Though most times when I do that, I have to use pump so that my IP address can be assigned. :rolleyes:
good luck
LinuXP
03-18-2002, 03:14 PM
I tried it, I erased one of the lines and gave the other more space, ran the ifconfig commands, started by getting one "lo", ran command #2 and got 2 "things", eth0 and lo.
If I afterwards type "ping 192.168.1.1" it says network is unreachable. What the heck do i do?? I'm getting pretty frustrated! I have no idea what to do!! I can't get on the internet! Please, I beg you, help me! :(