Search Linux Apps without Fluff

Thought I’d try this while messing around in the repos on my PeppermintOS 7 installation of Linux, or GNU/Linux, if you prefer. I found it useful, because I was sick of browsing through the repositories only to find fluff after fluff.

Using wc -l at the end shows 9,691 which is still pretty sizable. I’m sure quite a few are being filtered out, unfortunately, but I can’t think of a way to avoid that at the moment. I’m quite happy with this many for now!

apt-cache search " " | sed '/[a-z;0-9]-/d; s/ - /£/' | column -t -s £ | sort | less

If you want to see only the package names on one column:

apt-cache search " " | sed '/[a-z;0-9]-/d; s/ - /£/' | awk -F "£" '{print $1}d' | less

This one could be a good base to use for searching. So, you could add this function to your .bashrc for more user-friendly searches:

function acs(){
read -p "Package name to search for: " package_search
apt-cache search " " | sed '/[a-z;0-9]-/d; s/ - /£ /' | awk -F "£" '{print $1}d' | grep "$package_search"
return
}

The 2nd line within that function, replace it with the following line if you want to see the descriptions as well:

apt-cache search " " | sed '/[a-z;0-9]-/d; s/ - /£/' | column -t -s "£" | grep "$package_search"

Yeah, so some of that isn’t exactly necessary, but I like playing around with this stuff and getting a layout that appeals to me.

I’m not sure what this will and won’t work on, so you’ll have to just give it a try. It probably will only work on Ubuntu-based installations, however. I’m using bash 4.3.46(1)-release, if that helps at all.

Let me know if you find this useful.

Keep up to date with Taut with Thought’s Twitter page!
https://twitter.com/tautwiththought

Linux and Microsoft

Windows 8.1 is still being supported, and they say will be until  January 9th, 2018. Windows 7 has, according to their site, been cut off though. A terrible decision, in my opinion, given the huge success of that OS. A lot of people have jumped ship because of Windows 10, and I don’t blame them.

Linux has a bit over 3% of the market share, according to Wiki’s graphs. Linux has been gaining ground for many years, while interest in various Windows iterations is dropping. Fewer people are using Windows as time goes by.

I use Linux (PeppermintOS 7, built on Ubuntu 16.04 LTS) more than ever now; it’s my primary OS and I rarely go near Windows. Thanks to privacy and glaring security concerns, I don’t think I’ll ever feel safe using Windows anymore, despite having used and loved them since Windows 3.1 at primary school. Linux has opened my eyes to a new way, ‘though it wasn’t an easy journey.

I don’t like the way Microsoft conducts their business and I don’t think they care about the customers at all, only money. I find them deceptive, manipulative, and underhanded.

Linux, however, is open source; it’s all about sharing, creativity, and freedom. There’s even a Hannah Montana distribution; ridiculous? Sure, but wonderful that someone was able to create that and freely share it. At least if you don’t like a developer of your chosen distribution, you can jump to another; it’s not like you’re short of options.

That said, I am, or at least was a gamer. I still dabble. I’d need Windows for gaming. Linux does support games, and I do have Steam on it, but the graphical performance in many games seems terrible or lackluster in comparison, at least in my experience.

I have a feeling I’ll eventually just let go of the many Windows-only games on my Steam account and stick with Linux indefinitely. I barely game anymore anyway.

With Linux gradually gaining ground and Windows steadfastly losing it, that leaves Linux an opportunity to really step up. I think it needs some serious work in both gaming performance and a more approachable UI for those uninterested in the command line interface (Terminal) before it’ll have a shot at some day besting Windows.

I’m all for choice though, so if Microsoft is offering what you want, that’s fine. There’s a lot of Linux fans that generally make it all really personal against users of Windows and probably Mac too, but that’s not where I’m coming from here — not at all.

My issue is with Microsoft.

Keep up to date with Taut with Thought’s Twitter page!
https://twitter.com/tautwiththought

Discovering Linux Commands

I’m reminded of the early stages of language learning; like when I was learning words the likes of die Katze and der Hund in German. It’s quite exciting. Of course, instead of German, it’s computer jargon!

I’ve been quite busy again today, trying to shovel more commands into my brain; really exercising that wonderful hippocampus. My focus for a large part of the day was both security and seeing what Mint 18 with the XFCE desktop environment is like. I wasn’t disappointed.

I now have a much firmer grasp of WAN security. Not in a super-scientific way, but an in-depth look into wifi security without crunching numbers and eating computer science books.

I again looked into Kali Linux (an OS used to test systems and their security) and learned about the little CLI program called wifite which, it turns out, can be installed from the default Mint 18 repositories, and I assume also the PeppermintOS 7 ones.

As for now, I discovered a document online (the link to which I’ve sadly lost) which shows rather a lot of Linux commands, however outdated they may now be. I’m able to tote the incredibly intelligent cal and date commands. However, something occurred to me: would it be possible to insert two commands at once? As it turns out, the answer is yes.

If you type > between commands, you can output the data into a file. If you type | between commands, you can “pipe” the command into another command (such as less) which is very handy for commands that have a rather large output.

Armed with this knowledge, it occurred to me that another similar symbol would suffice for typing in multiple commands. It wasn’t long before I stumbled onto the semi-colon. If you type, for example, cal ; time into the Terminal, it’ll indeed run both commands at the same time. Bonus! Unfortunately, it doesn’t seem to work for 3 or more commands at once.

The oft used sudo apt-get install, sudo apt-get remove, sudo apt-get autoremove, and sudo add-apt-repository ppa:[name] commands are mostly seared onto my head now, thankfully. I remember hating the need to ever type in all that when installing and uninstalling a program; it doesn’t really bother me now.

As I understand it, when you want to install a program that isn’t in your repository, the process is as follows:

sudo add-apt-repository ppa:[name]
sudo apt-get update
sudo apt-get install [name]

Usually at this point, it’ll be done and dusted, but in some cases you may need or want to update the program you downloaded, if for some reason it doesn’t come  updated. As for uninstalling, this is my usual method of choice, although I’d like to incorporate the –purge bit at some point:

sudo apt-get-remove [name]
sudo apt-get autoremove
sudo add-apt-repository -r ppa:[name]

Of course, if there was no need to add a special repository for the program, you can just ignore the add-apt-repository part. This is what works for me, but I’m lead to believe –purge goes above and beyond the call of duty to clean your system of a program.

You can just skip all the sudo-ing and start the commanding with sudo su, to permanently log in as Root (at least in that session) with an exit command to leave, but I’m advised against doing so as it can apparently be dangerous.

I’m getting tired typing all this out, so I’ll continue this in the next entry! I’m looking forward to some day reading all this again, then laughing at my relative Noob status.

Keep up to date with Taut with Thought’s Twitter page!
https://twitter.com/tautwiththought

Back to Linux – PeppermintOS 7

I might continue this as a new series of blog posts regarding my return to and journey through Linux via the distribution (distro) PeppermintOS 7, based on Ubuntu 16.04 with the default desktop environment (DE) of LXDE. If you’d like to see more entries in this area, please do let me know.

My previous experience with Linux was less than favorable, which I posted rather negatively about over in this entry: Linux fails me yet again! Granted, it was more of a rant than anything, but it’s a stark contrast to my recent experience, that’s for sure!

As for now? Glorious. I did run into issues getting Netflix to behave, but it took a few hours to find a solution as to how to get Netflix to work on PeppermintOS 7. So basically Netflix uses either HTML5 or the now discontinued Silverlight, version 4 or 5.

Silverlight is the only option here, it seems. That left me to search for an open-source alternative: the solution was something called Pipelight. There’s another bit of software called Moonlight, but if I remember correctly, it’s not longer in development.

Unfortunately, it wasn’t just as simple as installing Pipelight. I had to install an extension called UAControl on Firefox to tell Netflix I’m not on Linux. Because for some reason, the people behind Netflix indeed give a damn, and stop you playing media on it, simply because you’re on Linux. Way to make some money, guys! In the end, the problem was solved.

I’ve been saving notes, links, and other stuff for future reference, which I’m finding is an absolute necessity when dealing with a new language, as well as a new UI with new ways to install things; it can get quite overwhelming. Linux seems to be a case of it’s great if you know what to do, but if not, then it’s painful searches through site after site to find a potential solution.

Everything else seems fine. Skype is installed and working, thanks to the official site being kind enough to put up a deb for it; I’m surprised M$ provided that. Audio is working, video is working, and LAN is working. I’m very pleased. Oh yes, and f.lux is installed and functioning as intended.

I’ve had to do plenty of Terminal stuff, sadly. Some of it was complicated, but I guess prior experience has helped me better understand what I’m doing, rather than my just following commands blindly. The Terminal is required less, sure, but still not yet perfect. Deb files are the best though; they’re like actual setup executables you get in Windows; the way it should be!

In other news, today I got my hands on a nice lil HP 635 laptop on which a barebones, legitimate copy of Windows 7 – Professional was originally installed. Despite its AMD, APU graphics, PeppermintOS 7 seems to work on it just fine, showing the same experience I’ve had on the computer. It somewhat miraculously got the wireless, ethernet, sound, graphics, touchpad, and whatever else to work straight from the LiveUSB without even any Internet connection needed.

I’m feeling more comfortable with the Terminal and its commands, although I’m still far from being anything other than an amateur Terminal user. Now that I have a distro and/or DE that actually works, I feel like I can make some decent progress in better understanding Linux, and with that, better understanding the Windows iterations I’ve been using since I was a lil kid some bazillions of years ago.

On a side note, I learned about Domain Name System attacks recently, which was really eye-opening and helped me better appreciate not only how DNS works, but how to block sites from running or reroute them to something more appropriate, simply by editing the hosts file with a word processor; handy stuff!

I’m excited to see what I’ll discover next.

Keep up to date with Taut with Thought’s Twitter page!
https://twitter.com/tautwiththought