background preloader


Related:  Devops

Ubuntu Linux, Permissions and a Local WordPress Install | Jason G. Designs by Jason Gonzalez Posted in Categories: Articles Upon installing LAMP and WordPress 3.3 on my local computer, I ran into a couple issues when trying to put my own previously created themes into the wp-content/themes directory. Mainly, it was the “Connection Information” screen that may pop up when installing a theme, not being able to access the /themes directory and the Manage Themes screen not recognizing themes once I had access. This article describes how I researched then remedied those. Getting Rid of the “Connection Information” screen After locally installing WordPress in Ubuntu Linux 11.10, I was asked to provide an FTP hostname, username and password when trying to download a theme. First, we need to see what user Apache is running under. Now, you should be able to download themes and plugins and bypass the Connection Information screen. Making sure WordPress’s Manage Themes Screen Can See Files Dropped into the /themes/ directory

Bigcommerce Engineering — Recovering Redis Data with GDB We recently had an incident where we had a Redis instance blocked on writing to disk, hung inside the kernel. Through a variety of other circumstances this meant the only up to date copy of business critical data was in memory on a single machine, multiple independent replicas and backups were unavailable, and that machine could crash at any moment. The problem was eventually solved without data loss of any kind due to our Techops team being utterly brilliant, but during the “incident” a number of ideas that would otherwise be dismissed as absolutely crazy were discussed. One of the ideas was based on the simple idea that redis was an in-memory database. Although mostly not serious, at least to start with, as options lessened the idea of taking a core-dump and picking it apart looked more and more like a straw worth clutching at. Given you’re at point of desperation, you’re probably going to be limited in either time or what you can do. GDB Helping A screenshot of when you tool the dump!

Viber available for Linux, Install in Debian/Ubuntu/Linux Mint/other Ubuntu derivatives (Currently for 64bit) Install new version of Viber in any Debian/Ubuntu/Linux Mint/other Ubuntu derivatives (Currently available for 64bit/amd64/x86_x64) Viber is cross-platform application (iPhone, Android, Windows Phone, Blackberry, Windows, Mac, Symbian, Nokia and Bada devices), it allows users to send free messages and make free calls to other Viber users, on any device and network, anywhere in the world. Viber's millions of users call, text, send photos and locations to any other Viber user, anywhere, from iPhone and Android phones. Viber's voice calls, delivered over 3G or Wi-Fi, offer better sound quality than carrier networks. Features:Best-quality voice callsText, photo and sticker messagesGroup conversationsFull sync between your mobile and PCTransfer ongoing calls between devicesNo registration, passwords or invitations requiredTo install Viber (64bit only) in Ubuntu/Linux Mint open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal: That's it

rtop - Remote Server Monitoring over SSH Install PowerTOP 2.1 In Ubuntu 12.04 Precise Pangolin Via PPA PowerTOP is a command line tool that helps diagnose issues with power consumption and provides suggestions on how to improve power usage. PowerTOP 2.1, released a few days ago, introduces support for Intel GPUs and for cores without P-states, a new manual page along with an option to specify workload to run during measurement and an option to suppress output to the terminal. Install PowerTOP 2.1 in Ubuntu 12.04 via PPA The latest PowerTOP 2.1 is available in the Ubuntu 12.10 official repositories, and for Ubuntu 12.04 in the main WebUpd8 PPA. Add the PPA and install PowerTOP 2.1 using the following commands: sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install powertop The latest PowerTOP 2.1 source can be downloaded from HERE. Usage To use PowerTOP, you need to run it as root: sudo powertop PowerTOP doesn't just diagnose power consumption issues, but it can also provide solutions. sudo powertop --html=powertop.html

Docker GitLab by sameersbn The quickest way to get started is using docker-compose. wget docker-compose up Alternately, you can manually launch the gitlab container and the supporting postgresql and redis containers by following this three step guide. Step 1. docker run --name=postgresql-gitlab -d \ --env='DB_NAME=gitlabhq_production' \ --env='DB_USER=gitlab' --env='DB_PASS=password' \ --volume=/srv/docker/gitlab/postgresql:/var/lib/postgresql \ sameersbn/postgresql:9.4 Step 2. docker run --name=redis-gitlab -d \ --volume=/srv/docker/gitlab/redis:/var/lib/redis \ sameersbn/redis:latest Step 3. docker run --name='gitlab' -d \ --link=postgresql-gitlab:postgresql --link=redis-gitlab:redisio \ --publish=10022:22 --publish=10080:80 \ --env='GITLAB_PORT=10080' --env='GITLAB_SSH_PORT=10022' \ --volume=/srv/docker/gitlab/gitlab:/home/git/data \ sameersbn/gitlab:7.10.4 NOTE: Please allow a couple of minutes for the GitLab application to start.

Things to do after installing Ubuntu 12.04 Precise Pangolin  ·  How to Ubuntu After Installing Ubuntu 12.04 Precise Pangolin, there are a wealth of things that need to be dealt with, including Hardware Drivers, DVD, Audio and Video Codecs, Archiving formats, generally useful stuff. These instructions presume you are proficient with PPAs, .Debs, and other terminal commands, Ubuntu Tweak, and require a full set of video, audio, and archive codecs, as well as Skype, Flash, and a truck-load of wallpapers. Warning Using the sudo command can result in severe system damage. Make sure you type commands correctly, or copy and paste the entire code. 1. If the Additional Drivers dialogue has not opened, and does not appear as an icon in the system tray, you may not require any Additional Drivers. Once the Additional Drivers program has finished searching for new drivers, it will open a dialogue similar to the one to the left (above on mobiles). To learn which driver you should be activating, if any at all, you should do some research into the component it applies to. 2. 3.

Linux Performance Monitoring and Tuning Introduction This is the 1st article in our new series on Linux performance monitoring and tuning. Linux system administrators should be proficient in Linux performance monitoring and tuning. This article gives a high level overview on how we should approach performance monitoring and tuning in Linux, and the various subsystems (and performance metrics) that needs to be monitored. To identify system bottlenecks and come up with solutions to fix it, you should understand how various components of Linux works. For example, how the kernel gives preference to one Linux process over others using nice values, how I/O interrupts are handled, how the memory management works, how the Linux file system works, how the network layer is implemented in Linux, etc Please note that understanding how various components (or subsystems) works is not the same as knowing what command to execute to get certain output. On a very high level, following are the four subsystems that needs to be monitored. CPUMemoryI/ONetwork 2.

dphys-swapfile - set up, mount/unmount, and delete an swap file Ubuntu manuals hardy (8) dphys-swapfile.8.gz Provided by: dphys-swapfile_20061020-1_all dphys-swapfile - set up, mount/unmount, and delete an swap file dphys-swapfile setup|swapon|swapoff|uninstall dphys-swapfile computes the size for an optimal swap file (and resizes an existing swap file if neccessary), mounts an swap file, unmounts it, and and delete it if not wanted any more. There is only one parameter, an command, which can be either of these: setup Tells dphys-swapfile to compute the optimal swap file size and (re-)generate an fitting swap file. The config file /etc/dphys-swapfile allows the user to set up the working environment for dphys-swapfile. /etc/dphys-swapfile user config $CONF_SWAPFILE the swap file, target of the whole action (defaults to /var/swap) dphys-swapfile is usually run at system startup and shutdown from an /etc/init.d (or /etc/rc.d) script, such as this (minimal) one: #!,

Browser Monitoring for - GitHub Engineering Most large-scale web applications incorporate at least some browser monitoring, collecting metrics about the user experience with JavaScript in the browser, but, as a community, we don't talk much about what's working here and what's not. At GitHub, we've taken a slightly different approach than many other companies our size, so we'd like to share an overview of how our browser monitoring setup works. Browser monitoring can present an optimization problem: if you care enough to want to monitor your users' in-browser experience, you probably also are the sort of company who cares deeply about security, privacy, and performance. For, we already know many common third-party solutions aren't a fit because of our security settings. What We Monitor Loading Performance Like most other sites of our size, we want to understand how fast our content is loading for end users, so we measure every browser page load. We take these timings and graph the deltas between them in a stacked graph.

Terminology: More Than A Terminal Emulator (Ubuntu Installation Instructions) Terminology is a relatively new terminal emulator written for the Enlightenment desktop, but it can be used in other desktop environments. The application comes with many cool features, some of which do not exist in any other terminal emulator. Besides features that are already available in other terminal emulators such as split views support, Terminology can do a lot of things you wouldn't expect from a terminal emulator, like displaying thumbnails for images, videos and documents and furthermore, it also allows you to preview those files directly from Terminology. That's not all Terminology can do. Other features included in the latest 0.3 release: Below you can watch a video recorded by the Terminology developer, demoing the application (unfortunately, the resolution isn't great but it should be enough to get an idea on what Terminology can do): (direct video link) Using Terminology Here are a few Terminology usage tips: 1. 2. 3. 4. Install Terminology in Ubuntu

10 Useful Linux Bash_Completion Complete Command Examples (Bash Command Line Completion on Steroids) In Linux, while typing a command if you press TAB twice, it would list all available commands that starts with typed characters. This is nothing new, probably you already know about this. This functionality is called bash completion. The basic file and directory name completion are available by default in bash command line. But, we can turbo-charge this bash completion, and take it to the next level using complete command. This tutorial explains how we can apply the auto-completion to options and to command’s arguments using programmable completion. $ write [TAB][TAB] bala raj jason randy john ritu mayla thomas nisha www-data In the following example, it would show available hostnames for the telnet command: $ telnet [TAB][TAB] localhost dev-db fileserver To get programmable completion in your terminal, you just need to run /etc/bash_completion as shown below, # . enable bash completion in interactive shells if ! 1. complete -p | less Option -p is optional in the above example. 2. 3. 4. 5. 6.