Create root filesystem snapshots with LVM. This article describes how to set up root filesystem LVM snapshot creation during system start. Such snapshots can be used for full system backups with minimal downtime or testing system updates with the option to revert them. Prerequisites You need a system with LVM root filesystem and systemd. Ensure that LVM snapshots prerequisites are correctly setup. Setup During system start a clean snapshot of the root volume is created using a new systemd service. [Unit] Description=make LVM snapshots Requires=local-fs-pre.target DefaultDependencies=no Conflicts=shutdown.target After=local-fs-pre.target Before=local-fs.target [Install] WantedBy=make-snapshots.target [Service] Type=oneshot ExecStart=/usr/sbin/lvcreate -L10G -n snap-root -s lvmvolume/root Adapt the lvcreate command to match your root volume group and volume name.
Note: You should test the # lvcreate command in the running system until it works as desired. Remove the test snapshots with # lvremove. Usage Backup Revert updates Known issues. Iotop: Disk I/O Monitor for Ubuntu Linux. “iotop” is a small but a powerful disk I/O (input/output) monitor that can be used in Ubuntu Linux. It’s an extremely useful tool if you want to know what programs are using your disk’s read/write bandwidth at an any given moment.
Or, if you have one of those never notebooks that doesn’t have a HDD LED indicator (such as the Acer Aspire One 722 for instance), then this utility will too come in handy. It’s written in Python and as you can see from the below screenshot, it shows the processes that use the most of your disk I/O at top, so you could easily locate the ones that aggressively use disk I/O. Man features … *. At the top, it displays the sum of all Disk Read and Write. I’ve highlighted a HDD I/O activity of Nautilus (file manager) just for “show” * . *. Well, that’s pretty much it!. If interested, you can install “iotop” in Ubuntu 12.04 Precise Pangolin, 11.10 Oneiric Ocelot, 11.04 Natty Narwhal, 10.10 and 10.04 by using the below command in your Terminal window. iotop Few usage tips … Ubuntu: tool for displaying disk activity in general and by process.
Avoiding Passwords On Remote Logins with Putty | Thoughts and Ideas In Warped Times. If you regularly use Putty to do remote login on a machine and you find it inconvenient to type username and password everytime, then this post is for you. Go ahead and read how in few easy steps you can configure putty to avoid username and password for secure remote logins. Step 1: Download and run Putty Key Generator from Step 2: Click on the ‘Generate’ button. Once it has generated the key it will look something like the screen shown below. You can provide the passphrase to protect this private key but it is optional.
Using puttygen to create SSH-2 keys Step 3: Click on “Save the private key”. Step 4: Now you need to put the public key on the remote system where you would like to login. Authorized_keys file containing public key Step 5: Now run the putty executable which will present you the configuration dialog. Configuration screen for putty Step 6: Now click on the Connection –> Data in the left panel. Step 7: Step 8: Step 9: Howto: Ubuntu Linux convert DHCP network configuration to static IP configuration. My friend wanted to know how to change or convert DHCP network configuration to static configuration. After initial installation, he wanted to change network settings. Further, his system is w/o GUI system aka X Windows.
Here is quick way to accomplish the same: Your main network configuration file is /etc/network/interfaces Desired new sample settings: => Host IP address 192.168.1.100 => Netmask: 255.255.255.0 => Network ID: 192.168.1.0 => Broadcast IP: 192.168.1.255 => Gateway/Router IP: 192.168.1.254 => DNS Server: 192.168.1.254 Open network configuration file $ sudo vi /etc/network/interfacesOR$ sudo nano /etc/network/interfaces Find and remove dhcp entry: iface eth0 inet dhcp Append new network settings: iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.254 Save and close the file. Task: Define new DNS servers Open /etc/resolv.conf file $ sudo vi /etc/resolv.conf Task: Test DNS server $ host cyberciti.biz Where, /etc/network/interfaces Ubuntu Linux networking example. Q. Can you explain how to setup network parameters such as IP address, subnet, dhcp etc using /etc/network/interfaces file?
A. /etc/network/interfaces file contains network interface configuration information for the both Ubuntu and Debian Linux. This is where you configure how your system is connected to the network. Defining physical interfaces such as eth0 Lines beginning with the word "auto" are used to identify the physical interfaces to be brought up when ifup is run with the -a option. Setup interface to dhcp To setup eth0 to dhcp, enter: auto eth0 iface eth0 inet dhcp Examples: How to set up interfaces Please read our previous How to: Ubuntu Linux convert DHCP network configuration to static IP configuration for more information. Following is file located at /usr/share/doc/ifupdown/examples/network-interfaces, use this file as reference (don't forget interfaces man pages for more help): Mounting ftp host to local directory on top of FUSE. November 17th, 2007 mysurface Posted in Admin, curlftpfs, mount, sudo, umount | Hits: 97858 | 18 Comments » I have wrote a post regarding on how to access ftp host using curl.
And this time, let us look at how to mount the ftp host to a local directory on top of FUSE. FUSE (Filesystem in userland) is a userland build on top of virtual filesystem, it allows you to implement functional filesystem in userspace application. Robson Braga Araujo wrote an app based on fuse and curl that allows you to mount a ftp host to a local directory, curlftpfs. What is the benefit of mounting ftp host to a local directory? To mount ftp host to your local directory, first you need to create a local directory, I created a folder ‘myftp’ and mounting it like this sudo curlftpfs -o allow_other myftp As simple as that, you are now able to access your ftp host locally.
How to unmount it? Sudo umount myftp sudo mount /mnt/myftp ps aux | grep curlftpfs OMG! 1. 2. 3. [HOWTO] mount an FTP host as a filesystem using CurlFtpFS. HowTo: Rsync to a Backup FTP server | PingBin. My hosting company is great, with all of their dedicated servers even the low cost ones users get 100GB free of FTP backup space. Now at first I didn’t really see the point in this, not because backup’s aren’t important but because I like to use rsync for my backups, and it has no support for FTP connections.
However there is a neat trick you can do for FTP support in Rsync, it’s fairly simple really, you install some extra software that lets you mount an FTP service just as if it was a hard drive, usb pen or network share. Then your able to backup straight onto this mount without the worry about FTP support and using rsync. So you need to first get this ftp mounting software installed. Now create a folder somewhere on your machine, this is where the ftp server is going to be mounted, it’s posistion is completly upto you, this is just an example Cool, you should be ready to go, I would suggest doing the following just to ensure it’s working.
ADSLPPPoE. This guide is for setting up an ADSL Internet connection using an ethernet PPPoE modem under Ubuntu 9.10 Server Edition (Karmic Koala) but previous versions of Ubuntu should be similar. Desktop versions of Ubuntu use Network Manager (nice GUI) to manage DSL connections. This guide is for configuring a connection via command line (e.g., ssh, terminal window).
Although it may be very common to use a router to connect to the Internet, at times it may be necessary to directly connect to an ADSL (frequently referred to as 'DSL') modem using PPPoE. In fact, the router used to provide internet access to the network may be running Ubuntu!!! It is useful to know how to connect to an Internet Service Provider (ISP) using a (A)DSL modem that is configured as a "Bridge. " Of course, you will need to have subscribed to an ISP, and that your Internet connection is installed and functional. You will need your username and password provided by your ISP for your DSL account. PPPoE package installation plog. Become a Command Line Ninja With These Time-Saving Shortcuts. Getting started with rsync, for the paranoid. When a computer tool has the potential to be dangerous, my paranoia manifests itself by making sure I understand what the tool is doing in detail before I use it. rsync is a very powerful tool you can use to clone directory trees with.
It's also possible to wipe out your local files with it, and understanding what it does is quite complicated to figure out. It doesn't help that the rsync manual page is a monster. The basic tutorials I find in Google all seem a bit off so let me start with why I wrote this. You don't need to start an rsync server to use it, you really don't need or even want to start by setting up unsecure keys, and the tutorials that just focus on the basics leave me not sure sure what I just did. Quick and dirty guide to rsync is the closest to what I'm going to do here, but it lacks the theory and distrust I find essential to keeping myself out of trouble. Let's start with local rsync, which is how you should get familiar with the tool. . $ rsync -av source destination.