LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

annotating PDF files

Posted 05-19-2011 at 10:55 AM by neonsignal

Filling in PDF forms can sometimes be annoying, especially when the forms are DRM controlled (and do not provide edit fields).

A useful utility is flpsed. It isn't a PDF editor as such; instead, it allows the addition of text annotations to PDF files by tacking them on to the end of the file, which means that it works on just about any PDF.

Font size and color can be selected. The annotation set can be saved separately if required, and it can also be used from the command...
Senior Member
Posted in Uncategorized
Views 262 Comments 0 neonsignal is offline
Old

migrating a system to a new disk

Posted 05-18-2011 at 05:16 AM by neonsignal
Updated 05-18-2011 at 05:18 AM by neonsignal

This is a procedure for migrating a whole system to a new disk (such as when upgrading the primary disk in a machine). The new disk is installed alongside the old one (either in a spare ATA port, or using a USB adapter).

First partition the new disk (the examples here assume the original disk is sda and the new disk is sdb):
Code:
fdisk /dev/sdb
Assuming all of the system is to be in a single partition, make a primary partition 'n', 'p', taking most...
Senior Member
Posted in Uncategorized
Views 258 Comments 0 neonsignal is offline
Old

upgrading ext3 to ext4 filesystem

Posted 05-18-2011 at 04:40 AM by neonsignal
Updated 05-18-2011 at 04:44 AM by neonsignal

The following commands upgrade an existing umounted ext3 filesystem to ext4 without having to reformat:
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/partition
e2fsck -fDC0 /dev/partition
To upgrade the root partition, change /etc/fstab so that it will be mounted as ext4 (since ext4 can mount an ext3 file system), then reboot as single user read-only (recovery mode). Then after setting the tune2fs parameters, reboot again before running e2fsck. Then reboot...
Senior Member
Posted in Uncategorized
Views 354 Comments 0 neonsignal is offline
Old

manually setting up a VPN tunnel (PPTP)

Posted 05-11-2011 at 11:30 PM by neonsignal

Creating a VPN tunnel involves setting up a few configuration files.

First add a line to /etc/ppp/chap-secrets. This has four columns:
Code:
{username} PPTP {password} *
Then create a PPTP connection file /etc/ppp/peers/{tunnel} (any tunnel name will do):
Code:
pty "pptp {server} --nolaunchpppd"
name {username}
remotename PPTP
file /etc/ppp/options.pptp
ipparam {tunnel}
require-mppe
...
Senior Member
Posted in Uncategorized
Views 435 Comments 0 neonsignal is offline
Old

backups using rsync

Posted 05-09-2011 at 08:44 AM by neonsignal
Updated 05-09-2011 at 08:46 AM by neonsignal

The beauty of using rsync as a backup tool is that the backup is in a plain old directory structure, so there is a lot less to go wrong in a recovery process (and many ways to do the recovery).

The simplest rsync just makes a mirror of a directory structure:
Code:
rsync -a --del src dst
Or across a network using ssh:
Code:
rsync -a --del src server:dst -e ssh
The link-dest flag can be used to set up a simple snapshot...
Senior Member
Posted in Uncategorized
Views 384 Comments 0 neonsignal is offline

  



All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration