- Joined
- Feb 20, 2001
*Just gonna use this as a thread to keep all the AltOS FAQs together*
I have often seen the same question answered many times, and I feel that a list of links, explanations etc would be useful. If anyone would like to see something added, feel free to add it, or email/pm me and I will post a description.
-----------------------------------------------------------------------------
LINKS
www.linuxdoc.org - Linux documentation project
www.linuxnewbie.org - Great explanations for newer users
www.linuxiso.org - download linux!
Linux is an open source OS - based on the linux kernel written by Linus Torvalds as a UNIX clone. Many of the programs - such as the shell, GUI etc are totally seperate from the actual linux. The correct term for linux is in fact GNU/Linux - acknowledging that it is actually the GNU OS using the Linux kernel.
Links
GNU - www.gnu.org
Linux - www.linux.org
-----------------------------------------------------------------------------
Linux comes in a variety of forms, called distributions. They differ only very slightly - in their setup programs usually.
The most popular ones are:
Redhat = www.redhat.com 8.0 is the latest
SuSE = www.suse.com 8.1 latest
Mandrake = www.linux-mandrake.com 9.1 latest.
Debian = www.debian.org 3.0 latest
All modern distros come with a GUI (pictures) - this is XFree86, currently at v4.3. This is the same is as used for Solaris and *BSD.
The best type? I personally use SuSE, but Mandrake is supposedly easier to use and debian has a far superior method of handling programs. However Mandrake, SuSE and Redhat are the best for newer users, if a little less flexible.
-----------------------------------------------------------------------------
Programs and Applications
Some Windows apps will run under Linux with some help - see www.winehq.org for more details. Linux comes with a vast array of its own programs:
Multimedia: Linux has facilities for burning CDs, making MP3s and comes with its own open source sound format (Ogg Vorbis). It can play CDs and DVDs, via programs like MPlayer.
Server: Funtions for file sharing. web serving, file serving, proxy serving, you name it. It can even act as logon server for Windows Clients via Samba. Clustering is also possible for CPU intensive tasks.
Internet: A variety of different web browsers and ftp clients, as well as email clients. Browsers include Konqueror, Opera, Mozilla, Galeon and Netscape. Email clients include Evolution, KMail, and pine.
Games: Loki games have ported a lot of windows favourites to linux - including Quake 3 and Railroad Tycoon 2. Linux also comes with many other open source games including Descent 1 and a lot of fun arcade games (tetris, etc). Unreal Tournament 2003 has a Linux installer on CD3, so you can frag on Linux right out of the box! . Unfortunately Loki Games has gone out of business, but there still should be some copies available, even second hand.
Graphics: The GIMP imho is the best graphics program for Linux. Also available is ImageMagik. Moonlight 3D and Blender enable you to build 3d graphics and scenes.
Development: Most linux versions come with gcc, for compiling java, C++ and C programs. Linux also comes with many editors, Development environments and HTML coding helpers, such as Electric Fence, Anjuta, KDevelop, etc.
-----------------------------------------------------------------------------
Command Line Hints and Tips
------------------
Get to know the command line - this is your most useful tool when things go wrong.
Directories
/ refers to the root directory - the top of the filesytem.
~/ refers to your home directory.
../ refers to the directory containing the current directory.
./ refers to the current directory
/tmp looks in the root directory for the tmp file or directory
tmp looks in the current directory for the tmp file or directory.
Navigation
To move to directories simply use cd, eg:
cd /tmp/mydir
To move directly to your home directory do:
cd ~/ (that is tilde ~, forwardslash /)
Or simply do:
cd
pwd displays the current directory.
Deleting and changing files
To create an empty file use touch:
touch myfile
To delete a file, use rm
rm myfile deletes the file: myfile
rm -r mydir deletes the file/directory: mydir and all files and folders in it.
rm -f myfile forces the system to delete myfile.
To create a directory use mkdir or md. For example, to create a directory mydir:
md mydir
To remove a directory use rm -r, rmdir or rd
-----------------------------------------------------------------------------
Users
There are two types of user:
- root, the system admin/superuser. This should only be used when absolutely necessary - misuse could seriously damage the system - he/she has complete access to the whole system.
- other users: These users have read access to all files except the documents of other users. They have write access to only the /tmp directory and their own home directory - where they store their own files and settings.
-----------------------------------------------------------------------------
Software
Software for linux comes in 3 main forms:
Tarred Gzipped Source Code
This is the source code tarred and gzipped, to compress it.Not all tar.gz files are programs, it is simply a packaging method. To install sofware in this form, copy it to a directory (anywhere that you have access to) and perform the following steps:
1) Log in - as a normal user or root user - it is unimportant
2) Go to the directory where the tar.gz file is
3) Execute the following command (x=extract v=verbose z=unzip):
tar zxvf mypackage.tar.gz
4) Look for the directory created, I will assume that the above example produced a directory called mydir. Go into it.
cd mydir
5)Type the following commands, in order:
./configure
make
This prepares the software to use.
6) Make sure you are logged in as root, or have root privelages, and type:
make install
This installs the software.
RPM Packages
These are packages of compiled software - each item of software often relies on other software - ie you need certain KDE core elements before installing the sound bits. These are known as dependencies.
These usually come as .rpm files.
Install them by doing:
rpm -Uvh myrpm.rpm
If you need to force the rpms to install regardless (NOT reccomended, except for Vcard drivers etc):
rpm -Uvh myrpm.rpm --nodeps --force
DEB Packages using apt-get
To install packages using the Debian distribution of Linux, use the apt-get program.
To install software using Debian, simply type:
apt-get install myprogram
To remove software using Apt-Get, use:
apt-get remove myprogram
Every so often, update the list of available software using:
apt-get update
-----------------------------------------------------------------------------
New to Linux? Choosing a Distro?
Linux can be obtained from www.linuxiso.org for free, but requires downloading.
I personally would reccommend buying a distro - support and manuals (and often some cool stickers ) are included.
SuSE Linux, my personal fav. - www.suse.com www.suse.co.uk
Linux Mandrake. - www.linux-mandrake.com
Redhat - www.redhat.com
These three distros are generally considered to be the easiest to use. There is also:
Debian Linux - www.debian.org
Slackware - www.slackware.com
TurboLinux - www.turbolinux.com
K12LTSP- distro contains RedHat 8.0 and adds an install option that will create a Linux Terminal Server. http://k12ltsp.org/contents.html
-----------------------------------------------------------------------------
Folding @ Home
Many of you may have heard of the Folding at Home project - see the Folding@Home section of the forums or http://folding.stanford.edu for more info. You can fold using linux - to do so, you need to do the following:
1. Copy the downloaded executable (from the folding@home website) to an empty directory - in a directory in /tmp is a good idea.
2. Change the permissions of the folding@home program to allow anyone to run it:
chmod +x <folding@home file>
3. Then run the program - you will need an active net connection, but only for sending and retrieving work.
./<folding@home program
Seti @ Home (Added by SpeeDj)
First browse over to here; Unix/Linux Client and download your appropriate client. Then do the following in a shell; tar xvf filename.tar
Now what follows is an excerpt from Seti @ Home's Site
-----------------------------------------------------------------------------
Installing Linux
You will need:
- a 200MB or so partition for swap space (swap)
- another partition, recomended 1GB or more. (for root partition, / )
The install program should allow you to format the partitions. Format the swap space as 'swap'.
For the second partition you will usually have the choice of one or more of these:
ext2 - 2nd extended file system
The main standard among linux distros - nearly every version of linux will give you this choice. It is widely supported but if the computer is shut down improperly, the file system has to be checked. (like scandisk, but for linux). Depending on the size of the partition this could take quite a time.
ext3 - 3rd extended file system
The newer ext fs - backwards compatible with ext2 (it can be used as if it was ext2, but its new capabilities will not be used in such a case). Ext3 is a journalling file system - it will log each and every change made to the file system. If the computer is shut down incorrectly, the file system knows automatically what has to be fixed - ie what files were open at the time. This makes restarting after a crash/power cut a lot quicker and more reliable.
ReiserFS
Also a journalling file system - not readable as any other file system. ReiserFS has journalling ability, saving time when rebooting after a crash. It has some issues with RAID arrays, unfortunately. Only RAID 0 is ReiserFS compatuble.
IBM JFS - Journalling File System
Not as widely used as the above three file systems, but it is also a Journalling filesystem, developed by IBM.
SGI XFS
A journalling filesystem by SGI, it is meant to be quite fast. It is not as common as the first three file systems. Originally developed for SGIs IRIX OS.
After choosing partitions you will need to choose packages to install. You will usually be OK with the default install - you can always add new packages later.
-----------------------------------------------------------------------------
GCC
To use do:
gcc helloworld.c -o helloworld
gcc <source-name> -o <output executable>
If no output filename is specified, a.out is default.
To run the file do:
./myprogram
eg:
./helloworld
-----------------------------------------------------------------------------
Originally posted by Drunkmonkey
About Linux and Modems
A problem many people come by with linux is there modem won't work. Their first reaction is "Linux is crap!" which is wrong, like this guy said(a link to another thread). Please don't be that kind of person.
What is most likely wrong with your comp. is your modem is a winmodem, notice the prefix: win. These modems let windows do all the work a regular modem should do to save you some cash but don't work without special drivers which can be found here www.linmodems.org . A non-winmodem is hard to come by these days, I started a thread asking for one that can be found here.
-----------------------------------------------------------------------------
Disk Imaging
In some situations you may want to image a file/partition to another file/partition. This can be done with dd, found in all Linux distros
dd can be used as follows:
dd if=<source> of=<destination>
Source/destination can be a file, or a device. Eg for the first partition on the secondary master drive to a file called backup.img:
dd if=/dev/hdc1 of=backup.img
You can also specify how much of it you want to copy over. Specify the block size, in bytes, and then how many blocks. For example to copy 100MB from the above example, try bs=1048576 to set block size to 1MB and then count = 100 to copy 100 of the blocks:
dd if=/dev/hdc1 of=backup.img bs=1048576 count=100
-----------------------------------------------------------------------------
Windows Filesystems in Linux
*depends on your distro. NTFS read and write support can be turned on and off manually.
-----------------------------------------------------------------------------
Setting Up DHCP server
This is a quick guide on setting up DHCP for a small network. On my network I run DHCPd on my machine for another machine (win95) to use.
1) Make sure the ISC DHCP server is installed.
2) Type route add -net 255.255.255.255 dev eth0 where eth0 is the network card connected to the network that the DHCP server is to run on.
3) Edit/create the /etc/dhcpd.conf file put the following in it:
default-lease-time 3600; # in seconds
max-lease-time 36000; # seconds
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1; # routers
option domain-name-servers 62.31.64.115, 62.31.64.116; # your dns servers
option domain-name "blueyonder.co.uk"; # your domain just use any domain name
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.10;
}
Replace IP addresses with relevant ones for your network.
Then run dhcpd eth0 where eth0 is the interface you want DHCP to run on.
-----------------------------------------------------------------------------
Setting up a linux rig to allow other machines to use the net through it
This will allow all data connections out, but only requested data connections in.
Run the following commands:
# Modules
depmod -a
modprobe ip_tables
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_conntrack_irc
modprobe iptable_nat
modprobe ip_nat_ftp
# Enable forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4 /i p_dynaddr
# IPTables
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
eth0 = external interface
eth1 = internal interface
This is for a 2.4.x kernel.
That worked for me: set the gateway on the clients to the IP address of the linux rig.
-----------------------------------------------------------------------------
Originally posted by phantom punisher
How to install a GeF4Ti4200 in mandrake 8.2 and 9.0
ok this was,as all linux undertakings, a big run around so ill give a step by step the best i remember
1. Install mandrake 8.2 with the default video configuration. Make sure to pick to install chromium the game
2. Once you make it all the way to the desktop you can exhale. go to nvidia and get:
nvidia_glx-1.0-2960.i386.rpm
nvidia_kernal-1.0-2960.mdk82(smp if you need it).i586.rpm
Download the file "mc-4.5.55-9mdk.i586.rpm" from mandrake cooker and put the three files in the root directiory or somewhere you can find them from the terminal.
3. Install mc-4.5.55-9mdk.i586.rpm. its midnight commander text editor and it wil make life tollerable in linux terminal.
4.Edit the file /etc/inittab and find the line that reads id:5:initdefault:
Change the 5 to a 3. This makes it stop at the terminal and not auto start the xserver.
5.Reboot and log in as root(you should be in terminal) remember linux is case sensitive!
Cd into the directiory with your rpms
Typerpm -ivh NIVIDIA_k.(hit esc twice and it will complete it for you) then press enter.
Type rpm -ivh NVIDIA_G (hit esc twice) then press enter.
6. Now type XFdrake or FXdrake (?) and choose the nvidia generic geforece 3 card. it should give you an option of withch free86 you want. choose 4.2 and follow the install directions(ex:instert cd1 press enter) remember to say no to any testing or starting x after reboot. Say yes to keep configuration making sure that xfree86 4.2 is shown.
7. Reboot and log back in as root. do the whole xfdrake thing again making all the same selections.
8. Now we edit the xfree86config-4.
Change directory to find the file at /ect/X11
Type mcedit XF86Config-4 (big blue screen comes up)
Now look for the line that says Load "dbe" and add underneath Load "glx"
9. Now find the graphics device section in the config
Change the lines to look like this
section "device"
identifier "NV AGP"
blah blah blah
driver "nvidia"
10. Now find the screen sections
Change it to look like this
section "screen"
identifier "screen1"
device "NV AGP"
11. Now press f2 to save and then f10 to quit.
12. Now type startx and you should boot into kde. try any game that is opengl (like chromium) if it works you're all set. i dont know why there is no nvidia spash screen.
-----------------------------------------------------------------------------
Originally posted by SpeeDj
For Linux Gamers
Just found a site today that's called Transgaming, they make what they call WineX which is wine with some DirectX support mixed in. You should check it out and see what they have to offer. I haven't really delved in too much but there success with quite a few games gives me hope that all is not lost as of yet.
J
http://www.transgaming.com/ That is the site
I have often seen the same question answered many times, and I feel that a list of links, explanations etc would be useful. If anyone would like to see something added, feel free to add it, or email/pm me and I will post a description.
-----------------------------------------------------------------------------
LINKS
www.linuxdoc.org - Linux documentation project
www.linuxnewbie.org - Great explanations for newer users
www.linuxiso.org - download linux!
Linux is an open source OS - based on the linux kernel written by Linus Torvalds as a UNIX clone. Many of the programs - such as the shell, GUI etc are totally seperate from the actual linux. The correct term for linux is in fact GNU/Linux - acknowledging that it is actually the GNU OS using the Linux kernel.
Links
GNU - www.gnu.org
Linux - www.linux.org
-----------------------------------------------------------------------------
Linux comes in a variety of forms, called distributions. They differ only very slightly - in their setup programs usually.
The most popular ones are:
Redhat = www.redhat.com 8.0 is the latest
SuSE = www.suse.com 8.1 latest
Mandrake = www.linux-mandrake.com 9.1 latest.
Debian = www.debian.org 3.0 latest
All modern distros come with a GUI (pictures) - this is XFree86, currently at v4.3. This is the same is as used for Solaris and *BSD.
The best type? I personally use SuSE, but Mandrake is supposedly easier to use and debian has a far superior method of handling programs. However Mandrake, SuSE and Redhat are the best for newer users, if a little less flexible.
-----------------------------------------------------------------------------
Programs and Applications
Some Windows apps will run under Linux with some help - see www.winehq.org for more details. Linux comes with a vast array of its own programs:
Multimedia: Linux has facilities for burning CDs, making MP3s and comes with its own open source sound format (Ogg Vorbis). It can play CDs and DVDs, via programs like MPlayer.
Server: Funtions for file sharing. web serving, file serving, proxy serving, you name it. It can even act as logon server for Windows Clients via Samba. Clustering is also possible for CPU intensive tasks.
Internet: A variety of different web browsers and ftp clients, as well as email clients. Browsers include Konqueror, Opera, Mozilla, Galeon and Netscape. Email clients include Evolution, KMail, and pine.
Games: Loki games have ported a lot of windows favourites to linux - including Quake 3 and Railroad Tycoon 2. Linux also comes with many other open source games including Descent 1 and a lot of fun arcade games (tetris, etc). Unreal Tournament 2003 has a Linux installer on CD3, so you can frag on Linux right out of the box! . Unfortunately Loki Games has gone out of business, but there still should be some copies available, even second hand.
Graphics: The GIMP imho is the best graphics program for Linux. Also available is ImageMagik. Moonlight 3D and Blender enable you to build 3d graphics and scenes.
Development: Most linux versions come with gcc, for compiling java, C++ and C programs. Linux also comes with many editors, Development environments and HTML coding helpers, such as Electric Fence, Anjuta, KDevelop, etc.
-----------------------------------------------------------------------------
Command Line Hints and Tips
------------------
Get to know the command line - this is your most useful tool when things go wrong.
Directories
/ refers to the root directory - the top of the filesytem.
~/ refers to your home directory.
../ refers to the directory containing the current directory.
./ refers to the current directory
/tmp looks in the root directory for the tmp file or directory
tmp looks in the current directory for the tmp file or directory.
Navigation
To move to directories simply use cd, eg:
cd /tmp/mydir
To move directly to your home directory do:
cd ~/ (that is tilde ~, forwardslash /)
Or simply do:
cd
pwd displays the current directory.
Deleting and changing files
To create an empty file use touch:
touch myfile
To delete a file, use rm
rm myfile deletes the file: myfile
rm -r mydir deletes the file/directory: mydir and all files and folders in it.
rm -f myfile forces the system to delete myfile.
To create a directory use mkdir or md. For example, to create a directory mydir:
md mydir
To remove a directory use rm -r, rmdir or rd
-----------------------------------------------------------------------------
Users
There are two types of user:
- root, the system admin/superuser. This should only be used when absolutely necessary - misuse could seriously damage the system - he/she has complete access to the whole system.
- other users: These users have read access to all files except the documents of other users. They have write access to only the /tmp directory and their own home directory - where they store their own files and settings.
-----------------------------------------------------------------------------
Software
Software for linux comes in 3 main forms:
Tarred Gzipped Source Code
This is the source code tarred and gzipped, to compress it.Not all tar.gz files are programs, it is simply a packaging method. To install sofware in this form, copy it to a directory (anywhere that you have access to) and perform the following steps:
1) Log in - as a normal user or root user - it is unimportant
2) Go to the directory where the tar.gz file is
3) Execute the following command (x=extract v=verbose z=unzip):
tar zxvf mypackage.tar.gz
4) Look for the directory created, I will assume that the above example produced a directory called mydir. Go into it.
cd mydir
5)Type the following commands, in order:
./configure
make
This prepares the software to use.
6) Make sure you are logged in as root, or have root privelages, and type:
make install
This installs the software.
RPM Packages
These are packages of compiled software - each item of software often relies on other software - ie you need certain KDE core elements before installing the sound bits. These are known as dependencies.
These usually come as .rpm files.
Install them by doing:
rpm -Uvh myrpm.rpm
If you need to force the rpms to install regardless (NOT reccomended, except for Vcard drivers etc):
rpm -Uvh myrpm.rpm --nodeps --force
DEB Packages using apt-get
To install packages using the Debian distribution of Linux, use the apt-get program.
To install software using Debian, simply type:
apt-get install myprogram
To remove software using Apt-Get, use:
apt-get remove myprogram
Every so often, update the list of available software using:
apt-get update
-----------------------------------------------------------------------------
New to Linux? Choosing a Distro?
Linux can be obtained from www.linuxiso.org for free, but requires downloading.
I personally would reccommend buying a distro - support and manuals (and often some cool stickers ) are included.
SuSE Linux, my personal fav. - www.suse.com www.suse.co.uk
Linux Mandrake. - www.linux-mandrake.com
Redhat - www.redhat.com
These three distros are generally considered to be the easiest to use. There is also:
Debian Linux - www.debian.org
Slackware - www.slackware.com
TurboLinux - www.turbolinux.com
K12LTSP- distro contains RedHat 8.0 and adds an install option that will create a Linux Terminal Server. http://k12ltsp.org/contents.html
-----------------------------------------------------------------------------
Folding @ Home
Many of you may have heard of the Folding at Home project - see the Folding@Home section of the forums or http://folding.stanford.edu for more info. You can fold using linux - to do so, you need to do the following:
1. Copy the downloaded executable (from the folding@home website) to an empty directory - in a directory in /tmp is a good idea.
2. Change the permissions of the folding@home program to allow anyone to run it:
chmod +x <folding@home file>
3. Then run the program - you will need an active net connection, but only for sending and retrieving work.
./<folding@home program
Seti @ Home (Added by SpeeDj)
First browse over to here; Unix/Linux Client and download your appropriate client. Then do the following in a shell; tar xvf filename.tar
Now what follows is an excerpt from Seti @ Home's Site
NAME
setiathome - the SETI@home client program
SYNOPSIS
setiathome [options]
DESCRIPTION
setiathome is the UNIX version of the SETI@home client.
It downloads radio telescope data from a network server,
analyzes the data looking for signals of extraterrestrial origin,
and uploads results to the server, repeating this cycle indefinitely.
See http://setiathome.berkeley.edu for more information.
FILES
The program generates several files with .sah extension
in the directory from which it's run.
These should not be modified.
If you want to run multiple instances of setiathome
(on a multiprocessor machine, or on multiple machines
that share a filesystem) each one must be run in a different directory.
You can use symlinks for each directory to avoid duplication
of the binary image. e.g.:
ln -s cpu0/setiathome cpu1/setiathome
setiathome uses a lock file (lock.sah) to prevent
multiple instances from running in the same directory.
To finish up your current work unit, return your result, and not
download a new work unit, while the client is running, touch
a file named "stop_after_send.txt" in the client directory.
When the processing is finished, and the result sent, the client will stop.
*** Note this one file extension is .txt, while all other files used by the client have extensions .sah ***
The file "pid.sah" contains the process ID of the current instance.
RUNNING SETIATHOME
The first time you run setiathome it will interactively
ask you for email address, name, country etc.
This info is stored in a file and no interaction is
needed when you run the program subsequently.
After this you can run setiathome in the background,
and direct its output to /dev/null if you like.
setiathome can be freely stopped and restarted.
It saves its state in files, and will pick up where it left off.
If you want setiathome to be started automatically, you can
set up a cron job. Add the following line to your crontab:
0 * * * * cd <setidir>; ./setiathome -nice 19 > /dev/null 2> /dev/null
Where <setidir> is the directory where the setiathome client is installed.
This cron job will attempt to start the client at the top of every hour.
If it is already running, the next invocation will do nothing.
If the client is not running, it will be started.
For more information on cron jobs see the crontab(1) manual page.
The following script will stop all instances SETI@home:
(assuming the binary execution name is: setiathome)
#! /bin/sh
kill `ps aux | grep setia | grep -v grep | awk '{print $2}'`
(adjust the ps arguments for your system)
The following will stop the instance in the current directory:
#! /bin/sh
kill `cat pid.sah`
Please do not operate the client on machines for which you do not
have permission.
ENVIRONMENT VARIABLES
If the environment variable HTTP_PROXY is defined,
setiathome will connect through a proxy server,
specified as hostname or hostnameort.
If the environment variable SOCKS_SERVER is defined,
setiathome will connect through a SOCKS server,
specified as hostname or hostnameort.
If the environment variables SOCKS_USER and SOCKS_PASSWD
are defined, these will be used as the login name and password
for the SOCKS server. Otherwise setiathome will query you.
OPTIONS
-login
Login or create new account.
-countries
Show list of country codes.
-version
Show software version
-nice N
Set "nice" priority to N (default 1);
Send email (to login email address) on errors.
Useful if you run in background directed to /dev/null.
This option is not available for all clients.
-graphics
Generate a data stream for the xsetiathome graphical interface
(see README.xsetiathome)
This option is not available for all clients.
-proxy hostnameort
Connect to SETI@home server via specified HTTP proxy server and port.
-socks_server hostnameort
Connect to SETI@home server via specified SOCKS server and port.
Overrides SOCKS_SERVER.
SOCKS versions 4 and 5 are supported.
-socks_user name
SOCKS user name.
-socks_passwd password
SOCKS password.
-stop_after_process
If a work_unit.sah file is present, process this work unit
and stop after processing is complete, do not return result.
If the client is started with this option, and there is
a completed result.sah file present, the client will first
return the results, then pick up a new work unit, process
to completion, then exit.
-stop_after_xfer
Return results and pick up a new work unit.
This option only functions if the result.sah file is present
and complete indicating that processing is finished for this
work unit. If a work_unit.sah is present, indicating processing
is not complete, no transfer or processing will be performed,
and the client will exit.
(see also: stop_after_send.txt mentioned in FILES above)
-verbose
print a running summary of the work being done.
Starting with the version 2.4 clients, the client is silent
to stdout during processing. There are messages at the start
and finish of processing a work unit, but there are no progress
messages printed during processing unless this option is used.
-nolock
omit the multiple-instance check, which uses file locking
(not available on some NFS systems)
KNOWN BUGS:
Outstanding shared memory segments and semaphores may be left
active in case of an abnormal exit of the 'setiathome -graphics'
process. These can prevent any future invocation of
'setiathome -graphics'. To resolve this problem, use 'ipcs'
and 'ipcrm' to remove shared memory segments and semaphores that
are not associated with a process. This behavior may vary
depending upon how your UNIX system handles this situation.
See also ipcs(1) and ipcrm(1)
For version 3.0 clients, the estimated progress as indicated
by the prog= line in the state.sah file in not exactly linear
in relationship to completion time. Using this value to
predict completion time may not be completely accurate.
The linear relationship will vary depending upon the characteristics
of the work unit parameters.
SEE ALSO:
There is much more information to be found about the operation
of the client at the following WEB sites:
http://setiathome.berkeley.edu/
http://setiathome.berkeley.edu/faq.html
http://setiathome.berkeley.edu/links.html
with discussions of add-on programs and scripts to control
the client in various situations.
-----------------------------------------------------------------------------
Installing Linux
You will need:
- a 200MB or so partition for swap space (swap)
- another partition, recomended 1GB or more. (for root partition, / )
The install program should allow you to format the partitions. Format the swap space as 'swap'.
For the second partition you will usually have the choice of one or more of these:
ext2 - 2nd extended file system
The main standard among linux distros - nearly every version of linux will give you this choice. It is widely supported but if the computer is shut down improperly, the file system has to be checked. (like scandisk, but for linux). Depending on the size of the partition this could take quite a time.
ext3 - 3rd extended file system
The newer ext fs - backwards compatible with ext2 (it can be used as if it was ext2, but its new capabilities will not be used in such a case). Ext3 is a journalling file system - it will log each and every change made to the file system. If the computer is shut down incorrectly, the file system knows automatically what has to be fixed - ie what files were open at the time. This makes restarting after a crash/power cut a lot quicker and more reliable.
ReiserFS
Also a journalling file system - not readable as any other file system. ReiserFS has journalling ability, saving time when rebooting after a crash. It has some issues with RAID arrays, unfortunately. Only RAID 0 is ReiserFS compatuble.
IBM JFS - Journalling File System
Not as widely used as the above three file systems, but it is also a Journalling filesystem, developed by IBM.
SGI XFS
A journalling filesystem by SGI, it is meant to be quite fast. It is not as common as the first three file systems. Originally developed for SGIs IRIX OS.
After choosing partitions you will need to choose packages to install. You will usually be OK with the default install - you can always add new packages later.
-----------------------------------------------------------------------------
GCC
To use do:
gcc helloworld.c -o helloworld
gcc <source-name> -o <output executable>
If no output filename is specified, a.out is default.
To run the file do:
./myprogram
eg:
./helloworld
-----------------------------------------------------------------------------
Originally posted by Drunkmonkey
About Linux and Modems
A problem many people come by with linux is there modem won't work. Their first reaction is "Linux is crap!" which is wrong, like this guy said(a link to another thread). Please don't be that kind of person.
What is most likely wrong with your comp. is your modem is a winmodem, notice the prefix: win. These modems let windows do all the work a regular modem should do to save you some cash but don't work without special drivers which can be found here www.linmodems.org . A non-winmodem is hard to come by these days, I started a thread asking for one that can be found here.
-----------------------------------------------------------------------------
Disk Imaging
In some situations you may want to image a file/partition to another file/partition. This can be done with dd, found in all Linux distros
dd can be used as follows:
dd if=<source> of=<destination>
Source/destination can be a file, or a device. Eg for the first partition on the secondary master drive to a file called backup.img:
dd if=/dev/hdc1 of=backup.img
You can also specify how much of it you want to copy over. Specify the block size, in bytes, and then how many blocks. For example to copy 100MB from the above example, try bs=1048576 to set block size to 1MB and then count = 100 to copy 100 of the blocks:
dd if=/dev/hdc1 of=backup.img bs=1048576 count=100
-----------------------------------------------------------------------------
Windows Filesystems in Linux
- FAT32 - Linux has full FAT32 read and write abilities, and will work fine with windows FAT32 partitions.
- NTFS - Most distributions*, by default, the ability to read NTFS partitions built into their kernel but not to write to them. Write support can be turned on (requires changes to kernel config) but will damage the filesystem, so that Windows will go crazy next time it boots.
*depends on your distro. NTFS read and write support can be turned on and off manually.
-----------------------------------------------------------------------------
Setting Up DHCP server
This is a quick guide on setting up DHCP for a small network. On my network I run DHCPd on my machine for another machine (win95) to use.
1) Make sure the ISC DHCP server is installed.
2) Type route add -net 255.255.255.255 dev eth0 where eth0 is the network card connected to the network that the DHCP server is to run on.
3) Edit/create the /etc/dhcpd.conf file put the following in it:
default-lease-time 3600; # in seconds
max-lease-time 36000; # seconds
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1; # routers
option domain-name-servers 62.31.64.115, 62.31.64.116; # your dns servers
option domain-name "blueyonder.co.uk"; # your domain just use any domain name
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.10;
}
Replace IP addresses with relevant ones for your network.
Then run dhcpd eth0 where eth0 is the interface you want DHCP to run on.
-----------------------------------------------------------------------------
Setting up a linux rig to allow other machines to use the net through it
This will allow all data connections out, but only requested data connections in.
Run the following commands:
# Modules
depmod -a
modprobe ip_tables
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_conntrack_irc
modprobe iptable_nat
modprobe ip_nat_ftp
# Enable forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4 /i p_dynaddr
# IPTables
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
eth0 = external interface
eth1 = internal interface
This is for a 2.4.x kernel.
That worked for me: set the gateway on the clients to the IP address of the linux rig.
-----------------------------------------------------------------------------
Originally posted by phantom punisher
How to install a GeF4Ti4200 in mandrake 8.2 and 9.0
ok this was,as all linux undertakings, a big run around so ill give a step by step the best i remember
1. Install mandrake 8.2 with the default video configuration. Make sure to pick to install chromium the game
2. Once you make it all the way to the desktop you can exhale. go to nvidia and get:
nvidia_glx-1.0-2960.i386.rpm
nvidia_kernal-1.0-2960.mdk82(smp if you need it).i586.rpm
Download the file "mc-4.5.55-9mdk.i586.rpm" from mandrake cooker and put the three files in the root directiory or somewhere you can find them from the terminal.
3. Install mc-4.5.55-9mdk.i586.rpm. its midnight commander text editor and it wil make life tollerable in linux terminal.
4.Edit the file /etc/inittab and find the line that reads id:5:initdefault:
Change the 5 to a 3. This makes it stop at the terminal and not auto start the xserver.
5.Reboot and log in as root(you should be in terminal) remember linux is case sensitive!
Cd into the directiory with your rpms
Typerpm -ivh NIVIDIA_k.(hit esc twice and it will complete it for you) then press enter.
Type rpm -ivh NVIDIA_G (hit esc twice) then press enter.
6. Now type XFdrake or FXdrake (?) and choose the nvidia generic geforece 3 card. it should give you an option of withch free86 you want. choose 4.2 and follow the install directions(ex:instert cd1 press enter) remember to say no to any testing or starting x after reboot. Say yes to keep configuration making sure that xfree86 4.2 is shown.
7. Reboot and log back in as root. do the whole xfdrake thing again making all the same selections.
8. Now we edit the xfree86config-4.
Change directory to find the file at /ect/X11
Type mcedit XF86Config-4 (big blue screen comes up)
Now look for the line that says Load "dbe" and add underneath Load "glx"
9. Now find the graphics device section in the config
Change the lines to look like this
section "device"
identifier "NV AGP"
blah blah blah
driver "nvidia"
10. Now find the screen sections
Change it to look like this
section "screen"
identifier "screen1"
device "NV AGP"
11. Now press f2 to save and then f10 to quit.
12. Now type startx and you should boot into kde. try any game that is opengl (like chromium) if it works you're all set. i dont know why there is no nvidia spash screen.
-----------------------------------------------------------------------------
Originally posted by SpeeDj
For Linux Gamers
Just found a site today that's called Transgaming, they make what they call WineX which is wine with some DirectX support mixed in. You should check it out and see what they have to offer. I haven't really delved in too much but there success with quite a few games gives me hope that all is not lost as of yet.
J
http://www.transgaming.com/ That is the site
Last edited: