Search found 12 matches

by sabir
31 May 2014, 08:44
Forum: Newbie questions
Topic: Wayland and weston on Porteus instead of xserver
Replies: 2
Views: 865

Re: Wayland and weston on Porteus instead of xserver

But in text mode it doesn't work :( It works: root@porteus weston --use-pixman --modules=xwayland.so --log=/home/guest/weston.log Date: 2014-05-30 Local time zone must be set--see zic manual page [12:19:54.988] weston 1.5.90 http://wayland.freedesktop.org/ Bug reports to: https://bugs.freedesktop.o...
by sabir
30 May 2014, 03:41
Forum: Programming
Topic: [Solved]How to reboot/poweroff as normal User
Replies: 10
Views: 4142

Re: [Solved]How to reboot/poweroff as normal User

If this is just for your box then perhaps change ownership/access rights of the binaries and put them in /usr/bin. Make our reboot binary file: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <linux/reboot.h> #include <sys/reboot.h> #include <grp.h> #include <pwd.h> #include <er...
by sabir
24 May 2014, 16:02
Forum: Newbie questions
Topic: Wayland and weston on Porteus instead of xserver
Replies: 2
Views: 865

Wayland and weston on Porteus instead of xserver

Hi all! Weston perfectly works on Porteus (tested on LXDE 32 bit), if you use GUI mode. http://i64.fastpic.ru/big/2014/0524/58/3d50b399c997b8a8dbe425de9585fe58.png But in text mode it doesn't work :( Of course I did this: root@porteus: groupadd weston-launch root@porteus: usermod -a -G weston-launch...
by sabir
20 May 2014, 12:42
Forum: Russian
Topic: [solved] Пара нубских вопросов по Xlib
Replies: 1
Views: 890

Re: Пара нубских вопросов по Xlib

Нашел ответ сам, если кому интересно, что вряд ли форум не кодерский, то всякие XDraw... и прочие рисуются на стороне сервера, через протокол Х11, если клиент и сервер на одном компе, то через сокет (относительно быстро), а если на разных компах, то через сетевой протокол => очень медленно, поэтому ...
by sabir
20 May 2014, 07:43
Forum: Russian
Topic: [solved] Пара нубских вопросов по Xlib
Replies: 1
Views: 890

[solved] Пара нубских вопросов по Xlib

Привет всем! Этот вопрос было бы лучше задать в ветке "Programming", но с моим английским это несколько ..., мне и по русски то трудно сформулировать, т.к. я нуб :) Вопрос очень простой, где храниться содержимое "Pixmap" в памяти компа или на сервере Х и все действия над "Pixmap" они прямо в памяти ...
by sabir
19 May 2014, 07:33
Forum: Programming
Topic: [Solved]How to reboot/poweroff as normal User
Replies: 10
Views: 4142

Re: How to reboot/poweroff as normal User

brokenman wrote:This is what tome says in his thread.
Yeah, I understood. But I'd like to reboot my own computer directly as a normal user, without any root privileged progs. I mean, I'd like to call reboot(RB_POWER_OFF) directly as a non-privileged user :)
by sabir
17 May 2014, 05:42
Forum: Programming
Topic: [Solved]How to reboot/poweroff as normal User
Replies: 10
Views: 4142

Re: How to reboot/poweroff as normal User

root privileges are unneeded To run "/usr/bin/dbus-send" the root privileges are unneeded, but "dbus" itself has root privileges (/usr/bin/dbus-send owner:root, group:root). A normal user just asks dbus-send to send his message to the ConsoleKit/UPower. The /usr/bin/upower and the /usr/bin/ck-* hav...
by sabir
15 May 2014, 21:48
Forum: i486 xzm modules
Topic: Cairo-Dock + Deps for LXDE 32
Replies: 1
Views: 1568

Cairo-Dock + Deps for LXDE 32

Hi all! Cairo-dock is: http://www.glx-dock.org/index.php If you like it let's build it. Just run this script as root. Before run it you have to activate http://ponce.cc/porteus/i486/current/modules/05-devel.xzm module :) #------------------------------------------------------------------------------...
by sabir
15 May 2014, 18:48
Forum: Programming
Topic: Getting started
Replies: 5
Views: 2288

Re: Getting started

I have been playing around a bit with gtkdialog lately and now I am looking into developing "real" applications. Can anyone give me a heads up on what would be the best language to use and what software I should use to make it? I have dabbled with qtcreator and kdialog before but want to move towar...
by sabir
15 May 2014, 17:53
Forum: Programming
Topic: [Solved]How to reboot/poweroff as normal User
Replies: 10
Views: 4142

Re: How to reboot/poweroff as normal User

Thanks, man :)
As I understood there is no way to do it as normal user, unless run any prog with root privileges.
by sabir
14 May 2014, 22:42
Forum: i486 xzm modules
Topic: VLC 2.1.4 + deps for LXDE 32
Replies: 0
Views: 1293

VLC 2.1.4 + deps for LXDE 32

Hi all! Do you like vlc media player? OK, it's easy to build without 500 GiB of dependencies: #--------------------------------------------------cut me----------------------------------------------------------------------------------- #!/bin/bash wget http://taper.alienbase.nl/mirrors/people/alien/r...
by sabir
14 May 2014, 20:40
Forum: Programming
Topic: [Solved]How to reboot/poweroff as normal User
Replies: 10
Views: 4142

[Solved]How to reboot/poweroff as normal User

Hi all! How to restart Linux from inside a C program without qt/gtk/sudo/python/java script/bash script/pressing poweroff button manually/etc? I mean using only real system/kernel calls and pure C libs, for example: #include <unistd.h> #include <sys/reboot.h> #define LINUX_REBOOT_CMD_POWER_OFF 0x432...