![]() |
|
This thread is locked; no one can reply to it.
![]() ![]() |
1
2
|
Script kiddies! |
bamccaig
Member #7,536
July 2006
![]() |
I hacked up this script when I first started using Debian because I was coming from Fedora where a single command would update packages and I was afraid that I'd forget the "update" part. Additionally, I found myself getting into trouble back in the day with plain "upgrade" versus "safe-upgrade". I typically set this up as a Cmnd_Alias[1] with limited arguments in sudoers with NOPASSWD for my user account so that I can easily sudo dist-upgrade on any (so far) distro to keep the system up-to-date. 1#!/bin/bash
2
3die() {
4 warn "$@";
5 exit 1;
6}
7
8not_impl() {
9 die "$distro is not yet implemented...";
10}
11
12unsupported() {
13 die "Unsupported distribution: $distro";
14}
15
16warn() {
17 echo "$@" 1>&2;
18}
19
20for d in debian fedora gentoo; do
21 for s in -release _release -version _version; do
22 if [ -f "/etc/$d$s" ]; then
23 distro="$d";
24 break;
25 fi;
26 done;
27done;
28
29if [ -z "$distro" ]; then
30 die 'Failed to identify distro.';
31fi;
32
33warn "Looks like $distro...";
34
35case "$distro" in
36 debian)
37 set -e;
38 /usr/bin/sudo /usr/bin/aptitude update;
39 /usr/bin/sudo /usr/bin/aptitude safe-upgrade;
40 ;;
41 fedora)
42 /usr/bin/sudo /usr/bin/yum update;
43 ;;
44 gentoo)
45 not_impl;
46 ;;
47 *)
48 unsupported;
49 ;;
50esac;
Caveat: I'm not 100% sure that aptitude or even yum[2] cannot fork an interactive shell session or arbitrary command given these commands. I gather that aptitude has a robust interactive mode, and even normal operations can prompt the user for confirmation. I'm not sure if the user is able to do something to spawn a process from that, which would allow somebody to easily compromise any of my systems by compromising my personal account... And now I've revealed this weakness to the Internetz. The need arose because I usually run distros without the full desktop experience of Gnome/KDE/etc so I didn't have a GUI program prompting me regularly to update packages. That is, until I discovered MATE, a fork of the old Gnome 2 project. I've been trying that out for the last few weeks and am relieved that people took the time to salvage this system. References
-- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Bruce Pascoe
Member #15,931
April 2015
![]() |
Regarding your second footnote, I usually use Ubuntu myself. I tried Fedora because I read that's the distro Linus Torvalds prefers, and ended up hating it. Debian-based distros are much easier to work with. What really struck me is that the UI, at least in Fedora 23, seems to have been designed for tablets (Fedora's gedit is a great showcase of this). People complained about Win8, this is even worse.
|
bamccaig
Member #7,536
July 2006
![]() |
As a rule you have to know what you want from a desktop in Linux because there are many flavors and often many are supported on each distro (and you can always roll your own if you aren't satisfied with that and have the skill). I don't prefer any of the default desktop environments these days because distros usually prefer Gnome 3, which I hate, or KDE which I've never had good experiences with and seems like an extra resource hog. I am currently running Ubuntu Mate at home. I hate Ubuntu on principle, but it's a compromise between being able to play games decently without having to return back to Windows... I hope it's temporary. I avoided the default Ubuntu release because I don't like Unity, plus I gather many or most of the spying facilities in Ubuntu are built into Unity (I haven't really done my homework yet to see if any remain in Ubuntu Mate). Prior to Ubuntu I've been running Debian for several years, both on the server and desktop. I rather like Debian, but due to the community split of ffmpeg it has left the stable version of Debian without many codecs and multimedia software... Which isn't entirely bad, but I stupidly have been keeping my music in a proprietary format instead of converting to a free one. But also most media acquired online requires proprietary codecs so you either don't watch or you need them... Another feature I lost in Debian jessie was the ability to stream movies to my PS3. I like Debian. It more or less respects my freedoms and choices, is stable, and does most things you could ask for. The only reason I have shied away from it on my desktop at home is because I was getting poor performance in Counter-Strike: Source which had me at a disadvantage against other players and I was hoping that Ubuntu would resolve that. I'm not sure if it's a placebo effect or not yet, but it does seem to have helped. At least, the one night I played so far in Ubuntu. I managed to play through Firewatcher the last couple of days too, but I had to turn the graphic qualities all to "low" to get a semi-reliable 15 fps... Barely enough to play through it, but it sufficed. I gather it's a Unity3D game so I think the Unity project just doesn't spend enough money optimizing the Linux side of things.. I also get a terrible fps in Interstellar Marines (like 2 fps). -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Niunio
Member #1,975
March 2002
![]() |
I'm like you, bamccaig. But now I'm using Xubuntu, and it makes my computer fly... ----------------- |
bamccaig
Member #7,536
July 2006
![]() |
I have run LXDE and Xfce for several months each and an more or less satisfied. LXDE is a little bit too bare-bones. Presumably you can include pieces of Xfce to gain a few features (one in particular that I like and depend on is manually rearranging the task bar of running applications). That is more or less happy, but it still is a bit bare. I don't think that Steam tries overly hard to cooperate with an Xfce setup, and visa-versa. That's not to say that you can't get it working, but I had more trouble than I wanted. Otherwise, I was satisfied. MATE is essentially Gnome 2, which I think most Linux users enjoyed. It's a bit heavier weight than Xfce for sure, but then my desktop isn't all that limited for resources either so I can probably afford to burn a few on a nicer user experience. I'd honestly probably prefer a tiled window manager. I have used raw Xmonad for long periods of time on my EeePC and in Windows-hosted VMs and more or less love it. I should probably try dwm too. In any case, I'm currently begrudgingly settling for MATE because I want to give things like "Steam"a chance to Just Work(tm) for a while. I've actually run Steam on a raw Xorg server launched from within xmonad. I don't know enough about what is missing with that setup, but it lead to very poor user experience. IIRC, Counter-Strike would completely fuck up Xorg's screen resolution, would occasionally hang, etc. I think I had various assortments of other issues too. This was back in Debian wheezy, the previous release, with Steam forced with a patched installer containing Ubuntu binaries... No telling which things were the culprit, but I digress. I only have so much energy to fight with gaming platforms before I just want to start playing the damn games. Alas, it seems as things get better they keep getting worse. I remember years ago (like college, so probably 9 or 10 years ago) installing Compiz on Fedora with Gnome 2 and getting a hardware accelerated 3D cube full of desktops. That was some flashy shit, and pretty damn cool. It also supported fancy (albeit, useless) effects such as raindrops on the screen. Pretty cool stuff to see. I imagine that still exists somewhere in the Linux sphere, but I'm sad to see that nothing practical seems to have spawned from it [yet]... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Chris Katko
Member #1,881
January 2002
![]() |
I use Xubuntu. But on my Chrome book I installed a Linux distro built specifically for my model. It came with Unity. At first I hated it. Now I FREAKING LOVE IT. I hate that you can't customize it. I hate that it basically uses almost every combination of meta keys so there's nothing left for the user. HOWEVER, the tab and virtual space keys are absolutely amazing. It's like Windows with windows_key + left/right/up/down on crack. I can take any window, maximize it, move it to the left half or right half the screen, or move it across virtual desktops with only combinations of meta keys and the arrow keys. Shift. Shift control. Alt control. Alt shift control. All of those get used and either move, resize, or move virtual desktop. When you have a very limited screen space, like a netbook, it's wonderful. It's the best, closest thing you can get to a tiling window manager without actually going for one. I have four virtual desktops, all horizontal. Unity can also have VERTICAL virtual desktops! But I find that with small arrow keys, and a small screen, you either accidentally move windows up/down, or you get lost and forget where your window is across 8 freaking virtual desktops. And of course, the thing has a Celeron processor (still better than an Atom for that year) so there's no way I can multitask enough to fill more than four. [out of order second edit] One more Linux program I always install is Guake. It's a Quake-style drop-down console. It supports tabs and transparency. But the biggest thing is I just hit F11 and BOOM, it shows up over whatever I'm doing. I hit F12 and it's full-screen. F11 again and it's gone. For certain, very specific tasks, it's a life-saver when you have to periodically check a terminal, or refer to two split windows AND a terminal, etc. It also doesn't change when you move virtual desktops so it's one, static, drop-down terminal (plus terminal tabs) that you can keep while moving around virtual spaces. When I'm working with Guake and Unity virtual desktops and people see me moving without leaving the keyboard, they think I'm some sort of magician. Click click click click, "here's all the computers on the network that aren't correctly joined to the domain." [edit] Speaking of OS's. I was ALMOST ready to upgrade to Windows 10 last night. I know there are TONS of kernel improvements past 7. Whereas pre-8 kernel supported a suspend state for processes, 8 and higher actually uses that state and supports it much better. Suspending a process STOPS ALL CPU usage and can swap all memory to virtual. You can leave something up, freeze it, and not have to worry that VLC's developers are too stupid to devise a pause feature that doesn't absorb full CPU cycles. I know Metro-apps are automatically suspended when not in use. I'm not sure if others are. HOWEVER, even yesterday, they're still coming out with the horrible amounts of tracking Windows 10 does. It really looks like they subsidized the cost of Windows 10 by whoring out their users data. Now instead of being able to track someone when they visit a site, why not track every single click? Apparently a computer completely idle will open connections to over 50 IP addresses and make over 300-connections in an 8-hour period... with ZERO user interaction. That's despicable. It's also a huge freaking HIPAA violation. You can't run an OS that sends people's clicks over the internet in a medical office. That's illegal as hell. They're also sneaking those tracking features into Windows 7 and 8. But you can remove/disable those KBs. You cannot in 10. Even with every license box checked, it still logs out. Also, one last thing. Apparently, the only version that you're even allowed to opt-out is the highest, Enterprise edition. (But it still dials home.) So yes, they really did subsidize (whore) their OS out to advertisers to lower the price. Before this happened, I was really routing for Microsoft. I hate Apple's walled garden. Microsoft was making open-source changes. I was hoping they'd continue to be a more open, honest company. Now it turns out they've become the operating system ad-sense. -----sig: |
Bruce Pascoe
Member #15,931
April 2015
![]() |
Okay, I can't be the only one who sees the irony in a post complaining about tracking linking a Forbes article, which I can't read unless I disable Adblock. Not going to happen. That said, I'm running Windows 10 on my machines and love it, it's much more responsive than even Win8 (which is itself blazing even compared to 7). Then again I don't much care for wearing a tinfoil hat (I find them to be crippling), so there's that. I respect those that do, of course, so don't take that as me being condescending. edit: Anyway, getting away from the politics of it all (which is about as likely to generate light as the religious thread, and I'd hate to see this thread descend to that level), I can understand why everyone hates GNOME 3, having seen it firsthand in Fedora, but what I don't understand is the collective hard-on for GNOME 2. Back when that was the norm for most Linux distros, it was the biggest thing that kept me from using Linux as an everyday OS. To me it felt like a bastard child of Windows 98 and pre-OSX Mac, taking the worst of both. Given the choice between GNOME 2 and KDE 3, I'd pick the latter every time. Granted though, KDE 4 is even worse than any version of GNOME will ever be. I like to pretend it doesn't exist.
|
Chris Katko
Member #1,881
January 2002
![]() |
Bruce Pascoe said: Okay, I can't be the only one who sees the irony in a post complaining about tracking linking a Forbes article, which I can't read unless I disable Adblock. Not going to happen. I've seen that page with both Adblock Pro and uBlock origin. Maybe they just hate you specifically. Anyhow, direct source the article quotes: https://voat.co/v/technology/comments/835741 [edit] Damn it, now they deleted their post? One of the F'd up things is tracking that hits akamaitechnologies.com. An operating system bundling with an ad content delivery network is ASKING FOR TROUBLE. There's already a known virus for that specific network: http://blog.mitechmate.com/remove-deploy-static-akamaitechnologies-com-virus/ -----sig: |
|
1
2
|