LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Some newbie questions... (https://www.linuxquestions.org/questions/linux-newbie-8/some-newbie-questions-142128/)

koswo 02-04-2004 05:25 AM

Some newbie questions...
 
Some newbie questions...

- Already found once on this forum, but unable to relocate it: how to put Java installation dir in the path, and not to have to type the command every time I restart my pc?

- Which dir is the best to install programs to, so that it's accessible to all users?

- On the pc on which Linux is installed, I also have a windows partition (I think itís on hda1) in ntfs, will I be able to access that partition from Linux?

- I have another pc which (at this moment) is running win2k with a shared folder and a printer connected to it, both pcís are connected to a router. I was already able to install the printer on the win2k box in Linux but can I also access the files located in the shared folder on that win2k box? (Itís file system is ntfs.)

- I downloaded the latest Mozilla (1.6)? Whatís the best thing to do : uninstall the one that comes with my Linux distro and then install the new one? Is there a command to "overwrite" the existing one with the new one?

- Can I add programs to the Gnome "start menu"?

Thanks for your help !

koswo

snacky 02-04-2004 05:47 AM

Quote:

- Already found once on this forum, but unable to relocate it: how to put Java installation dir in the path, and not to have to type the command every time I restart my pc?
What is the path to the Java installation dir? Assuming it's "/usr/local/javastuff", the following command will fix things:
echo "PATH=\"\$PATH:/usr/local/javastuff\"" >> /etc/profile
Quote:

- Which dir is the best to install programs to, so that it's accessible to all users?
Normally programs should come with their own utilities to install. Do check on that. However, if you really do have a standalone binary executable you want to install for all users, put it in /usr/local/bin
Quote:

- On the pc on which Linux is installed, I also have a windows partition (I think itís on hda1) in ntfs, will I be able to access that partition from Linux?
Yes. You have to have ntfs support compiled into the kernel or as a module. Then make a directory somewhere - say, /mnt/windows or something. Then the ntfs filesystem can be mounted by issuing the command "mount -t ntfs /dev/hda1 /mnt/windows". You can browse the contents of that partition by looking in /mnt/windows . Don't expect to be able to write to it.

Quote:

- I have another pc which (at this moment) is running win2k with a shared folder and a printer connected to it, both pcís are connected to a router. I was already able to install the printer on the win2k box in Linux but can I also access the files located in the shared folder on that win2k box? (Itís file system is ntfs.)
Yes. Obviously you already have Samba installed, which is used for talking to windows printers and windows shares.

You might want to look into a tool called swat for easy administration of samba. You might also consider an app like gnomba for browsing windows shares. Or you can read up on smbclient, which you probably already have installed.

UltimaGuy 02-04-2004 07:46 AM

You can uninstall the one that came with your distro. Just rpm -e 'Yourpackagename' will remove it. Then install the new mozilla suite. I recommend Firebird, as it is quicker. For mail client, you can use Thunderbird, if you don't like Evolution :-)

koswo 02-04-2004 08:15 AM

Thanks UltimaGuy, but...

rpm -e 'Yourpackagename' -> you mean the packagename of the existing Mozilla (the one that came with my Linux distro)... where do I find this package's name?

koswo

UltimaGuy 02-04-2004 08:50 AM

Type 'rpm -qa | grep moz' and then it will give a list of all installed mozilla apps.

koswo 02-04-2004 03:31 PM

Some other questions that come to my mind...
- how do I now which is the ip address of my machine (something like ipconfig in windows)?
- how do I change my machine's hostname?

Thanks again!

UltimaGuy 02-04-2004 11:32 PM

1) 'ifconfig' (as root)

2) 'hostname <anyname>' (as root)

UltimaGuy 02-04-2004 11:34 PM

And, before you ask, to set the ipaddress, the command is 'netconfig' (as root)


All times are GMT -5. The time now is 06:47 AM.