Set default window manager (i3) in OpenSuse

189

Use ~/.xinitrc and startx (I understand you need no DM like KDM or GDM), and in ~/.xinitrc put exec /usr/bin/i3 , then startx.

Share:
189
Niko Gamulin
Author by

Niko Gamulin

Updated on September 18, 2022

Comments

  • Niko Gamulin
    Niko Gamulin over 1 year

    I am quite new with neo4j and currently using Neo4jRestNet Client. I created a small network for purpose of learning:

    private static void GenerateNetwork()
            {
                var rootNode = Node.GetRootNode();
    
                // Create a User Node with Properties
                var prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Madeline J. Parnell");
                prop.SetProperty(NodeProperty.Age.ToString(), "25");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "LA");
    
                var nodeUserWithName1 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Jack S. Waldrop");
                prop.SetProperty(NodeProperty.Age.ToString(), "28");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "San Francisco");
    
                var nodeUserWithName2 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Willis O. Hicks");
                prop.SetProperty(NodeProperty.Age.ToString(), "33");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "Ann Arbor");
    
                var nodeUserWithName3 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Leroy P. Wagner");
                prop.SetProperty(NodeProperty.Age.ToString(), "40");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "Hattiesburg");
    
                var nodeUserWithName4 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Nancy J. Rose");
                prop.SetProperty(NodeProperty.Age.ToString(), "25");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "Cornish");
    
                var nodeUserWithName5 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Sally G. Gee");
                prop.SetProperty(NodeProperty.Age.ToString(), "48");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "Charlestown");
    
                var nodeUserWithName6 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Blanche T. Perez");
                prop.SetProperty(NodeProperty.Age.ToString(), "35");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "Philadelphia");
    
                var nodeUserWithName7 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                prop = new Properties();
                prop.SetProperty(NodeProperty.Name.ToString(), "Robert S. Johnston");
                prop.SetProperty(NodeProperty.Age.ToString(), "22");
                prop.SetProperty(NodeProperty.LivesIn.ToString(), "Lancaster");
    
                var nodeUserWithName8 = Node.CreateNode(NodeType.Person.ToString(), prop);
    
                // Create Relationships to Nodes
                rootNode.CreateRelationshipTo(nodeUserWithName1, RelationshipType.Knows.ToString());
                rootNode.CreateRelationshipTo(nodeUserWithName2, RelationshipType.Knows.ToString());
                rootNode.CreateRelationshipTo(nodeUserWithName3, RelationshipType.Knows.ToString());
                rootNode.CreateRelationshipTo(nodeUserWithName4, RelationshipType.Knows.ToString());
                rootNode.CreateRelationshipTo(nodeUserWithName5, RelationshipType.Knows.ToString());
                rootNode.CreateRelationshipTo(nodeUserWithName6, RelationshipType.Knows.ToString());
                rootNode.CreateRelationshipTo(nodeUserWithName7, RelationshipType.Knows.ToString());
                rootNode.CreateRelationshipTo(nodeUserWithName8, RelationshipType.Knows.ToString());
    
                // Create Relationship with Properties
                //var relProp = new Properties();
                //relProp.SetProperty(RelationshipProperty.Name.ToString(), "MyRelationship");
                //relProp.SetProperty("CustomRelProp", "CustomPropValue");
    
                nodeUserWithName1.CreateRelationshipTo(nodeUserWithName2, RelationshipType.Knows.ToString());
                nodeUserWithName1.CreateRelationshipTo(nodeUserWithName3, RelationshipType.Knows.ToString());
                nodeUserWithName2.CreateRelationshipTo(nodeUserWithName3, RelationshipType.Knows.ToString());
                nodeUserWithName5.CreateRelationshipTo(nodeUserWithName6, RelationshipType.Knows.ToString());
                nodeUserWithName6.CreateRelationshipTo(nodeUserWithName8, RelationshipType.Knows.ToString());
                nodeUserWithName7.CreateRelationshipTo(nodeUserWithName1, RelationshipType.Knows.ToString());
                nodeUserWithName7.CreateRelationshipTo(nodeUserWithName1, RelationshipType.Knows.ToString());
                nodeUserWithName7.CreateRelationshipTo(nodeUserWithName3, RelationshipType.Knows.ToString());
                nodeUserWithName7.CreateRelationshipTo(nodeUserWithName4, RelationshipType.Knows.ToString());
                nodeUserWithName7.CreateRelationshipTo(nodeUserWithName5, RelationshipType.Knows.ToString());
                nodeUserWithName7.CreateRelationshipTo(nodeUserWithName6, RelationshipType.Knows.ToString());
                nodeUserWithName7.CreateRelationshipTo(nodeUserWithName8, RelationshipType.Knows.ToString());
    
            }
    

    I tried to find a methods to create indexes, which would be equivalent to the following java methods:

    IndexManager index = graphDb.index(); Index people = index.forNodes( "people" ); RelationshipIndex roles = index.forRelationships( "roles" );

    and add it to the person, created with GenerateNetwork() method, which is done in java with following method:

    people.add( nodeInstance, "valueName", reeves.getProperty( "valueName" ) );
    

    Anyway so far I haven't found the way to deal with indexes using Neo4jRestClient. Does anyone know how to check for existing indexes and assign nodes to indexes using Neo4jRestClient?

    I would be very thankful if anyone shared an example.

    • Admin
      Admin over 10 years
      How do you normally login to your system? Are you using a login manager (display manager)? Which one? gdm?
    • Admin
      Admin over 10 years
      No it's a VM and I just need a window manager... I don't use any display manager...
    • Admin
      Admin over 10 years
      So how do you start X? Do you boot to the command line? And then what? You run startx?
    • Admin
      Admin over 10 years
      I want that when I log into the system with my user, that the window manager starts without typing "startx". But "startx" also doesn't work...
    • Admin
      Admin over 10 years
      Please answer my last comment. How do you do it now? Do you boot to the command line? Then what? You say startx does not work. What happens? Did you do what schaiba suggested? You should create a file called .xinitrc in your $HOME and add the lines from his answer there.
  • Niko Gamulin
    Niko Gamulin almost 12 years
    Jack, thanks for the answer. I can't run the new version. The old one ran without problem, but the new one is throwing exception at line var rootNode = Node.GetRootNode();
  • Niko Gamulin
    Niko Gamulin almost 12 years
    Could you give me your email address or contact in order to talk about the solution?
  • Jack Shaw
    Jack Shaw almost 12 years
    Niko, the GetRootNode method will throw an error if the root node has been deleted from the graph. here is a link to a discussion on neo4j.org that talks about this (groups.google.com/forum/#!topic/neo4j/Sb2ANlJtLDY ). My personal take on this; i do not like the idea of RootNode. i prefer to crate a node as a root to my graph because of the issues raised in the discussion on neo4j. if you would like you can open issues on github.com/SepiaGroup/Neo4jRestNet thanks.
  • user2927980
    user2927980 over 10 years
    I'm sorry, there is no such file on the entire system (says "find / -name ".xinitrc")... Xorg-X11-Server is installed
  • schaiba
    schaiba over 10 years
    If there isn't , create it. ;)
  • Avindra Goolcharan
    Avindra Goolcharan over 8 years
    Using this method works but it seems that the system WM (lxdm in my case) calls the child WM (i3). You can see this easily with the tree view in htop. Would this cause any computational overhead? Is there any benefit to editing an actual system config to default to i3?