Skip to content

u/RayLomas

In this archive from Oct 2012 to May 2015

0
posts
42
comments
0
media
123
score

I have no experience with AppArmor, but with SELinux, you will run into hell trying to get it to work on a rolling-release distro. There are too many drastic changes, which frequently would blow up all your exceptions.

If you want to get a SELinux enabled and usable as desktop distro, either try with CentOS or Scientific Linux. You may also take a look at Qubes OS. It's a very interesting project, with a great, virtual-sandbox based approach to security (think Xen rather than chroot or LXC).

1 points

Yeah, that's one of the dumber ideas. While there are some people who prefer the new keyboard, I have yet to meet anyone who likes this new "solution" for buttons. Moreover, I don't really see how it may improve efficiency of anything - it seems that this was done purely for aesthetic reasons...

1 points

I don't know much about Macbooks, but I'm a ThinkPad user for last 7 years. Recently I got a new T540p, so some details can be useful for you:

  • ThinkPads generally work quite well on linux - ThinkWiki helps greatly.
  • Recently Lenovo switched from old ThinkPad keyboards to the new "island" one. I honestly hate that, the new keyboard (which is also used in X1) feels so fragile. It actually is fragile since the arrow key broke after 2 weeks. Fortunately it's user serviceable, so they just sent me a new keyboard, and I swapped it in 10 minutes.
  • If you learn to use trackpoint, you'll love it. It's so much more efficient than touchpads - you can type and move your mouse at the same time
  • They merged buttons with touchpad... it's a terrible idea - I needed some fancy synaptics config to get it to be reasonably useable, and I'm never 100% sure that I'll click the correct "button" when trying to middle-klick - old ways were better too.

Hope it helps.

7 points

Well... With e17 - just let's say I'm waiting for a release... since 2008 ;)

I quite often end up with cat stuff.jpg, but it's always due to sleep deprivation induced brain-fart. One day I'll probably write a wrapper for cat, which'll detect images and open some trivial image viewer next to current console.

[edit] - WTF!? e19.1? I've checked ~half a year ago and it looked like it's going to die soon. I'm pleasantly surprised, and I might actually give it a try.

2 points

Some people posted about security, so I'll drop my info too and paste some stuff I recently typed on /r/sysadmin :

  • I make sure to disable root login - it's just plain pointless to have it
  • setup fail2ban
  • use a non default port
  • setup portsentry
  • setup port knocking for SSH
  • use reasonably long passwords
  • keep everything up to date - in all honesty, with any reasonably secure password I'm more likely to get pwned due to an unpatched bug than due to pass breaking

While many will argue that port knocking is a -security-by-obscurity- measure, keep in mind that they're not the only security measure here. Together with portsentry and non default port it gives sweet results - eliminating 100% of bots attempting to brute force SSH.

3 points

I don't know how it's on arch, but on many distros amarok doesn't ship with mp3 support due to licensing issues. You might check how phonon is configured, but I think that by default it's using a gstreamer backend - if so it's a matter of installing gstreamer-ugly libs.

If I'm right it's hard to tell if it's Pebkac - probably just the package author didn't add them as (optional) dependencies. Surely I can say it's not a piece of shit - once you configure it, it works fine. Now it can be set up to resemble the old version from kde 3.X

6 points

If you want a system with no rolling updates, which is also more focused on being simple get Slackware. Be warned, that simple doesn't equal easy. Comparing it with arch:

  • No pacman and aur - slackware packages are simple tarballs, with no dependency management. Sometimes it's useful, but more often it's a pain in the ass. On the other hand, preparing Slackware builds is as easy, or even easier than preparing ones for Arch.
  • Packages without modifications or with minimal ones - you get as close as possible to what developers released
  • BSD-styled init, no systemd
  • As mentioned - simplicity and KISS are main design rules - if you're familiar with linux/unix it's very convenient, as you don't have to worry "where the fuck is Suse holding network configuration, and why is it overwriting my changes?"
  • It's the oldest still active Linux distro
  • New versions are whenever they're ready. Usually ~ once per year.
2 points

Sometimes you may end up with a non upgradeable system in this way, since there'll be no upgrade path between Foo version 1, and Foo version 3. You'll realize that you needed Foo version 2 in the meantime, and you missed that update. It's rare, but happens if you don't update for a few months.

4 points

Note - I haven't played any games for ~4 years or more.

I always had terrible experiences with Linux and ATI cards. I remember spending days cursing to get Beryl or Starcraft (1)/wine to work decently on my old ATI based desktop, and finally buying a cheapest GeForce available to replace it (keep in mind it was during AGP-slot times). Since then, a lot might have changed, but I'm still an NV only guy (even if it means paying a bit more).

1 points

Maybe networkmanager or any other kind of auto-magical-wtfy configuration system takes vmnet0 as your main connection? I imagine when there's no other net available, it's quite possible. If you're not using any network connection during that tests, I'd try to make sure that all network* daemons are off - NetworkManager in particular.

1 points
  • Check for subnet configs... 192.168 subnet is quite common, maybe you're getting ping replies from your neighbour ;) ?
  • Check iptables of the guest (or just flush'em)
  • Check iptables of the host (I doubt it's a case, but checking is still fine)
  • Check if your webserver listens on the right ip / interface (maybe there's wrong IP hardcoded in config)
  • Vagrant ssh by default will connect you via a tunnel, not through a virtual lan - check if you actually can ssh to it with ssh 192.168.56.101

[edit] If you're out of ideas you might also post your Vagrantfile, output of "route" on host and guest, ifconfig for host and guest, itpables --list on both, netstat --tcp on guest and nginx config

1 points

I recently got a Thinkpad T540p and I'm quite happy running Slackware on it, but there are downsides too.

What's good:

  • 1920x1080 resolution (15.6 screen)
  • Geforce video card - so you can get decent drivers (I hate ATI with passion, since radeondrm problems and lack of some glx options back in 2008)
  • card above supports up to 3 monitors
  • i5 2.60ghz
  • up to 16G ram (I have it maxed out, 'cause fuck swap)
  • keyboard is ok-ish
  • nice build quality (well, that's a must in real thinkpads)
  • iwlwifi-7260 wireless - hostapd works fine on it

What's bad:

  • I don't know what kind of moron conceived the idea that it should use a mini display port as digital output... I wasn't aware of that, and I had to make a shameful trip to a place selling Apple stuff (since 99% of users of those adapters are poor souls with MacBooks)
  • 4-pin audio jack, so I had to buy another adapter to split it to separate microphone and headphones jacks, that's a common trend in laptops unfortunately
  • page up and page down buttons placed above arrows... I know it's common but it's stupid
  • they replaced mouse buttons with a clickable touchpad - without some fancy synaptics config it's unuseable - with that config it's okayish, but I still liked my old R61 more in that regard
  • no keyboard light (backlight under keys instead of it) - I liked the small lightbulb on the lid from old thinkpads, since it was possible to use it for reading some small paper notes, not only for typing
  • no physical cover for the camera... duct tape isn't a problem but looks quite silly
  • function keys are media keys by default, and you have to use "Fn-lock" to make them behave like function keys - inconvenient, also I miss separate volume up/down buttons

[edit] Untested:

  • Battery life - although, I expect that with enough RAM I could completely stop disk to greatly prolong it
5 points

Keep in mind, that if such mount works, your /mnt will point exactly your /, and after chrooting, you'll be playing with your fedora filesystem. If you're looking at this part https://wiki.archlinux.org/index.php/Installation_guide#Mount_the_partitions note, that they mentioned formatting them in that article just before that.

[edit] I tried it on my Mint VM, and it's quite funny (or ridiculous, depending on your point of view)... I didn't suspect that it will handle directory loops so nicely.

# mount -o bind / /mnt/wtf
(...)
virtual-machine ~ $ cd /mnt/wtf/
virtual-machine /mnt/wtf $ ls
bin  boot  cdrom  dev  etc  home  initrd.img  lib  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var  vmlinuz
virtual-machine /mnt/wtf $ cd mnt/wtf/
virtual-machine /mnt/wtf/mnt/wtf $ cd mnt/wtf
-bash: cd: mnt/wtf: No such file or directory
virtual-machine /mnt/wtf/mnt/wtf $ cat /etc/mtab | grep wtf
/ /mnt/wtf none rw,bind 0 0
3 points

I don't know what you're trying to achieve, but you need mount -o bind to mount a directory over another directory...

But mounting / over /mnt doesn't sound right to me.

[edit] If you're trying to mount a root of a new install in order to chroot to it, then you need something along mount /dev/sdb666 /mnt (assuming that sdb666 is your newly formatted root partition), afterwards move needed stuff (I guess pacman + others) around, and chroot into /mnt afterwards.

3 points

Replacing one of your lightbulbs with a LED light will save you way, way more money than spending a few hours with powertop.

Also, as others stated, some settings can be inconvenient or potentially harmful (for example - caching disk stuff for as long as possible is fine on laptops, since they have batteries as a backup power source, for a desktop it's not a case).

7 points

If these options did "fix" the problem ("fix" since it's a dirty workaround, not a solution) then I'm almost sure it's due to the router that's between you and hosts that you're connecting to. Since you're not getting this issues with hosts inside your local network, I'm pretty sure it's due to one responsible for handling NAT.

I'm not a network specialist, but my guess is that the faulty routing device correctly handles all outgoing SSH data, but, when data is returned from the SSH server, and it exceeds the amount that's handled on the fly, it's somehow queued (?), and is not handled until any data from the client is received. Therefore, forcing your SSH client to send keepalive data every second limits the delay to less than 1 sec. That's why this is a workaround, and not a real fix.

If you can access settings of your router, you might try messing around with it. If you can not, I guess nagging your provider is the only way to go.

I also saw one reply suggesting that messing around your MTU might help. Under normal circumstainces it shouldn't, but since there's a buggy router somewhere there, it's worth a shot. So, maybe try changing your settings to either smaller than default 1500 or bigger, for example:

# ifconfig ppp0 mtu 1000
# ifconfig ppp0 mtu 2000

(change ppp0 to whatever your network interface is called, probably eth0 or wlan0).

2 points

Server indeed. I should have looked into the man before replying.

You're also right about -o - it's indeed a quicker way for a one time test. ~/.ssh/config is a fine suggestion too too, but If the problem is related to his NAT, and bound to occur with every outside-host, /etc/ way will give him less hassle, for example if some daemons running as different users need SSH.

1 points

Could you please try to add:

ClientAliveInterval 1

ClientAliveCountMax 10

ServerAliveInterval 1
ServerAliveCountMax 10

To your /etc/ssh/ssh_config file?

Or simply run:

$ ssh -o ServerAliveInterval=1 -o ServerAliveCountMax=20 ...

For me it sounds like an issue with nat. This keepelive is more an attempt to diagnose it than a solution, since 1 second delay isn't nice anyway, and it's not what keepelive setting was added for.

Edit: corrections

6 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.