LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-21-2007, 12:09 AM   #46
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30

nevermind! got it to work, woot. Thanks yet again for this one.

The last couple things I can think of:

=Mounting files:
Here are the tiffs I have w/ it right now:
-Can't write to ntfs (even though 2.6 said something about it?)
-Does umask=0 mean everybody can access, write, execute, unmount, and mount drives w/o root access?
-Just the painfulness of mounting when I'm not root

=Can I pull the font files from Windows over to Linux and use them?
=That's it? It just may be! I never thought I'd see the day
 
Old 03-21-2007, 12:15 AM   #47
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Code:
Section "ServerLayout"
    Identifier  "Davidguy"
    Screen 0    "Screen0"  0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath  "/usr/X11R6/lib/X11/rgb"
    FontPath "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
    FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
EndSection

Section "Module"
    Load  "dbe"
    Load  "extmod"
    Load  "type1"
    Load  "freetype"
    Load  "glx"
    Load  "fbdevhw"
    Load  "record"
EndSection


Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc104"
    Option "XkbLayout" "us"
EndSection

# Adjust mouse driver for your needs, David.
# Mine is IMPS/2, what's yours...
# also,you may want "dev/mouse"
Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/psaux"
    Option "ZAxisMapping" "4 5"
EndSection

# Monitor: CHANGE HORIZ and VERT RATES
# FOR YOUR MONITOR!!! OTHERWISE YOU
# MAY DAMAGE YOURS WITH THESE VALUES
Section "Monitor"
    Identifier "Monitor0"
    VendorName "ACME Silly-screen"
    ModelName  "Silliest"
    HorizSync   30.0 - 86.0
    VertRefresh 50.0 - 160.0
    Option "DPMS"
EndSection

# here is my onboard chipset; change this
# to match yours, but it's not used anyway
# in my setup. Maybe delete it?
Section "Device"
    Identifier "i810"
    Driver     "i810"
    VendorName "Intel"
    BoardName  "i854G/PE"
    BusID "PCI:00:10:0"
EndSection

# Your AGP BusID should be the same as this.
# type 'lspci' to verify this.
Section "Device"
    Identifier "Videocard0"
    Driver     "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName  "nVidia 5800-something"
    BusID      "PCI:01:00:0"
EndSection


Section "Screen"
    Identifier "Screen0"
    Device  "Videocard0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option  "XVideo" "On"
    Option  "RenderAccel" "On"
    Option  "HWcursor" "On"
    Option  "AllowGLXWithComposite" "True"
    Option  "DamageEvents" "True"
  SubSection "Display"
    Depth 24
    Modes "1280x1024" "1024x768" "800x600"
  EndSubSection
EndSection
OK, I think I got everything in here correct. Backup your current file, and put this in its place and give it a whirl AFTER you double check the settings here and change the horix and vert refresh rates to match your monitor Specs.
 
Old 03-21-2007, 12:18 AM   #48
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
LOL @ Woot!!
heheh well you may get better performance from this file, up to you..
Umm, NTFS writing *can be done* but is somewhat untested and not really perfect yet. You can search for info on it, but use at your own risk.

As far as I know, wndows TTF fonts and the like can be used, but dont quote me.
umask=0000 means everyone can access it, atleast for NTFS, as far as I know. There are other ways too, but I think that will work.

And there you go!!
 
Old 03-21-2007, 12:23 AM   #49
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
Great, on that note, I've been wanting to go to bed for like an hour, but determination kept me up. Thanks for the help, Ill ttyl

--David
 
Old 03-21-2007, 12:24 AM   #50
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Right on, have a good'un! And see ya 'round
 
Old 03-21-2007, 02:30 AM   #51
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
When I upgrade my kernel in either Slackware or Gentoo, I always do zcat /proc/config.gz > [new kernel]/.config. Then I ran "make oldconfig". This sets up the new kernel using the same settings as the previous kernel version. Then I run "make menuconfig" because I prefer ncurses instead of QT GUI. After I quadruple check the options, I type "make && make modules_install". These steps are for 2.6.x kernels. I do not remember the steps for 2.4.x kernels, so read the documentation on how to compile 2.4.x kernels. After it is compiled bzImage have to be copied from [new kernel]/boot/arch/i386 to /boot. It is best to include the version of the kernel to make it easier to separate the old version and the new version. Also you will have to make an initrd file that includes any necessary modules to boot up Linux. Use mkinitrd to help you make one. You could make one your self but it is time consuming.

NTFS support from the kernel is still experimental. I suggest disable write support and enable NTFS logging while using it. There is Linux-NTFS project that is a lot better than the kernel's NTFS support. This project provides 99% of write support. Go to http://www.linux-ntfs.org/.

I do not recommend having the following lines in the Screen section because it will cause some conflicts when using more than one card.
Code:
    Option  "XVideo" "On"
    Option  "RenderAccel" "On"
    Option  "HWcursor" "On"
    Option  "AllowGLXWithComposite" "True"
    Option  "DamageEvents" "True"
The lines should be place where the video card driver is specify. This will not cause any conflicts but provide more organization and control of the X Window System. XVideo is automatically enabled by default.

In Windows the color depth 32 is 24-bit color which is already noted, but the other 8-bit is an opaque layer or in laymen terms transparency layer. The opaque layer in Linux is the composite module. Xorg 7 and above enables the composite module by default.

TTF fonts from Windows can be used in X Window System. These fonts may have to be converted to pcf fonts depending what the distribution used for its options during compiling the X Window System.

The ldconfig utility only needs to be run after adding or removing a library from the system. It really does not need be run upon boot up. Though it does not hurt to keep the cache refresh and consistent by running ldconfig during boot up.

Use gtf to help create modelines, so X Window System does not have to take time create them by it self. Place the modelines in the monitor section.

umask=0000 is dangerous. Everybody will have root access to the drive and be able to delete and take any file. umask=000 is a little safer or even better umask=002 or umask=022.
 
Old 03-21-2007, 06:46 AM   #52
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hiya Electro Thank you for the added advice in your last post, especially regarding the NTFS writing, the Windows fonts, umask 000, and explaining ldconfig . From my own experience, having difficulties with libraries a little while back, I think I'll just leave the ldconfig the way it is at boot, better safe than sorry by forgetting to run it.

The original poster will appreciate your info on NTFS writing for sure. I no longer have any MS installations and plan to keep it like this!

RE: the extra stuff in xorg.conf -- It's taken directly from the nVIdia README pertaining to the AGP drivers, as well as from my experimentation with what has worked optimally for me using 2 displays on my MX440 card. While nVidia suggests these items may go in either the screen OR device sections; I chose the screen-section method because I have different settings per-screen; thanks though for that tip about possible conflicts when using 2 cards. There are a lot of people it seems who are using nVidia cards, which is good, as they are so very compatible.

Original poster has been 2 steps ahead of me through this whole thread I don't think I'll be able to help him much longer, he knows everything I know now (which is relatively little, mind you -- I'm still brand-new too!).

Take care Electro; thx again..
Sasha

Last edited by GrapefruiTgirl; 03-21-2007 at 06:51 AM.
 
Old 03-21-2007, 04:57 PM   #53
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
Yes, thanks for the NTFS info, but I think it'd be too much trouble to deal with... I created an "exchange" vfat partition, so I'll just use that.

I'm wondering, is there a specific log that only has EXACTLY what was printed on the console during bootup? All the other logs seem to be missing some stuff I saw during bootup, i.e. that dma error message.

Also, all of the startup scripts are in /etc/rc.d , right? Linux is still trying to start up some modules that I have included into the kernel, and I want to turn that off.

Thanks both of yall
--David
 
Old 03-21-2007, 05:10 PM   #54
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hi David.. There doesn't seem to be an EXACT log of ALL sentences from bootup.
Between the logs in /var/log and the logs in /var/adm that's everything.
You might browse around all the stuff in /Proc but I'm not sure if there's any log-type stuff in there. Specifically, var/log/messages and var/log/syslog and var/log/dmesg should have the majority of boot messages.
Verbose output from the rc.<scripts> is not logged unless you specifically set some mechanism up to do so. In other words, printf, print, and echo statements from within the rc.<script> files may not be logged.

OK, have you disabled rc.hotplug by CHMOD'ing it (change mode/permissions) to NON-executable?
Next, check for stuff in rc.modules, rc.local, rc.modules.* and similar files, comment out anything you don't want to be modprobed.
Yes, most everything as far as boot scripts are in /etc/<somewhere> and /etc/rc.d/<somewhere>
 
Old 03-21-2007, 07:16 PM   #55
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
OK, I'll muddle my way through that, more important things to do lol.

If you program I have a question for you:

I am in an Assembly language class this semester. The teacher wants us to submit the source as well as the .exe file. Now is it possible to produce a .exe file in Linux, even though it would not be able to use it?

I don't know why there would need to be a cross compiler, I'm already using assembly.

And, if there is no other way to produce a .exe file w/o a cross compiler, then how could I incorporate it into a makefile? I've never made a makefile, but I have simple instructions.


I had another question, but I just blanked out on it lol.

Thanks
 
Old 03-21-2007, 08:12 PM   #56
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
That is getting beyond my abilities (My assembly skills are pretty outdated, and my knowledge of C is limited). You may do well to submit a post or browse in the programming forum. But here's the bit I know:
As for an .EXE, I guess you want a Windows executable?
A Cross compiler makes source code runnable on different platforms, I think.
And have absolutely no idea how to incorporate anything into a makefile
( See? Told you I know nothing )
All I can suggest, is the programming forum, and Gooooooooogle!\
LOL. Best of luck with that; I'm sure there are some extremely capable folks that can help, around here somewhere!
 
Old 03-21-2007, 08:18 PM   #57
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
lol ok no prob thanks anyway
Imma figure it out!
 
  


Reply

Tags
agp, compile, conf, driver, hotplug, install, jumpdrive, kernel, lsmod, module, modules, nvidia, scsi, source, udev, usb, xconfig, xorg, xorgconf


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
usb mouse does not work without hotplug Sephiroth Slackware 3 11-30-2006 03:28 PM
make hotplug run a script on detect bobbens Linux - Software 5 01-13-2005 12:42 PM
can't hotplug usb mouse bobwall Linux - Hardware 1 12-23-2004 02:54 PM
Can Hotplug detect USB devices in a certain order? SAM_site Linux - General 0 07-10-2004 08:27 AM
RH9 and Hotplug USB mouse xtrips Linux - Hardware 1 04-12-2003 06:20 PM


All times are GMT -5. The time now is 08:38 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration