The great AT Linux/BSD/*NIX FAQ project!

Page 12 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: BDawg
Originally posted by: Electrode
While there is a way to make it not use a virtual desktop at the maximum size, I do not know it. It has something to do with the mode lines in /etc/X11/XF86Config.

The method I use is stupid but functional: stop X, remove the resolutions higher than what you want to use from the mode line for your color depth, then start X again.

Hopefully someone will chime in with a better answer.

XFree 4 was supposed to remove the need for scanlines.

what? you mean modelines?
 

BDawg

Lifer
Oct 31, 2000
11,631
2
0
Originally posted by: BingBongWongFooey
Originally posted by: BDawg
Originally posted by: Electrode
While there is a way to make it not use a virtual desktop at the maximum size, I do not know it. It has something to do with the mode lines in /etc/X11/XF86Config.

The method I use is stupid but functional: stop X, remove the resolutions higher than what you want to use from the mode line for your color depth, then start X again.

Hopefully someone will chime in with a better answer.

XFree 4 was supposed to remove the need for scanlines.

what? you mean modelines?

Yes, modelines... must be a brain fart.
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81
I have a FAQ request: An explanation of BSD's storage device naming conventions. It's one of the things about BSD that confuses me the most.

A guide to building a BSD kernel would be helpful too.
 

EmperorRob

Senior member
Mar 12, 2001
968
0
0
ssh would be a great FAQ. Both configuring the server and the client. Unfortunately I've only got mine half-way working so maybe someone else will take this one.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Electrode
I have a FAQ request: An explanation of BSD's storage device naming conventions. It's one of the things about BSD that confuses me the most.

Can you give an example of what confuses you? Not exactly sure what you mean

A guide to building a BSD kernel would be helpful too.

Free/Open/Net? Process is a little different I believe.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: EmperorRob
ssh would be a great FAQ. Both configuring the server and the client. Unfortunately I've only got mine half-way working so maybe someone else will take this one.

Ill see what I can do this weekend.
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81
Originally posted by: n0cmonkey
Originally posted by: Electrode
I have a FAQ request: An explanation of BSD's storage device naming conventions. It's one of the things about BSD that confuses me the most.

Can you give an example of what confuses you? Not exactly sure what you mean

For example, Linux calls IDE storage devices hda, hdb, hdc, and hdd, SCSI hard drives sda, sdb, sdc and so on, with partition numbers at the end (first partition on primary master IDE is hda1). SCSI CD-ROMs are named scd0, scd1, scd2 and so on.

BSD's naming convention seems a bit more complex, a hard drive partition may be called 'wd0s1p1' or something, and I have no idea what CD-ROMs, SCSI disks, and things like USB storage and zip drives are called.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Electrode
Originally posted by: n0cmonkey
Originally posted by: Electrode
I have a FAQ request: An explanation of BSD's storage device naming conventions. It's one of the things about BSD that confuses me the most.

Can you give an example of what confuses you? Not exactly sure what you mean

For example, Linux calls IDE storage devices hda, hdb, hdc, and hdd, SCSI hard drives sda, sdb, sdc and so on, with partition numbers at the end (first partition on primary master IDE is hda1). SCSI CD-ROMs are named scd0, scd1, scd2 and so on.

BSD's naming convention seems a bit more complex, a hard drive partition may be called 'wd0s1p1' or something, and I have no idea what CD-ROMs, SCSI disks, and things like USB storage and zip drives are called.

Here is a copy of a couple of fstabs:

/dev/wd0a / ffs rw,softdep 1 1

A very simple / only config with IDE disk.

/dev/sd0a / ffs rw,softdep 1 1
/dev/sd0d /usr ffs rw,nodev 1 2
/dev/sd0e /tmp ffs rw,nodev,softdep,nosuid 1 2
/dev/sd0f /var ffs rw,nodev,softdep,nosuid 1 2
/dev/sd0g /usr/local ffs rw,softdep 1 2
/dev/sd0h /home ffs rw,nodev,softdep 1 2

A scsi setup that needs to be redone.
 

krystalogik

Senior member
Dec 6, 2001
361
0
0
Amphibious, about that mouse, we had a lab full of spanking new computers with those mice, and they didnt work in X on Mandrake 8.2 until we disabled the USB modules, and it emulated a PS2 mouse. They were eventually replaced after we figured that out.
 

hobgadling

Member
Oct 23, 2001
39
0
0
As a side note to these FAQs, if anyone else is using the Madrake 9.0 cooker rpms for mozilla 1.2.1 and have a ton of trouble with them (text boxes not working, windows not opening right, etc), i've found the best way to fix it is to simply uninstall the rpms and install it from the installer on the mozilla webpage. I hope this helps someone out there...

--Hob
 

soni

Diamond Member
May 29, 2000
4,222
0
0
I have a few suggestion to some FAQ I would like to get answered..

1. SAMBA. All doc. I can find have instructions in how to setup Linux as a "better" SAMBA server.

How do you setup Linux as a SAMBA client.?

I have gotten a mount to work by GUI in Mandrake 9.0, but I cant figure out how to get Write access on my Windows Server, where I have mounted a share in linux with an account with write access on Windows share.
I have found a lot of references to Linux not being able to write to NTFS partitions, but surely that doesnt count over SAMBA?

2. How to update KDE/GNOME. I have (i think) KDE 3.0 from my Mandrake 9.0 default installation, but how to upgrade this to 3.03 or whatever the newest is?

3. My drivers for my NVidia card is the old 3.XX, since the installation said something about the 4.XX being Beta drivers.
All docs. seems to consider those pretty stable, so how do I upgrade to those?

4. Security, how or where does I work with groups.
All security I can place on files and folder (chmod) have only User, Group and Other..
Still, when I use "chmod -R 777 /foldername" I still doesnt have write access to that folder using my normal account and Konquer (GUI interface)

I thought i understood Read, Write, eXecute access on UGO, but why cant I then write in the folder.



Otherwise, really nice work on the FAQ..

I learn a lot, even if I havent tried all yet
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81
Originally posted by: soni
I have a few suggestion to some FAQ I would like to get answered..

1. SAMBA. All doc. I can find have instructions in how to setup Linux as a "better" SAMBA server.

I dunno. Check LDP and google.

How do you setup Linux as a SAMBA client.?

I'm not sure what you're talking about.

I have gotten a mount to work by GUI in Mandrake 9.0, but I cant figure out how to get Write access on my Windows Server, where I have mounted a share in linux with an account with write access on Windows share.

You have to be root to write on a samba share AFAIK.

2. How to update KDE/GNOME. I have (i think) KDE 3.0 from my Mandrake 9.0 default installation, but how to upgrade this to 3.03 or whatever the newest is?

Easiest method would probably be through rpmdrake.

3. My drivers for my NVidia card is the old 3.XX, since the installation said something about the 4.XX being Beta drivers.
All docs. seems to consider those pretty stable, so how do I upgrade to those?

The same way you installed the old ones.

4. Security, how or where does I work with groups.

You can add a group with 'addgroup', and then add users to that group. Then any user in the group that owns a given file will be covered under the 'group' permissions, unless that user owns the file, in which case the 'user' permissions will take effect. If the user has no direct or group ownership of the file, the 'other' permissions apply.

Still, when I use "chmod -R 777 /foldername" I still doesnt have write access to that folder using my normal account and Konquer (GUI interface)
?
 

purpledemon

Senior member
Jun 21, 2001
291
0
0
Is a recommended Partitioning scheme and reasons for it, a valid FAQ ?
dont want to start an opinion or flame war ... but I know something like that would help newbies like me
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81
I don't know anything at all about any version of redhat, but on my systems, here's what I do:

1. Open up /etc/lilo.conf
2. Add the line append = "hdc=scsi" to the Linux section.
3. /sbin/lilo -L to update lilo
4. Reboot

Then cdrecord and its frontends will be able to use the burner. Note that hdc needs to be replaced with whatever your burner is. Primary Master = hda, Primary Slave = hdb, Secondary Master = hdc, Secondary Slave = hdd.
 

BML

Senior member
Jun 1, 2001
443
0
0
Ok my Xwindows config is screwed, everytime I boot it goes in to this screen where i cant access the command line. Is there anyway i can stop Xwindows from starting?
 

N11

Senior member
Mar 5, 2002
309
0
0
Originally posted by: BML
Ok my Xwindows config is screwed, everytime I boot it goes in to this screen where i cant access the command line. Is there anyway i can stop Xwindows from starting?

Depending on your distro get into some form of rescue or single user mode and edit /etc/inittab and change the default runlevel to 3.

Then rerun the xconfig utility that your distro provides.

edit: also, you should be able to change to a different virtual terminal using alt and a function key. Try ALT - F2 after the system has booted up.
 

ahabeger

Member
Feb 15, 2000
29
0
0
I'm still learning, and this is some stuff that I don't see mentioned very often

PC speaker beep annoying you? look here or here.
Change your bash prompt by reading the Bash Prompt HOWTO.
Change the MOTD or text displayed at login by editing /etc/motd
Use free to see your memory useage, use free's cousin df to see your disk useage.
To find what processes are running use ps or top.

I'll probably add to this list more as I remember some obscure stuff

and in my boredom today i found out that i can get roughly 4 GB/sec to 127.0.0.1
 

BeeVo

Golden Member
Aug 19, 2000
1,076
0
0
I am a complete linux n00b. I just installed Mandrake 9 to use as a file server. How do I share files with my Win XP machine?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: BeeVo
I am a complete linux n00b. I just installed Mandrake 9 to use as a file server. How do I share files with my Win XP machine?

SAMBA, the information on SAMBA is here in this thread and also maybe on the AT FAQ page.
 

manly

Lifer
Jan 25, 2000
11,796
2,749
136
Originally posted by: Electrode
Originally posted by: soni
How do you setup Linux as a SAMBA client.?

I'm not sure what you're talking about.
man smbmount

I have gotten a mount to work by GUI in Mandrake 9.0, but I cant figure out how to get Write access on my Windows Server, where I have mounted a share in linux with an account with write access on Windows share.

You have to be root to write on a samba share AFAIK.
No, you're confusing local security with remote security. To write to any remote FS (speaking generally) you need the proper credentials. smbmount specifically allows you to specify username, password and the workgroup to get the necessary credentials from the remote SMB server. I'm not sure where the proper UNIX place to put the auth info is. /etc/fstab works but is insecure on any multiuser system.

3. My drivers for my NVidia card is the old 3.XX, since the installation said something about the 4.XX being Beta drivers.
All docs. seems to consider those pretty stable, so how do I upgrade to those?

The same way you installed the old ones.
Nvidia has perfectly good documentation for the RPM and tarball distributions of its binary drivers. The tarball instructions are slightly simplified earlier in this thread.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: manly

3. My drivers for my NVidia card is the old 3.XX, since the installation said something about the 4.XX being Beta drivers.
All docs. seems to consider those pretty stable, so how do I upgrade to those?

The same way you installed the old ones.
Nvidia has perfectly good documentation for the RPM and tarball distributions of its binary drivers. The tarball instructions are slightly simplified earlier in this thread.

Is this a comment on the instructions I wrote?
 

Loco3KGT

Senior member
Sep 25, 2000
325
0
76
Originally posted by: Electrode
Alright then, I suppose I will begin things:

Q: How do I unpack a .tar.gz or .tar.bz2 file?
A. tar xzvf filename (it it's a .tar.gz)
tar xjvf filename (it it's a .tar.bz2)

that's actually wrong. it depends on the version of tar that you're using.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Loco3KGT
Originally posted by: Electrode
Alright then, I suppose I will begin things:

Q: How do I unpack a .tar.gz or .tar.bz2 file?
A. tar xzvf filename (it it's a .tar.gz)
tar xjvf filename (it it's a .tar.bz2)

that's actually wrong. it depends on the version of tar that you're using.

Recent versions of GNU tar will do this just fine. Sun's tar will not unzip anything though.

EDIT: Ive been working on this a little bit (and still have plenty of work to do on it). Sorry Electrode

Getting help:
man command - Almost always shows you the manual for the specified program. When told to 'RTFM', this is what you must do.
man -k word - Kind of like a search engine for man.

Moving around the file system:
Navigating the Unix file system is very similar to DOS. Some of the commands are a little different, but they generally behave the same.
cd dirname - Changes to the specified directory.
cd .. - Changes to the parent of the current directory.
pwd - Prints the current directory. Usefull if, for whatever reason, your prompt doesn't give this info.
ls - Directory listing. use the -lh switch to get a detailed listing. Use the -a switch to show hidden files.

Archives:
tar xzf file.tar.gz - Unpack a .tar.gz file. Doesn't work in all systems. I believe this is a feature of GNU tar and the tar on Solaris will not have this functionality. Use gtar if you want this feature. BSD's tar should have this functionality also.
tar xf file.tar - Unpack an uncompressed .tar file.
gunzip file.gz - Uncompress any .gz file, tar or otherwise. If the file you are decompressing is a .tar.gz, it will not be unpacked, it will simply become a normal .tar file.
uncompress file.Z - Uncompress any standard .Z (compressed using the compress command) file.
bunzip2 file.bz2 - Uncompress any .bz2 file.
tar cf file.tar dirname - Put the contents of a directory into a .tar file.
gzip file - GZip compress a file.
bzip2 file - BZip2 compress a file. This is a pretty good compression method, it would be the suggested method if it was more standard on various Unix and Unix-like systems.

Viewing and editing files:
cat - Outputs the contents of a text file to stdout. Only useful on small files or simple manipulation.
more - A somewhat simple text file reader. The SPACE bar moves you one page forward, the ENTER key moves you one line forward, and many times the "b" key will move you one page backwards.
vi file - A really nice text editor, albeit a bit tricky to use.

Environment variables:
PATH - Tells the shell where to look for programs if you don't tell it exactly where it is. It works like the DOS PATH variable, but with colons ) instead of semicolons ( to seperate the entries. For example: /bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/X11R6/bin:/opt/mozilla

ie. (for Bourne based shells)
PATH="$PATH:/usr/local/bin"
export PATH

DISPLAY - Tells the machine where to display graphical applications

ie. (for Bourne based shells)
DISPLAY="name_of_machine:0.0"
export DISPLAY
export - In Bourne based shells (ksh appears to be default on Solaris), this command is used to set an environment variable.
setenv - csh based shells use the setenv command to set environment variables. ie.
setenv PATH "$PATH:/usr/local/bin"
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |