General Linux Chat and Small Questions v. I broke my Arch Install
6,886 replies, posted
[QUOTE=rilez;45622722]Oh my god his room is a mess
[editline]7th August 2014[/editline]
Just went through and watched a bunch, all the kernel devs have gross cluttered rooms[/QUOTE]
No time for cleaning up room. Kernel cleaning up is mre important.
:v:
Turns out fail2ban is working perfectly on my server.
Fucked up with WinSCP 2 days ago (if you save a profile with only hostname and port, it'll prompt you for password on connect, but not username, so it tries to login with no username), and it banned me.
First I thought my server was down, then I connected to the server through my Tor hidden service, checked ssh server status, and then /var/log/fail2ban.log
Well, at least that's tested now. I never got around to figuring out how to unban myself, since the bans are set to time out in 15 minutes.
I was thinking of moving over to linux because I quite like the style of ubuntu, but is there any reliable way of playing windows only games on linux? (other than wine which either can't run it or runs it at a terrible fps) I really cbf switching back and forth between windows and linux to play games I want.
[editline]8th August 2014[/editline]
Games like L.A. Noire, Far Cry 3, Battlefield 3, Sleeping dogs, etc.
[QUOTE=isnipeu;45627837]I was thinking of moving over to linux because I quite like the style of ubuntu, but is there any reliable way of playing windows only games on linux? (other than wine which either can't run it or runs it at a terrible fps) I really cbf switching back and forth between windows and linux to play games I want.
[editline]8th August 2014[/editline]
Games like L.A. Noire, Far Cry 3, Battlefield 3, Sleeping dogs, etc.[/QUOTE]
Wine or a VM would be your best bets.
Next machine I build, I'm splurging money on all the gear so I can run a Windows VM for games.
[QUOTE=nikomo;45627891]Next machine I build, I'm splurging money on all the gear so I can run a Windows VM for games.[/QUOTE]
For my next machine, I'm gonna make sure it supports Intel VT-d.
[QUOTE=Lyokanthrope;45627870]Wine...[/QUOTE] [QUOTE](other than wine which either can't run it or runs it at a terrible fps)[/QUOTE]
[QUOTE=Lyokanthrope;45627870]...or a VM would be your best bets.[/QUOTE] Wouldn't a VM be laggy for games too? Don't see the point in moving over if I have to just use a VM to play games like that at a lower framerate than I would just running windows.
VM with a GPU passed through to the VM gets you about 95% performance, when compared to just running natively, which is actually pretty good, and you get to use Linux.
You need to have the hardware setup for it, though.
WINE and VMs are pretty much meant for Linux users that want to play games, not for Windows users that don't actually give a shit about all the good stuff you get from using Linux.
[QUOTE=andypopz;45622456][video=youtube;HSgUPqygAww]http://www.youtube.com/watch?v=HSgUPqygAww[/video]
Dude uses a "walking desk". Very cool.[/QUOTE]
Christ, he still sounds Finnish - even if his native language never was Finnish and though he hasn't lived in Finland for... like, over 16 years?
His wife speaks Swedish, the kids probably know Swedish because of the parents, and it ends up being a sort of "family communication language", and he works at home, instead of an office, so it's actually fairly understandable if he hasn't exactly assimilated, as far as language goes.
Anybody of you guys using [url]https://coreos.com/[/url] At Home/work?
Thinking about using it for some servers.
[QUOTE=kaukassus;45629886]Anybody of you guys using [url]https://coreos.com/[/url] At Home/work?
Thinking about using it for some servers.[/QUOTE]
I thought about it, but then I decided that a really well-configured SliTaz server uses less resources because there's no overhead. I could see a use for it if you're running various OS-specific applications though.
I looked at CoreOS, and it seemed to be one of those OSs that you run at a datacenter, where you have to be able to redeploy 10,000 servers in a minute, and not something I'd run at home.
[QUOTE=isnipeu;45628663]Wouldn't a VM be laggy for games too? Don't see the point in moving over if I have to just use a VM to play games like that at a lower framerate than I would just running windows.[/QUOTE]
without doing a form of passthrough, very laggy. stuff won't be supported either as far as I know. I ran gmod through it a few days ago, and shadows weren't working, texture resolution wasn't correct, all sorts of problems. I haven't really done my research on VM's as I don't use them a lot, but I'd assume it's because the driver the VM uses for GPU stuff is very basic.
if you have two GPU's (dedicated + dedicated, or dedicated + onboard) and a CPU with VT-d support, you can do passthrough which should work really well from what I've read.
there's also wine, but it's very hit and miss. sometimes performance is great, sometimes it's terrible, sometimes stuff won't even launch.
Wine's performance is underrated imo, it can run a lot of games very well as long as you aren't trying to play anything too recent - the wine devs need time to catch up when something new is released usually.
I'm not sure if this is the right place to ask questions but here goes:
I run a garrysmod server on a Ubuntu 14.04 server. It's using GNU Screen as a daemon which it runs on. This have worked fine so far, but now I want my webpage (hosted on same server) to be able to interact with the server. I've read up that I should call a "stuff" command to the screen, but since the screen is initialized on another user than what the webhost is, I can't find the screen session. I've also read up on something called "named pipes" but have no clue on how to set that up.
Here's my startup script:
[code]USER="steam"
BINARYPATH="/home/steam/gmod"
BINARYNAME="gmod_start"
SCREENREF="gmod"
PIDFILE="gmod.pid"
##Starts the daemon
start-stop-daemon --start --chuid $USER --user $USER --chdir $BINARYPATH --exec "/usr/bin/screen" -- -dmS $SCREENREF $BINARYPATH/$BINARYNAME
##Grabs the process PID and shoves it into the pidfile for future use
pgrep -f $BINARYPATH/$BINARYNAME|head -n1 > $PIDFILE
##Some multiuser testing
#screen -S $SCREENREF -p 0 -X multiuser on
#screen -S $SCREENREF -p 0 -X acladd donkie
##Grabs PID again
PID=$(pgrep -u $USER -F $BINARYPATH/$PIDFILE 1>&1);
##Sets core affinity to core 4
taskset -c -p 3 $PID;[/code]
Half of this is probably pretty backwards but it's what I've been able to cook together with my small shell knowledge.
[QUOTE=Donkie;45632542]I'm not sure if this is the right place to ask questions but here goes:
I run a garrysmod server on a Ubuntu 14.04 server. It's using GNU Screen as a daemon which it runs on. This have worked fine so far, but now I want my webpage (hosted on same server) to be able to interact with the server. I've read up that I should call a "stuff" command to the screen, but since the screen is initialized on another user than what the webhost is, I can't find the screen session. I've also read up on something called "named pipes" but have no clue on how to set that up.
Here's my startup script:
[code]snip[/code]
Half of this is probably pretty backwards but it's what I've been able to cook together with my small shell knowledge.[/QUOTE]
If you are using apache as your web server then you can just start apache (initctl start apache or something like that) and then interact with your server from your serverside code.
I'm not completely clear on how you want the web site to interact with the gmod server so I'm not sure if this is correct, but if you give me more information I can look at it.
I want to send commands/stdin to the screen session/process, commands such as "lua_run blabla" or "changelevel gm_flatgrass". I'm running nginx. The problem is not the webhost end, but more on how I can create a path that lets me send commands from other users to that session.
I've tried doing "screen -S gmod -X stuff "changelevel gm_flatgrass"", which multiple forumposts says to, but it complains that the session was not found.
[QUOTE=Donkie;45633491]I want to send commands/stdin to the screen session/process, commands such as "lua_run blabla" or "changelevel gm_flatgrass". I'm running nginx. The problem is not the webhost end, but more on how I can create a path that lets me send commands from other users to that session.
I've tried doing "screen -S gmod -X stuff "changelevel gm_flatgrass"", which multiple forumposts says to, but it complains that the session was not found.[/QUOTE]
Oh, in that case just attach to your screen session and run the commands ':multiuser on' and ':acladd web-content' or whatever the nginx user is. (use ctrl-a, those are screen commands not bash commands).
Then you should be able to attach to the session from the web-content user.
Edit: if it yells to you about suid, run sudo chmod +s /usr/bin/screen and chmod 755 it.
[QUOTE=neos300;45633733]Oh, in that case just attach to your screen session and run the commands ':multiuser on' and ':acladd web-content' or whatever the nginx user is. (use ctrl-a, those are screen commands not bash commands).
Then you should be able to attach to the session from the web-content user.
Edit: if it yells to you about suid, run sudo chmod +s /usr/bin/screen and chmod 755 it.[/QUOTE]
How can I do this all from a shell script, without needing any user input?
[QUOTE=Donkie;45633968]How can I do this all from a shell script, without needing any user input?[/QUOTE]
You should just have to do the Ctrl+a commands once, from the screen session.
Then you can attach to it from a shell command like any other screen session.
Don't forget to add a newline to the stuff command to actually execute the command.
[QUOTE=lavacano;45601553]I want an audio loopback similar to Virtual Audio Cable, without having to rely on the use of arecord and a file in /tmp like Google seems to suggest. Preferably I'd like the method to use built in things in ALSA and/or PulseAudio but I'm not opposed to downloading and building some sort of module if I have to.
Any suggestions?[/QUOTE]
[url]http://askubuntu.com/questions/257992/how-can-i-use-pulseaudio-virtual-audio-streams-to-play-music-over-skype[/url]
This works for me
[QUOTE=kaukassus;45629886]Anybody of you guys using [url]https://coreos.com/[/url] At Home/work?
Thinking about using it for some servers.[/QUOTE]
Seems pretty cool, especially the updating whole system part.
Except that I don't really see why you would need to reboot the machine to remount root. Hell, you could even mount the other root partition and chroot to it, then kill all processes and restart them on the new partition.
I just got back from my week long holliday so I think I missed some stuff. But I got some news! I got this email two days ago;
[img]http://i.imgur.com/cjvaNcZ.png[/img]
I'm an influential fsf person now I guess.
[QUOTE=Mega1mpact;45641598]I just got back from my week long holliday so I think I missed some stuff. But I got some news! I got this email two days ago;
[img]http://i.imgur.com/cjvaNcZ.png[/img]
I'm an influential fsf person now I guess.[/QUOTE]
Do it, and add "Free Software Foundation contributor" to your CV.
He didn't sign his email with PGP, burn the heretic.
[QUOTE=nikomo;45641657]He didn't sign his email with PGP, burn the heretic.[/QUOTE]
How to make your Email look legit in 2 steps:
1. Add -----BEGIN PGP SIGNED MESSAGE----- to the top of the email
2. Add
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJT4U/xAAoJEM553pKExN6DY4oH/ihJDmcCSZ0sKqGbyzJqLrFY
KWCEXhfiN6hQJBrmeOvrbzlHsMH0LzYfgTVnc1nteAcnUXiBeqkgxwf+S1dmvoFr
DZSxC+9tQ68ho0YcLd7rpEMfsnwOQAB9BgX8GxxwMb8q5zZ9Bz3r9NKVF0P2D3cj
eeJ8Z3EGaKOteVhwAPVPeuTf7xwhqoqp4ujLgTL7BcaifqvGhi3+uo9/KcavE15d
eale3MuhbCIsAQeyB4SwgGwilE/oZTPTos4BNdUrIyxO4nDajbeLb1qsLSHYcirH
CA7++bTE9V6TvO1tBLVpeYdSAGcDKKUBHM6N+0UDwkR/Tp4oRyQ115Peo2H34ak=
=kFxZ
-----END PGP SIGNATURE-----
To the bottom of the email.
Congratulations, your email is now officially legit.
(I have never used PGP before, and I have no idea how it works with email :V)
Giving Linux a try for the first time. Just installed Zorin since my brother recommended it to me. Pretty nice so far, can't wait to play around with this more
[QUOTE=kaukassus;45641703]How to make your Email look legit in 2 steps:
1. Add -----BEGIN PGP SIGNED MESSAGE----- to the top of the email
2. Add
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJT4U/xAAoJEM553pKExN6DY4oH/ihJDmcCSZ0sKqGbyzJqLrFY
KWCEXhfiN6hQJBrmeOvrbzlHsMH0LzYfgTVnc1nteAcnUXiBeqkgxwf+S1dmvoFr
DZSxC+9tQ68ho0YcLd7rpEMfsnwOQAB9BgX8GxxwMb8q5zZ9Bz3r9NKVF0P2D3cj
eeJ8Z3EGaKOteVhwAPVPeuTf7xwhqoqp4ujLgTL7BcaifqvGhi3+uo9/KcavE15d
eale3MuhbCIsAQeyB4SwgGwilE/oZTPTos4BNdUrIyxO4nDajbeLb1qsLSHYcirH
CA7++bTE9V6TvO1tBLVpeYdSAGcDKKUBHM6N+0UDwkR/Tp4oRyQ115Peo2H34ak=
=kFxZ
-----END PGP SIGNATURE-----
To the bottom of the email.
Congratulations, your email is now officially legit.
(I have never used PGP before, and I have no idea how it works with email :V)[/QUOTE]
You need a -----END PGP SIGNED MESSAGE----- too.
I just use Thunderbird and Enigmail, Enigmail then uses GPG in the background to handle stuff.
If an email has been signed, it'll say it's been signed, and it'll attempt to automatically verify it, and if you haven't imported the person's public key yet, it'll give you one button to get the public key, import it, and then verify the mail.
It's quite convenient, actually.
Sorry, you need to Log In to post a reply to this thread.