Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Thursday, August 14, 2008

Access Windows directories over network from Linux

At work I have an Active Directory domain and most of my systems are Windows XP clients of this domain. I also have a Red Hat Enterprise network that uses NIS. At my desk, I have a machine that dual boots Vista and Fedora 8. And of course I have VMWare guests on each one. Anyway.....

So I'm on my Fedora box and I simply want to copy a file to the Windows 2003 SBS file server. I have created a shared dir on the server, but how to access it? There are several ways.

First, the GUI way

Click anywhere in a blank space on the X desktop and then hit Alt+F2 on your keyboard. This will bring up the "Run Application" dialog box. Type this in the box:
smb://your_windows_username@IP_address_of_server/shared_dir_name


You can also use the fully qualfied host name if you like. But for the sake of accuracy, I went with IP address. So let's say you have a machine with the IP address of 192.168.1.10, your Windows username is "JimSmith2001" and the name of the shared directory is "backup". Then you could type this:
smb://JimSmith2001@192.168.1.10/backup


Then just click on "Run" and enter your password when it prompts you. Make sure the domain is entered properly. If your domain name is hello.com, then put in HELLO for the domain name.

Next is the CLI way

Just type this:
$ sudo mkdir -p /winserver/backup
$ sudo mount -t cifs -o username=JimSmith2001,password=JimSmithsPassword //192.168.1.10/backup /winserver/backup


Basically you are making a directory to mount to, and then simply mounting the remote Windows directory to it. You can replace cifs with smbfs if the above doesn't work. I think the smbfs is no longer supported though (or something like that). You'll have to research that on your own. But hopefully this will get you started. Good luck!


...

Sunday, July 27, 2008

Mocha VNC Lite on iPhone + TightVNC Server on Windows XP

So basically you just install TightVNC Server on your Windows box (or it can be Mac or Linux, doesn't really matter). Then you install the VNC Lite app on your iPhone. Give your computer a static IP address, open up port 5900 on your router and point it to your IP address and wha-la,.. you can now remote control your computer from anywhere. Amazing!



...

Tuesday, May 6, 2008

Install Nvidia drivers on Red Hat 9 or RHEL3

This guide will help you install Nvidia drivers on a Linux based computer system that has an Nvidia card. This guide assumes you are using Red Hat Enterprise 3 or Red Hat 9 (or something along those lines. This guide would probably work ok for Fedora too. Not sure about SuSE or Ubuntu though.)

Basically, after a default installation, you will want to try to install your Nvidia drivers. You go to Nvidia.com, you try to pick out the right driver, you go to install and you have no luck. You probably get errors similar to what I have written below. Well, here is what is happening as best as I understand it...

The computer will try to take the Nvidia drivers and basically compile those drivers into the Linux kernel. But after a default install, the kernel source files aren't there. You either have to put them on the computer by copying from the CD or downloading from a repository of some sort. So in my opinion, the best thing to do is to just copy from the CD you installed from. In Ubuntu, you probably just download it, but with Fedora or Red Hat, use the CD.

Ok, so now you should have the kernel source file and the nvidia driver located together in one directory (can be anywhere, just as long as you know where).

Problems: These are the messages you will get if it's not setup up properly.

No precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)?


ERROR: Unable to find the kernel header files for the currently funning kernel. Please make sure you have installed the kernel header files for your kernel; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' rpm installed. If you know the correct kernel header files are installed, you may specify the kernel include path with the --kernel-include-path' commandline option.


ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com



Solution:

  1. Install and configure Red Hat Enterprise 3 as best as you can. Configure NFS, NIS, etc. if you like. Or just jump right away into this...

  2. Be sure you are in run level 3 (text mode) before doing all this.

    # vi /etc/inittab
    id:3:initdefault: <-- make sure number value is a 3 so you boot to text mode # reboot
  3. Determine kernel release

    # uname -r
    2.4.21-40.EL


  4. Install kernel source rpm file. First, get it from from one of the CD's (either CD-3 of the install CD's or use the CD that I made (which if you are reading this from my blog, then you probably don't have it.) Just make sure the kernel release numbers match up before proceeding or you might have to format/reinstall).

    # rpm -ivh /full_path_to_rpm/kernel-source-2.4.21-4.EL.i386.rpm


  5. If all goes well, Then try to run the Nvidia driver. In this example, I assume you copied everything to /tmp
    # cd /tmp


I assume you have the Nvidia driver. In this case, this is the one I am using. You can go to nvidia.com and get one from there too. It might be a newer version too.
I just happen to like this one because I know it works with what I have.
# sh NVIDIA-Linux-x86-1.0-8756-pkg1.run


Note: You might get an error message similar to one of the ones above, but keep going and let it recompile. You should see a progress indicator which shows that it's working. It will say it's finished at the end. Then you can change /etc/inittab back to run level 5

# vi /etc/inittab
id:5:initdefault: <-- make sure number value is a 5 so you boot to graphical mode # reboot

Please feel free to comment if you find any mistakes here. Thanks in advance.
---