Things to do after installing antiX 19 (beta2)

Forum Forums General Tips and Tricks Things to do after installing antiX 19 (beta2)

  • This topic has 76 replies, 9 voices, and was last updated Nov 20-8:19 am by PPC.
Viewing 15 posts - 61 through 75 (of 77 total)
  • Author
    Posts
  • #28714
    Moderator
    masinickmasinick

    In this case, stick with slim since it works.

    I’ve struggled a bit to get any decent background for LightDM, whereas antiX is configured nicely with slim.

    I tend to experiment…

    Brian Masinick

    #28716
    Member
    AvatarBobC

    I’m down to trying with a 1 byte background to get the memory requirement minimized.

    Its blue. Nice color, LOL.

    #28718
    Member
    Avatarskidoo

    Check the forum search ~~ recently, both melodie and manyroads have posted to mention success running lightDM.

    re: 1 byte background
    We already tested that (including you, or so I thought).
    The result was: Using a 1 byte image achieves zero gain toward reducing memory overhead.
    The entire display window must be painted ~~ XX by YY pixels worth; display size (resolution) determines the size of the root window pixmap buffer.

    BTW, you can entirely forego the use of a bgimage. In your SLiM theme and/or slim.conf, just specify “solidcolor” (noquotes) as the background style. We had tested that also & we determined that a 1px image, or a 64px by 64px solid black image, or “solidcolor” style all yielded the same result in terms of memory overhead. (Same, within a margin of error. The ps_mem.py reported value is inconsistent. Across reboots its reported totals vary, even if no settings have been changed.)

    #28725
    Member
    AvatarBobC

    Thanks, I will investigate and retry. The one byte thing really does work, if ps_mem.py was accurate. Oh well, if its not, there. I saved the setups, so could redo the tests. They were all from fresh reboots.

    What is the most accurate way to measure how much memory Slim is using, assuming signed in as root and in a terminal? The ones I know are:

    top
    htop
    ps aux
    ps_mem.py

    #28727
    Member
    AvatarPPC

    because I “had a fight” with skippy-xd

    Hi! Just curious, what kind of a “fight”, may I ask?

    By the way, thanks for your “thanks” 🙂

    I never expected to feel so happy for such a little thing as seeing a piece of software I contributed to included in the control centre (mainly because it’s probably the ugliest GUI application that now antiX carries- the Set time and Date script. Skidoo did the heavy lifting, I’m not a programmer, but I’m a problem solver- I’m very good at searching on-line for scripts and learning from them and adapting them, until they do what I want. That’s how IceWM Toolbar Icon Manager was born- I felt antiX needed a nice GUI way to add and remove icons- in a veryyy basic way, TIM does that, in a very fast way (shameless plug for my own script). I also created this thread to share with all you folks and my future self all that I did to have antiX with all the funcionality I need (or expect to ever need in the forseeable future).
    Respectfully disagreeing with a Mr. Masinick’s previous post- I don’t think antiX 19 is now a “niche” or “specialist” Distro. a user that knows nothing about the terminal, but is used to Windows or Mac OS, hell, even a smart phone, can use antiX to surf the web, use a office suit, play music and movies, read pdf files and e-pub books, add a printer (I think that adding my Hp printer, on antiX 16.X or 17 was easier, out of the box, without the need to install any HP files, not sure if I’m not recalling that correctly, but I’m almost positive I installed my printer/scanner, from Control Centre, running live usb antiX 16.x / 17). True that I always change some defaults- like using SpaceFM as my default file browser- also adding a trash bin to it (I got that covered, finally) and twisting the crap out of SpaceFm configurations, now with minimal effort I have a file manager that looks like all other major FM’s, with gdrive connecivity and that mounts my android phone (all that is available with a single click)- most of that could and should come out of the box, to make it easier for non geek users- also stuff like having the search icon on the toolbar out of the box, and skippy-xd too- just because it’s handy and most modern Windows users (well W10 is not so recent anymore) are used to it- there’s a good reason for having a search icon on the bar- when people need to search for something, they usually need it fast…

    Sorry for the long post

    P.

    #28728
    Moderator
    masinickmasinick

    PPC:

    I’ve said this about antiX:

    “I highly recommend and endorse our “sweet spot” whether you describe it similarly or vastly different than what I appreciate.

    Hats off to anticapitalista and the development team!”

    This distribution is ideal for anyone who wants to customize their system for a particular purpose, whether it’s relatively old equipment or the person simply wants a flexible system.

    As far as a niche is concerned antiX can fill a variety of niches but it’s not ONLY a niche distribution because it’s so configurable. I never intended to imply that antiX has a limited feature set; the opposite is true in my opinion, it’s one of the most flexible distributions available. Sorry if my previous comments suggest anything but the best. I’ve been an advocate for antiX for over a decade and continue to believe that antiX has excellent features and abilities.

    I hope that I am being clear with my praise of this excellent distribution.

    Brian Masinick

    #28735
    Member
    XecureXecure

    Hi! Just curious, what kind of a “fight”, may I ask?

    Nothing serious. The skippy-xd deb package listed in the main website just didn’t listen to the “focus” command (in fluxbox) when selecting one of the open windows. I tested various other programs to get something similar (like skidoo’s script) but I ended back with skippy-xd, with a deb package that DID work for me (but I downloaded this one form the MX test repo):
    http://mxrepo.com/mx/testrepo/pool/test/s/skippy-xd/

    By the way, thanks for your “thanks”

    All people who contribute and help others should receive a “thank you” from time to time, so they know their help is truly appreciated. 😉

    #28771
    Member
    Avatarskidoo

    edit:
    oops, sorry that I misinterpreted the quoted bit I had replied to here, BobC.

    • This reply was modified 1 month, 1 week ago by skidoo.
    #28772
    Member
    AvatarBobC

    To run ps_mem.py, I either NEED to su to root or sudo, or it just will not run. If you know a way to run it without using the root password, please explain or give me a link.

    Btw, the results are different between su and sudo. So to make it a fair comparison, if I run top, htop or ps aux, I should run them from the same terminal.

    All of those programs came with antiX, and I am running on my main machine, but its backed up and the main drive gets pulled when I am testing.

    PS: I see what you were thinking, no, on the login screen I sign in with my user id, but then to run ps_mem.py I need root authority (if I am saying that right).

    • This reply was modified 1 month, 1 week ago by BobC.
    • This reply was modified 1 month, 1 week ago by BobC.
    #28782
    Member
    Avatarskidoo

    “the results are different between su and sudo”
    Whichever tool, whichever auth method (I don’t notice a difference in the reported memused, FWIW), I just strive for consistency. When testing, I will restart the system (and wait a few minutes for any autostarted processes to “settle”) before attempting to grab a baseline. Then change ONE item, one parameter, shutdown+restart then retest. I might pipe the output to a textfile, then recheck later in the session & check for differences (testing for memory leaks among long-running processes)

    #28788
    Member
    AvatarBobC

    Yes, I do the same thing there. I’m pretty sure the culprit has something to do with the weird 4k graphics (nvida/intel optimus) on the Dell xps-15. All the other machines have reasonable numbers for Slim.

    I tried adding LightDM on it and was able to add it, but X doesn’t come up at all if it is selected as the default.

    #29495
    Member
    AvatarBobC

    What is next? I’m running pretty well on 19 (full 64 bit, tweaked). My packagecomp scripts worked real well for the 17 to 19 migration, especially after I got almost all my mods out of the standard libraries. My mods are less of mods and more in the nature of tweaks to suit my preferences, but it’s a pleasure for me to use as a result.

    I’ve been working a lot lately, and had to devote my best laptop to Win/10. What a misery of an OS. It spends forever nagging me and updating who knows what for no apparent purpose other than to infuriate me.

    So I’ve been pretty much forced to do my antiX playing, tweaking and testing on my #2 laptop or the older ones. I’ve done real well making a snapshot and burning an ISO of it, and then installing it on other machines. Next I would like to figure out a way, maybe with github or the like, to save and distribute my setup changes without needing to reinstall on the other machines. Also need to try the “diversion” trick on the one antiX program I have that is changed.

    I wish I had the newest IceWM if its running well, but not sure if the icon issues (or other problems) anti hit have been fixed or not. Thinking about trying to add the disk space monitors myself, but not being a real C programmer it would be an amazing feat and possibly a terrible kludge if I did it by copying the battery monitor code or network monitor code.

    How about everyone else? It’s been very quiet around here…

    #29509
    Moderator
    masinickmasinick

    To run ps_mem.py, I either NEED to su to root or sudo, or it just will not run. If you know a way to run it without using the root password, please explain or give me a link.

    Btw, the results are different between su and sudo. So to make it a fair comparison, if I run top, htop or ps aux, I should run them from the same terminal.

    All of those programs came with antiX, and I am running on my main machine, but its backed up and the main drive gets pulled when I am testing.

    PS: I see what you were thinking, no, on the login screen I sign in with my user id, but then to run ps_mem.py I need root authority (if I am saying that right).

    There are a couple of ways to get privileged tools to run from an ordinary account. The most obvious ways you’ve already identified – become root, using su, sudo, or one of the other graphical su tools (gksu is another one that comes to mind).

    Another, perhaps not immediately obvious way, is to grant the user elevated access, either in a limited way – becoming a member of a privileged group – or by altering the access permissions. If ps_mem.py does not have group execute privilege enabled you may or may not want to change the file rights. Access Control Lists (ACLs) are one possible way to grant access without opening a huge security risk, but I wouldn’t say there are NO risks. Any time you give an account or a process privileged access to anything, there is a chance that an intruder could use the same access to perform malicious activity. IF you learn access control well and exercise caution and diligence with it, you could grant your account privileged access to a specific command. I’d recommend studying before engaging in any actions that could potentially open up a security nightmare, but done right, this might be a way to create another special tool that temporarily grants elevated rights (and revokes them upon completion). If you create such a tool and store it in a location that is well-protected, it may be worth both the exercise and the learning gained in doing it. NOTE that it’s unlikely that this specific tool exists, but there may be examples of programs or scripts that temporarily elevate access rights somewhere, if you dig around on the Internet, grab some examples, and then rewrite them to suit your specific needs.

    Brian Masinick

    #29511
    Member
    AvatarBobC

    It’s ok, Brian. I didn’t word things clearly enough and skidoo reacted on the side of caution as I read it. I was just trying to get the memory footprint to a lower level with slim on my XPS-15, which is the machine I needed to dedicate to Win/10 for work. The ps_mem.py won’t run as a normal user, and it gives the most clear picture of memory use, I think. Someday I will figure out how to start from core and ditch all of the display managers…

    What is good is that there don’t seem to be big problems… I guess that means there is more time for beer or tweaking…

    #29515
    Moderator
    masinickmasinick

    Sounds good BobC.

    In any case, if and when you feel in the mood to experiment, tweaking any of the features that I mentioned will quickly turn you into an expert in those areas.

    As for me, I am aware of the technology but definitely not an expert. I’d have to do plenty of research and testing to get there. I have the core skills but I lack specific experience in the items that I brought up.

    Maybe another curious soul will experiment with such things and lay the groundwork for future tools or perhaps there already are a few examples of similar code in the archives of some code development and testing site.

    • This reply was modified 2 weeks, 4 days ago by masinick.

    Brian Masinick

Viewing 15 posts - 61 through 75 (of 77 total)
  • You must be logged in to reply to this topic.