MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
January
Sun Mon Tue Wed Thu Fri Sat
       
17
2015
Months
Jan


Sat, Jan 17, 2015 11:39 pm

Proxy server configured to d2e24t2jgcnor2.webhostoid.com

I've used Vuze as a BitTorrent client on a number of systems previously without problems. However, when I installed it on a new system for my wife recently, I found that the bundled software that came with it, which I thought I had indicated I didn't want installed with Vuze, set itself up as a proxy server for HTTP and HTTPS traffic and installed a self-signed security certificate into the root certificates list on the system, effectively nullifying the protection offered by viewing sites with HTTPS rather than HTTP and potentially exposing any userids and passwords, credit card numbers, etc. to the view of the bundled GeniusBox software.

I first noticed that a serious security issue had occurred when I mistyped a site's URL and saw a webpage displayed referencing d2e24t2jgcnor2.webhostoid.com, instead of the expected site.

[ More Info ]

[/network/proxy] permanent link

Sat, Jan 17, 2015 11:04 pm

dos2unix for CentOS 7

Microsoft Windows, Apple OS X and Linux systems use different means of representing the end of a line in text files. E.g., see OS X Line Endings. Microsoft Windows and its predecessor operating system, DOS, use a carriage return (CR), which is a hexadecimal 0D, followed by a line feed (LF), which is a hexadecimal 0A, at the end of each line, whereas only the LF character, i.e., the character represented by a hexadecimal 0A is used on Linux systems.

If you upload a text file, such as a .txt or .html file, from a Windows system to a Linux system and then edit it with vi, you may see ^M appear at various places in the file. To convert a text file from the DOS/Windows format to the one used by Linux, you can use the dos2unix utility.

You can install the dos2unix utility on a CentOS 7 system with the command yum install dos2unix. The program will be installed in /bin.

# which dos2unix
/bin/dos2unix
# rpm -qi dos2unix
Name        : dos2unix
Version     : 6.0.3
Release     : 4.el7
Architecture: x86_64
Install Date: Sat 17 Jan 2015 10:42:01 PM EST
Group       : Applications/Text
Size        : 178697
License     : BSD
Signature   : RSA/SHA256, Thu 03 Jul 2014 09:09:30 PM EDT, Key ID 24c6a8a7f4a80eb5
Source RPM  : dos2unix-6.0.3-4.el7.src.rpm
Build Date  : Mon 09 Jun 2014 06:00:48 PM EDT
Build Host  : worker1.bsys.centos.org
Relocations : (not relocatable)
Packager    : CentOS BuildSystem <http://bugs.centos.org>
Vendor      : CentOS
URL         : http://waterlan.home.xs4all.nl/dos2unix.html
Summary     : Text file format converters
Description :
Convert text files with DOS or Mac line endings to Unix line endings and
vice versa.

The syntax for the command is shown below:

$ dos2unix -h
dos2unix 6.0.3 (2013-01-25)
Usage: dos2unix [options] [file ...] [-n infile outfile ...]
 -ascii                convert only line breaks (default)
 -iso                  conversion between DOS and ISO-8859-1 character set
   -1252               Use Windows code page 1252 (Western European)
   -437                Use DOS code page 437 (US) (default)
   -850                Use DOS code page 850 (Western European)
   -860                Use DOS code page 860 (Portuguese)
   -863                Use DOS code page 863 (French Canadian)
   -865                Use DOS code page 865 (Nordic)
 -7                    Convert 8 bit characters to 7 bit space
 -c, --convmode        conversion mode
   convmode            ascii, 7bit, iso, mac, default to ascii
 -f, --force           force conversion of binary files
 -h, --help            give this help
 -k, --keepdate        keep output file date
 -L, --license         display software license
 -l, --newline         add additional newline
 -m, --add-bom         add UTF-8 Byte Order Mark
 -n, --newfile         write to new file
   infile              original file in new file mode
   outfile             output file in new file mode
 -o, --oldfile         write to old file
   file ...            files to convert in old file mode
 -q, --quiet           quiet mode, suppress all warnings
                       always on in stdio mode
 -s, --safe            skip binary files (default)
 -F, --follow-symlink  follow symbolic links and convert the targets
 -R, --replace-symlink replace symbolic links with converted files
                       (original target files remain unchanged)
 -S, --skip-symlink    keep symbolic links and targets unchanged (default)
 -V, --version         display version number

To convert the format of a file using the same file for both input and output, you only need specify the file name as an argument to dos2unix. E.g.:

$ dos2unix index.php
dos2unix: converting file index.php to Unix format ...

[/os/unix/linux/centos] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo