ConfigServer (CSF) is advanced open-source firewall for Linux. If you are like me, I don’t really care much for the native firewalld that’s included with RHEL7 releases, and I’ve used APF for years which is basically just a frontend for iptables.
ConfigServer (CSF) is advanced open-source firewall for Linux. If you are like me, I don't really care much for the native firewalld that's included with RHEL7 releases, and I've used APF for years which is basically just a frontend for iptables.
One of my favorite tools that I find myself using quite often is called "ScreenCloud". It allows you to quickly select any area of your workspace, create an sized screen shot, and then upload it or export it off to their server, your Dropbox account or an SFTP server.
If you've recently performed upgrades, either to Ubuntu >16.x or Fedora >21 or the latest version of ScreenCloud, you may be experiencing the same pain that I just endured when launching the application.
I recently recompiled PHP on a server I own to upgrade it to the latest version. This particular server runs cPanel, which usually makes this otherwise tedious process much simpler. However, when recompiling mod_python it errors out with this message:
touch connobject.slo connobject.c: In function '_conn_read':
connobject.c:142: error: request for member 'next' in something not a structure or union
apxs:Error: Command failed with rc=65536
make: *** [mod_python.so] Error 1
I love my Dell XPS 13 because it's small, lightweight and fast. I also surprisingly enjoy using the touchscreen (much more than I thought I would before purchasing). However, because of its 13" screen and the very high resolution, it makes the scroll bars in firefox and other applications extremely tiny. Combine that with my fat fingers, finding the scroll bar became even more difficult.
Feel my pain?
Edit the file ~/.gtkrc-2.0 (create it if it doesn't already exist)
There's a ton of outdated information floating around the web on how to simply and effectively install Node.JS on CentOS, specifically one of my legacy boxes that runs 5.11. I spent about 15-20 minutes toying around with various hacky ways to do this. To save you the time, here's the easiest way I found:
On one of my local Ubuntu workstations at home, I sometimes have the need to send mail out using mailutils/mailx inside of scripts or on the command line. I also don't necessarily want/need to set up an entire mail server on my workstation. In addition, Verizon FiOS doesn't take too kindly to this for purposes of preventing malicious activity, SPAM, etc. They actually block outbound connections on the default SMTP port (25).
ownCloud is enterprise file sync and share that is self-hosted in your data center, on your servers, using your storage. ownCloud provides Universal File Access through a single front-end to all of your disparate systems. Users can access company files on any device, anytime, from anywhere while IT can manage, control and audit file sharing activity to ensure security and compliance measures are met.
WebDAV (Web Distributed Authoring and Versioning) allows you to "mount" your ownCloud content as a local mount point on your local Linux environment.
On one of my personal laptops (Dell Inspiron 17R), my attempts at using the function key combinations to change the brightness did not yield any results on Fedora 20, Linux Mint 17, or Ubuntu 14.10. The LCD brightness was stuck at "can barely see, but must conserve battery because I'm stuck on an island mode" (not a real setting, but might as well be).
The system has an integrated Intel graphics card, and if you're not sure what your system has you can check it here:
Run the command below in terminal to know what video card is used for the backlight/brightness:
Bash or the Bourne again shell, is a UNIX like shell, which is perhaps one of the most installed utilities on any Linux system. From its creation in 1980, bash has evolved from a simple terminal based command interpreter to many other fancy uses.
I recently purchased a Dell XPS 13 Ultrabook with the touch screen and immediately wiped the blazing fast SSD free of all Microsoft garbage. After installing the latest Fedora 20 64 bit, I was pleased to see that most all of the hardware worked out of the box...
Except the touch screen - one of the features I was most looking forward to using in meetings, etc.
Rest assured, it's easily brought to life.
Firstly, be sure to apply all yum updates to bring your system current.
If you are used to using Virtuozzo or OpenVZ containers and are looking to make the switch to the full virtualization solution KVM (Kernel-based Virtual Machine), you may find one very convenient feature missing: the ability to enter into a virtual environment from the parent node.
Of course, the most popular solution used to access KVM VM is simply connecting via SSH. But what if your key gets removed or the SSH service becomes inaccessible? Rest assured, you can use this little trick to gain access directly to a root shell and manage your VM:
In Ubuntu 11.10 and newer versions, GRUB2 will display all kernels installed on your system at boot time. If you're like me, you probably get annoyed with a lengthy list of out of date kernels to scroll through in your GRUB boot menu.
Let's be real, no one really wants to boot a kernel from last year with bugs and vulnerabilities when you have nice new shiny kernels to choose from. Thankfully, the latest versions of GRUB2 installed in Ubuntu automatically display the latest kernel and hides the older kernels that you may have installed.
I use synergy to control several different linux systems in my office using a single keyboard and mouse.
The only issue I have with this software is it does not (yet?) natively support SSL encryption for your traffic. This is problematic when transmitting plain-text passwords between systems, which I do often.
Those of you who use OpenProj for project management on Linux may receive an erroneous error from the software application complaining that your Java vendor is "Oracle" rather than "Sun".
Obviously, they are one in the same , but the OpenProj software isn't smart enough to know this (as of the authoring date of this article, version 1.4).
Here's an easy fix to get around this and trick the application into working with the Oracle java installation. The error:
The default mySQL configuration for InnoDB database tables creates a massive storage file called 'ibdata1'. Basically, the ibdata1 file contains the table data of your InnoDB tables. In large production environments, this file can grow to be extremely large. On some of the servers I administer, I've seen this file exceed sizes of 30GB. Fixing the file size obviously has the effect of limiting the total amount of data which can be stored in InnoDB tables, so that's not a viable option.
GNOME 3's "screensaver" leaves much to be desired, and if you're an old school X user like myself, you probably just want the good ole' screensaver back. Here's how to install it using the following commands (this will also remove gnome-screensaver):
If you find yourself wanting or considering checking binary files into your source control system (Git, SVN), you're doing it wrong.
Source control is optimized for tracking changes to source files. When you have multiple revisions of a source file, the system has stored the original file and the changes between revisions. This is good.
Mozilla Firefox 12 has not yet been released, it is in Beta state at the moment, but it will bring features such as the ability to paste URLs in the download manager window, line numbers for the Page Source viewer, the title attribute supports line breaks, Find in Page improvemens to center search results, added column-fill CSS property, added support for the text-align-last CSS property, added experimental support for ECMAScript 6 Map and Set objects.
Occasionally you just want a bit of piece of mind about your server or Linux install. You may suspect there is somebody who has hacked your server or even something changed by a package install that shouldn't have been. Heres a couple of ideas on how to do a quick ‘health’ check on he md5sum of binary packages.
Debian based people should install dlocate and use that
I've been doing Linux system administration for well over ten years, and I've used patch files often. I've never actually had the need to create one until today. To my surprise, I discovered how blatantly simple and easy it is. I've always assumed it was some sort of black magic involving unicorns and rainbows. Sure, there are more complex ways to do this but for most needs this will work for you.
Whats a patch?
Unhackable Security is a Linux security consulting firm specializing in a wide array of technologies and proven practices which make your server virtually unhackable.
Ksplice is an extension of the Linux kernel which allows system administrators to apply security patches to a running kernel without having to reboot the operating system. Ksplice takes as input a unified diff and the original kernel source code, and it updates the running kernel in memory.
Python is a programming language that lets you work more quickly and integrate your systems more effectively.
I’ve been programming primarily in Python lately, and had the need to open a socket to a MySQL database to pull data. By default, older versions of Python does not currently have a mySQL library that can easily interact with MySQL databases. Rather than upgrading Python and possibly breaking your existing scripts, this article will teach you how to open a MySQL socket using MySQLdb from the DB-API.
I recently stumbled upon an awesome tool called Namebench. Namebench it’s a small program wrote in python that search for the fastest DNS server near to you. Namebench runs benchmarks using your web browser history, tcpdump output, or standardized datasets in order to provide an individualized recommendation. Namebench is completely free and does not modify your system in any way. It’s currently a “Google” project.
I’m a huge fan of the oldschool “patch” command, and sometimes in the wild I use Gitorious’ “raw diff” view which puts the changes in easy to read patch format. However, you can also do this on the command line to create a patch file that can be applied using “patch -p0 < patchfile".
git diff –no-prefix > patchfile
When you want to apply the patch to your old local copy:
I just upgraded to Firefox 6 on Ubuntu. The new version doesn’t have any major interface changes but is 20% faster than Firefox 5. Startup time has also been improved especially for those like me with a lot of tabs and groups. Firefox 6 uses about 8% less resources than the older version so it doesn’t torture your resources as much. Firefox 6 handles zoom better and looks a lot cleaner when you zoom in on a page.
It’s this easy:
To migrate from Virtuozzo VPS to OpenVZ you must “rsync” root area to private area to avoid incompatibility of OpenVZ and Virtuozzo Cache Templates. 1. Create your VPS with id 3 using your desired template (for example)
# vzctl create 3 –ostemplate ubuntu-11.04-x86_64 –conf unlimited
Creating container private area (ubuntu-11.04-x86_64)
Performing postcreate actions
Saved parameters for CT 3
Container private area was created