Miscellaneous > Technical Support

Ubuntu Help?

<< < (5/13) > >>

piratePenguin:

--- Quote from: Aloone_Jonez ---
Another annoyance, I've managed to install FireFox 1.5 but how the fuck do I alter the launcher on Gnome?

KDE and even Xfce were easy I just right clicked on the them and changed the path to the executable, this works on the quick launch on the top panel but it dosen't work on the Applications pulldown menu, they should make this behaviour consistant.
--- End quote ---
Ah, that annoyed the feck outta me too. I believe there are graphical editors to edit the applications menu, but I just edit the .desktop (menu) file in /usr/share/applications(/firefox.desktop) manually. It's the "Exec" value you wanna change, and I think you probably should've/could've used apt/Synaptic to get the Ubuntu Firefox release and the desktop file would've been updated automatically.

--- Quote ---
EDIT:
How do I get root in Nautilus?
--- End quote ---
sudo nautilus ?
AFAIK (I don't do/use/have this myself), "gksudo" is a graphical sudo, so if you run "gksude nautilus" from the run application (or you coul create a .desktop file for it in /usr/share/applications) it should pop up.

Aloone_Jonez:
I want to set my NTFS partition mermissions to allow the user read only access.

Here's the contents of my fstab

--- Code: ---# /etc/fstab: static file system information.
#
#            
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hda4 /mnt/windows ntfs defaults 0 0

--- End code ---


Currently only root and read it, how do I change this to allow anyone read access?

piratePenguin:

--- Quote from: Aloone_Jonez ---I want to set my NTFS partition mermissions to allow the user read only access.

Here's the contents of my fstab

--- Code: ---# /etc/fstab: static file system information.
#
#            
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hda4 /mnt/windows ntfs defaults 0 0

--- End code ---


Currently only root and read it, how do I change this to allow anyone read access?
--- End quote ---

/dev/hda4   /mnt/windows   ntfs   user      0   0
or
/dev/hda4   /mnt/windows   ntfs   user,noauto      0   0

In the second one it's not mounted on boot (you can mount it in Computer (desktop. or nautilus > places)), you'll might prefer that if you don't use it too much.

worker201:
Wow, lot of stuff to talk about here.

1. If apt is not seeing anything new, then you may not have the repos set up right.  Fedora has places you can go to download premade repo settings and setup scripts, perhaps those exist for ubuntu?

2. Smart is a better package manager than synaptic.  It can do both yum and apt, expanding your package options.  Check it out.

3. The way piratepenguin has suggested you change permissions on your drive works, but it is not the most correct way to do it.  The most correct way would be to create a new user group, and allow this new group access.  Tutorial at http://www.userlocal.com/tips/fatmounting.php , should be readily adaptable to ubuntu and ntfs.

4. I learned a new technique the other day.  At the prompt type:
su -
enter your password, and then press enter.
Now you can launch apps from the command line as root, without causing the system to freak out.  For instance, you could run 'gedit /etc/fstab' and be able to save your changes.  Normally, simply doing 'su' alone with this command will cause a lot of memory leaks and maybe even some minor subsystem crashes.  This might help you do whatever you need to do as root to nautilus.

piratePenguin:

--- Quote from: worker201 ---
3. The way piratepenguin has suggested you change permissions on your drive works, but it is not the most correct way to do it.
--- End quote ---
They're both equally correct unless you want to control who should have access, in which case you'll have to create the group.

--- Quote ---
4. I learned a new technique the other day.  At the prompt type:
su -
enter your password, and then press enter.
Now you can launch apps from the command line as root, without causing the system to freak out.  For instance, you could run 'gedit /etc/fstab' and be able to save your changes.  Normally, simply doing 'su' alone with this command will cause a lot of memory leaks and maybe even some minor subsystem crashes.  This might help you do whatever you need to do as root to nautilus.
--- End quote ---
'su' is just a quick way to get root priviliges, the enviornment (variables) doesn't change. 'su -' creates a login shell, so it's as if you logged in as root after loggin out.

--- Code: ---piratepenguin@pcdeclan:~$ su
Password:
root@pcdeclan:/home/piratepenguin# echo $USER
piratepenguin
root@pcdeclan:/home/piratepenguin# exit
exit
piratepenguin@pcdeclan:~$ su -
Password:
root@pcdeclan:~# echo $USER
root
root@pcdeclan:~#
--- End code ---

One problem you might have with 'su -' is the DISPLAY enviornmental variable mightn't be set, on some distros (and on my system) you'll have to 'export DISPLAY=:0.0'.
Another is the Xserver might reject the connection ("Xlib: connection to ":0.0" refused by server"). You can control the server access controls for X with the 'xhost' program ('man xhost') as the normal user, using 'xhost +' to totally disable it.

--- Code: ---piratepenguin@pcdeclan:~$ su -
Password:
root@pcdeclan:~# echo $DISPLAY

root@pcdeclan:~# DISPLAY=:0.0 gedit /etc/fstab
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(gedit:2294): Gtk-WARNING **: cannot open display:
root@pcdeclan:~# exit
logout
piratepenguin@pcdeclan:~$ xhost +
access control disabled, clients can connect from any host
piratepenguin@pcdeclan:~$ su -
Password:
root@pcdeclan:~# cat /etc/fstab
# file system  mount-point  type   options         dump  fsck
#                                                        order

/dev/hda5      swap         swap   pri=1           0     0

/dev/hda3      /            ext3   defaults        0     0
/dev/hda7      /home        ext3   defaults        0     0
/dev/hda8      /boot        ext3   defaults,noauto 0     0

/dev/hda2      /mnt/gnu_hurd ext2  defaults,noauto 0     0
/dev/hda4      /mnt/reiser4 reiser4 defaults,noauto 0    0

/dev/hdc       /media/hdc   iso9660 defaults,noauto,user,ro 0 0
/dev/hdd       /media/hdd   iso9660 defaults,noauto,user,ro 0 0
/dev/fd0       /media/floppy auto  defaults,noauto,user 0 0

/dev/sda1      /media/external_hd vfat defaults,noauto,user 0 0

proc           /proc        proc   defaults        0     0
sysfs          /sys         sysfs  defaults        0     0
devpts         /dev/pts     devpts gid=4,mode=620  0     0
shm            /dev/shm     tmpfs  defaults        0     0
root@pcdeclan:~# DISPLAY=:0.0 gedit /etc/fstab
root@pcdeclan:~# cat /etc/fstab
# file system  mount-point  type   options         dump  fsck
#                                                        order

/dev/hda5      swap         swap   pri=1           0     0

/dev/hda3      /            ext3   defaults        0     0
/dev/hda7      /home        ext3   defaults        0     0
/dev/hda8      /boot        ext3   defaults,noauto 0     0

/dev/hda2      /mnt/gnu_hurd ext2  defaults,noauto 0     0
/dev/hda4      /mnt/reiser4 reiser4 defaults,noauto 0    0

/dev/hdc       /media/hdc   iso9660 defaults,noauto,user,ro 0 0
/dev/hdd       /media/hdd   iso9660 defaults,noauto,user,ro 0 0
/dev/fd0       /media/floppy auto  defaults,noauto,user 0 0

/dev/sda1      /media/external_hd vfat defaults,noauto,user 0 0

proc           /proc        proc   defaults        0     0
sysfs          /sys         sysfs  defaults        0     0
devpts         /dev/pts     devpts gid=4,mode=620  0     0
shm            /dev/shm     tmpfs  defaults        0     0
###### gedit was here! #####
root@pcdeclan:~#
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version