/srv/irclogs.ubuntu.com/2019/07/23/#ubuntu-discuss.txt

lotuspsychjegood morning to all01:37
=== Ben65 is now known as Ben64
lordievaderGood morning06:19
=== JanC_ is now known as JanC
BluesKajHi folks11:52
marcoagpintoHey11:56
lunahi11:57
marcoagpinto>:)11:58
marcoagpinto[12:57] <marcoagpinto> I have been working on the speller since 7am!11:58
marcoagpinto[12:57] <marcoagpinto> :)11:58
marcoagpinto[12:57] <marcoagpinto> so much to do and so little time11:58
hggdhtomreyn: it should be ubuntu-desktop^ # the caret at the end is important13:14
* hggdh goes for a breakfast13:14
lotuspsychjebon apetit13:14
marcoagpinto:)13:15
tomreynhggdh: ah, the task, right, thanks.13:18
marcoagpintoguys?! Now that you mention it... the trashcan icon looks ugly in 19.04 :(13:19
marcoagpintoand it also looked bad in 18.1013:19
marcoagpintoin 19.04 the updates icon also looks a bit ugly13:20
BluesKajwho uses the trashcan anymore ?13:20
marcoagpintowhat?13:20
marcoagpintowhen you delete files?13:20
marcoagpinto:)13:20
BluesKajadd delete to file filemanager services13:21
marcoagpintoohhhhhhhh13:21
BluesKajof coursew you probly run gnome so...13:21
marcoagpintoI don't understand what you mean13:21
marcoagpinto:)13:21
marcoagpintoI only select files and click on delete13:21
lotuspsychjenautilus==>bypass the trash==>remove instantly13:22
marcoagpintoohhhhhhhhhh13:22
BluesKajthen they're deleted, bypassing the trashcan13:22
marcoagpintothat is scary... I have it disabled on Windows13:22
lotuspsychjedont delete something you still need13:22
marcoagpintowell, at first I delete but sometimes I need again13:23
marcoagpinto:)13:23
marcoagpintolike images and such13:23
BluesKajno, just kaje sure you don't need the file(s)13:23
BluesKajmake13:23
BluesKajmy KB is fooling me again13:24
marcoagpintoanyway, Ubuntu is becoming better and better13:24
marcoagpinto:)13:24
marcoagpintothere is still hope for a free OS13:24
marcoagpinto:p13:24
marcoagpintoback in 2012 it looked so bad13:24
BluesKajKubuntu is the only OS I use13:25
marcoagpintoKubuntu is hard to use and it had some bugs years ago13:25
marcoagpinto:)13:25
marcoagpintoand I only used it to take screenshot for Proofing Tool GUI13:25
marcoagpintothen, I decided I didn't need so many screenshots13:25
marcoagpintoso, now I only have Ubuntu13:26
BluesKajnope, it's just more configurable than unity ot gnome13:26
BluesKajor13:26
marcoagpintowell, if I win the Euromillions tonight I will buy a powerful laptop and install all the flavours13:27
marcoagpinto:)13:27
yelowfishhi xenial users.what system wide equalizer do u use ?13:27
marcoagpintojust like years ago... Ubuntu, Kubuntu, Xubuntu and Debian13:27
marcoagpinto:)13:27
BluesKajwhy, who needs that many flavors13:31
BluesKajyelowfish, no EQ here , just straight thru13:32
yelowfishok13:32
BluesKajwhy do you use EQ, ...bad sounding speakers ?13:32
lotuspsychjehttps://www.phoronix.com/scan.php?page=news_item&px=Linux-5.3-MacBook-Key-Trackpads16:49
tomreynyet another overpaid developer16:55
tomreyn:-P16:55
lotuspsychjealways good to see enw devices support for me16:56
lotuspsychjenew16:56
daftykinsmoot when it's Apple!16:59
tomreynyes, it's generally good to see new hardware supported.17:13
lotuspsychjevote funky flamingo, on all mac types!!17:15
pragmaticenigmaflippin flamingo sounds better17:24
lotuspsychjelol17:24
pragmaticenigmathen we can go with flippin the bird17:24
lotuspsychjewelcome radu_m17:25
lotuspsychjeradu_m: there are some developers in this channel but mainly for ubuntu its in #ubuntu-devel17:26
tomreynflippin the coin sounds more like apple17:26
lotuspsychjeradu_m: but feel free to make a discussion here17:26
lotuspsychjetomreyn: roflol17:26
radu_mHello everyone!17:26
tomreynhi radu17:27
radu_mI intend to create some CLI applications. Could you recommend me some resources about the deployment mechanism used by Ubuntu, and other Debian derivatives?17:29
lotuspsychjeradu_m: a contributing start point could be here aswell: https://wiki.ubuntu.com/ContributeToUbuntu17:31
radu_mYeah. I was reading something there. There's where I've got the irc channel. I was looking more after something like a Software Architecture overview of the Ubuntu system17:33
tomreynubuntu is a linux distribution, not a single software, so there won't be a single software architecture document, i would think.17:37
daftykinsseems like you want to look into packaging then - and PPAs perhaps17:37
radu_mI have 10+ years experience in programming. But I am relatively new to the linux world17:37
radu_mYes. And some details about the Directory structure. I mean, more than the general descriptions I have found on google17:38
tomreynthere are two software distribution mechansms in ubuntu at this time. the classic one is APT (dpkg, .deb files), which is how the majority of software is installed and managed on an ubuntuinstallation. the other, rather newly introduced, option is !snaps17:38
tomreyn!snaps17:38
ubot5Snaps are containerised software packages similar to flatpaks or appimage. For more info, see https://snapcraft.io17:38
tomreynhttps://help.ubuntu.com/lts/installation-guide/amd64/apcs02.html https://help.ubuntu.com/community/LinuxFilesystemTreeOverview17:40
pragmaticenigmaradu_m: You're looking for details where none exist. Each linux distribution has it's own approach to doing things. There are generally practiced approaches to all, which is why you only find generic descriptions. Each distribution has it's own approaches to things. For programming, it's better to not code to a specific archetecture, and make sure things like file paths can be defined in configuration files, to make the17:42
pragmaticenigmaapplication more flexible to the environment it will be installed to.17:42
radu_mIf I am to package an application as a .deb file. After installation (taking into account the Filesystem Tree), it's files will be scattered all over, right? Conf files in /etc, binaries in /usr/bin and so on17:42
pragmaticenigmaradu_m: Files are placed where you define them to go17:43
pragmaticenigmaradu_m: Most application developers will install to their own folder in /opt ... where it's acceptable to have all components of the application kept in one place17:43
daftykinsbut you'd want to follow convention17:43
radu_mMy under development CLI app in in /opt too. But ran into confusion when I had to change the system configuration17:47
pragmaticenigmaradu_m: What do you mean "change the system configuration" ?17:47
radu_mRight now, I am writing a wrapper for apache. And I want to allow regular users to create project directories and host them on sub-domains17:48
radu_mAnd in order to accomplish that, I added an entry in sudoers.d17:48
radu_mI am not sure how to avoid using that, and not having to write a setuid app either17:49
radu_mI read that setuid programs open a lot of security holes17:50
pragmaticenigmaradu_m: Just to let you know... that's already built into Apache and made available with a module17:50
radu_mAnd here is where I am in doubt. On my system, I can change the sudoers file and add special permissions. But if I am to deploy the application, how do I achieve the same thing without the need for special intervention from a sysadmin17:51
pragmaticenigmaradu_m: To be more specific, Apache already supports the ability to allow local users to host their own websites from their home directories. Giving them domains is a matter of using mod-rewrite rules17:51
pragmaticenigmaradu_m: So my question to you... why all this effort when the things you desire already exists?17:52
radu_mYou are referring to ~user path, right?17:52
pragmaticenigmaThat's a default setting, but can be changed with a config file. Further, you can use modrewrite to translate "user.example.com" into "example.com/~user" ... so the end user would be none the wiser17:54
pragmaticenigmaradu_m: what I'm seeing with your approach is a bunch of extra overhead, and then more added overhead in order to manage all of it17:54
daftykinsvirtualhosts is a thing, don't see a reason to reinvent the wheel17:55
radu_mThis is suppose to integrate more tools together17:55
pragmaticenigmaradu_m: What tools?17:56
radu_mIf would generate an initially blank project, with a grunt-build system and a sublime-text project with all the js classes and libraries available on the system17:57
pragmaticenigmaradu_m: Define what is a project17:59
radu_mA bunch of files :)17:59
radu_mHosted on a sub-domain17:59
radu_mHow do I achieve this with a single command? Do you suggest that there is already something available?18:00
pragmaticenigmaSo in all that you have explained to me... you are literally reinventing the wheel for something that Apache supports out of the box18:01
radu_mThe subdomain is suppose to be the project name18:01
pragmaticenigmaradu_m: And as daftykins already mentioned, that's what virtualhosts are for18:02
pragmaticenigmaI run several subdomains for different projects on my web server. I defined each one with it's own virtualhost config file18:02
radu_mExactly! But a regular user cannot do that. Am I wrong?18:02
daftykinswhy does a user without system permissions need to run a web server?18:03
pragmaticenigmaradu_m: That all depends on the permission you grant them, and the membership to the correct user groups. But would a user need access to those things. That's how you end up with developers getting things to work in your Dev and QA environments, but failing miserably in production18:03
radu_mThat's what this CLI app is supposed to do. Generate the apache conf file, and run a2ensite18:03
daftykinscan't see a use beyond a leaning exercise18:04
daftykinslearning, too18:04
pragmaticenigmaradu_m: If this is a development environment, you are better off finding ways for Apache to handle as much of this for you. There are ways to make it so a wild card subdomain is translated to the correct project directory. Without the need to reconfigure apache for each new project18:05
radu_mOk. Learning. How do I deploy an app like this?18:05
radu_mYes. But that would leave me with a rigid directory structure. Each project would have to be in a certain place. And being an experimental process, I haven't figured out yet, where that place should be. I want to be able to create these directories freely. With a simple command18:07
radu_mmanole create project Prj118:08
radu_mAnd that creates the directory Prj1, places some initial files inside, runs git init, and I can easily access prj1.myhost.intranet18:09
pragmaticenigmaradu_m: Instead of the deep dive approach, I would start at the beginning... first figure out how to run your projects via a path. example.com/prj1 and example.com/prj218:11
radu_mThat would be trivial, if all of them were on the same path in the filesystem18:12
pragmaticenigmaradu_m: They should be... if they're not, what are you trying to do exactly?18:13
daftykinsviolate convention apparently :)18:13
radu_mI already have all of this working. With the subdomain and all. But the thing I don't like, is that sudoers.d file I added, and which I will have to maintain in the future. I don't know how to do the deployment of such things18:13
pragmaticenigmaradu_m: and what we're trying to tell you is you are creating so much more work for yourself presently than is needed18:14
radu_mdaftykins: Yes. That's pretty much what I am trying to do in this case. This would be used on a development system, not on a live one18:15
pragmaticenigmaradu_m: That leads into a bigger issue... your development system should be set up EXACTLY like your production system. If it isn't... you will always have issues going to production with your applications18:16
radu_mLetting all this on the side, if I do keep my app in /opt, how would I update it on all stations?18:19
pragmaticenigmaradu_m: explain what you mean by "Update it on all stations"18:20
pragmaticenigmawhat is a station, what are you updating?18:20
radu_mIf I make changes to the code. And I want all those changes reflected on every pc in the lan on which I do have the app18:21
pragmaticenigmayou read up on deployment tools that automate that process for you18:23
radu_mThat's what I was asking from the beginning. An architectural overview on how deployment works in Ubuntu18:25
pragmaticenigmaradu_m: Let me ask you this... Is this for a hobby or are you doing this for a company that employs you?18:26
radu_mHobby18:26
radu_mAnd I believe it would be a useful learning exercise18:27
radu_mIf I learn how to do it properly, could prove useful at one point18:28
pragmaticenigmaradu_m: And we've been trying to explain to you the most efficient and trouble free way to accomplish that. I've been doing this for over 20 years. There are no shortcuts, and from what you have described so far, you are literally reinventing wheels that exist. Would it be helpful to have something build config files when you create a project?... sure. But if you configure your environment properly, that issue goes away18:32
pragmaticenigmaand you can focus on your application development, instead of your tool kit to manage everything.18:32
pragmaticenigmaI personally run several home made applications on my server. Each with their own subdomain. All my projects live in /opt/projects/dev/{project_name} and I use a mod-rewrite rule to allow me to access my projects without need for a custom config file for each new project18:34
pragmaticenigmaWith my applications in one spot, I can leverage rsync or simple SFTP/SCP to copy those files to another server if I need to.18:34
pragmaticenigmaAll of this done with the tools and configuration files already available to me. Could a deployment tool help with some of this... sure, but that adds an entire layer of complexity that I don't currently require.18:35
radu_mI see18:36
radu_mReinventing a lot of wheels is how I learned all I know18:37
radu_mThis would probably not be useful for an experienced person. But for a new-comer, if would certainly be nice to type a few words and have it working. There are still a lot of people out there who add the path to their files in apache.conf18:41
pragmaticenigmaradu_m: And what I'm suggestion requires no typing18:41
pragmaticenigma*suggesting18:41
pragmaticenigmaThe *path* to linux enlightenment, is to start with learning to stop using paths18:42
radu_mOk. Thank you for your input!18:46
daftykinswhen you automate things you tend to forget how it's done properly imo18:50
hggdhdaftykins: I agree. Pretty much all automation I have written resulted in both a seamless process, and getting rust in my memory18:59
hggdh(some times I would go back to something I wrote, and get doubts on what the hell was going on there)19:00
pragmaticenigmasame for me... plus making some really convuluted web applications, and then running security scans against them years later to discover massive holes allowing malicious attacks against the underlaying system because one setting undoes another19:02
hggdhpragmaticenigma: yeah. The WTH is going here works for both what I forgot *and* for the "but this is REALLY bad!" things19:07
hggdhso... went to pick up my mail in the mailbox and... found a wasp's nest. Actually the wasps found me. Got stung a few times.19:35
daftykinsholy moly19:35
daftykinssounds like a trap19:35
hggdhand, of course, my mobile fell to the pavement JUST by the mailbox, so I had to return and pick it up19:35
hggdhyeah. And I fell to it like a born sucker19:36
tomreynthis wouldn't have happened with pop3!19:36
hggdhthere you go. Gonna complain with the UPPS, asking for snail-mail to be delivered by POP319:37
tomreynsorry to hear this, though. did you recover your phone?19:37
hggdhso, now I have a left thumb that is sort of difficult to move, and some two stings in the back (while I was, cowardly, running away19:38
tomreynow crap :/19:38
hggdhI got the phone, yes. And I was not stung again :-)19:38
hggdhthe only good point is they were the common red wasps, NOT the yellow jacket19:39
tomreynwell that at least.19:39
OerHeksnot-honey-bees :-D19:39
* hggdh notes that the saying "red wasps do not hurt" is false.19:39
OerHekswasps die after they sting?19:40
hggdhnope19:40
hggdhthey can sting again and again19:40
OerHekshere they do, the sting will break off19:40
tomreyni was thinking it's bees who die when they sting, not wasps19:41
hggdhlast time I was walking the dog, and one (I do not know what type) got thrown by the wind against my face, and stung me just south on my right eye19:41
tomreynuuh also very unfortunate19:42
tomreynyou seem to be a prime target19:42
hggdhI think I will move...19:42
hggdhon the good side, now I got some new muscles growing on my hand and back19:42

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!