LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Just installed debain testing and iv'e got some problems (https://www.linuxquestions.org/questions/linux-newbie-8/just-installed-debain-testing-and-ive-got-some-problems-311560/)

Zadatak 04-09-2005 09:08 PM

Just installed debain testing and iv'e got some problems
 
I'm fairly new to Linux and i've just installed debian testing, but i've got a few problems.
I need to edit my /etc/resolv.conf, so i open it in gedit as root and change it (not sure if this is the correct / easiest way to do it) but after about 5 mins, it will change back to what it was before.

I'm trying to mount my Windows ntfs partition so i use
Code:

mount /dev/hda1 /mnt/win
It works but only root has read permissions. So i used
Code:

chmod o+r win
but it doesn't seem to do anything.

When i try to change my screen resolution the highest it will let me go is 800x600. Is there any way to get it to 1024x768? My graphics card is a ATI Radeon 9200SE so i chose "ati" when the istaller asked what display drivers to use.

Thanks.

Mega Man X 04-09-2005 10:00 PM

Re: Just installed debain testing and iv'e got some problems
 
Welcome to LQ.org Zadatak!

Quote:

I need to edit my /etc/resolv.conf, so i open it in gedit as root and change it (not sure if this is the correct / easiest way to do it) but after about 5 mins, it will change back to what it was before.
What are you trying to do? /etc/resolv.conf holds your nameservers. If you connect through a DHCP server, it should be overwritten by the DHCP server.

Quote:

I'm trying to mount my Windows ntfs partition so i use
Code:

mount /dev/hda1 /mnt/win
It works but only root has read permissions. So i used
Code:

chmod o+r win
but it doesn't seem to do anything.
You won't be able to do that. Writing to a NTFS partition is, AFAIK, a 2.6.x kernel feature only and with unstable support. Reading, as you already know, is not a problem, but writing to a NTFS may cause some loss of data. If you need to write to a NTFS partition, you will need to re-compile your kernel in order to add NTFS support. The very best way, however, is to create a FAT32 partition so both Linux and Windows can read/write without a hassle.

Quote:

When i try to change my screen resolution the highest it will let me go is 800x600. Is there any way to get it to 1024x768? My graphics card is a ATI Radeon 9200SE so i chose "ati" when the istaller asked what display drivers to use.
You will need to edit your /etc/X11/xorg.conf or /etc/X11/XF86Conf depending if you use xorg or xfree.

Regards!

Zadatak 04-09-2005 11:07 PM

Quote:

What are you trying to do? /etc/resolv.conf holds your nameservers. If you connect through a DHCP server, it should be overwritten by the DHCP server.
I'm on a LAN where the gateway is a Windows XP box with ICS (don't ask), but the DNS doesn't seem to work properly with it. In Windows under TCP/IP properties i have "Obtain an IP address automaticly" and "Use the following DNS server addresses" and i have the address beneath. Would i have to use a static IP in Linux? If so, how?


Quote:

You won't be able to do that. Writing to a NTFS partition is, AFAIK, a 2.6.x kernel feature only and with unstable support. Reading, as you already know, is not a problem, but writing to a NTFS may cause some loss of data. If you need to write to a NTFS partition, you will need to re-compile your kernel in order to add NTFS support. The very best way, however, is to create a FAT32 partition so both Linux and Windows can read/write without a hassle.

I know Linux can't write to NTFS partitions, the problem is i don't know how to give my normal user read permissions. When i use "chmod o+r win" (that would give others read permission wouldn't it?) it says "chmod:changing permissions of 'win': Read-only file system"


Quote:

You will need to edit your /etc/X11/xorg.conf or /etc/X11/XF86Conf depending if you use xorg or xfree.
It worked, thanks.

audibel 04-10-2005 12:19 AM

Quote:







I know Linux can't write to NTFS partitions, the problem is i don't know how to give my normal user read permissions. When i use "chmod o+r win" (that would give others read permission wouldn't it?) it says "chmod:changing permissions of 'win': Read-only file system"


actually that gives owner read permission... a+r is the flag I think you're looking for...

btmiller 04-10-2005 12:37 AM

To modify permissions on an NTFS file system you'll have to change the mount options in /etc/fstab, since AFAIK chmod and friends don't work on NTFS (and they certainly don't work with FAT32 since the filesystem lacks the concept of permissions).

In your /etc/fstab entry for the filesystem add umask=000 to the options the filesystem is mounted with, and then remount. WARNING! This gives all users on your Linux system complete access to the NTFS filesystem. Look into the user and umask options in man mount for more info about this.

Zadatak 04-10-2005 01:07 AM

Quote:

Originally posted by btmiller
In your /etc/fstab entry for the filesystem add umask=000 to the options the filesystem is mounted with, and then remount. WARNING! This gives all users on your Linux system complete access to the NTFS filesystem. Look into the user and umask options in man mount for more info about this.
Thanks, that worked. :)

EDIT: I fixed the other problem by changing some stuff in /etc/dhclient.conf. Thanks for your help everyone.


All times are GMT -5. The time now is 01:31 AM.