Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
tjones
May 13, 2005
If network manager, you could cat the files stored in /etc/NetworkManager/system-connections/?

Phone posting, so that last directory may be named differently than I am recalling. You'll need root access.

Adbot
ADBOT LOVES YOU

tjones
May 13, 2005
Ranger+w3m has term support for displaying images as well.

tjones
May 13, 2005

Nostalgia4Ass posted:

I have a new XPS 13 with 4k screen running Fedora 29 with KDE. I love the laptop to death but I have to force a higher DPI to make things readable on the laptop screen since it's only 13 inches. However, I also bought a 32 inch monitor and a fancy Dell dock so I can look at the bigger screen when I am working from home. The scaling makes everything look blurry when the laptop is docked. I am wondering if there is a way to enable scaling when the display is output via the laptop screen BUT disable scaling when the display is over the 4k monitor? So far, all I've been able to do is adjust the DPI manually (which requires me to log out and back in again to take effect).

Horse Clocks posted:

Which version of which desktop environment, backed by which display protocol?

If it’s anything X, no.

I think I heard about Gnome under wayland getting support for mixed dpi displays, but I don’t have any first hand experience with it.

No idea about KDE, but if wayland supports mixed dpi it should get support... eventually.

I just set my internal display to 1080p when external displays are plugged in. Usually the WM will revert it back to 4K when you unplug them.


Could you not use xrandr to scale the lower DPI monitor after setting dpi to the 4k monitor?

Man xrandr and look at --dpi, --mode and --scale. I can't test this so I'm not 100% sure this will work.


Edit: If you are using X. If Wayland, please ignore.

tjones
May 13, 2005
I like the new KDE a lot and have kept neon as a backup distro for over a year now. I normally don't prefer GUIs and daily drive a tiling window manager.

It isn't without its problems. Dolphin had a file move bug that is now reported as fixed. I've never trusted it and used the command line instead.

https://bugs.kde.org/show_bug.cgi?id=162211

Edit: Actually, looks like the silent fail may still be there. Theres another ticket request if you follow the comments.

tjones fucked around with this message at 15:01 on Dec 29, 2018

tjones
May 13, 2005
If I remember correctly, Termux offers the option of Vim or Emacs (and nano if you want to notepad it). It's also bundled with bash or zsh, ssh, and even rsync. I'd imagine a ton of other things but it's been a while since I've used it.

If you're rooted you can su to gain root and do whatever you want.

LineageOS comes with it's own terminal built into the developer's options that you can enable with vim offered out of the gate.

tjones
May 13, 2005
The telegram thing is due to running neon. Neon only cares about the KDE chain and can break on other Qt configurations.

See this:
https://bugs.kde.org/show_bug.cgi?id=400004


I'd suggest using Ubuntu if you don't want to go the snap/pak route.

tjones
May 13, 2005
Used corporate thinkpads are perfect for project systems and you can pick up the older generations stupid cheap. They're really well built and last forever.

You then can spend ~100 on a new bezel, keyboard, and touchpad for it, and it will look and feel almost brand new.

tjones
May 13, 2005

LODGE NORTH posted:

So, getting two Pis for two different projects and successfully messing with both of them has made me want to learn Linux.

As far as learning goes, I know I could install Linux on my computer itself and just go that way, but are there benefits to having something like a Zero W solely for learning, utilizing, things like that?

I always recommend starting with a VM to slowly tackle projects/problems on it so that if anything goes south all you need to do is revert to a prior save state. You can figure out which distro you like, what types of packages you'll want and need, and the general howto of moving around and configuring it all. If you decide its not for you or you lose interest you're no worse for wear and can easily delete the VM.

After some time doing this, you'll have a good idea of what you want and whether you should setup a dual boot or separate machine proper.

However if you're actively working with Pi's for your job or projects, then I don't see the reason why another personal setup would be a bad idea.

tjones
May 13, 2005
r/unixporn has a ton of i3 dotfile examples if you're looking for ideas.

tjones
May 13, 2005

Newf posted:

Right, yes, I meant to specify both of those things - yes, that looked to me like the DVD drive, and no, the drop-down in the upper right doesn't list any other drives. So it does seem to be the case that Ubuntu isn't finding the drive at all, which would explain the complaint about 0.0 Gb available space.

I'll locate my sheet of specs today and post again later with motherboard / SSD makes and models.

What does 'fdisk -l' from a terminal tell you?

tjones
May 13, 2005

EC posted:

With the help of a friend, I came up with a solution, which I believe is what VictualSquid was telling me to do: create a flv file instead of a mp4 file, and then stream that directly. The pi managed to stream the whole thing without a hiccup.

code:
ffmpeg -re -i out1.flv -c copy  -f flv rtmp://live-dfw.twitch.tv/key
Now onto phase two: randomly picking a file to stream, and queuing up another one after that one is done playing.

Try this if you haven't already figured something out:
https://pastebin.com/kjwfEDNH

Everything's fairly self explanatory. Check the top of the script for global vars you can modify to alter the script parameters. The script's currently set to dry run every 5 seconds. You'll want to comment out line 65 and uncomment line 67 to actually run it proper.

It picks a random file from the specified working dir and mask by using ls and piping to shuf. It logs each entry it makes and checks each new selection against the log in an attempt to find a unique candidate. It will keep trying for as many log lines as you have before it gives up and picks the oldest log entry. It will also try to find repeating duplicates and invalid files and scrub them from the log as it goes.

This works well for my uses (mainly random mp3s with mpv). I'd suggest running this on a backed up directory just to make sure it doesn't do anything crazy first if you do end up using it.

I also wanted to add: I'm not entirely sure how twitch handles key usage, but if you're dumping it through the command line to ffmpeg, I'd take into considerations the permissions files had that might contain the key as well ensure its not readible through ps or similiar.

tjones
May 13, 2005
Put double quotes around your echo statement variables and you'll see why its not matching.

ex:
echo "$audio"
echo "$analog"

code:
	active profile: <output:analog-stereo>
active profile: <output:analog-stereo>
CASE 2

tjones
May 13, 2005
You could check out Geany. It's very Notepad++ like.

tjones
May 13, 2005
Ignore this, sorry. Too early in the morning without coffee and I completely ignored where you said you could do this with ffmpeg.

Edit:
I think it would probably still be easier to load the video in mplayer/mpv/vlc to find your timeframes and then you can cut with ffmpeg:

ffmpeg -i (input file) -ss (start time) -t (end time) -c copy (output file)
ex:
ffmpeg -i video.mp4 -ss 00:01:15 -t 00:06:05 -c copy newvideo.mp4


As long as you don't apply filters with ffmpeg, it should demux the video instead of re-encoding it. If all you want to do is cut the video then this is by far the most simple and straight forward option.

tjones fucked around with this message at 15:26 on Dec 23, 2020

tjones
May 13, 2005

Not Wolverine posted:

I have VLC on my systems already, and I might just try to use it for trimming if it's possible. The only issue I have with doing so is that I think VLC's interface is a bit difficult and easy to forget at times, I might have to look it up again next month or the next time I trim a capture. It's great it has so much power, but I'm afraid I could accidentally start streaming or doing a full re-encode on a video by clicking the wrong menu in VLC. I think I like the idea of using ffmpeg and time stamps the best, is there a way to tell ffmpeg to trim at a key frame from the command line? if I have to specify the points by time, don't I also need to enter very precisely like 00:13:42.06969 ? Or could I specify by frame number instead, if I can somehow find the frame number in VLC?

For VLC, use the shortcuts for next frame. Get in the ballpark and then set a bookmark, scroll through the video second by second, and then frame by frame. If you screw up or go past where you wanted, use the bookmarks to jump back.
https://wiki.videolan.org/QtHotkeys/

As for ffmpeg, with the copy codec option (-c copy), ffmpeg will force the video split at a keyframe. You can give it hyper precise timestamps or a round about second and it will start at the next keyframe, but include audio prior. See below for more information. The following link should answer your questions more concisely than I could. It has other good information about seeking in general.
https://trac.ffmpeg.org/wiki/Seeking

https://trac.ffmpeg.org/wiki/Seeking posted:

Time unit syntax

Note that you can use two different time unit formats: sexagesimal (HOURS:MM:SS.MILLISECONDS, as in 01:23:45.678), or in seconds. If a fraction is used, such as 02:30.05, this is interpreted as "5 100ths of a second", not as frame 5. For instance, 02:30.5 would be 2 minutes, 30 seconds, and a half a second, which would be the same as using 150.5 in seconds.

Seeking while doing a codec copy

Using -ss as input option together with -c:v copy might not be accurate since ffmpeg is forced to only use/split on i-frames. Though it will—if possible—adjust the start time of the stream to a negative value to compensate for that. Basically, if you specify "second 157" and there is no key frame until second 159, it will include two seconds of audio (with no video) at the start, then will start from the first key frame. So be careful when splitting and doing codec copy.


Good luck. It may be easier to use a frontend if you're not comfortable with the command line. They'll drive ffmpeg, so you would most likely get the same results. I've not used any of the GUI frontends, so I can't recommend one over another.

Flatpaks/snaps are all-in-one application packages that include everything you need to run the executable in the package and run in a sandbox. Snaps are Canonical's (read: Ubuntu) verison of a flatpak and require systemd.

tjones
May 13, 2005
Spending a few hours each month because it breaks is hyperbole. Arch has been my most used daily driver for years and I've maybe had to fix two things that I can remember in the past two years. What does break is almost immediately posted to their forum with the fix listed if it's not in the frontpage blog already.

I run a minimal, fairly stock setup, FWIW. It's bleeding edge, but unless you are running some wild configuration it's solid as can be expected.

You still should develop a good habit of checking the homepage before you blindly Syu.

tjones
May 13, 2005
The appeal of Arch is being able to cherry pick what packages you want. The installer gives you everything needed to accomplish this. The reason I use Arch is because I'm able to quickly install only what I need and no more.

Complaining that the base package doesn't come with your favorite wifi networking client, or any other package, is kinda missing the point.

I think new linux users end up with Arch and these issues with installation because of the memes or taking bad advice from people who know better than to recommend it to new users. Anyone reading the installation guide and paying attention will be fine.

tjones
May 13, 2005

RFC2324 posted:

so you agree that the problem isn't actually arch, its people recommending arch to new users?

just stop recommending it, ffs, lol

I wouldn't recommend it to anyone new to unix based systems, no. Anyone looking to learn linux? Possibly, if I thought they were serious about it and already had some technical know-how.

Someone closely following the guide and taking the time to read, research, and understand each step before progressing to the next is different than someone looking for a one click installation solution, which is where I believe all the complaints of "I installed it now but how do I wifi!?!" come from.



Truga posted:

i mean, minimal debian install is like 400 megs unpacked, but it ships with working networking and isn't arch so yeah, i'm definitely missing its point

IMO arch's place in the world is what gentoo's used to be. it's popular enough that it has a well travelled wiki, and also lovely enough that said wiki has an article for any linux problem you've ever encountered :v:

My arch install script includes all the packages I need, including my preferred networking clients. I've built my install by hand over the years the way I like it. Installing a prebuilt and then having to modify by adding or removing packages is actually more work. You prefer debian. Thats cool. I like Arch.


RFC2324 posted:

I'm really starting to think I might want to start using a tmux shell

Tmux is great. I highly recommend it but more for its multiplexing abilities. Headless sessions are useful.

tjones
May 13, 2005

The Gadfly posted:

Maybe arch could include a script in the installation image to pacstrap stuff like the networking package as a cli prompt to make the installation process more automated. But then again maybe it's better to not make the arch install newb friendly as manjaro and other distros already have this covered.

I agree on all points. I also think Manjaro is a bit of a mistake as a lot of times it is passed off as "arch but for new guys" and you get people who end up in the same boat when something goes wrong.

You can easily write a script file yourself to install all your packages you want after you've installed base. Theres no need for the arch boot system to include it as it would just complicate things. If you already have an Arch system setup, the following commands are helpful:

'pacman -Q' will show all installed packages
'pacman -Qe' will show all explicitly installed packages

Read the man page for pacman for more query options as you can get fairly granular results for what you want to return. Then you can use that to generate a list of everything on your current system for whatever purpose you need and add that to your backup scripts.

For instance, I use this to dump all of my explicit packages and redirect it to a file. My backup script runs this command and includes the file in my archive so I can easily see what was installed when and I can pull that package list to then build a new install from if needed.

code:
pacman -Qe | awk {'print $1'}
Arch is what you make it. And for people who like everything to be a certain way (and their way), it's definitely one of the best starting platforms to use.


EDIT: Since I'm offering advice in regards to pacman, if you were to do something like what I do above, I would suggest also checking for orphans anytime you reinstall from a static package list. Orphans occur from time to time in Arch and its worthwhile to check for and remove any packages if they are no longer needed:

quote:

pacman -Qdt

tjones fucked around with this message at 04:37 on Jan 25, 2021

tjones
May 13, 2005

waffle iron posted:

I'm here to tell you that dnf (Fedora) and apt (Debian/Ubuntu) can do all those things as it relates to manually and automatically installed packages.

¯\_(ツ)_/¯

My point being that Arch's base package group that is installed on installation contains a total of 27 packages.
https://archlinux.org/packages/core/any/base/

It has been years since I've used Fedora/RH/Centos and I've only used Debian in Ubuntu desktop distros in the last 10 years. Do either's minimal install option get as lean as that?

tjones
May 13, 2005

waffle iron posted:

I prefer to have a system that can do things, but point taken?

Arch is an easy way to LFS without having to spend time compiling things. My system does everything I want and only includes what I need.

tjones
May 13, 2005
I've moved my whole family over to Ubuntu with KDE and they have had very little problems adjusting.

If you show someone how to open a browser, calculator, notepad, and Libre office, most will do fine. Anyone with a habit of poking things or touching the settings for no reason will break any OS, IMO.

tjones
May 13, 2005
For user configurations, I would start by looking in ~/.config/. That subdirectory is where most user configurations are stored. There is no rule for this and other applications may differ. For instance, Firefox user configurations are contained inside ~/.mozzila/.

tjones
May 13, 2005
As easy as it can be to break poo poo, most problems are trivial and can be solved with a little time with chroot.

tjones
May 13, 2005
Discover is poo poo. Use apt or aptitude. Aptitude has a ncurses UI if you prefer visual interfaces.

tjones
May 13, 2005

Mr. Crow posted:

Any recommendations for a ~1TB external drive you can plug in via usb and just use as a normal flash drive?

I bought a handful of cheap 2.5" external enclosures off amazon a long time ago and now recycle out old laptop drives by replacing the smaller capacity ones with larger capacity ones as I go. I have a stack of old drives that are wiped clean and waiting that can be swapped into an enclosure in a few seconds if I need to throw something on one and treat it like a temporary thumbdrive.

They run off USB power and are a just a bit larger than a standard bifold wallet.

tjones
May 13, 2005

RFC2324 posted:

No matter what I put in /etc/sddm.conf, it is not reflected here and I am stuck with a tiny login screen I am to get real close to the screen to read. Anyone know whats up here?


Have you tried modifying the other configuration files to see if you can get changes to stick?
Check this:

quote:

SDDM configuration is loaded on the following order:

All files in /usr/lib/sddm/sddm.conf.d in alphabetical order
All files in /etc/sddm.conf.d in alphabetical order
Finally from /etc/sddm.conf for compatibility

For example, we can find on tumbleweed that the main sddm.conf file is empty, and the configurations are on /usr/lib/sddm/ssdm.conf.d.

See
$ man sddm.conf

From here: https://en.opensuse.org/Sddm

tjones
May 13, 2005
Does changing the value of EnableHiDPI in the 00-general.conf have any impact? I was mainly wanting to confirm that overall configuration changes were working correctly as /etc/sddm.conf should overwrite prior settings. I'm assuming since you mentioned prior that everything was working except for SDDM that you've already solved other potential X/Wayland scaling issues.

You could try to manually set the dpi of the display in the SDDM config if you haven't tried already:

quote:

/etc/sddm.conf.d/dpi.conf

[X11]
ServerArguments=-nolisten tcp -dpi 94

From here: https://wiki.archlinux.org/index.php/SDDM#DPI_settings

Maybe try to double your DPI to force a lower resolution?


There's also this blurb in the Arch WIKI troubleshooting section for SDDM that might be worthwhile:

quote:

Screen resolution is too low

Issue may be caused by HiDPI usage for monitors with corrupted EDID [6]. If you have enabled HiDPI, try to disable it.

If even the above fails, you can try setting your screen size in a Xorg configuration file:

/etc/X11/xorg.conf.d/90-monitor.conf

Section "Monitor"
Identifier "<default monitor>"
DisplaySize 345 194 # in millimeters
EndSection


Scaling issues on Linux have historically been a pain in the rear end. I've heard it said in a jokingly manner more than once that the best solution to issues with a 4K monitor in Linux is to go buy a 1440p monitor instead. Best of luck.


EDIT: It appears this link may solve your problem:
https://en.opensuse.org/High_DPI

tjones
May 13, 2005
I've owned a few including the older W and newer gen T models, but I've daily driven a X230 with an OG keyboard and will probably continue to do so for the forseable future.

tjones
May 13, 2005
YMMV, but I find having a tiling window manager helps with tiny screen space. I can set each window to stack ontop of each other or launch in their specific screen and I can instantly flip through maximized windows with a simple key combination. Or I can set two windows side-by-side with no screen real estate ever lost. There is a floating option for any window you wish to have float, though I realize now after years of use that I've not used it in a very long time except for very specific edge cases.

The biggest issue with running a tiling wm is always the initial setup and learning key combinations. But It is not unlike custom keybinds for your favorite game: it takes a few hours of tinkering to figure out what you want and then a week or so of constant use to learn them without having to think about it and after that it no longer is an issue.

I use I3 and have a backup system with dwm. I recommend both but personally gravitate towards I3.

tjones
May 13, 2005

hbag posted:

cant install debian on my Dell G3 3500 because lol of course it has a firmware issue so X cant start
does anyone know where i can get the necessary firmware and then, after that, how tf i can get that poo poo to work on my live USB

yes, i have tried using the "non-free firmware" images on their website. they dont work.

Debian is old and outdated on purpose. You'll run into issues with the software lagging behind from time to time. It's the nature of the distro.

Have you tried updating to a newer kernel through backports? See here: https://backports.debian.org/

You could also try one of the debian based distro boot environments to see if they perform better. Mint, MX, Deepin, Ubuntu, etc. That might give you an idea of what packages you need to look for in order for your hardware to work.

tjones
May 13, 2005
Ubuntu based distros still originate from debian unstable branch? I included those in the list as a hail mary at trying to get something to work right out of the box. If you can get something to work you can then work backwards to figure out what needs to change on debian.

Personally I consider all the Ubuntu and Ubuntu-like distros debian adjacent and related.

Maybe it would have been more helpful to exclude those distros. I suspect MX Linux would result in the same issue since it's based on the stable branch. It would be worth a quick test with a boot iso to see, IMO.

My wild guess is a kernel issue with the intel integrated gpu. If I were wanting to stay on debian, I would start with backporting the kernel to a newer version and if that doesn't fix it updating packages from Sid to see if anything works.

tjones
May 13, 2005
* Slack and Debian in the late 90s early 2000s. Things broke easily and the desktop was frusterating. Lost interest quickly, multiple times.

* SuSE early to mid 2000s while porting UNIX curses software to GTK. Compiled a custom kernel during this time. Also tried LFS soon after. Fell off hard. Dipped my toes into BSD but I never stuck with it due to my employer's decision to migrate to Linux. Lost interest quickly in all things *NIX after changing careers.

* Began keeping a backup Debian install sometime during the end of Vista. Eventually moved from Debian to Ubuntu. Linux was much much more accessible now, and I remember being impressed with the overall state of things and the desktop compared to before.

* Stopped using Windows entirely on my personal machines during the beginning of Windows 8 except for a backup boot I used for occasional gaming and Adobe products.

* Moved to Arch around 2016-2017. I keep a minimum Debian install as a maintenance backup and a KDE/Ubuntu system image that mirrors what I now preload onto my family's PCs. I'll sometimes dable with FreeBSD but it's always fleeting and never replaced my daily driver.

tjones
May 13, 2005
I'm sure powershell is great but the first thing I recall from my limited experience with it is that its slow as balls.

tjones
May 13, 2005
Systemd should always be PID 1, but that ps call should return the PID value of systemd.

Try changing that ps call to the below to see if it fixes the issue. My wild guess is the prefixed whitespaces returned by the PS column output is causing issues with the parameter passing to nsenter.

xargs will strip all leading, trailing, and doubled whitespaces to single whitespaces in order to clean up argument passing.

code:
"$(ps -C systemd -o pid= | head -n1 | xargs)"
EDIT: Just missed the last reply. It appears you aren't running systemd.

tjones fucked around with this message at 18:45 on May 18, 2021

tjones
May 13, 2005
If you are wanting a tiling WM and prefer a certain DE, look into using both. I know in the past people have successfully integrated i3 and AwesomeWM into both XFCE and KDE.

If you like and are already familiar with i3 and want to keep things minimal, you can get a pretty nice looking setup going with a highly tuned rofi and polybar configuration.

tjones
May 13, 2005
CRF is the constant rate factor for libx264. See here:
https://trac.ffmpeg.org/wiki/Encode/H.264

The -vf scale filter with one negative value will scale the image resolution to the measure of the positive value given and use a relative value for the negative value measure to keep the same aspect ratio as the original source.

For instance, if your images are 16:9 resolution then the resolution filter scaling applied to the ffmpeg output will be 1920x1080. See here:
https://trac.ffmpeg.org/wiki/Scaling

For all your questions, refer to the manpages or the ffmpeg.org documents:
'man ffmpeg' or http://www.ffmpeg.org/ffmpeg.html is your friend.

tjones fucked around with this message at 06:54 on May 22, 2021

tjones
May 13, 2005
Somewhere, someone is feverishly building a new distro with cohesive manpage documentation as its main goal.

I look forward to installing it on a VM, running it once, and then forgetting it ever existed.

tjones
May 13, 2005
Ubuntu lost favor for a lot of people for trying to hoover up Amazon search data through Unity. People also hate snaps.

Ubuntu isnt that bad though. Linux users like to be elitist. I use KDE Neon on ocassion and its alright.

EDIT: While not directly Ubuntu, but Ubuntu adjacent, there was also the Linux Mint repo being compromised, but I don't blame Ubuntu for that one.


Zero VGS posted:

Do either of those have an option to install Linux with a dual-boot toggle? Ubuntu's promise of a dual-boot that actually works is what lured me over, alas.

You should really take the time to learn what dual boot is, how it works, and how to install it correctly. I've used Ubuntu flavored distros for years and never once had an issue with dual or triple boot systems while one of those systems being some flavor of Ubuntu.

tjones fucked around with this message at 20:53 on May 24, 2021

Adbot
ADBOT LOVES YOU

tjones
May 13, 2005

Zero VGS posted:

I mean, the Ubuntu live USB had an uptime of nearly 2 months on my laptop without needing to reboot, I'm lucky to get a full day on Windows so that's already promising but I assume any other Linux distro can pull that off.

It would be worth trying openSuse and Fedora to see if those distros are a better fit. But you should definitely understand what you are doing before you hose your system trying to brute force a dual boot with a one click solution.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply