Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed
On Wed, Sep 11, 2019 at 10:41:29AM +0200, José Marinho wrote: > For the first point, you are right, the final hyphen makes a big difference > and now I am free of the dbus delay and can reach a GUI through Lightdm. Great! > But the other issue persists: > root@dserver:~# apt install --purge policykit-1 > Reading package lists... Done > Building dependency tree > Reading state information... Done > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > > The following packages have unmet dependencies: > policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-25+devuan4) but 0.105-25 > is to be installed >Depends: libpolkit-backend-1-0 (= 0.105-25+devuan4) >Depends: libpolkit-gobject-1-0 (= 0.105-25+devuan4) > E: Unable to correct problems, you have held broken packages. I think this is a problem in devuan's task-xfce-desktop. We are quite behind debian (buster has 3.53, beowulf has 3.48+devuan1.1) and devuan's version also has a (now) unhelpful dependency on libpolkit-backend-consolekit-1-0. Could you try removing task-xfce-desktop first? Thanks. Mark ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed
On Wed, Sep 11, 2019 at 06:25:20PM +0200, José Marinho wrote: > Finally, I managed to get to Beowulf from Buster by doing what is indicated > in the text file I send as an attachment. > > Hope it would be helpful. Yes, thanks. On a quick look all of your difficulties look related to tasksel. I think the basic process I posted is OK. Thanks. Mark ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Unix Socket class: how to send arguments to the suid of simple-netaid
Hi again, On 10/9/19 11:45, aitor_czr wrote: Hi all, Here you are an example of the unix socket class used in simple-netaid for sending the arguments to the suid binary through a file descriptor instead of using arguments in the command line: http://gnuinos.org/socket/socket-class-example/ You'll need to install libglibmm-2.4-dev for the server of the socket (It's multithreaded and uses a Glib::Threads::Thread *thread pointer). As you can see in the example (have a look at the main.cpp of the server), the constructor of the serverSocket class receives the name of the file descriptor as a first argument: serverSocket sender( FILE_DESCRIPTOR, std::string... ); The rest of the arguments in the constructor are the values of the arguments sent by the socket, and both the quantity and the length of these strings are unlimited. The client side of the socket class will use a std::vector for the received arguments(look at the main.cpp of the server). After building the example (use the Makefile for that), just run the server in a secondary plane: $ ./server & [1] 10739 It may then run the client, getting all the received mesages: $ ./client These are the received messages: 0 Hi hello folks [1]+ Hecho ./server You can download the tarball of the example from here: wget http://gnuinos.org/socket/socket_class_example.tar.gz Cheers, Aitor. Maybe you are wondering about the reaseon why the server of the socket should be multithreaded. Well... Download the following example: http://gnuinos.org/socket/ip/ The code of the server has been replaced by: serverSocket( { FILE_DESCRIPTOR, "0", "wlan0" } ); system("sudo ./client"); That is, the information is sent through the file descriptor and immediatly after the client is run *while* the server is waiting to be heard in a separate thread. Just run: $ ./server and your network interface (wlan0) will be brung down. Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng