• General Linux Chat and Small Questions v. Year of the Linux Desktop!
    4,886 replies, posted
[QUOTE=helifreak;52541623]Generally I leave SSH running on port 22 because it's one less config field to enter in, this has been going fine (server up for 66 days - 634K of btmp, another up for 252 days - 3.4M of btmp, whatever) then I was trying to figure out why this piece of shit VPS crashed and noticed there was a 963M btmp log after not even 6 months. What the actual fuck. Still don't know why it crashed.[/QUOTE] if it's a bottom tier VPS, then there's your reason for why it croaked with a logfile just shy of 1 gigabyte. Either change port or set a max limit on logfile size.
So this is using Linux Subsystem on Windows, but I need a little tip for how to do this in Bash. If I have a projects folder inside my Documents folder (Windows User folder), located as such: /mnt/c/Users/jalict/Documents/Projects How can I tell Bash that I can just write [CODE]cd projects[/CODE] and it would translate that into [CODE] cd /mnt/c/Users/jalict/Documents/Projects[/CODE] and have that perm. for whenever I start Bash. [editline]6th August 2017[/editline] Initially I thought I could just make a alias like [CODE] alias projects="/mnt/c/Users/jalict/Documents/Projects" [/CODE] And then I could just [I]cd projects[/I]. But that doesn't work as alias is alias for a command. So it is not recognices as "string" or whatever that would be in Bash terms. [editline]6th August 2017[/editline] I know I could just make an alias which also includes cd, such as [CODE] alias projects="cd /mnt/c/Users/jalict/Documents/Projects" [/CODE] But the other way around just makes more sense to me.
[code]ln -s /mnt/c/Users/jalict/Documents/Projects projects[/code]
Just found this: [code] export CDPATH=.:/mnt/c/Users/jalict/Documents/ [/code] I don't know if that is bad practice though? [editline]6th August 2017[/editline] Ah wow nevermind. Now everything is always cd-able in the Documents folder :v: [editline]6th August 2017[/editline] [QUOTE=helifreak;52545598][code]ln -s /mnt/c/Users/jalict/Documents/Projects projects[/code][/QUOTE] If I do this. Then I only have the symlink available when I am in ~ (Or wherever I create the symlink). I guess I am just going to go with this as it seems like the most logical one.
If you're not in ~ you can always do ~/projects which is almost as easy.
[QUOTE=Dr. Evilcop;52545892]If you're not in ~ you can always do ~/projects which is almost as easy.[/QUOTE] Yeah that's what I thought. I'll go with this! Thanks :)
Slowly but surely figuring my way around Arch.
Decided to give Antergos a try after an update borked grub in Xubuntu (Why did it install in BIOS mode anyway?) It's spectacular, it's basically Arch set up sensibly. Other than that VFIO has been pretty fun, PIP mode on my monitor is great for switching back and forth from host to VM's
[QUOTE=Bonzai11;52552975]Decided to give Antergos a try after an update borked grub in Xubuntu (Why did it install in BIOS mode anyway?) It's spectacular, it's basically Arch set up sensibly. Other than that VFIO has been pretty fun, PIP mode on my monitor is great for switching back and forth from host to VM's[/QUOTE] Antergos is Arch, without the hassle, and looks good out the box + is easy to use. I genuinely would consider recommending it as a beginner distro once Cnchi is a little more intuitive (the partitioning part)
Well for some reason the config and streaming randomly decided to stop working for me today, so I'm gonna see if I can't figure out what's going on and revise the guide. Til then here's a placeholder so I don't mess up peoples iptables settings. It was working so well yesterday ;_;
All Chinese input for Linux is garbage, unfortunately. Not updated since 2013, missing several characters. The main Ibus input method is missing the character jian1(can't type it this is the phonetics) which means fry(As in fry an egg). If I use sunpinyin(an fcitx input method) I can get these common characters back, but I can't choose a specific regional variation of Chinese, which is important because I go between talking with mainland Chinese people in simplified Chinese and people in Taiwan with traditional Chinese. I can switch between simplified and traditional but the variations are different to what is used by most taiwan people. It's really disappointing.
I'm liking Arch so far. The AUR has been offering almost every piece of linux software / firmware I've wanted. I can either download them from the git link it provides, or install it using pacman. It's nice and lightweight. I like it.
[QUOTE=FurrehFaux;52554304][B]This is a guide for using Steam's In-Home Streaming from a Windows box to a Linux client[/QUOTE] What's the latency like? I found wireless had an unbearable delay, but this sounds hopeful.
I've been fine streaming off 2x2 MIMO AC
[QUOTE=SataniX;52555149]What's the latency like? I found wireless had an unbearable delay, but this sounds hopeful.[/QUOTE] [url=https://www.reddit.com/r/linux_gaming/comments/3znh8e/will_steam_inhome_streaming_work_with_pass_through/cynmoao/]This post[/url] says there's a lot of encoding and decoding overhead that make it pretty unbearable. Might be different on good machines. It's an old post so there might be hardware acceleration now, but it does point out that the networking lag is about 1-2ms.
[QUOTE=SataniX;52555149]What's the latency like? I found wireless had an unbearable delay, but this sounds hopeful.[/QUOTE] I played the entirety of MGS:V over 802.11ac from my desktop to my chromebook running ubuntu. It worked surprisingly well.
[QUOTE=Naelstrom;52557254][url=https://www.reddit.com/r/linux_gaming/comments/3znh8e/will_steam_inhome_streaming_work_with_pass_through/cynmoao/]This post[/url] says there's a lot of encoding and decoding overhead that make it pretty unbearable. Might be different on good machines. It's an old post so there might be hardware acceleration now, but it does point out that the networking lag is about 1-2ms.[/QUOTE] 1-2ms is pretty good, and assuming the stream decoding is one supported by i7 hardware shouldn't be a problem. I'll give it a try for games that don't support 21:9.
I've been making an audio visualizer using xlib/xcb for the display side. The more I learn about X11 the more I realize that it's the wrong solution. X11 is unpleasant.
Installed KDE Plasma as my new DE to replace Xfce. Had a bit of a rocky start but it seems to have sped itself up.
[QUOTE=IpHa;52566359]I've been making an audio visualizer using xlib/xcb for the display side. The more I learn about X11 the more I realize that it's the wrong solution. X11 is unpleasant.[/QUOTE] And now you know the reason behind the Wayland+Vulkan hype. X11 still has lots of things left over from the mainframe days.
[code]TODO: NOT YET DOCUMENTED[/code] That's exactly what I wanted to find when looking up a required parameter to an XCB function. [editline]13th August 2017[/editline] I made a transparent window, except black is changed to blue on everything behind it.
[QUOTE=IpHa;52570157][code]TODO: NOT YET DOCUMENTED[/code] That's exactly what I wanted to find when looking up a required parameter to an XCB function. [editline]13th August 2017[/editline] I made a transparent window, except black is changed to blue on everything behind it.[/QUOTE] Welcome to X development, feel free to ask me questions. I know a lot about how X works, including how bad the documentation is. [quote] [quote=XShape Documentation]This manual pages needs a lot more work.[/quote] [url]https://www.x.org/archive/X11R7.5/doc/man/man3/XShape.3.html[/url] [/quote] As for your problem, there's quite a few solutions. You can probably just use XShape to define the clipping regions. You should probably use a GL context to render a transparent window though, and avoid using XCB imo.
I've gotten transparency working with XLib, but drawing 80 bars 60 times a second is making X run at 5-10% cpu. Not really what it's mean to do. OpenGL (or maybe vulkan?) is next once I'm happy with the audio processing side of things.
Speaking of OpenGL / Vulkan, I've been considering learning one of the two (Most likely Vulkan, seeing as it's newer and literally the successor to OpenGL) and putting it to some action as a bit of a learning experience. Any suggestions for learning resources / what I should make?
[QUOTE=J0SEPH;52579232]Speaking of OpenGL / Vulkan, I've been considering learning one of the two (Most likely Vulkan, seeing as it's newer and literally the successor to OpenGL) and putting it to some action as a bit of a learning experience. Any suggestions for learning resources / what I should make?[/QUOTE] A coloured rotating triangle. :v: (but seriously that will already teach you a lot) Also make sure your tutorial uses the same version of OpenGL as you have installed, or you're in for a world of pain...
[QUOTE=J0SEPH;52579232]Speaking of OpenGL / Vulkan, I've been considering learning one of the two (Most likely Vulkan, seeing as it's newer and literally the successor to OpenGL) and putting it to some action as a bit of a learning experience. Any suggestions for learning resources / what I should make?[/QUOTE] Probably not a good idea to learn Vulkan first. Vulkan does not replace OpenGL; this is a misconception. OpenGL will continue as the easy to use high level graphics library people should generally use. Vulkan is for people who absolutely need to squeeze every drop of performance out of the GPU. It's much lower level, and much harder to work with. Even if you're deadset on learning Vulkan, learn OpenGL first, get the concepts and a good foundation down, then learn Vulkan.
Well that's annoying: building gr-osmosdr from source is v0.1.4-98-gc653754d , doesn't support the hardware I need (rtlsdr), but installing from the Ubuntu repository (v0.1.4) supports it. That never happens to me, its always the reverse!
Can you look into the Ubuntu source packages and see if it has any patches?
[QUOTE=J0SEPH;52579232]Speaking of OpenGL / Vulkan, I've been considering learning one of the two (Most likely Vulkan, seeing as it's newer and literally the successor to OpenGL) and putting it to some action as a bit of a learning experience. Any suggestions for learning resources / what I should make?[/QUOTE] Start here: [url]https://open.gl/[/url] Made by a local facepuncher Overv, and it's a great place to learn modern OpenGL. Ignore Vulkan for now, it's not going to improve performance or add features for you.
Behold! Two whole triangles with transparency and ~~color~~ [img]http://i.imgur.com/N39JZi9.png[/img] [editline]18th August 2017[/editline] I wonder if I can do a FFT in shaders.
Sorry, you need to Log In to post a reply to this thread.