Let’s assume you started a new project. You’re using Git for versionning, because it’s easy to set it up locally, and for a few hours/days/weeks you’re just happy with your local repository. However, now you need to go bigger and start sharing the code with your coworkers, or maybe want to setup a continuous integration system, or whatever else, and for that your need to create a remote repository which will act as reference for all the actors of your project.
If you need to access a git repository somewhere on the internet (let’s say on GihHub) from your workstation which is inside your corporate network, chances are that you’ll need to go through an HTTP proxy. Let’s see how we can configure that.
Option 1 : Environment variables Git honor the environment variables http_proxy and https_proxy, so one way of solving our problem is setting those variables as follow:
Sometimes when you download a video on the internet, you get subtitles on a separate file (ie. from Open Subtitles, Subscene, addic7ed, etc…), and they are not always perfectly sync’ed. If you’re using Media Player Classic, you can fix that pretty easily with its “Sub resync” feature. Open your video with Media Player Classic and load your subtitles, then hit ctrl + 6 (or View -> Subresync) to open the sub-resync console.
When you install programs using apt-get, post-install tasks are executed to keep the system consistent. However, sometimes, those tasks does not go well, as in the example below (on a Debian Squeeze - yeah, I know, this system is not really up to date …).
$ apt-get install whatever ... Running depmod. Running update-initramfs. update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64 Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 Generating grub.
You’ll need the RHEL standard installation ISO as a base, but you probably have it in one form or another if you’re reading this guide …
Mount the ISO somewhere
mkdir /mnt/rhelcd mount /path/to/rhel-dvd.iso /mnt/rhelcd -o loop Copy the content of the disk somewhere on your hard drive, so we can work on it and make our modifications.
mkdir ~/workdir cp /mnt/rhelcd/* ~/workdir Note: There are a few dotfiles in the disk, so don’t forget them, as depending on your system setup they might not be copied along when you perform the cp.
A lot of companies are using Microsoft’s Exchange for their communications, with Outlook for the mails/agenda and Lync for instant messaging, and those are common blocking points when one want to switch to Linux on his primary work computer. An easy workaround would be to user Outlook Web Access, but it lacks some features (notifications, desktop integration, …) and it’s not always very convenient (you can’t use its advanced features if you’re using Chrome for example).
Updated the 07 Aug 2014: added autoconfig URL settings
If you’re behind a company proxy, chances are that you need to use proxy authentication to have access to the outside world. The thing is that in Ubuntu, the default proxy configuration interface does not let you enter any credential, only the proxy address.
You have several options to work arround that.
Note: Some applications don’t respect the settings defined by those methods.
If you open a file owned by root in VI with your regular user, you will be unable to save it using the regular :w command as the file will be opened read-only.
However you can write the content of your vi buffer to the file using the command :w !sudo tee %, which will prompt for your sudo password.
If you don’t want to remember this line, you can add the following line to your .
Today I had to automate the process of installing VMware Perl SDK (part of the VMware CLI tools) on a RHEL 6.4 box. The manual procedure is quite simple and well documented on VMware’s website, and it even has a very handy “default” option that automatically choose default settings during install without prompting for confirmation. However at the very begining you have to read the VMware terms and conditions, and type “yes” to accept them.