maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Debian] Easy Debian LXDE As Replacement Desktop (https://talk.maemo.org/showthread.php?t=24761)

daperl 2009-03-28 18:03

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Yeah, I've been trying to follow all the GTK/PyGTK versioning. I think PyGTK tries to jibe with GTK when ever possible. According to PyGTK documentation, the GtkStatusIcon is new in in 2.10.

Well, etch is all-GTK-things 2.8 and
lenny is all-GTK-things 2.12.

And that seems to be the story of Maemo's hildonized bastardized 2.10 life.

So, there's this deprecated egg.trayicon stuff that can probably be stolen from Sonata.

But that's one serious strength of Python: the friendliness of the dynamic library binding: "Didn't find GtkStatusIcon, why not try egg.trayicon." Very cool.

I'll take a looksy at this egg.trayicon stuff.

qole 2009-03-28 18:23

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Curiouser and curiouser. I ran "stalonetray" from the debian command line so I could debug what was happening. When I ran qole.py in Maemo, nothing showed on any of the supposed "system trays". However, stalonetray announced that it was adding an icon, and when qole.py finished, stalonetray announced that it was removing the icon. So what's going on? Perhaps the icon bitmaps are not available to the chroot tray, so it displays a blank icon?

I want to try either (1) a standard Gnome icon that is available in a standard Debian environment or (2) copy the necessary icons to the chroot.

I wish I knew some of this stuff.

qole 2009-03-28 18:35

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
by the way, Tear works much better in LXDE than MicroB (the built-in browser). It has an address bar and everything.

daperl 2009-03-28 18:43

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Are you seeing it make space for a blank icon? If so, that might be a good sign. I'm having alpha channel issues on my Kubuntu machine so I made an xpm.py that replaces the alpha channel with black. But if things are slightly working, you should at least see the red icon stuff. At the moment, my Easy Debian is in a bare-bones state so I won't be able to test there till later.

daperl 2009-03-28 23:06

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Dude, it's working. I'm running stalonetray in Easy Debian as:

stalonetray --geometry 124x40

It defaults to 124x24 and the icons are 40x40. Give it a try.

EDIT: The following is kinda cool:

stalonetray --geometry 40x40+30+0 -i 40 -t &

qole 2009-03-29 18:36

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
thanks daperl, that worked. Both for stalonetray and for the LXDE tray, too. One needs only increase the height or width of the tray to incorporate 40x40 icons and they show correctly.

Now to have the program interface with battery-status.

Or, perhaps more precisely, now to either (1) learn python or (2) beg shamelessly for you to do it.

daperl 2009-03-29 20:15

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by qole (Post 275546)
Or, perhaps more precisely, now to either (1) learn python or (2) beg shamelessly for you to do it.

Let's just keep crawling for now. Here, I'll start: How are you currently getting your battery status information? The way I know of is this:

hal-get-property --udi /org/freedesktop/Hal/devices/bme --key battery.charge_level.percentage

I think this is what Nokia uses, but your dialog had precision to one decimal point. Do you have a preference?

daperl 2009-03-29 20:28

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Or in Easy Debian maybe it's something like:

sudo chroot /media/mmc0p2 hal-get-property --udi /org/freedesktop/Hal/devices/bme --key battery.charge_level.percentage

EDIT: While inside Easy Debian, I had to do the following for this to work:

sudo mount --bind /tmp /media/mmc0p2/tmp

qole 2009-03-29 21:35

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
1 Attachment(s)
I'm using the command-line 'battery-status' (see above posts for details).

I shocked myself. Me and Google, we modded your demo to use battery-status. It works. But, like everything I do, it stinks of Hack.

I'll post a screenie in a sec..

UPDATE: Here it is:

http://farm4.static.flickr.com/3430/...c729abd1f4.jpg

UPDATE2: daperl, do you think there'd be any way to simply tweak Advanced Power to run in a non-maemo system tray?

daperl 2009-03-30 01:11

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Oh, man, I knew it! You're a total sandbagger. I don't know why I'm even bothering but here's 3 links before I go:

Sandbagger handbooks 1, 2 and 3.

Also, I would change the 15000 to at least 60000.

qole 2009-03-30 02:24

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
I have no idea what a sandbagger is; I haven't been anywhere near Fargo ND.

EDIT: LOOKED IT UP! Hahaha, "To downplay or misrepresent one's ability in a game or activity in order to deceive (someone), especially in gambling" ... I told you I used Google, I looked up how to run a shell command in Python; 5 forum threads later, I found my answer. Cut and paste, move on. I needed to find out how to look for a string inside a string. That was pretty fast. I then found I had to convert my string to an integer. This time, it only took two forums and a reference work. I then realized you had only 5 pictures (I still have no idea how you make text files into pictures, that's cool), so I had to take my percentage number and divide it by 20 to get a number /5. Oh, and I had to figure out how to do if-then statements. I discovered that indenting is important in Python. So anyway, if hacking your script makes you think I'm a master programmer or something, that is hilarious!

Original post continues below:

But I never claimed I was a programmer. I just hack and spit-and-string whatever it takes together to make stuff work. Sometimes that means ugly dialogue boxes, other times that means derision from Real Programmers...

If I shouldn't have messed with your code, I'm sorry...

NOTES:
- I can't get that hal method to show anything except '100'.
- I wish you could show me how to make a box pop up when you click on the icon...
- After the warning box, the icon disappears!

daperl 2009-03-30 03:38

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Sorry, it was actually just a sad attempt at humor. I'm going to PM you.

daperl 2009-03-30 06:17

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
1 Attachment(s)
Quote:

Originally Posted by qole (Post 275645)
If I shouldn't have messed with your code, I'm sorry...

Now that's hilarious. I've never been married to any of my code. But I have left some at the alter.

Not so funny if you actually have access to my machines.

Quote:

- I can't get that hal method to show anything except '100'.
It's a percentage and it has very loose ties to the status bar battery icon.

look at /usr/share/icons/40x40/hildon/qgn_stat_battery_*.png

When the status bar battery icon looks like qgn_stat_battery_full75.png that value should/might be 75, etc.

There's more to it than all this but I would have to dust-off some code to give you a better explanation. So, more on that later.

Quote:

- I wish you could show me how to make a box pop up when you click on the icon...
Funny, I took it out when I created the timer. I put it back in your code. Same file names so...

Attachment 3284

Popup menus are also an option you can consider.

Quote:

- After the warning box, the icon disappears!
Silly demo; proof of concept. I set the program to end when the user removes the dialog. I fixed it in the above attachment.

I surveyed Advanced Power and Advanced Power Monitor. My opinion is that, because it's in Python, you have an opportunity to push back robust changes to that project in order to maintain one codebase. Maybe more a wish than an opinion.

I have plenty more to say on these topics, especially about hildon in non-hildon environments, but I'm too tired at the moment. And there are 6 icons. There backwards and their indexing is 0 based. Look at xpm.py. I created them with "Save As..." using the gimp. I then parse them with an awk script 'cause I don't know anything about plugins for that program. More later.

daperl 2009-03-30 23:24

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by qole (Post 275645)
But I never claimed I was a programmer. I just hack and spit-and-string whatever it takes together to make stuff work. Sometimes that means ugly dialogue boxes, other times that means derision from Real Programmers...

Kal Kan already called, but I say f*ckem, let them eat cow. 'cause I'm gonna kick this dead horse one more time. I just saw this; it could be an interesting read. This topic is kinda, sorta inline with what I miserably failed to broach. And it will eventially lead you here.

delaroca 2009-04-11 21:09

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Qole,

When running Skype under Easy LXDE have you succeeded in getting the microphone to work? Audio out works fine, but the microphone is dead.

--denis

qole 2009-04-11 23:06

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
daperl: The best thing about my N800 is that it is an ultra-portable Cave. I can retreat to my cave anywhere

Oh, and can you show me how to get a menu to pop up when you tap a system tray icon?
And can you show me how to use png files as the system tray icon? nevermind, I'm figuring out the gimp save-as thing... wish I had your awk script....

delaroca: I confess that I haven't tried Skype (or anything else that uses the mic). Perhaps jaeezzy's suggestion about not disabling multimediad might fix things for you...

daperl 2009-04-12 00:59

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
1 Attachment(s)
Quote:

Originally Posted by qole (Post 279073)
daperl: The best thing about my N800 is that it is an ultra-portable Cave. I can retreat to my cave anywhere

Is there internet-connected wireless in your cave?

Quote:

Oh, and can you show me how to get a menu to pop up when you tap a system tray icon?
It was in the last tar file I attached. But no matter; I've attached a new tar with the xpm files and the awk script. Inside of batt-stat.py, the line that pops up the dialog reads:

self.statusIcon.connect('activate', self.on_activate)

Quote:

...wish I had your awk script....
Remember, this is a one-off hack. Just in case I'm doing something gawk specific, do this first:

sudo apt-get install gawk

If that fails, move on.

Then call the script like this:

awk -f batt-stat.awk *.xpm > xpm.py

qole 2009-04-12 02:42

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by daperl (Post 279088)
It was in the last tar file I attached. But no matter; I've attached a new tar with the xpm files and the awk script. Inside of batt-stat.py, the line that pops up the dialog reads:

self.statusIcon.connect('activate', self.on_activate)

I'm sorry, my request was subtly different; I want a menu, not a dialog. I would like to make something nicer to run maemo apps than that ugly 9menu I'm using now, and I thought a pop-up menu from the system tray would be super-cool. But I don't know how to do that...

daperl 2009-04-12 04:18

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by qole (Post 279096)
I'm sorry, my request was subtly different; I want a menu, not a dialog. I would like to make something nicer to run maemo apps than that ugly 9menu I'm using now, and I thought a pop-up menu from the system tray would be super-cool. But I don't know how to do that...

Sorry about that. I was able to read yesterday; not sure what happened.

A conventional popup menu is not a problem, but can you be more specific about your expectations. In the meantime, I will create generic, conventional infrastructure by mocking something up.

delaroca 2009-04-12 09:30

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by qole (Post 279073)
delaroca: I confess that I haven't tried Skype (or anything else that uses the mic). Perhaps jaeezzy's suggestion about not disabling multimediad might fix things for you...

Qole, that's exactly the problem... leaving multimediad enabled brings back the microphone in Skype!

Thanks,

--denis

qole 2009-04-14 19:18

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
I've started using the battery applet and my new wlan applet in my Mer replacement desktop. Come over here to see the screenshots.

daperl, I would like to know how to make a dropdown menu appear from an applet icon, similar to the one that appears when you click the Home icon. I am thinking of making a list of applications in a text file, with two "fields" per line, something like:

label 1, command 1
label 2, command 2

Then I could use the CSV reading module to read in the values and build the menu from that...

I want an applet to replace the hideous menu that I'm using.

daperl 2009-04-14 20:35

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by qole (Post 279569)
daperl, I would like to know how to make a dropdown menu appear from an applet icon, similar to the one that appears when you click the Home icon. I am thinking of making a list of applications in a text file, with two "fields" per line, something like:

I've solved qwerty12's tap-and-hold problem on a gtk.StatusIcon and I'm writing a standalone demo program. After it's working in Diablo I will verify that it works in Easy Debian. If all is good there, it should also work in Mer.

Regardless if you're looking for tap-and-hold functionality, this code will be easy to tailor to your needs.

qole 2009-04-15 07:01

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
daperl: So I've decided to jettison all sandbags and teach myself python.

I've stolen code from everywhere (including dbus-switchboard) and I've got my dropdown menu working!

I should have something to show very soon.

EDIT: Screenshot

http://farm4.static.flickr.com/3305/...31830aaf_o.png

daperl 2009-04-15 07:43

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by qole (Post 279698)
daperl: So I've decided to ... teach myself python.

I've stolen code from everywhere (including dbus-switchboard) and I've got my dropdown menu working!

My opinion is that you've made the perfect decision for yourself. The menu looks good. You might think about catagorizing and creating submenus to keep the main menu from scrolling. Also, the gtk.ImageMenuItem in PyGTK wasn't ported correctly. I can send you some code later this week to add non-stock icons w/ labels to your menus. Again, way to bite the bullet; there will be no stopping you.

qole 2009-04-15 17:39

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
daperl: Oh I would very much like to get non-stock icons in there.

I think the next step would be to figure out how to run .desktop files. Is there a command line that takes a .desktop file as a parameter and then executes the .desktop file?

And yes, nested menus are the logical continuation of this project. If I do a good enough job here, this could be useful in many places: it is a generic GTK python app that puts a menu in the system tray which can run arbitrary commands... I can see a few uses for that beyond my chroot-busting use-case.

daperl 2009-04-17 22:51

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Quote:

Originally Posted by qole (Post 279835)
daperl: Oh I would very much like to get non-stock icons in there.

I further hacked on the qwerty12 demo to show the only way I know how to get around the gtk.ImageMenuItem deficiencies. As for proper ways to find applications, icons and .desktop files, you know as much as I do. If you wanted to hack, the .desktop files can be parsed with the ConfigParser module.

Code:

#! /usr/bin/env python

import gobject
import gtk

class QoleImageMenuItem(gtk.ImageMenuItem):
    def __init__(self, widget):
        gtk.ImageMenuItem.__init__(self)
        self.add(widget)

class qole():
    tah_timeout = 1000
    icon_dir = '/usr/share/icons/hicolor/26x26/'
    app_icons = [\
        ('Mplayer', 'apps', 'mplayer.png'),\
        ('Terminal', 'hildon', 'qgn_list_xterm.png'),\
        ('Browser', 'hildon', 'qgn_list_browser.png'),\
        ('Chess', 'hildon', 'qgn_list_chess.png'),\
        ('File Manager', 'hildon', 'qgn_list_filemanager.png'),\
        ('Mahjong', 'hildon', 'qgn_list_mahjong.png')\
        ]

    def __init__(self):
        self.screen = None
        self.root_win = None
        self.rec = None
        self.mapped = False
        self.is_icon_on_top = True
        self.press_event = None
        self.last_tah_press_num = -1
        self.press_num = 0
        self.pressing = False
        gtk.gdk.event_handler_set(self.on_any_event)
        self.i = 5
        self.statusIcon = gtk.StatusIcon()
        self.statusIcon.set_from_stock(gtk.STOCK_CONNECT)
        self.clicked_menu = gtk.Menu()
        self.clicked_menu.__dict__['mapped'] = False
        self.clicked_menu.connect('map-event', self.on_map_menu, True)
        self.clicked_menu.connect('unmap-event', self.on_map_menu, False)
        self.clicked_menu.append(gtk.MenuItem('Clicked 1'))
        self.clicked_menu.append(gtk.MenuItem('Clicked 2'))
        self.clicked_menu.append(gtk.MenuItem('Clicked 3'))
        for t in self.app_icons:
            try:
                lbl = gtk.Label(t[0])
                lbl.set_alignment(0.0, 0.5)
                imi = QoleImageMenuItem(lbl)
                path = self.icon_dir + t[1] + '/' + t[2]
                try:
                    pb = gtk.gdk.pixbuf_new_from_file_at_size (path, 26, 26)
                    img = gtk.image_new_from_pixbuf(pb)
                except:
                    img = gtk.image_new_from_stock(gtk.STOCK_MISSING_IMAGE, gtk.ICON_SIZE_MENU)
                imi.set_image(img)
                self.clicked_menu.append(imi)
            except Exception, e: print e
        i = 1
        for c in self.clicked_menu.get_children():
            c.connect('activate', self.on_activate_mi, 'clicked '+str(i))
            c.connect('enter-notify-event', self.on_enter_mi, 'clicked '+str(i))
            i += 1
        self.clicked_menu.show_all()
        gtk.status_icon_position_menu(self.clicked_menu, self.statusIcon)
        self.tah_menu = gtk.Menu()
        self.tah_menu.__dict__['mapped'] = False
        self.tah_menu.connect('map-event', self.on_map_menu, True)
        self.tah_menu.connect('unmap-event', self.on_map_menu, False)
        self.tah_menu.append(gtk.MenuItem('TAH 1'))
        self.tah_menu.append(gtk.MenuItem('TAH 2'))
        self.tah_menu.append(gtk.MenuItem('TAH 3'))
        self.tah_menu.append(gtk.MenuItem('TAH 4'))
        self.tah_menu.append(gtk.MenuItem('TAH 5'))
        self.tah_menu.append(gtk.MenuItem('TAH 6'))
        self.tah_menu.append(gtk.MenuItem('TAH 7'))
        i = 1
        for c in self.tah_menu.get_children():
            c.connect('activate', self.on_activate_mi, 'tah '+str(i))
            c.connect('enter-notify-event', self.on_enter_mi, 'tah '+str(i))
            i += 1
        self.tah_menu.show_all()
        gtk.status_icon_position_menu(self.tah_menu, self.statusIcon)

    def on_activate_mi(self, mi, t):
        print 'activate mi',t,mi.get_name()
    def on_enter_mi(self, mi, event, t):
        #print 'enter mi',t
        p = mi.get_parent()
        p.deselect()
        p.select_item(mi)
    def on_map_menu(self, m, event, b):
        #print 'map menu before after',m.mapped,b
        m.mapped = b
    def tap_and_hold(self, event, tah_press_num):
        print 'num self.press_num',tah_press_num,self.press_num
        if self.pressing and tah_press_num == self.press_num:
            rec = self.rec
            x, y, m = self.root_win.get_pointer()
            print 'tah x y w h',x,y,rec.x,rec.y,rec.width,rec.height
            self.last_tah_press_num = tah_press_num
            self.clicked_menu.popdown()
            #self.tah_menu.popup(None,None,gtk.status_icon_position_menu,1,gtk.get_current_event_time(),self.statusIcon)
            self.tah_menu.popup(None,None,gtk.status_icon_position_menu,1,event.time+self.tah_timeout,self.statusIcon)
        return False

    def is_icon_event(self):
        #x, y, m = self.root_win.get_pointer()
        self.screen, self.rec, o = self.statusIcon.get_geometry()
        x, y, m = self.screen.get_root_window().get_pointer()
        dx = x - self.rec.x
        dy = y - self.rec.y
        return dx >=0 and dx <= self.rec.width and dy >= 0 and dy <= self.rec.height

    def set_menu_pos(self, menu):
        mw, mh = menu.get_toplevel().get_size()
        x = 0
        y = 0
        if self.is_icon_on_top:
            pass
        else:
            #x = self.rec.x + self.rec.width - mw
            x = self.rec.x - mw
            y = self.rec.y - mh - 10
        print 'clicked menu x y',x,y,mw,mh
        return (x, y, False)

    def on_any_event(self, event):
        if event.type == gtk.gdk.MOTION_NOTIFY: return
        #print 'event',event.type
        if event.type == gtk.gdk.BUTTON_PRESS:
            if self.mapped and event.button == 1 and self.is_icon_event():
                self.press_event = event.copy()
                self.pressing = True
                self.press_num += 1
                gobject.timeout_add(self.tah_timeout, self.tap_and_hold, event, self.press_num)
            #print 'press',event.x,event.y,event.button
        elif event.type == gtk.gdk.BUTTON_RELEASE:
            self.pressing = False
            #print 'button release num last_num',self.press_num,self.last_tah_press_num
            #print 'release tma visible',self.tah_menu.props.visible
            if event.button == 1 and self.is_icon_event() and\
            self.press_num != self.last_tah_press_num and not self.tah_menu.mapped:
                if self.clicked_menu.mapped:
                    self.clicked_menu.popdown()
                else:
                    #self.clicked_menu.popup(None,None,self.set_menu_pos,1,event.time)
                    self.clicked_menu.popup(None,None,gtk.status_icon_position_menu,1,event.time,self.statusIcon)
                #print 'time for clicked menu'
        elif event.type == gtk.gdk.LEAVE_NOTIFY:
            self.pressing = False
        elif event.type == gtk.gdk.MAP:
            if not self.mapped:
                self.screen, rec, o = self.statusIcon.get_geometry()
                self.root_win = self.screen.get_root_window()
                print 'rec',rec.x,rec.y,rec.width,rec.height
                self.rec = rec
                self.mapped = True
                self.is_icon_on_top = rec.y < rec.height
        gtk.main_do_event(event)

if __name__ == "__main__":
    q = qole()
    gtk.main()


pinguino89 2009-12-23 16:18

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
hi qole, is there any upgrade for the lxde replacement??? I've discovered it few hours ago, but Trying it is very funny and I like t alot;
is there any progress about the battery icon, the maemo menu and the problems about sound and microphone???

thx

EDIT: can you link me a guide to have sounds working please??? because I cannot have the working from debian (the ones from maemo works well)

EDIT2: any way to stop the script to stop the media service????

pinguino89 2009-12-23 23:52

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
cannot help me?

when I plug the headsets, they are not recgnized under LXDE!!!!

the sistems goes via speaker as if I've never plugged the headsets!!!

or better, If I start lxde with eadsets plugged, the system remains "Plugged" evenif I unplug them (so speakers does not work) and the viceversa, If i start without, the eadsets will not work!!!
help!!!!

qole 2009-12-31 23:26

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
pinguino89: Try the gnome-alsa-mixer and try changing the checkboxes in the bottom area.

S_Paul 2010-02-10 16:40

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Hi Qole,
thank you for easy-Debian project, i install it on my n810 - very happy :).
can i ask a few questions?
1. when i update system(from oficial squeeze repo's), it's broke correctly boot on LXDE from launcher, i try in console:
$sudo hostwin LXDE
....
Error: Osso initialize failed.
$
cant goole and solve it,
but in chroot console "startlxde" launch LXDE panel side-by-side original maemo panel, and eat 100% cpu while i launch pcmanfm manually, then cpu is down o normal.
how to fix it "Osso initialize failed." ?

2. i want extract my system on partition from debian-img.ext2 (resize internal disc on 256vfat/1400ext/2xxlinswap) to speed boot up, did you have modified launch scripts? or some link what's/how do it?
sorry for bad english.
thank you.

qole 2010-02-10 22:45

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
S_Paul:

I don't think it is wise to update the system to Squeeze. It seems that only Lenny works properly.

I think I should make a wiki page explaining how to copy data from an image to a partition. But if you can do that, simply edit "/home/user/.chroot" and set IMGFILE to your partition (/dev/mmcblk0p3 or whatever).

S_Paul 2010-02-11 02:43

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
thank you to answer me,
mmm.. the image on http://qole.org/files/ named "debian-squeeze-img.tar.bz2", it means debian-squeeze?
wiki - very good idea, we will waiting :)

S_Paul 2010-02-11 15:41

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Hello, i unpack my system on dedicated partition(/dev/mmcblk0p2), mount it on /debian, can chroot in console, but if i (example)
#startlxde
http://s54.radikal.ru/i146/1002/ca/01e5e9d2bbda.png
i dont have enought knowledge to modify standart launcher scripts,
i think need to remove mount image options and sdd something else, but..
can you help me? i think it's help not me only.
or you working on enother(Mer) project?

qole 2010-02-11 19:39

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
S_Paul: I'm very very focused on getting Easy Debian working for the N900.

I understand your problem now... You can't just start LXDE, you have to kill the Hildon desktop first, my script (in the switch-lxde package) should do that for you. Did you install that package yet?

S_Paul 2010-02-12 02:26

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
Yes, (i launch it from ssh):
Quote:

$lxde-switch
stopping hildon desktop...
Stopping Hildon Desktop
stopping matchbox...
Stopping Matchbox window manager
Stopping: OSSO Alarm Daemon: alarmd.
Stopping: Media Player Daemon: mediaplayer-engine.
Stopping hulda: hulda.
Stopping: Multimedia daemon: multimediad.
sudo: /etc/init.d/hildon-update-notifier: command not found
Stopping: Metalayer Crawler: metalayer-crawler0.
running the 9menu...
starting lxde
/usr/bin/debbie: line 47: cannot create /dev/stderr: Permission denied
No chroot dir specified; using /debian
No image file or partition specified.
ls: cannot access /media/mmc?/debian*.img*: No such file or directory
gxmessage[1984]: GLIB WARNING ** Gtk - Locale not supported by C library.
Using the fallback 'C' locale.
gxmessage[1984]: GLIB MESSAGE Gtk - Failed to load module "libgtkstylus.so": libgtkstylus.so: cannot open shared object file: No such file or directory
Nothing to do; chroot not mounted!
Starting OSSO Alarm Daemon: alarmd.
Starting Media Player Daemon: mediaplayer-engine.
Starting hulda: hulda.
Starting Multimedia daemon: multimediad.
sudo: /etc/init.d/hildon-update-notifier: command not found
Starting Metalayer Crawler: metalayer-crawler0.
starting matchbox...
Starting Matchbox window manager
starting hildon desktop...
Starting Hildon Desktop
it try find *.img.*, but i unpack and have'nt...

qole 2010-02-12 05:53

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
S_Paul: The central problem seems to be that your chroot isn't starting correctly. Make sure your /home/user/.chroot file has the line, "IMGFILE=/dev/mmcblk0p2" (also comment out the other IMGFILE lines by putting # at the beginning) so that the chroot starts correctly...

S_Paul 2010-02-12 06:40

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
No.. steel
(in window)
Quote:

ERROR
the image specified (/dev/mmcblk1p2) does not exist or neither a regular nor a block special file

first parameter must be an image or partition
but i _dont_ have *.img.ext2 file,
i have an / of debian on my /dev/mmcblk1p2 with ext2 filesystem.

qole 2010-02-12 07:29

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
I just don't get it, you say you can chroot into that partiton, yet it says that the partiton is not valid...

S_Paul 2010-02-12 07:49

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
i mount /dev/mmcblk1p2 on /debian and chroot in. but from scrips no.

tareq 2010-02-14 18:25

Re: [Debian] Easy Debian LXDE As Replacement Desktop
 
any way to know how to write in arabic with onscreen keyboard with debian i mean to use it in oppen office for example


All times are GMT. The time now is 04:56.

vBulletin® Version 3.8.8