You are not logged in.
Before I start with themes and everything else I need the basics working.
As you can see I'm getting an "Unable to mount 30 GB Filesystem, Authentication is required" error.
Screenshot:
1. How do I get the partitions to mount AND unmount (via the Eject button) ? (see bellow)
Preferably not automounted at startup. I got USB drives to work by editing ~/.xinitrc as following:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session
2. Do I need to edit /etc/fstab by any chance and mount them on /media or /tmp ? Which one, /media or /tmp ? (see bellow)
3. Can I rename the Devices entries to something more round (3 GB, 5 GB, etc) ? By not having to resize, obviously. (see bellow)
4. How do I get rid of the "Trash" and "Entire network" entries ? (see bellow)
5. Why two error prompts ? Probably something related to D-Bus/HAL, right ? (don't care anymore, lol)
PS: I'm part of the "storage" group:
[dspider@arch ~]$ groups dspider
wheel video audio optical storage power vboxusers users
Thanks.
Last edited by DSpider (2010-12-01 01:43:28)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
do you use testing repo?
Give what you have. To someone, it may be better than you dare to think.
Offline
Nautilus-elementary is in the AUR repository:
http://aur.archlinux.org/packages.php?K … elementary
Edit: Tho Help - About says "Nautilus 2.31.1"... Latest from the repo is at 2.30.1 (tho marked as "Out of Date"). Hmmm... Maybe ? How can I find out ?
Last edited by DSpider (2010-11-04 22:59:49)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Bump.
Apparently typing sudo mkdir /media/468GB and adding this entry in /etc/fstab works:
UUID=f838b24e-3a66-4d02-86f4-a2e73e454336 /media/468GB ext4 defaults,noatime,user 0 0
But it also adds another entry... And it automounts it, as I suspected:
Can I use sudo mkdir '/media/468 GB EXT4 Filesystem' ? But will it work with fstab ? Hmmm...
Last edited by DSpider (2010-11-05 18:33:47)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
#1 SOLVED
sudo cp /usr/share/polkit-1/actions/org.freedesktop.udisks.policy /usr/share/polkit-1/actions/org.freedesktop.udisks.policy.bak
sudo nano /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
Change all (relevant) entries from:
"<allow_active>auth_admin_keep</allow_active>"
to:
"<allow_active>yes</allow_active>"
Maybe leave out the "modify device" section and ATA SMART, RAID, LVM2, encryption, etc.
If you'd like a prompt screen to ask for the root password on mounting you could install "polkit-gnome". And apparently you have to do this every time udev (?) is upgraded...
#2 SOLVED
Apparently not. My fstab only mounts "/" and "/swapfile". Everything else is mounted to /media when I click on an entry from the left side panel (Devices). I am thinking of adding a permanent mount point there, tho, because there are some torrent files that start there. I'll think about it. Not a priority right now.
#3 SOLVED
I simply used drive labels using Parted Magic, however anything based on gparted should work (an Ubuntu Live CD for instance) or even e2label, tune2fs, etc from console. Now it shows as "3 GB (Windows XP)", "5 GB (Work)", "30 GB (Storage)" and so on.
So there. Only took me 8 frigging hours to get something as basic as mounting a partition to work. Had to fiddle with mount permissions from the sudoers file - only to find out it works without... Countless reboots... But I kinda feel proud of myself. It's like going through one big FRUSTRATING puzzle you put together by using Google, man pages and common sense. One thing's for sure, I sure as shit learned a lot during my Google adventures.
Only #4 and #5 remain. Well, #4 actually because after what I've been through I don't give a fuck about #5. I'm just happy it works !
Last edited by DSpider (2010-12-05 17:10:09)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
#4 SOLVED
Someone was kind enough to answer me on Launchpad (link) and I spent (again) the bulk of my day hacking it. But it was fun, I guess.
Here's how.
First of all to do a clean install, remove nautilus-elementary and remove uninstalled packages from cache:
sudo pacman -Rns nautilus-elementary-bzr
sudo pacman -Sc
After you extracted the folder with the PKGBUILD file and friends, switch to the directory:
cd ~/builds/nautilus-elementary-bzr
(or any directory you like)
makepkg -s
leafpad ~/builds/nautilus-elementary-bzr/src/nautilus-elementary/src/nautilus-places-sidebar.c
(or whatever text editor you use)
Search for "Open the trash" and remove this part:
mount_uri = "trash:///"; /* No need to strdup */
//printf ("bookmark: %d %s\n", index, mount_uri);
icon = nautilus_trash_monitor_get_icon ();
last_iter = add_place (sidebar, PLACES_BUILT_IN, &iter,
_("Trash"), icon, mount_uri,
NULL, NULL, NULL, index + sidebar->n_builtins_before,
_("Open the trash"));
compare_for_selection (sidebar,
location, mount_uri, last_uri,
&last_iter, &select_path);
g_object_unref (icon);
I'm thinking of doing the same to Desktop and the home folder for an even cleaner look as I don't really use them practically at all. Heck, I don't even use desktop icons. And I can always bookmark them later "IF" I want to.
Just scroll up and remove:
/* home folder if different from desktop directory */
desktop_path = nautilus_get_desktop_directory ();
if (strcmp (g_get_home_dir(), desktop_path) != 0) {
char *display_name;
mount_uri = nautilus_get_home_directory_uri ();
display_name = g_filename_display_basename (g_get_home_dir ());
icon = g_themed_icon_new (NAUTILUS_ICON_HOME);
last_iter = add_place (sidebar, PLACES_BUILT_IN, &iter,
display_name, icon, mount_uri,
NULL, NULL, NULL, 0,
_("Open your personal folder"));
compare_for_selection (sidebar,
location, mount_uri, last_uri,
&last_iter, &select_path);
sidebar->n_builtins_before++;
g_object_unref (icon);
g_free (display_name);
g_free (mount_uri);
}
/* desktop directory if show_desktop */
if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_SHOW_DESKTOP))
{
mount_uri = g_filename_to_uri (desktop_path, NULL, NULL);
icon = g_themed_icon_new (NAUTILUS_ICON_DESKTOP);
last_iter = add_place (sidebar, PLACES_BUILT_IN, &iter,
_("Desktop"), icon, mount_uri,
NULL, NULL, NULL, 1,
_ ("Open the contents of your desktop in a folder"));
g_object_unref (icon);
compare_for_selection (sidebar,
location, mount_uri, last_uri,
&last_iter, &select_path);
sidebar->n_builtins_before++;
g_free (mount_uri);
}
g_free (desktop_path);
/* add bookmarks */
Search for "add network category" and remove:
/* add network category */
gtk_tree_store_append (sidebar->store, &iter, NULL);
gtk_tree_store_set (sidebar->store, &iter,
PLACES_SIDEBAR_COLUMN_ICON, NULL,
PLACES_SIDEBAR_COLUMN_NAME, _("Network"),
PLACES_SIDEBAR_COLUMN_ROW_TYPE, PLACES_PERSONAL_CATEGORY,
PLACES_SIDEBAR_COLUMN_EJECT, FALSE,
PLACES_SIDEBAR_COLUMN_NO_EJECT, TRUE,
PLACES_SIDEBAR_COLUMN_BOOKMARK, FALSE,
PLACES_SIDEBAR_COLUMN_NO_BOOKMARK, TRUE,
PLACES_SIDEBAR_COLUMN_TOOLTIP, _("Your network places"),
-1);
network_mounts = g_list_reverse (network_mounts);
for (l = network_mounts; l != NULL; l = l->next) {
mount = l->data;
root = g_mount_get_default_location (mount);
icon = g_mount_get_icon (mount);
mount_uri = g_file_get_uri (root);
name = g_mount_get_name (mount);
tooltip = g_file_get_parse_name (root);
last_iter = add_place (sidebar, PLACES_BUILT_IN, &iter,
name, icon, mount_uri,
NULL, NULL, mount, 0, tooltip);
compare_for_selection (sidebar,
location, mount_uri, last_uri,
&last_iter, &select_path);
g_object_unref (root);
g_object_unref (mount);
g_object_unref (icon);
g_free (name);
g_free (mount_uri);
g_free (tooltip);
}
eel_g_object_list_free (network_mounts);
mount_uri = "network:///"; /* No need to strdup */
icon = g_themed_icon_new (NAUTILUS_ICON_NETWORK);
last_iter = add_place (sidebar, PLACES_BUILT_IN, &iter,
_("Entire network"), icon,
mount_uri, NULL, NULL, NULL, 0,
_("Browse the contents of the network"));
g_object_unref (icon);
if (strcmp (location, mount_uri) == 0) {
gtk_tree_selection_select_iter (selection, &last_iter);
}
g_free (location);
While at it I also removed the "File System" entry:
mount_uri = "file:///"; /* No need to strdup */
icon = g_themed_icon_new (NAUTILUS_ICON_FILESYSTEM);
last_iter = add_place (sidebar, PLACES_BUILT_IN, &iter,
_("File System"), icon,
mount_uri, NULL, NULL, NULL, 0,
_("Open the contents of the File System"));
g_object_unref (icon);
compare_for_selection (sidebar,
location, mount_uri, last_uri,
&last_iter, &select_path);
Now make the package again (forcing an overwrite) and install it:
makepkg -sf
sudo pacman -U nautilus-elementary-bzr-162-4-i686.pkg.tar.xz
Kill xorg and restart it for it to take effect:
pkill x
startx
Done !
Now I wanna get the fancy bread crumbs to work, an icon pack and a better GTK/GTK2 theme. And maybe I'll try PekWM instead of Openbox for a change, I don't know yet. Choice is one of the most awesome features of Linux. And I may soon be moving to Marlin since the Nautilus-elementary status apparently changed to 'no longer actively maintained'.
As a side note here's a solution to the auto mounting at startup of the torrent partition:
Run "sudo EDITOR=nano visudo" and add:
your_user_name ALL=NOPASSWD: /bin/mount, /bin/umount
Next is creating a bash script and making it executable and belonging to your username:
nano ~/.config/openbox/scripts/seed-mount
(or whatever path you choose)
#! /bin/sh
sudo mount /dev/sdc3 '/media/428 GB (Storage)'
sudo chmod 700 ~/.config/openbox/scripts/seed-mount
sudo chown your_user_name ~/.config/openbox/scripts/seed-mount
I'm using Openbox without a DE, but it can probably be adapted to Gnome, Xfce, etc. if you read up on their autostart schemes.
sudo nano ~/.config/openbox/autostart.sh
# Programs that will run after Openbox has started
(sleep 1 && ~/.config/openbox/scripts/seed-mount) &
(sleep 2 && deluge) &
Last edited by DSpider (2010-12-05 17:14:08)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline