LinuxVillage

Projects and resources (En) => Contributing to FOSS => Create masters => Discussion démarrée par: melodie le 18 avril 2013 à 00:36:29

Titre: Bento 2 mini
Posté par: melodie le 18 avril 2013 à 00:36:29
Hi,

I an attempt to reduce the size, and the weight on resource, I have started to strip the full bento2 to make one, then another lighter Bento2 mini.

Here are some information about it:
Bento mini - http://forum.linuxvillage.org/index.php/topic,296.0.html (http://forum.linuxvillage.org/index.php/topic,296.0.html)

A smaller and lighter version will be available by tomorrow. For now the first "small" is 550 MB and is online. It is still big and heavy yet.
...


Removed all Libreoffice, Software Center, update-manager and update-notifier and a few daemons which where not really necessary for a fast start.

(In the above link, the copy of the logs are in English, which can give you an idea about what has been removed so far).

The links are here:
http://tyruiop.eu/~melodie/Downloads/ISOS/LinuxVillage/Ubuntu (http://tyruiop.eu/~melodie/Downloads/ISOS/LinuxVillage/Ubuntu)

The 550 MB has network manager which works fine, and the 537 MB has wicd-gtk which I don't know if it works fine in the Live, now... this needs to be tested.


Titre: Re : Re : Bento 2 mini
Posté par: melodie le 18 avril 2013 à 13:21:41
Please forgive me if I am not understanding what you are doing, but how are we to update and keep the distro current without having the software center and update-manager?

Hello,

The software center is a tool for the newcomers who don't know which ones are the available and needed applications available in GNU/Linux, it is also for the advanced users who are curious about apps they don't yet know, and who have machines with large resource (I'd say minimum 2 GB and a dual core, better than 2 GB if possible) and it is a wonderful tool for Canonical to make money selling programs which may be free or not free (as in freedom).

Update notifier is for the very newcomers who don't know the distribution need to be checked with updates. Even with the update-notifier some newcomers don't even notice it in the panel, and use their machines without caring about that. (I can tell you as I am experiencing this with people around).

Now the answers to your question:
To update with a gui : open Synaptic, press the button Reload which is at the top left of the windows, then click the button update, then mark all, apply, apply (does'nt that remind you something?) - Synaptic is in the preferences menu instead of the system menu... this would need to be corrected.

To update with a console : open a console, type "sudo -s" and type in your password to get a root console, then type:
apt-get update && apt-get dist-upgrade

once finished, type exit.

Or do the same without "sudo -s", instead type "sudo apt-get update && sudo apt-get dist-upgrade".

In PCLinuxOS it works exactly the same way sudo excepted. (The Debian Synaptic, originally written for the deb distros, is however faster than the one adapted for apt-rpm).


Titre: Re : Re : Bento 2 mini
Posté par: melodie le 21 avril 2013 à 11:20:04
Ok now I understand.  Synaptic is still there.

Thank you for explaining this.  :)

Sure, you are welcome. And wait to see what the next one will look like!  :D

Titre: Re : Bento 2 mini
Posté par: melodie le 22 avril 2013 à 00:38:18
Hi,
For next mini version I try to remove apport and it's depends, as well as humanity-icon-theme and gnome-icon-theme. This does not pull away anything else, so I am willing to see how it goes without these two sets of icons.

As a reminder, the faenza icon theme which I installed as a background to the blue faenza icon theme, is a very big package and it seems to provide really all the icons in the menus.

The version is again updated. It will still need to be tested. I am undecided yet to wether I leave wicd-gtk and wicd to manage the connection, or if I revert back to network-manager. Therefore I will welcome all help with testing the next version.

Titre: Re : Bento 2 mini
Posté par: djohnston le 22 avril 2013 à 05:32:54
melodie,

It's hard to judge the lineage of your bento2-mini isos by their "version" numbers. One has to go by the dates. Here's what I mean:

bento2-mini-12.04-i386.iso     13-Apr-2013
bento2-mini-2.12.04.i386.iso   17-Apr-2013
bento2-mini-3.12.04.i386.iso   22-Apr-2013

The 3.12.04 version (22-Apr-2013) has no corresponding md5sum file.

EDIT: Nevermind. It's there now.
EDIT2: Cannot download it.

(http://s19.postimg.org/jhbkalxr3/download_error01.jpg) (http://postimg.org/image/jhbkalxr3/)
Titre: Re : Bento 2 mini
Posté par: melodie le 22 avril 2013 à 08:19:13
Hello djohnston! :)

This is the same old story, I had not finished uploading and I take advantage of a misconfiguration in the server : the files have to get their permissions corrected by hand before being available. So I first login with ssh and check the md5sum file. It has failed only once in many years, and I check it each time.

I announce it now : the bento2-mini-3 i386 version is available! :)

Please don't worry about the lineage... the dates are written on the server, and they all come from the same build directory, which started tiny with the non official Ubuntu Mini Remix, became a full version and is now stripped little by little. (I think I don't want to strip this one more, else it might loose it's soul).

bento2-mini-3.12.04.i386.iso (http://tyruiop.eu/~melodie/Downloads/ISOS/LinuxVillage/Ubuntu/bento2-mini-3.12.04.i386.iso)

bento2-mini-3.12.04.i386.md5sum (http://tyruiop.eu/~melodie/Downloads/ISOS/LinuxVillage/Ubuntu/bento2-mini-3.12.04.i386.md5sum)

The 3.12.04 version (22-Apr-2013) has no corresponding md5sum file.

my lftp command line is usually and I can say always, of the shape "mput -c file.iso file.md5sum" therefore the iso being larger than the md5sum file, the md5sum file will be there only after the iso has finished uploading.

Citer
EDIT2: Cannot download it.

(http://s19.postimg.org/jhbkalxr3/download_error01.jpg) (http://postimg.org/image/jhbkalxr3/)

<mode my_life=on>Sometimes this situation can last several hours. I usually start fiddling with the build after dinner, stay late on it, then once tested and redone a pair of times for some details forgotten, I start upload and go to sleep</mode=off>

:)

Titre: Re : Bento 2 mini
Posté par: djohnston le 22 avril 2013 à 22:40:50
I got it downloaded, so all is well. I will be testing wicd on two wireless setups.
Titre: Re : Bento 2 mini
Posté par: melodie le 29 avril 2013 à 00:30:15
Hi,

I am looking forward to your comments and among else I wonder what you will think about the panels setups ?

Titre: Re : Re : Bento 2 mini
Posté par: djohnston le 02 mai 2013 à 04:15:31
Hi,

I am looking forward to your comments and among else I wonder what you will think about the panels setups ?

Sorry, Mel. I know I promised to test it earlier. I'm having problems with that iso. However, I think they're compounded by hardware errors. The CD drive may be on the fritz. I'll have to run more tests. I ran a memtest check and one stick out of two came up bad. Since it's only 512 MB, that left me with 256MB. I found two more 512MB sticks, but the machine just won't read more than 512MB of RAM. So, I have 512MB (one stick) in it again, and am running memtest again.

Here's the deal. After I could not get a good boot from CD, burned to three different disks, I burned it to a USB thumbdrive. What I'm getting is loss of video halfway through the boot. The monitor starts showing a floating 'OUT OF SYNC RANGE" error. The machine has an ATI video card and other live CDs have been tested successfully on this machine. And the monitor/graphics card combo is capable of 1280x1024/24 bits.

When I booted a second time from the USB stick, I escaped out of the Plymouth splash and watched the error messages. I'm getting an error on ZRAM load (no problem there), but I'm also getting an error on fallback video drivers. I think that's a problem. There's one other error, but I don't remember now what it is.

After memtest has finished running, I'll run more boot tests. May have to replace the CD drive.
Titre: Re : Bento 2 mini
Posté par: melodie le 02 mai 2013 à 09:50:38
Hi djohnston,

I have uploaded a new one last night, switched back to network-manager-gnome because wicd would not allow getting the connection with wifi, (mimas reported), removed the French locales, because just for a little applet the distro needs to install full blown gnome-icon-theme and humanity icon theme :/ so I thought regaining some space would be a good idea. It is also more up to date and even has a new kernel.

If you can find out what the error message is it might be good. I'll also find a special command line for you to try at boot. You know when you hit F6 from the second screen ? The one screen you get after you press a key on the keybaord ? Then you can add something such as "ide_generic_all=1" at the end of the command line (just before the sign '--' which ends the kernel command line) : or you hit the F key which leads to the help and special boot stanzas, then you read and you can try some of them.

Which ATI card is that ? I could test on my laptop T30 which has ATI mobility 7500 to see if I find problems. It has slow USB but it can boot to USB as well. (I burn to CD's as little as possible).

Thanks for your efforts.

Titre: Re : Bento 2 mini
Posté par: melodie le 03 mai 2013 à 01:12:46
Hi,

The new version online has been tested today in a T60 with an ATI card (X1300 or such) and in a T30 with an ATI mobility 7500. Both are working fine after install. The T30 displayed ugly colors at boot time when in live, but after install all is well. Both machines where installed from a USB stick setup manually.

This newer version has a newer kernel, network-manager-gnome is back, and unfortunately the gnome-icon-theme and humanity-icon-theme too, pulled in by the network-manager-gnome package. To regain space I removed the French locales which are installed if choosing the French language at install time anyway.

mousepad is the new default text editor. Both panels, xfce4-panel and tint2 are fixed in that one version.

Here are two screenshots:
http://meets.free.fr/Downloads/Screenshots/bento2-mini-4-i386.12.04.png (http://meets.free.fr/Downloads/Screenshots/bento2-mini-4-i386.12.04.png)
http://meets.free.fr/Downloads/Screenshots/bento2-mini-4-snow-i386.12.04.png (http://meets.free.fr/Downloads/Screenshots/bento2-mini-4-snow-i386.12.04.png)

Here the link to the ISO:
bento2-mini-4.12.04.i386.iso (http://tyruiop.eu/~melodie/Downloads/ISOS/Ubuntu/bento2-mini-4.12.04.i386.iso)
bento2-mini-4.12.04.i386.md5sum (http://tyruiop.eu/~melodie/Downloads/ISOS/Ubuntu/bento2-mini-4.12.04.i386.md5sum)

The PCManFM file manager has a bookmark opening on /usr/share/applications. I have noticed that just doing a drag and drop of an icon from this directory to the end of the xfce4-panel adds a launcher on the panel. This is a nice trick to avoid creating launchers one by one using the panel right-click menu (which takes longer to do). Then once all the desired launchers are added to the panel it is easy to right-click on each of them to move them where we want them to be, and also use the panel right-click preferences menu to add some items, such as separators or other items.




Titre: Re : Bento 2 mini
Posté par: djohnston le 03 mai 2013 à 05:37:14
COMMENTS:

I have the version 4 installed only in VirtualBox right now. I may be shifting the hardware components from the PIII to an AMD-based motherboard. Nothing here is meant as a criticism. Just comments.

The XFCE4 panel is a nice touch. Don't know if it offers any advantages over an lxpanel or not. Some app launchers I'd remove from the panel are Language Support and Keyboard Layout. The reason is that they will probably be used only once. I also moved the panel. As you can see from the screenshot below, There's some overlap between the XFCE4 panel and the tint2 panel. The install icon is also overlapped by the tint2 panel. It may not look the same on your monitor.

(http://s19.postimg.org/3py1rbktb/Bento2mini_001.jpg) (http://postimg.org/image/3py1rbktb/)

I've probably said this before, but I'll say it again. I don't know why the "Panel tint2" (tint2conf) in the Preferences section of the menu is installed. No changes made using the program will ever be saved until the program's author finally chooses to include that option. (Why would s/he write a configuration app that can't save any changes?)

(http://s19.postimg.org/ekfht93xb/Bento2mini_003.jpg) (http://postimg.org/image/ekfht93xb/)

The Application launchers bookmark in PCManFM is kind of a novel touch, but I'm not sure how it can be useful.

EDIT: Okay, I see from your post above why you made that bookmark.

(http://s19.postimg.org/fds3lv9y7/Bento2mini_004.jpg) (http://postimg.org/image/fds3lv9y7/)

Resized windows don't stay resized after a logout or reboot. Here, I have resized the PCManFM window. As long as I stay logged in, it stays the same.

(http://s19.postimg.org/5qolc5gyn/Bento2mini_005.jpg) (http://postimg.org/image/5qolc5gyn/)

After logging out and in again, the window has reverted.

(http://s19.postimg.org/n1aeqfj8f/Bento2mini_006.jpg) (http://postimg.org/image/n1aeqfj8f/)

Also highlighted in the screenshot above is the glaring problem with the network manager icon. It's where the mouse pointer is in the tint2 panel. I've run into this before. You have to use a certain icon set, or just learn to live with the black icon showing in the (almost) black tint2 panel. Have you ever looked at the network manager icons? /usr/bin/nm-connection-editor is what's running. The icon for the desktop file is "preferences-system-network". Do a search for "preferences-system-network" and you come up with a mixed bag of png and svg images from the Faenza, Humanity, HighContrast and LowContrast icon sets. Add more icon sets and you have even more of a mess. I've never been able to find any consistent method of displaying the network-manager icons from one icon set to another, even after modifying the desktop file. It's an exercise in futility. The program is fine. But, the choice of icons for the desktop file ...

I like having a little more control of the boot options. The Ubuntu default of hiding the GRUB boot screen is pretty tacky and useless, in my opinion. You gain an extra 5 seconds in boot time? Really? So, I used the excellent Grub Customiser you've included to change that. The default is a timeout of 0 seconds (no timeout) and don't show the boot menu. I changed that to show the menu, with a timeout of 5 seconds.

(http://s19.postimg.org/kezhn8hen/Bento2mini_009.jpg) (http://postimg.org/image/kezhn8hen/)

I think the default choice of magenta on light gray for the text colors is pretty tacky, too, and hard to see.

(http://s19.postimg.org/yhlf27msf/Bento2mini_007.jpg) (http://postimg.org/image/yhlf27msf/)

So, I changed that to white with a light-cyan highlight. I've changed my monitor's display size to 1152x864, so I changed the GRUB resolution size to match. I set the background image to the same as the desktop wallpaper.

(http://s19.postimg.org/r7zuji87z/Bento2mini_008.jpg) (http://postimg.org/image/r7zuji87z/)

After saving the changes and writing them to the MBR, the result is:

(http://s19.postimg.org/5bidg91cv/Bento2mini_010.jpg) (http://postimg.org/image/5bidg91cv/)

Okay, here, I'm just nitpicking a bit. There's no email reader installed or setup, but there's an email reader app icon in the XFCE4 panel.

(http://s19.postimg.org/jukgkjo67/Bento2mini_011.jpg) (http://postimg.org/image/jukgkjo67/)

The GPG key for the Ubuntu extras repo is not installed. That's easily fixed by doing a reload in Synaptic, doing a search for keyring and installing the public key.

(http://s19.postimg.org/57ji2vpjz/Bento2mini_012.jpg) (http://postimg.org/image/57ji2vpjz/)

I suspect the
d-i apt-setup/extras boolean trueline in the ubuntu.seed file in the /preseed directory of the iso image is why the extras repo is enabled.

The localechooser-data package is showing as auto-removable in Synaptic.

(http://s19.postimg.org/eun0clijj/Bento2mini_013.jpg) (http://postimg.org/image/eun0clijj/)

I suspect the
# No language support packages.
d-i pkgsel/install-language-support boolean false
section in the cli.seed file in the /preseed directory of the iso image is why the package is being shown as auto-removable.

I see that the IBus package is installed again. I suspect it's included in the default set of Ubuntu packages. I gotta ask, do you expect to have Asian language users? All IBus is good for is for use of Korean, Japanese, Chinese, Thai, etc. character sets.

I agree with all your choices of default apps. Except, I'm sorry, but I just don't like Midori. It's a quick web browser, but it has limited flexibility compared to Firefox or Chrome. For that matter, so does Qupzilla. I see you've included the Galternatives package, as well as the Gnome Control Center, with all of Taco.22's changes. Kudos.

All in all, except for the fact that it's Ubuntu-based, it's great. I give it a 95 out of 100. I'll give it a run on bare metal, too. If I can get the damn thing to actually start on that hardware, I'll do a full installation.

Titre: Re : Bento 2 mini
Posté par: djohnston le 03 mai 2013 à 21:23:00
Well, here goes. This is going to be another long one.

1. I corrected the problem with the size of the PCManFM window. It was a permissions error.

chmod 664 ~/.config/pcmanfm/default/desktop-items-0.conf
and
sudo chmod 664 /etc/skel/.config/pcmanfm/default/desktop-items-0.conf
The resized window now survives a reboot.

2. There is no clipboard manager, so I installed clipit. Wouldn't you know it, the icon in the systray is black, too. Instead of screwing around with desktop files and icons for the nm-applet and clipit, I just set the tint2 panel to completely transparent.

(http://s19.postimg.org/e933dltsv/Bento2mini_014.jpg) (http://postimg.org/image/e933dltsv/)

3. Completely removed localechooser-data package (auto-removable). Refreshed Synaptic sources and reinstalled. It is no longer showing as auto-removable.

4. lxsession-edit (Preferences > Desktop Session Settings) isn't working. It will not save any changes. If you run it from a terminal, you get the following error:

Citer
GLib-CRITICAL **: g_key_file_free: assertion `key_file != NULL' failed"
By experimenting, I discovered it is "tied" to the /etc/xdg/autostart directory. Doesn't matter if the lxsession package is installed and running or not. That leads me to the next item.

Programs are not autostarting as they should. Nothing in ~/.config/autostart works. I don't remember if it's supposed to in Openbox or not. I've been manually adding items to the ~/.config/openbox/autostart shell file to get them to autostart. Most of the stuff in /etc/xdg/autostart isn't working. I've run into this before, and I think Mr. Worthy of Shuttles (http://www.spaceflight.nasa.gov/station/crew/exp4/taxi4/shuttleworth.html) is trying to tell you something. The problem with the non-starting programs lies with the desktop files in /etc/xdg/autostart. Here are the ones not working, along with the line in each desktop file that needs to be changed.

Desktop file                                                   Change needed
at-spi-dbus-bus.desktop                                  #OnlyShowIn=GNOME;Unity;
gnome-keyring-gpg.desktop                            #OnlyShowIn=GNOME;Unity;
gnome-keyring-pkcs11.desktop                        #OnlyShowIn=GNOME;Unity;
gnome-keyring-secrets.desktop                        #OnlyShowIn=GNOME;Unity;
gnome-keyring-ssh.desktop                             #OnlyShowIn=GNOME;Unity;
gsettings-data-convert.desktop                        #OnlyShowIn=GNOME;Unity;
polkit-gnome-authentication-agent-1.desktop    #OnlyShowIn=GNOME;XFCE;Unity;
user-dirs-update-gtk.desktop                            #OnlyShowIn=GNOME;LXDE;Unity;

The (Change needed) lines are currently uncommented. They will not autostart in an Openbox desktop unless they are commented.

These are working.

nm-applet.desktop           NotShowIn=KDE;
update-notifier.desktop     NotShowIn=KDE;

I got the notification daemon working by changing the desktop name. It was:

notification-daemon.desktop  OnlyShowIn=LXDE;OPENBOX;GNOME;

It should be:
OnlyShowIn=LXDE;openbox;GNOME;

I don't know what packages will overwrite the desktop files in /etc/xdg/autostart. I discovered this when I installed clipit. Normally after installing and rebooting, a security message will popup on first run and ask if you want to run it. After answering yes, it will start. It didn't popup the message or start. I looked at the desktop file in /etc/xdg/autostart and it had the line:

OnlyShowIn=GNOME;XFCE;LXDE;

What a load of crap. It's supposed to be desktop-agnostic. So I commented the line and rebooted. It still wouldn't start. I ended up manually adding it to the ~/.config/openbox/autostart script. Here's what's autostarting now, including the notification-daemon I got working.

(http://s19.postimg.org/7jwjxl8gv/Bento2mini_015.jpg) (http://postimg.org/image/7jwjxl8gv/)

What should be started that isn't? If gsettings-data-convert daemon isn't running, will (System Tools > dconf Editor, part of dconf-tools package) work?


After reading your post here (http://linuxvillage.net/index.php/topic,326.0.html), I followed the link (http://askubuntu.com/questions/19320/whats-the-recommended-way-to-enable-disable-services). After reading the suggestions, I installed the jobs-admin package. If you try to make any changes, the app will crash every time. Doesn't matter if you start it from the menu or start it from a terminal as sudo. The error is:
darrel@BentoMini:~$ sudo jobs-admin
[sudo] password for darrel:
No module named pkit
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 607, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/__init__.py", line 199, in error
    raise e
dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Error parsing unix-process subject: Value for key `start-time' found but is of type i and type t was expected
darrel@BentoMini:~$

By all other accounts, the program should work.

Titre: Re : Bento 2 mini
Posté par: djohnston le 03 mai 2013 à 22:17:02
Nothing in ~/.config/autostart works.

Whoops! That's wrong. The stuff in ~/.config/autostart does work. I guess I'm getting confused.   :-[  ???


Titre: Re : Bento 2 mini
Posté par: melodie le 04 mai 2013 à 09:53:52
Hi,
Just a tip : sudo should not be used to start a gui app because there is an old non solved bug in it... unless something new was done during the last years which I am not aware of. Just use "gksu" instead.

I'll have to have a close look at all what you said.

About the programs started or not from /home/user/.config/autostart : the xdg-autostart program, provided by obsession : http://code.google.com/p/mimarchlinux/downloads/detail?name=obsession-20130101.tar.bz2 (http://code.google.com/p/mimarchlinux/downloads/detail?name=obsession-20130101.tar.bz2) is meant to start whatever program for which you have placed a file in /home/user/.config/autostart : have you find some which are backed up there? (looking like "file.destkop-backup"?)

obsession is installed in bento2 (see in /usr/local/bin and /usr/local/share/locale), and xdg-autstart is in the ~/.config/openbox/autostart file. is used to start applications for which desktop files are put into ~/.config/autostart : but, with trials and errors I have seen that for volumeicon it is a mess, for tint2 it is a mess, and for several it is a mess.

I have put into ~/.config/autostart the programs which agreed to be started from there, some I left in the ~/.config/openbox/autostart and some I have not changed because were working ok when only in /etc/xdg/autostart.

Let me know if there is something which I didn't explain clearly... which is quite possible at the moment.

I suggest that the desktop files where the categories are commented should be copied to ~/.config/autostart so that they will not be rewritten if the program is updated.

About the files for pcmanfm... didn't know that. I always have files with permissions 644 and not 664.


Titre: Re : Re : Bento 2 mini
Posté par: melodie le 04 mai 2013 à 09:54:23
Whoops! That's wrong. The stuff in ~/.config/autostart does work. I guess I'm getting confused.   :-[  ???

I understand... it can be confusing.

Titre: Re : Bento 2 mini
Posté par: melodie le 04 mai 2013 à 09:58:41
About lxsession-edit : I could as well remove it. I think you are right about "it doesn't work", therefore it is of no use.

Titre: Re : Re : Bento 2 mini
Posté par: melodie le 04 mai 2013 à 10:15:12
Hi again,

Which one is it that you have tried ? bento2 mini 3 or bento2 mini 4 ?


The problem with the non-starting programs lies with the desktop files in /etc/xdg/autostart. Here are the ones not working, along with the line in each desktop file that needs to be changed.

Desktop file                                                   Change needed
at-spi-dbus-bus.desktop                                  #OnlyShowIn=GNOME;Unity;
gnome-keyring-gpg.desktop                            #OnlyShowIn=GNOME;Unity;
gnome-keyring-pkcs11.desktop                        #OnlyShowIn=GNOME;Unity;
gnome-keyring-secrets.desktop                        #OnlyShowIn=GNOME;Unity;
gnome-keyring-ssh.desktop                             #OnlyShowIn=GNOME;Unity;
gsettings-data-convert.desktop                        #OnlyShowIn=GNOME;Unity;
polkit-gnome-authentication-agent-1.desktop    #OnlyShowIn=GNOME;XFCE;Unity;
user-dirs-update-gtk.desktop                            #OnlyShowIn=GNOME;LXDE;Unity;

The (Change needed) lines are currently uncommented. They will not autostart in an Openbox desktop unless they are commented.

These are working.

nm-applet.desktop           NotShowIn=KDE;
update-notifier.desktop     NotShowIn=KDE;

I got the notification daemon working by changing the desktop name. It was:

notification-daemon.desktop  OnlyShowIn=LXDE;OPENBOX;GNOME;

It should be:
OnlyShowIn=LXDE;openbox;GNOME;

I have been told that "OnlyShowIn" is an old method whereas "NotShowIn" (unless it is reverse side... I'll have to search or to remember) would be more recent, which explains that in many cases it has not been changed.

Citer
I don't know what packages will overwrite the desktop files in /etc/xdg/autostart.

for a given file you can type:
dpkg -S /path/to/file
a bunch of filenames will come out of this command, one will be the name of the package containing the file. There is probably another cleaner command, I would have to seek for it.

Citer
I discovered this when I installed clipit. Normally after installing and rebooting, a security message will popup on first run and ask if you want to run it. After answering yes, it will start. It didn't popup the message or start. I looked at the desktop file in /etc/xdg/autostart and it had the line:

OnlyShowIn=GNOME;XFCE;LXDE;

What a load of crap. It's supposed to be desktop-agnostic. So I commented the line and rebooted. It still wouldn't start. I ended up manually adding it to the ~/.config/openbox/autostart script. Here's what's autostarting now, including the notification-daemon I got working.

If you copy the file to ~/.config/autostart and remove simply the "OnlyShowin=..." line, and also remove any eventual additional line related to Gnome from the file, doesn't that work ?

Citer
(http://s19.postimg.org/7jwjxl8gv/Bento2mini_015.jpg) (http://postimg.org/image/7jwjxl8gv/)

Nice!

Citer
What should be started that isn't? If gsettings-data-convert daemon isn't running, will (System Tools > dconf Editor, part of dconf-tools package) work?

No idea. For which purpose do you mean?


Citer
After reading your post here (http://linuxvillage.net/index.php/topic,326.0.html), I followed the link (http://askubuntu.com/questions/19320/whats-the-recommended-way-to-enable-disable-services). After reading the suggestions, I installed the jobs-admin package. If you try to make any changes, the app will crash every time. Doesn't matter if you start it from the menu or start it from a terminal as sudo. The error is:
darrel@BentoMini:~$ sudo jobs-admin
[sudo] password for darrel:
No module named pkit
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 607, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/__init__.py", line 199, in error
    raise e
dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Error parsing unix-process subject: Value for key `start-time' found but is of type i and type t was expected
darrel@BentoMini:~$

I tried to modify the behavior of sshd : no sshd available in that one gui. I would like to be able to start or stop some services which are default started during boot, such as the programs I have removed to make it lighter : removed update-notifier for instance. I would like to have some of them installed but not running by default.

The services are provided by upstart for some of them, and by the older init system with the scripts in /etc/init.d : and there is no gui available to deal with them all. Else here jobs-admin didn't crash after I installed it to the vbox bento2 version 4, but I just couldn't do anythying with it when I tried to use it.

Citer
By all other accounts, the program should work.

What does it mean ?  ???

BTW, here is the page with some bugs reported regarding jobs-admin:
https://bugs.launchpad.net/jobsadmin

does any of them look like what you have observed ?

Thanks for your feedback.


Titre: Re : Re : Bento 2 mini
Posté par: djohnston le 04 mai 2013 à 17:46:26
Geez, I really was wound up tight, wasn't I? Crikey! Had a bad hair day.

Hi,
Just a tip : sudo should not be used to start a gui app because there is an old non solved bug in it... unless something new was done during the last years which I am not aware of. Just use "gksu" instead.
gksu or gksudo? What if it's Tuesday and it's raining? ???

About the programs started or not from /home/user/.config/autostart : the xdg-autostart program, provided by obsession : http://code.google.com/p/mimarchlinux/downloads/detail?name=obsession-20130101.tar.bz2 (http://code.google.com/p/mimarchlinux/downloads/detail?name=obsession-20130101.tar.bz2) is meant to start whatever program for which you have placed a file in /home/user/.config/autostart : have you find some which are backed up there? (looking like "file.destkop-backup"?)
Yeah, I noticed the etc-xdgautostart line in ~/.config/openbox/autostart. I thought it must be an Ubuntu program.

obsession is installed in bento2 (see in /usr/local/bin and /usr/local/share/locale), and xdg-autstart is in the ~/.config/openbox/autostart file. is used to start applications for which desktop files are put into ~/.config/autostart : but, with trials and errors I have seen that for volumeicon it is a mess, for tint2 it is a mess, and for several it is a mess.
The clipit.desktop file ended up there, too, as well as in /etc/xdg/autostart. Still had to manually add it to ~/.config/openbox/autostart.

I suggest that the desktop files where the categories are commented should be copied to ~/.config/autostart so that they will not be rewritten if the program is updated.
Seems like I've been here before and deja vu just didn't kick in until now. I'm starting to reconnect the dots.

About the files for pcmanfm... didn't know that. I always have files with permissions 644 and not 664.
Yep. Only two files there. Only changed permissions on the one.

darrel@BentoMini:~/.config/pcmanfm$ ls -l default
total 8
-rw-rw-r-- 1 darrel darrel  55 May  2 17:43 desktop-items-0.conf
-rw-rw-r-- 1 darrel darrel 480 May  3 15:10 pcmanfm.conf

Titre: Re : Re : Re : Bento 2 mini
Posté par: djohnston le 04 mai 2013 à 18:06:48
Which one is it that you have tried ? bento2 mini 3 or bento2 mini 4 ?

Mini4, since it's the latest one with all the changes. Never got Mini3 going. More on that, later.

If you copy the file to ~/.config/autostart and remove simply the "OnlyShowin=..." line, and also remove any eventual additional line related to Gnome from the file, doesn't that work ?

My deja vu not working, again.

What does it mean ?  ???

BTW, here is the page with some bugs reported regarding jobs-admin:
https://bugs.launchpad.net/jobsadmin

does any of them look like what you have observed ?

What I meant was that, according to the link you gave in another post, others seem to have had no problems with the jobs-admin program. Certainly doesn't work here. At all. I'm getting the exact same results as this guy (https://bugs.launchpad.net/jobsadmin/+bug/917738).

The sysv-rc-conf run in a terminal emulator is what I'm using in the Openbox Control Center. I finally got all the bugs worked out, choice of terminal emulator (sakura), icon sets, etcetera. I just need to wrap it all up in a tarball with an installer.

Titre: Re : Bento 2 mini
Posté par: djohnston le 04 mai 2013 à 18:27:43
After a lot of testing, I finally settled on using the PentiumIII as the test machine. Unless you count my two Amiga 4000s, I have two "vintage" computers from around the year 2000. The AMD will hold more RAM, but it has only one IDE channel, meaning I can only use one CD drive and one hard drive. The PIII will only hold 512MB of RAM, no matter what, but it's enough.

I never got Bento2 Mini3 to start on the PIII. I tried from CD and from USB stick. After getting the hardware for the PIII in shape, (the video card had to be swapped out for a better ATI card), I burned my Deb-e17 iso to the same USB stick and booted it from the PLOP floppy. Booted right up and asked me for my wireless password. The machine had a bunch of PCLOS stuff on it. (LXDM testing, SLIM and LightDM login managers and Openbox, LXDE, e17, RazorQt, IceWM and WindowMaker desktops all installed.) Although it was completely updated, I've completely blown away that installation now. Since the Deb-e17 was up and running, I reformatted and installed that. Works a charm.

I burned Bento2 Mini4 to the same USB stick, using the exact same Unetbootin procedure. With the replacement video card installed, I got no OUT OF SYNC video errors. However, when booting from the USB stick, I got the following errors:

Citer
BUSYBOX ERROR:
(initramfs) mount: mounting /dev/loop0 on //filesystem.squashfs failed: Invalid argument
can not mount /dev/loop0 (cdrom/casper/filesystem.squashfs) on //filesystem.squashfs

Not being one to give up, I gave it the old "college try" and burned Bento2 Mini4 to a CD. Popped it into the drive and selected "Try Ubuntu" on bootup. It booted successfully all the way to the desktop. I plugged the wireless password into network-manager-gnome and got a connection. Everything worked. I have no idea why that machine won't boot the same ISO image from a USB drive.
Titre: Re : Re : Re : Bento 2 mini
Posté par: melodie le 05 mai 2013 à 00:06:28
Geez, I really was wound up tight, wasn't I? Crikey! Had a bad hair day.
gksu or gksudo?

Who is that ? djohnston junior ? o_o

gksu is enough. gksudo has two more letters, what for ?

Citer
What if it's Tuesday and it's raining? ???

Then close your laptop, open a large umbrella, wear an australian hat. ;D

Citer
Yeah, I noticed the etc-xdgautostart line in ~/.config/openbox/autostart. I thought it must be an Ubuntu program.

not etc-xdgautostart : xdg-autostart, by mimas. You won't find it in the Ubuntu repositories, and it's not even packaged. I have just compiled it, put the files in a small filesystem like tree directory and made a tarball available here (http://meets.free.fr/Downloads/debian/configurations/OBUbuntu-obsession.tar.xz), so far. :)

I'll check the rest after. This seems enough to me for one single post.


/Edit: you have wrote a lot since you started to test. I will have to start reading you again from the beginning and do some tests too, related to what you brought back. I'll try to go through it all in detail during the week-end. Just one thing about the USB stick, yes it's strange. Here installing on two machines, from the same USB stick didn't bring any issue at all. The method used to install to USB was this one:
Make a bootable USB stick by hand with Grub legacy (http://linuxvillage.net/index.php/topic,152.0.html). Just in case you would want to try... I also noticed that some of my USB sticks were better than others for booting a distro, so it's always the same two which are used for this purpose now.

You could also try to prepare a bootable thumbdrive from within an Ubuntu Openbox already installed, the gui method using the Ubuntu native tool has worked well for me as well up to now with USB Creator GTK which is installed:
Bootable and persistence on USB stick with Ubuntu and USB Creator Gtk (http://linuxvillage.net/index.php/topic,153.0.html).

About the bento2 version 3 : it was a prior version of the kernel, so who knows if the newer kernel didn't help in your case? (Or was it just you changing the graphic card?)

Titre: Re : Bento 2 mini
Posté par: melodie le 05 mai 2013 à 04:03:47
About clipit, tested in bento2 version 4 in Virtualbox.

I have copied the file /etc/xdg/autostart/clipit-startup.destkop to the /home/melodie/.config/autostart directory. Once there I have edited the file and removed completely these two lines:
OnlyShowIn=GNOME;XFCE;LXDE;
X-GNOME-Autostart-enabled=true


Then I have restarted the X session. It was started, and was showing in the tray in tint2.
It should work for you too. As I understand things, all xdg compliant applications should behave this way, providing there are no specific lines related to a specific desktop.

Titre: Re : Re : Bento 2 mini
Posté par: djohnston le 05 mai 2013 à 12:39:29
I have copied the file /etc/xdg/autostart/clipit-startup.destkop to the /home/melodie/.config/autostart directory. Once there I have edited the file and removed completely these two lines:
OnlyShowIn=GNOME;XFCE;LXDE;
X-GNOME-Autostart-enabled=true


Then I have restarted the X session. It was started, and was showing in the tray in tint2.
It should work for you too.

Tried that and it does work.
Titre: Re : Re : Re : Re : Bento 2 mini
Posté par: melodie le 08 mai 2013 à 02:06:53
What I meant was that, according to the link you gave in another post, others seem to have had no problems with the jobs-admin program.

all the contrary, most of them bring feedback about it not working. 3 over 5 to be precise:
3 say it does not work, 2 bring a wish regarding what the User Interface or alternate user interface could be. See:

Jacob Peddicord reported on 2010-08-05
https://bugs.launchpad.net/jobsadmin/+bug/613946

Citer
The UI has gone through three different designs during GSoC:

* The initial list & details design
* Full-window listview (feedback from mpt)
* Two-pane listview and settings

Each has built on the previous, and especially for the final two-pane design I've tried to keep mpt's feedback in mind. The reason for reverting to a two-pane display is due to the emphasis on job settings: we want to make them more visible for tweaking, not hidden behind a password-protected button. Further changes likely need to be done, however, and this bug is open for that.

which bug was confirmed by Jacob Peddicord on 2010-08-05. We can see he confirmed because after he wrote the bug report he changed the status himself:
Citer
Changed in jobsadmin:
status:    New → Confirmed

(this is strange, shouldn't this be managed by someone who is not the author of a bug or a wish?)

next bug reported:
https://bugs.launchpad.net/jobsadmin/+bug/705158
by Colin Law on 2011-01-19

Citer
ug Description

Installed jobs-admin (and jobservice) 0.8.0-0ubuntu1 on Maverick from repository. On starting from System menu it appears to crash immediately. When run from terminal -
$ jobs-admin
No module named pkit
Traceback (most recent call last):
  File "/usr/bin/jobs-admin", line 31, in <module>
    ui.load_jobs()
  File "/usr/lib/pymodules/python2.6/JobsAdmin/__init__.py", line 108, in load_jobs
    weight = 700 if job.running else 400
  File "/usr/lib/pymodules/python2.6/JobsAdmin/remote.py", line 68, in __getattr__
    retry(self._connect, call)
  File "/usr/lib/pymodules/python2.6/JobsAdmin/util.py", line 26, in retry
    return func()
  File "/usr/lib/pymodules/python2.6/JobsAdmin/remote.py", line 67, in call
    dbus_interface=PROPERTIES_IFACE)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.6/JobService/job.py", line 40, in GetAll
    self._load_properties()
  File "/usr/lib/pymodules/python2.6/JobService/job.py", line 122, in _load_properties
    self._props = self.root.proxy.get_service(self.name)
  File "/usr/lib/pymodules/python2.6/JobService/backends/__init__.py", line 111, in get_service
    info.update(bk.get_service(name))
  File "/usr/lib/pymodules/python2.6/JobService/backends/upstart_0_6.py", line 73, in get_service
    job_name, inst_name = self._split_job(name)
  File "/usr/lib/pymodules/python2.6/JobService/backends/upstart_0_6.py", line 136, in _split_job
    job_name, inst_name = name.split('/')
ValueError: too many values to unpack

answer by...
Citer
Jacob Peddicord (jpeddicord) wrote on 2011-01-20:    #1

It's already fixed in bzr; I just need to release and package it for Natty (and possibly backport to Maverick).
summary:    - jobs-admin crash on startup - No module named pkit
+ ValueError: too many values to unpack
Changed in jobsadmin:
importance:    Undecided → Medium
status:    New → Fix Committed

this brings us to a version which had been on his ppa and tested.
https://bugs.launchpad.net/jobsadmin/+bug/705158

read more starting from #8.

This is where it is disappointing:
https://bugs.launchpad.net/jobsadmin/+bug/782046

last post:
Citer
Jacob Peddicord (jpeddicord) wrote on 2011-06-20:    #3

Due to a personal fatfingering, I accidentally deleted the repository I was referring to and not the daily one. Sorry about that. I'll work on getting it back online. :-P

The version in Precise is the 0.8.0-0ubuntu3 and the launchpad page to his repos leads to a 404 error as you can see from here: https://launchpad.net/~jpeddicord/+archive/ppa/jobs

Citer
Certainly doesn't work here. At all. I'm getting the exact same results as this guy (https://bugs.launchpad.net/jobsadmin/+bug/917738).

I have answered just after Olivier Blondel, as I did a few tests in Virtualbox to see what feedback and testimonial I could bring to his bug report:
https://bugs.launchpad.net/jobsadmin/+bug/917738/comments/1

and
https://bugs.launchpad.net/jobsadmin/+bug/917738/comments/2

Citer
The sysv-rc-conf run in a terminal emulator is what I'm using in the Openbox Control Center. I finally got all the bugs worked out, choice of terminal emulator (sakura), icon sets, etcetera. I just need to wrap it all up in a tarball with an installer.

This is most probably in Debian and not in Ubuntu. Ubuntu has a mixture of services not yet ported from sysvinit to upstart and some services relying on upstart. I don't think it can work in recent versions of Ubuntu. I will give it a try again to be check (although I think I have checked some time ago... ). I would like to say it's not very user friendly, even if it would work. And some services are not checked as being started, such as dbus : which is most probably started from somewhere else, who knows where ? :)

I just tried to configure zram from within sysv-rc-conf, (which I started with sudo) to be started in levels 2 to 5, commented out the line I had used for it in /etc/rc.local (not the best but... still waiting to get another better idea) and rebooted.

Well it does not work. The result is:
melodie@vbox:~$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda5                               partition 522236 0 -1
melodie@vbox:~$

no zram started.

With the line
service zram-config start
just before
exit 0
in the rc.local file there is no problem.

I would just want to know how to do the other way around, such as having sshd installed and not running by default if I don't want it to, or cups, and any service that can be needed just once a while.
Titre: Re : Re : Re : Re : Re : Bento 2 mini
Posté par: djohnston le 08 mai 2013 à 17:05:53
all the contrary, most of them bring feedback about it not working.

Au contraire? Well, that will teach me to speed read something. Or, maybe not.

I would just want to know how to do the other way around, such as having sshd installed and not running by default if I don't want it to, or cups, and any service that can be needed just once a while.

That's one of the "problems" systemd is supposed to address, isn't it? For example, one of the things systemd does is terminate any daemon that has been idle for a specified period of time. Anyway, all this brings up a good point. With all the sysvinit alternatives popping up, there is no "one size fits all" utility to control system services at bootup. Ubuntu has upstart, with some services still running under sysvinit. Arch, Fedora, Suse, Mageia and others have switched to systemd. Gentoo has forked udev to something called eudev because they don't like the direction udev and systemd are going in.

Debian still uses sysvinit, although systemd is in the repos. The Debian repos have tools to control services started by either sysvinit or systemd. Back to Ubuntu, I'm unable to find anything in the repos that is a GUI or CLI program for controlling upstart jobs, other than jobs-admin and its dependency jobservice.
Titre: Re : Bento 2 mini
Posté par: melodie le 09 mai 2013 à 03:41:13
In Archlinux there is a gui program having for name 'Systemd System Manager', which works great. There are also good pages on the wikis: the English one and the French one if we want to manage some of the services/targets by hand.

In Fedora I have seen a very good gui to manage the services, and working well too, as does the one in Archlinux. (On the other hand I don't like the Fedora package manager outputs too much... however I must say it works well and is easy enough to understand).

In Ubuntu I have been told I could create "override" files for the services to be stopped and not started during boot time. That's for a user friendly distro ?!

I think I will next ask the question directly on the dev mailing list, but not before I can take the time to test the jobs-admin gui with it's jobservice non gui backend in the more recent ubuntu versions, as Xubuntu, Lubuntu...

Titre: Re : Bento 2 mini
Posté par: mimas le 13 mai 2013 à 14:28:12
The XDG_MENU_PREFIX must be set to get the "Applications" section to work within PCManFM. I usually defined this in ~/.configure/openbox/environment file.

As lxde-applications.menu is used, it probably be a good choice to set XDG_MENU_PREFIX like this: export XDG_MENU_PREFIX="lxde-".
Titre: Re : Bento 2 mini
Posté par: mimas le 13 mai 2013 à 19:29:36
You need to update PCManFM/LibFM from PPA. The installed version has GTK3 in its dependencies, that's a big surprise! :)

Titre: Re : Bento 2 mini
Posté par: melodie le 14 mai 2013 à 01:27:37
Hi mimas,

Thank you very much for your feedback. Whenever you find more please throw it here!