/srv/irclogs.ubuntu.com/2022/11/22/#ubuntu.txt

arraybolt3Every so often I try to find a package and get told that it is "purely virtual". I'm pretty sure that a package is capable of providing a virtual package, so if package "zxc" was virtual and package "abc" provided it, one could install package "abc" and it would satisfy packages that depend on "zxc". My question is, how would you search for packages that provide a certain virtual package? Is this00:16
arraybolt3something that the apt resolver is supposed to do automatically?00:16
arraybolt3Like if you try to install a package that depends on a virtual package, is apt able to figure out what package to install to provide the dependency?00:18
deegoarraybolt3: iirc, i have seen a message from apt in the past: the requested pkg x is provided by y,z,a... Please pick one.00:32
devslashwhat do you guys do to make sure that your server is hardened from breaches00:43
=== jje1424 is now known as jje142
=== jje1427 is now known as jje142
rob0Most important thing is to be confident in the services you have exposed to the Internet, and keep those up-to-date with any security patches which are released.00:49
devslashreverse proxy and non standard ssh port. all security updates have been updated00:53
jhutchinsdevslash: Learn everything you can about every task your server is performing.  Know what's supposed to happen, so anything that's _not_ supposed to happen stands out.00:54
DiagonI'm for the first time trying the nvidia GPU on my Thinkpad T530 and have some graphics questions.  I'm hoping someone can clue me in...01:13
Diagon1) I'm using nvidia on a new install.  I don't see the nouveau drivers blacklisted anywhere (eg. /etc/modprobe.d), so how does Ubuntu (22.04) know that it should use nvidia rather than nouveau?01:13
toddcDiagon: if you are on a GUI desktop look at settings addl drivers01:18
Diagontoddc/ yes I see that in the gui.  But both drivers are installed, so where on the system would I look to see what ubuntu is doing to effectively blacklist nouveau?01:19
toddcDiagon: reboot sould clear the nouveau ---I have seen laptops with two video cards and not found a answer to that  issue01:21
Diagontoddc / I have rebooted multiple times and just did it again.  The nouveau driver is still installed.01:23
toddcDiagon: possible issue with nivida driver may try a diffent nvidi driver if it persits check back ffor some one with more skills in that area but I have had many issues with nvidia01:27
Diagontoddc / thanks.  I'm sure I have the right driver.  I think I need someone who knows the ubuntu internals.01:30
rob0This might actually be a #linux question. I think the kernel, when presented with a device for which more than one driver could be used, has an internal means of giving one of them priority.01:35
Diagonrob0, the reason I'm asking is that apparently when I want to use the nouveau driver, blacklisting nvidia is not enough.  I actually have to completely uninstall nvidia.  On the other hand, nvidia seems to be running fine with nouveau around.  So, what is telling ubuntu to ignore nouveau and use nvidia?  And why wouldn't that work the other way around?01:38
rob0It has been many years, but I tried the proprietary nvidia driver once, long ago.01:40
rob0I know that the kernel driver was only one part of it. The script also replaced part of my X11.01:41
DiagonAh.  That might be a clue ...  Does nouveau not do that?01:41
rob0nouveau works with off-the-shelf X1101:41
rob0look at the files in the .deb01:42
DiagonOk, so if I would try to blacklist nvidia (/etc/modprobe.d), that's not enough because I've still got the modded X.  On the other hand, if I blacklist nouveau, that should work fine.01:43
rob0(for nvidia and/or pulled-in packages, not nouveau)01:43
DiagonOk, so whatever the kernel is going, it's going to have the equivalent problem: X is modded so it can't completely control which driver is being used.01:45
rob0Blacklisting nvidia when the patched X11 is installed might not work. It could use insmod(8) (not subject to blacklisting) to insert the nvidia driver.01:45
Bashing-omDiagon: A thought - not on Waland are you ? As Wayland and Nvidia are known not to play nicely together.01:45
Diagonrob0 / I think that might basically answer it ...01:45
DiagonBashing-om / Well there's another question.  How is it that using the nvidia driver, I'm automatically set to using X?  I don't choose that at login.01:46
rob0you might need an "alternatives" solution01:46
DiagonI did have to use the nvidia-drm.modeset=1 switch.01:46
Diagonrob0 / You're taling about /etc/alternatives ?  (Haven't looked into that ...)01:47
Bashing-omDiagon: What release ? Nvidia did direct us not to enable a Nvidia driver on the Wayland compositor.01:48
DiagonUbuntu 22.04.  nvidia-driver-39001:48
DiagonI.C....01:48
rob0right. update-alternatives(8) can switch out files so that you can have conflicting software installed.01:49
Diagon:thumbs-up:  That gives me something to search on.  I see a lot of stuff on the web saying to blacklist nvidia if you want to use nouveau, but then there are all kinds of warnings that it doesn't actually work ...01:50
DiagonThanks.01:50
DiagonI've got a couple of questions about optimus, too ..01:50
Diagon2) I have optimus and see nvidia's prime-select.  Also, plasma-prime-select (just a front end to prime-select?)  Does "prime-select on-demand" set the GPU's to switch on heavy load?01:50
Bashing-omDiagon: 'ps -efly | grep Xorg' --- if you don't see the Xorg process you're using the Wayland compositor.01:51
DiagonBashing-om / fine.  Or $XDG_SESSION_TYPE. It's X.01:51
Bashing-omDiagon: Good - should have then a solution :)01:52
DiagonBashing-om, if you mean the solution to switching to nouveau without uninstalling nvidia is to look into update-alternatives, then maybe yes.01:53
rob0It might not be simple to set up, but you can look at examples in /etc/alternatives and see how it works.01:55
Diagonrob0 / :thumbs-up:01:55
rob0You might also want to consider a bug, because Ubuntu should probably do this for you.01:56
DiagonI could do that, though ... with X on the way out? ...  I suppose that could be a while, though.01:57
DiagonBy the way, does nouveau work with wayland?01:58
rob0no idea, I don't have an nvidia grphics machine ATM01:59
DiagonI see.  presence of nvidia apparently atomatically sets the system to X.  I'm wondering how that works with nouveau...02:00
Bashing-omDiagon: Going back to your original question: blacklisting is now done in the /lib/modprobe.d directory.02:06
DiagonBashing-om / Hm.  Thanks.  I see both of them being used.  In /lib there's a fb blacklist.  What's the difference between these two directories?  Do you know?02:08
Bashing-omDiagon: Right off the top of my head I do not recall the reasoning for the change in blacklisting location.02:10
DiagonSo prime-select or bumblebee ... anyone have any experience?02:12
Bashing-omDiagon: Say again please that the goal here is to install a Nvidia proprietary driver.02:12
Bashing-omDiagon: Is noted that BumbleBee is depreciated in favor of nvidia-prime.02:13
DiagonI already have the nvidia driver.  The goal is to understand the capabilities and limitations of the two drivers.  (that's the short answer.)02:14
DiagonBashing-om/ Ok, but nvidia-prime is part of the nvidia driver package, yes?02:15
DiagonSo with nouveau you wouldn't have that?02:16
Bashing-omDiagon: Deep stuff there - I too run Nvidia; has gotten to deep for me to follow.02:16
Bashing-omDiagon: true - nouveau uses "switcheroo" .02:17
DiagonBashing-om / nvidia-driver recommends nvidia-prime, but the nouveau driver does not.02:18
DiagonHm.  What is "switcheroo" (looking...)02:18
DiagonI see laptop-mode-tools "vgaswitcheroo".  Is that what you're talking about?  Bashing-om02:21
Bashing-omDiagon: Yeah - >> /sys/kernel/debug/vgaswitcheroo/switch .02:23
DiagonBashing-om: don't have that.  It's part of laptop-mode-tools (though maybe I should have that package).  There's a switheroo-control package that looks more likely to me.02:25
Bashing-omDiagon: Old docs ? and I can accept that the directory only exist if on the nouveau driver.02:26
Bashing-omDiagon: Try https://help.ubuntu.com/community/HybridGraphics <- swiching through the kernel through ACPI calls.->&using switcheroo.02:27
DiagonBashing-om: ok, but have a look at "aptitude show switcheroo-control"  That's installed with gnome.02:30
DiagonBashing-om: I'm now wondering if, even though I've got nvidia installed, which GPU am I running for say the terminal (ie. light video load).  How would I check that?02:31
DiagonBashing-om: switcheroo-control: "This package by default will force the iGPU to be used ..."02:36
toddcDiagon: I did notice that when I installed nvidia it switched to X11 and found a site that said that nvida will not work with wayland. I did not dig deaper as nvidia is closed source and nouveau is open commmunity both totally different02:40
Diagontoddc / yes.  I gather it works very badly with wayland.  But nouveau, what's it's status with wayland?02:41
toddcDiagon: it depends on your needs I used for a long time with wayland and worked ok for me until someone asked me to test nvidia driver so I switched with no noticable difference02:43
toddcother x1102:43
Diagontoddc / alright, so presumably if I uninstall nvidia, then when I reboot, nouveau should be used, and at the login screen I should get a choice to use X or Wayland, correct?02:44
Diagon(I had trouble before installing the nvidia driver.  I'd boot to a black screen, though I could get a console.  So I'm concerned that I might end up in the same place if I remove nvidia.)02:45
toddcI assume trying to game vs terminal use and web browser needs are different    I have not tried to switch back but I can a bit later tonight02:45
Bashing-omDiagon: My notes (16.04 era !) >> Check if both the cards are powered on: To check this, we need be able to view the file /sys/kernel/debug/vgaswitcheroo/switch. Type the following in terminal. ' cat /sys/kernel/debug/vgaswitcheroo/switch '02:46
DiagonBashing-om: ok, thanks.  That means installing laptop-tools and then setting things up (I see that here: https://blog.desdelinux.net/en/vgaswitcheroo-en-distribuciones-basadas-en-debian/)02:47
DiagonI may do that at a later time ...02:47
Bashing-omDiagon: To completely remove the Nvidia driver ' sudo apt remove --purge nvidia-* ' reboot, and you should come up on the nouveau driver. From the password screen is a gear icon in the lower left - click to choose the session type.02:53
Diagon:thumbs-up:02:55
paulok hello03:19
paulI guess this is some form of google search03:19
paulI press the jobs command and get no response03:20
paulstrange no response03:20
paulfg always gives me no such job03:21
bankai_why is that a problem?03:46
McEHi , is it important to maintain the fileownerships in an offline repository /04:48
McEor can i just hand ownership for the entire repository to root ?04:48
crax23maybe you'd try #git or github?04:58
crax23if it is for a filesystem backup, yes it's important.04:59
crax23you can store it into a tarball .tar.gz while keeping all the file permissions etc with a flag option i think.05:00
McEcrax23, , no its not for a filesystem backup ...,05:06
McEits for a backup of fthe ubuntu repository ...05:06
crax23Ha ok the apt packages etc.05:08
arraybolt3This may be a long shot, but is there a program out there that you can paste text from a license header into and it tries to detect what license it's looking at?05:11
arraybolt3Like if I copy the BSD-2-Clause license out of a source code file, but don't know that it's BSD-2-Clause, is there a program I can paste that into and it tells me "This is BSD-2-Clause.", or something like that?05:12
* arraybolt3 only just now realized I could try to Google this, man I must be tired05:12
arraybolt3Hmm, not finding much. Maybe I need to write something like this.05:16
arraybolt3Ah, found it. licensecheck.05:17
Unit193See also: `debmake -k`05:18
arraybolt3Hah, works perfect. Nice.05:19
arraybolt3Unit193:05:19
arraybolt3Unit193: Debmake? Never used that.05:19
arraybolt3Hmm, looks possibly useful. I don't really want to trust copyright line identification to an automated tool, but the license detection is good.05:21
Unit193https://wiki.debian.org/CopyrightReviewTools05:21
Unit193`debmake -k` checks files and d/copyright, telling you when they don't match.05:21
DiagonThe switcheroo-control package is installed with gnome for machines with dual GPUs (eg. iGPU & nvidia).  It allows per-process selection of GPU.  How can I identify which GPU a process is running on?05:54
blahboybazIs there a way to name workspaces in 20.04?06:21
BlackDalekHi. How do I set my computer's ethernet IP address without using DHCP via a router? I'm on Ubuntu 20.0407:02
rfmBlackDalek, if you're on desktop Ubuntu, look in settings>network,07:24
BlackDalekrfm, ok. I see tabs under wired for details, identify, ipv4, ipv6 and security. Which tab is for setting the IP of the computer?07:27
aloceripv4 bv07:31
BlackDalekHi. How do I set my computer's ethernet IP address using ubuntu desktop network settings, and without using DHCP via a router? I'm on Ubuntu 20.0407:46
BlackDalekHow do I use network settings on ubuntu desktop to give my computer a static IP address on ethernet interface?07:47
alocerBlackDalek: have you tried google? it requires lots of explanation, its better to check youtube or google. there are so many articles related to this.07:48
BlackDalekHas anyone had experience with trying to install a linksys WVC54GC webcam on ubuntu without access to a windows PC? I can't figure our how to access it's configuration page through a browser07:57
=== SteelRose_ is now known as SteelRose
ravagehttps://www.arkko.com/linux/linksyscamera.html07:58
BlackDalekravage, I am trying to follow that page, but I am stuck at the part where I need to change the IP address of my computer :/08:02
ravagehttps://i.imgur.com/hixCtAw.png08:03
BlackDalekAlso, I am finding it odd that even when I plug the camera into a free ethernet port on my router, nothing appears in the list of connected devices. Nothing seems to happen when I plug it into the ethernet port of the computer either.08:04
ravagemaybe the device is just broken08:04
ravagebut thats not really a topic for this channel08:04
BlackDalekravage, I entered the info shown in your screenshot exactly as shown, but I still couldn't bring up anything in the browser for the camera (supposedly at 192.168.1.115)08:06
elias_aravage: You also might consider how up to date the information on the page you referred is. It is written in 2007.08:07
ravageor 192.168.1.10308:07
BlackDaleknothing on .103 either08:08
ravage"sudo nmap 192.168.1.0/24" may help you find any devices08:08
ravageit is also possible that the cam is configured on another subnet. in that case find out how you can factory reset it08:11
ravageusually there is a button somewhere for it08:11
cmcm!help08:11
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience08:11
ravagehttps://www.hardreset.info/devices/linksys/linksys-wvc54gc/faq/hard-reset/hard-reset-router/08:11
ravagebut that looks wrong. maybe google yourself :)08:12
BlackDalekravage, nmap command not found... is the command different?08:22
ravageyou have to install the package with  the same name08:22
BlackDalekravage, ok... after a while it showed a list of device infos... but looks like they're all wireless devices. Nothing for wired.08:27
ravageif you follwed that guide there should be no other devices08:28
ravageyou are supposed to connect the device directly to your computer08:28
ravagebut then configuring your network enabled webcam is really offtopic here. if you have any Ubuntu related questions feel free to ask them08:30
ravagefor everything else try #ubuntu-offtopic or #networking08:30
BlackDalekok08:32
EnissayI have a couple external Seagate drives, is there anyway to find out the exact drives name/type inside without opening them ? since they put different drives inside: exos entreprise, Barracuda, Desktopo HDD, ...13:37
ravageEnissay: udevadm info --query=all --name=/dev/sda |grep 'ID_MODEL='13:39
feep[android]Hi13:50
feep[android]I'm updating to 22.10, I booted and then switched to rescue mode with systemctl rescue, then started a release upgrade13:51
VIAhigh aall13:52
VIAwtf13:52
feep[android]Then I wanted to check something so I switched to tty2, but I couldn't log in ("unprivileged users are not permitted")13:52
feep[android]But I can't switch back to the rescue shell.13:53
feep[android]What do?13:53
feep[android]Reboot and hope update is done?13:54
feep[android]just gonna to that13:57
feep[android]do*13:57
feep[android]Oh look it's kernel panicking yay13:58
feep[android]Okay, configure resumed14:00
BluesKajHi all14:03
nbusroneHi , does ubuntu store cache file directory tree ? for example , having another partition mounting or not mount  , but where does the cache file list store located ?14:06
nbusroneWhere does cache file tree located ?14:08
Enissayravage: sadly it only spits Expansion_Desk... I checked the full output of udevadm and no mention of anything else... They really don't want it to be known14:10
Enissay:<14:10
nbusroneI can't find in cache14:13
=== jdrab is now known as undefNULL
=== undefNULL is now known as undefnull
dman777http://1lineart.kulaone.com/#/ I was trying to paste this ascii art but my 20.04 release is missing ascii characters so some of it is just questions marks. How could I fix that?14:21
rajakvkPlease suggest me a best terminal emulator equivalent to iterm2 (mac)15:06
lotuspsychjerajakvk: for software reccomends/polls you can try #ubuntu-discuss15:07
nbusroneAnyone can suggest an application successfully open 500MB log files ?15:14
nbusronein txt format15:15
rob0less(1)15:16
oerheksstandard gedit can handle files larger than 1Gb15:16
oerheks4th place gnome-terminal https://alternativeto.net/software/iterm2/?platform=linux15:20
nbusroneoerheks thanks15:22
nbusroneoerheks : may I know where does journalctl location save ?15:22
nbusroneoerheks : I wanted to export to txt.15:22
nbusronecan't find at /var/log/journal or /run/log/journal15:27
ogranbusrone, they should be in a subdir under /var/log/journal ... as binary files15:32
nbusroneogra ; There is nothing there15:34
ogradid you fiddle with the journald config in any way ? by default it should write persistent logs there if the dir exists on startup15:34
ograif there are not any files it will be logging to a ringbuffer in ram (using 10% of the ram)15:37
nbusroneogra: I double check it's not there15:39
ograwell, then you are logging to a ringbuffer ...15:39
jhutchinsogra: What are the settings that will turn logging to disk on or off for journald?15:39
nbusroneogra: I edit the journalctl a while ago to increase the size15:40
ograjhutchins, by ubuntu defaults the existence of the /var/log/journal dir normally ... there are also cofnig options but you should not fiddle with them unless you know exactly what you are doing15:40
=== jje1421 is now known as jje142
nbusroneogra: let me access natilus as sudo , maybe it's hidden as it's not at admin15:42
ograARGH .... DONT EVER ! run a filemanager as root !!!!15:43
ograthis will end in tears15:43
ogra(user files becoming re-owned by root etc etc )15:43
oerheksthere is an admin package for nautilus15:43
ogra(configs/caches)15:43
oerheksto open a folder as root thingy15:43
ograah, kay, that might take the above into account15:43
ograi'D still not do it15:44
oerheksno need to, for those logs15:44
ograyeah15:44
nbusroneogra: sorry new to ubuntu , " sudo nautilus" is wrong ?15:45
ograthanks to wayland the aera of beng able to run gui apps as root is luckily over15:45
ograyes, that isnt a ubuntu thing bt a general linux rule you shoudl follow15:45
ogra*but15:45
oerhekssudo journalctl > all_logs.txt15:45
oerhekssudo journalctl -u NetworkManager --output=short > NetworkManager.log15:46
oerhekstons of way to make a file15:46
ograand due to the issues running gui apps as root things like wayland were invented, where the display shell simply does not allow starting apps as root15:46
nbusroneoerheks : i want to log my hard disk error sdb , how do I do that ?15:46
nbusroneoerheks : sudo journalctl -u sdb ?15:48
oerheksnot sure, maybe with full path??15:54
nbusroneoerheks : i will try again tomorrow , thanks for the help oerheks and ogra :)16:00
granrojohello16:19
granrojoi cant understand the diference between long in and non login shells16:20
jhutchinsgranrojo: Login shells are usually interactive.16:26
jhutchins(I hope somebody has a better answer.)16:26
superkuhHi. I had a monitor die in my multi-monitor span. I replaced it with another monitor, but my desktop defaulted to a super low resolution and now the number of icons I have in my "Applications Places System" bar is longer than the bar itself and when I attempt to click "system" I instead launch an icon that's "underneath" it, overlapping. Does anyone know the command line name of the Ubuntu GUI application for changing resolution and setting up multi-mon17:00
superkuhitor stuff?17:00
superkuhOr where on disk the system menu is defined?17:01
arraybolt3xrandr?17:01
superkuhThat's the command line way.17:01
superkuhI mean the name of the executable to bring up the gui.17:02
arraybolt3Oh I get it.17:02
superkuhxrandr never worked on many of my systems. I never learned how to use it. Guess nows the time...17:02
arraybolt3I don't know the name of the executable you're looking for, but it might be worth trying "ls /bin/gnome-system*" and see if that shows you the name.17:03
cartdrigeCan't you see the screen and the resolution etc in the desktop settings?17:03
superkuhOh. I guess just removing icons does it.17:03
arraybolt3cartdrige: He can't get into the desktop settings.17:03
superkuhannoying but I can put them back later.17:03
superkuhSorry for the silly question.17:03
cartdrigetry 'arandr' i think its the GUI version17:03
arraybolt3It wasn't silly! And we're glad to be able to try and help!17:04
cartdrigesuperkuh, What screen name/brand/model it is?17:04
superkuhThe monitor that died was an old Dell 1704fpvt. I replaced it with a very crappy 15" Sony for now.17:05
superkuhThe Dell has been getting more and more reluctant to turn on for years. But I thought it was the button. I took it apart and manually shorted the button switch and still nada. So, dead.17:06
=== {master-max}1 is now known as mearvk
jhutchinssuperkuh: Is the resolution you're getting the best the Sony can do?17:07
superkuhYep. It's old 5:4 1280x1024 like the Dell it's replacing. Except with giant crappy bevels and bad color.17:08
* superkuh ambles off to look at eBay/etc for replacements.17:09
=== {master-max}1 is now known as mearvk
=== {master-max} is now known as mearvk
=== {master-max} is now known as mearvk
mearvkAnyone know the directory for INBOX on Courier Email?17:32
mearvkI'm using Mailbox17:32
jhutchinsmearvk: should be something like ~/mail or ~/Mail.  May also be hidden (.mail).17:33
jhutchinsmearvk: Unread inbound mail may be in /var/[spool/]mail/<user>17:34
mearvkwe have Maildir17:34
mearvksorry I mean on the Client side17:34
mearvkINBOX is ~/Maildir ??17:34
jhutchinsmearvk: Yes.17:34
mearvkOk17:34
jhutchinsmearvk: Could be Maildir.  Best way to get the answer for YOUR system is to look.17:35
jhutchins(I had a legacy system that had four different folders in ~. Only one was active.)17:36
jhutchinsStarting some mail clients will create a folder in ~.17:37
=== {master-max}1 is now known as mearvk
=== {master-max}1 is now known as {master-max}
=== {master-max} is now known as mearvk
=== {master-max} is now known as mearvk
=== {master-max} is now known as mearvk
=== {master-max} is now known as mearvk
=== {master-max} is now known as mearvk
=== {master-max} is now known as mearvk
BardonHello, how can I record how much RAM my program is using?18:21
BardonI'm running a python script18:21
fowlHey there, I was trying to set up Multipass on my friends windows machine, I eventually got a VM started but it has no IP address. Can someone point me in the right direction? We are using VirtualBox since I guess his version of Windows doesn't support Hyper-V18:23
superkuhBargon, maybe procpath?18:28
superkuhhttps://pypi.org/project/Procpath/18:28
superkuhhttps://unix.stackexchange.com/questions/554/how-to-monitor-cpu-memory-usage-of-a-single-process18:29
jhutchinsBardon: Top, atop, ps with various options...18:34
Bardonsuperkuh: I'll check procpath, thanks!18:35
jhutchinsBardon: Remember memory usage and memory allocation are different things.18:35
BardonEhm I just want to know how much memory my script uses18:35
BardonDon't know which one it is18:36
BardonI'll just top | grep python for now18:36
ogrause htop and look at the RES value ... that is usually pretty close to actual ram usage18:39
Bardonogra: That's how I'm doing it but I'd like to let it run without having to look at it18:47
=== Bencraft1 is now known as Bencraft
mybalzitchits gnomes always-on-top supposed to always make that app the first thing I go to when I alt-tab?19:37
=== Guest8784 is now known as krabador
=== kostkon__ is now known as kostkon
=== elastic_dog is now known as Guest5023
webchat57I could use some help for a boot issue, can I ask here?20:40
granrojohello! Maybe someone can help me. I have xfce4 desktop. How do I boot to a login manager and then initilize my dektop environment. I dont want lightdm to load20:49
granrojoI have checked a lot on Google and I'm very confused about what to do. Some sites say to configre bachrc file, others xsesions, other xprofile...im lost20:50
mybalzitchwell lightdm can/will call your desktop environment20:51
mybalzitchsddm is an alternative20:51
granrojomybalzitch: yes thats what I realize, deactivated lightdm with systctl but then I dont get X to start20:54
mybalzitchwell, you'd need to log in via the tty and do like startxfce420:55
cmcm!help20:59
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience20:59
granrojomybalzitch: yes but I want to do that autmaticly, but I dont know waht file to modify for that and what to put on it20:59
datatechYou asked for a login manager, but deactived lightdm--which is a login manager21:04
alkisg1granrojo: are you asking "how to enable autologin in lightdm"?21:06
granrojoalkisg1: nop I wont to have a login and then having my sektop envirnoment to start21:08
alkisg1granrojo: this is the default, first you get lightdm, where you login, and then your desktop environment starts21:09
alkisg1Are you asking "how to re-enable lightdm"?21:09
alkisg1Wait do you mean that you want a text (console) login instead of a GUI one?21:09
granrojoalkisg1: I don't want to have a display manager21:09
alkisg1granrojo: display manager is the program that you use to login21:10
alkisg1granrojo: so if you want to login, you need a display manager, unless you're talking about text logins21:10
datatechIf you don't use lightdm, you will need to set up .xinitric to start the correct x11 session. And you will need to type startx from the TTY console. Otherwise, you must use a login manager to handle it.21:10
=== pong_ is now known as pong
granrojoalkisg1: ah ok, then I guess I want a text login if there is no way to get rid of a graphical login manager21:11
rob0The old way (pre-systemd) was to change the runlevel. I guess in systemd you would disable the display manager service?21:11
granrojoalkisg1: in my case lightdm executes my desktop envirnoment, I want to keep my xfce but not pass trought lightdm21:11
rob0I'm sure it is doable21:11
alkisg1granrojo: of course you can get rid of all graphical login managers. Where do you want to graphically login then, in a browser? :D21:12
arraybolt3granrojo: Are you trying to enable autologin so that you don't have to sign in at all?21:13
rob0Without the display manager, you get a text login. "startx" to start X11.21:13
alkisg1I asked them above ^, they said no...21:13
granrojoarraybolt3: no, I still want to login21:13
datatechgranrojo: What happens after you login at the console and type startx. Nothing?21:14
rob0This is how I've run my Slackware desktops since forever.21:14
granrojoalkisg1: I want my dektops environment to load21:14
alkisg1granrojo: disabling the login manager will break some stuff that the display manager prepares. Before you run startx and then you start solving the startx problems, do you want to explain WHY you don't want a display (login) manager?21:15
granrojodatatech: when I do that, my plank laucher gets doesnt load. but I guess thats waht I want but not having to type startx to start my dektop encrinment and window manager21:15
datatechOk, you  must type startx without a login manager like lightdm. Period.21:16
rob0^^ and set up ~/.xinitrc21:16
granrojoalkisg1: because it takes too much time from by boot and I also because I want to login if posible from a tty to my desktop21:16
crax23you add: exec xfce;21:16
crax23in .xinitrc21:17
rob0which used to be easier than it is now21:17
granrojodatatech: yes but I want to automatize that21:17
datatechI have mine set through Xsession21:17
alkisg1granrojo: lightdm takes about 1 second, the rest of the boot time will be there anyway21:17
datatechexport XDG_SESSION_TYPE=x1121:17
datatechexport GDK_BACKEND=x1121:17
datatech. /etc/X11/Xsession21:17
datatechThat is the contents of .xinitrc.21:17
alkisg1granrojo: see how many ^ environment variables you'll need to set, and still some apps will be broken, because they expect some more environment variables that you don't know about21:18
granrojodatatech: I change those 2 lines from Xsession and X will be started?21:18
datatechHang on. Does xfce start after $ startx? Yes or no.21:19
granrojoalkisg1: ok, let me reframe this (by the way thanks a lot for your time and help) I want to get rid of lightdm21:19
alkisg1granrojo: display managers are needed when you want GUI sessions, otherwise you risk broken programs, when you use startx etc21:19
granrojoalkisg1: I don't want a display manager but I do want a desktop environemt in this case xfce21:19
alkisg1You can use display managers that don't even have GUI, but you do need them21:19
rob0granrojo, again, your DM is a service which is started by systemd21:19
granrojorob0: yes that I know but what file?21:20
rob0alkisg1: it really IS possible to have X without a DM21:20
alkisg1rob0: I've been avoiding to maintain the ltsp display manager for years, because of all the breakage :)21:21
datatechI don't have a DM configured.21:21
alkisg1It is possible, and then you get so much broken behaviour, that you regret about it21:21
datatechNothing is broken.21:21
rob0no, it works fine for me in Slackware[s]21:21
granrojoalkisg1: nothing is broken, I have seen it done also with only window managers like openbox21:21
alkisg1I don't want to spend time to review all the related bugs, patches and code I've written about which parts are broken21:21
rob0but Slackware has scripts to help set up ~/.xinitrc21:22
alkisg1But I've spent so many weeks on such broken stuff, that I do need to warn granrojo about them21:22
rob0yes, alkisg1 is probably right that this is not so easy in Ubuntu21:22
rob0but it can be done21:23
datatechFor me I simply uninstalled lightdm and I had no problems.21:23
granrojoalkisg1: Ok, thanks for the advice. I still want to know how to get to my dektop environment wihtout a display manager but a login21:23
rob0try uninstalling lightdm21:23
granrojodatatech: I did systctl disable lightdm, with that I get a tty from where I can log in but it doesnt start X autoamtically21:24
datatechAnyway, you have to startx after logging into the console. You can't automate that without writing a... you guessed it, a login manager from the console. Maybe one exists?21:24
rob0ok, there's not much to a .xinitrc file21:24
granrojorob0: so its the .xinitrc file that I need to modify to launch x autamitaclly?21:25
datatechIt won't launch X automatically.21:25
alkisg1You can put startx in a small login script (.profile and an if command). You can install nodm and tell it to autologin you from a small login script; that'll be a lot better than startx. But the nodm maintainer abandoned it in favor of lightdm.21:26
granrojodatatech: Why?21:26
datatechBecause .xinitric is a command file. The way debian systems work now is the xsession is  handled by systemd.21:27
alkisg1So I would suggest that you enable autologin in lightdm, and just start the lightdm service after you login in text mode, that way you won't have broken programs21:27
datatechs/is a command/isn't a command21:27
datatechYou're looking for a solution that doesn't exist.21:27
granrojowell some people like rob0 says it exist21:28
datatechAnd I can tell you're not experienced enough with linux to understand why. It's fine. Our advice is to use lightdm to login, or type startx from the console. Pick one.21:28
granrojodatatech: What do you mean but I'm not experienced enought with linux?21:29
datatechBut take note of alkisg1 warning about not using lightdm. You may have issues that you won't be able to solve.21:29
granrojoYes, I thansk alkisg1 for the advice.  but I still want to break my PC :)21:31
xipperWhat is the difference between passwd and gpasswd?21:31
alkisg1xipper: g is for groups21:31
nteodosioYou could technically use .profile (which gets executed at login) to execute startx whenever you log in.21:31
xipperalkisg1: one can add passwords to groups?21:32
granrojonteodosio: there we go, that sounds more like I want21:32
nteodosioBear in mind that display managers usually do a lot of stuff to set up the desktop environment. It will be a real pain to replicate that behavior via .xinitrc.21:32
alkisg1xipper: man gpasswd, you can add users to groups etc, and yes you can also set passwords for groups21:32
xipperalkisg1: thank you21:33
granrojonteodosio: yes alkisg1 told mr about so. So how do I create a .profile and what do I put on it21:33
nteodosiogranrojo, ah, sorry, I only caught part of the discussion.21:34
datatechsomething like: [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx21:34
nteodosiogranrojo, probably you can just append startx to it after you made sure to configure .xinitrc correctly.21:34
granrojonteodosio: and the .xinitrc file that I have now is not "correct"?21:36
nteodosiodatatech already took care to eliminate cases where you use a login shell but don't want to start X (e.g. if X is already started)21:36
datatechgranrojo: try appending that to .profile and login21:36
rob0granrojo: this is my XFCE .xinitrc from Slackware: https://pastebin.mozilla.org/Rad487qD21:36
nteodosionteodosio, most likely not, at least not totally. You will find bits missing from the DE if you use it long enough.21:36
granrojodatatech: I need to append that to xinitrc?21:37
rob0granrojo: of course I have no clue if it will work for Ubuntu21:37
datatechNO, to .profile21:37
datatechor .bash_profile if it exists21:37
granrojodatatech: it not I create bash_profile on ~  or a .profile on ~ ?21:38
granrojo*if not21:39
alkisg1granrojo: there's also a list of console-based display managers there: https://wiki.archlinux.org/title/display_manager#Console21:39
datatechI would add it to .profile. If you want to make sure .bash_profile is set up correctly, I recommend just sourcing .bashrc and .profile in it. i.e. . ~/.profile in .bash_profile (along with . ~/.bashrc). Read how to source dotfiles for more info.21:39
granrojohey thats great rob0 thanks21:40
rob0maybe :)21:40
granrojoand with a console display I can disable lightdm? on login with that? alkisg121:41
rob0Slackware is non-systemd, and has that dbus-launch thing, which might be specific21:41
alkisg1granrojo: yes, e.g. see the screenshot there: https://loh-tar.github.io/tbsm/21:42
datatechIt's been so long since I actually ran Slack. I wonder if Pat will ever implement systemd21:42
rob0datatech: he's resisting as long as possible, but it has gotten to be difficult21:43
granrojodatatech: ok thanks but i dont know what is to source, ill have to look for that21:43
rob0"help source" in a bash shell21:44
granrojorob0: ill try that, but its usuall hard for me to understand help options from bash21:45
granrojorob0: ill need to spend some time looking for it to grasp what it is21:46
granrojo[#ubuntu] alkisg1 datatech rob0 nteodosio and all for your time and help21:46
rob0maybe you need to spend some time playing in bash21:46
rob0As long as you're not root, you can't do any permanent damage. :)21:47
granrojorob0: yes definetly, thats what I try to do, but I dont have many uses for it...unless I want to run normal stuff from it or copyng thinfs form here to there. Im just a linux enthusiast21:47
rob0I guess it was easier for me, as I came to Linux from DOS.21:48
FingelDoes anyone know if it's possible to get the docker compose plugin with Ubuntu's docker.io package? I'm not talking about the old docker-compose program.21:48
granrojorob0: well me too21:48
granrojorob0: but even in dos I didnt do much more than the basic stuff. looking fro files, copying things runing some exes21:48
granrojorob0: and playing with memmaker to try to run some games21:49
dollardHelllo21:49
granrojohi dollard21:49
alkisg1granrojo: you may also install xdm if you prefer something extremely light, it's 143 kb21:49
alkisg1graphical, it will also be faster than your console login as it will have already launched xorg for you...21:50
dollardHow are you21:50
granrojook, ill look for xdm too, thanks a lot for all your help! alkisg121:52
alkisg1👍️21:53
=== scoobydoo_ is now known as scoobydoo
daviddgot a question: what does 'unknown' mean when I am listing a package (e.g. 'gh/unknown,now 2.20.2 amd64 [installed]')22:34
daviddah it's the suite for the package release22:36
flylordHi, I am having ls list folders with a green background. is there a way to change that for terminal?22:40
flylordusing wsl2 / ubuntu22:41
=== dd3my is now known as Guest4820
=== anotheryou_ is now known as anotheryou
=== markthomas1 is now known as markthomas
=== kms_ is now known as kms
=== mrelcee_ is now known as mrelcee
=== Turgenevskaya is now known as TortillaSandwich
=== AKTheKnight8 is now known as AKTheKnight
=== jose_ is now known as jose
=== jwpapi_ is now known as jwpapi
=== SirScott6 is now known as SirScott
=== dreinull309 is now known as dreinull30
=== nirojan_ is now known as nirojan
=== RaGE_Syria1 is now known as RaGE_Syria
=== kenyon_ is now known as kenyon
=== heart6 is now known as heart
=== tuxifreund_ is now known as tuxifreund
=== antranigv_ is now known as antranigv
jhutchinsflylord: Where did you get the ubuntu image?23:28
jhutchinsflylord: I don't think native ubuntu does that.23:28
jhutchinsI do get network shared folders in blue text on green background.23:30
jhutchinsWhat about ls -l?23:34
=== Vercas62 is now known as Vercas6

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