Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Wed Feb 08, 2012 12:15 am


News News of Tutorials for general Unix

Site map of Tutorials for general Unix » Forum : Tutorials for general Unix

Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

 [ Total topics 21 Go to page 1, 2, 3

Message
 Post subject: FIX: manconv: can't set the locale; make sure $LC_* and $LANG are correct
PostPosted: Thu May 20, 2010 7:43 pm 
The following error message:
Code:
manconv: can't set the locale; make sure $LC_* and $LANG are correct

can be fixed by upgrading the man-db package to version 2.5.3-1 or higher. On Debian (when writing this article) this package is available on SID repository or via sources from oficial website.

Read more : FIX: manconv: can't set the locale; make sure $LC_* and $LANG are correct | Views : 5242 | Replies : 0

Top
 Post subject: PERL can't set the locale; make sure $LC_* and $LANG are correct
PostPosted: Thu May 20, 2010 7:40 pm 
If you wish to fix the following errors (on debian google for other distributions)
Code:
can't set the locale; make sure $LC_* and $LANG are correct

or
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or ...

Read more : PERL can't set the locale; make sure $LC_* and $LANG are correct | Views : 3005 | Replies : 0

Top
 Post subject: VI / VIM: Show end of the lines
PostPosted: Thu May 13, 2010 3:03 pm 
In order to have a dollar sign at the end of each line in VI / VIM editor, set the following parameter while editing:

Code:
:set list


Every line will be terminated by a $:

Example:
VIM(1)>-->-->-->-->-->-->-->-->--VIM(1)$
$
$
$
N^HNA^HAM^HME^HE$
vim - Vi IMproved, a programmers text editor$
$
S^HSY^HYN^HNO^HOP^HPS^HSI^HIS^HS$
v^Hvi^Him^Hm [options] [file ..]$
v^Hvi^Him^Hm [options] -$
v^Hvi^Him^Hm [options] -t tag$
v^Hvi^Him^Hm [options] -q [errorfile]$
$
e^Hex^Hx$
v^Hvi^Hie^Hew^Hw$
g^Hgv^Hvi^Him^Hm g^Hgv^Hvi^Hie^Hew^Hw e^Hev^Hvi^Him^Hm e^Hev^Hvi^Hie^Hew^Hw$
r^Hrv^Hvi^Him^Hm r^Hrv^Hvi^Hie^Hew^Hw r^Hrg^Hgv^Hvi^Him^Hm ...

Read more : VI / VIM: Show end of the lines | Views : 1050 | Replies : 0

Top
 Post subject: Zip command to archive directory recursively
PostPosted: Sun May 09, 2010 12:16 pm 
Man zip:
Quote:
-r Travel the directory structure recursively; for example:

zip -r foo.zip foo

or a bit more concisely

zip -r foo foo

In this case, all the files and directories in foo are saved in
a zip archive named foo.zip, including files with names starting
with ".", since the recursion does not use the shell's file-name
substitution mechanism. If you wish to include only a specific
subset of the files in directory foo ...

Read more : Zip command to archive directory recursively | Views : 2081 | Replies : 0

Top
 Post subject: Openssl: Commandline base64 string encoding
PostPosted: Fri Mar 05, 2010 6:50 pm 
To encode a string into base64, echo and openssl system utilities can be used:
Code:
# echo -n 'somepassword' | openssl enc -base64
c29tZXBhc3N3b3Jk


The -n switch to echo is used to supress echoing a new line character. For example, below is a difference between base64 encoded string that doesn't contain newline and on that does:
Code:
# echo -n 'somepassword' | openssl enc -base64
c29tZXBhc3N3b3Jk
# echo 'somepassword' | openssl enc -base64
c29tZXBhc3N3b3JkCg==

Read more : Openssl: Commandline base64 string encoding | Views : 2253 | Replies : 1

Top
 Post subject: Using echo, netcat(nc) and tr to create an HTTP connection
PostPosted: Thu Mar 04, 2010 12:01 pm 
Fortunately for debugging HTTP connections, there is a very simple way of generating one from command line when elinks or lynx are not available.

For this we need the most basic http command and header: GET/POST and Host.

Code:
# echo 'GET / HTTP/1.1 Host: www.mysite.ro'
GET / HTTP/1.1 Host: www.mysite.ro


but the above output is not valid for sending it to a web server. We need some new lines added to it:

# echo ...

Read more : Using echo, netcat(nc) and tr to create an HTTP connection | Views : 1700 | Replies : 0

Top
 Post subject: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config
PostPosted: Tue Jan 12, 2010 2:25 pm 
Apache 'Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration' give the above error message when the "Order" directive is used in it's main or vhosts configuration file(s).

This directive needs the authz_host_module module to be loaded into apache. If you compiled apache with shared modules, then look for the following line in httpd.conf and uncomment it:
Code:
LoadModule authz_host_module modules/mod_authz_host.so


Restart apache and the error will be gone.

Read more : Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config | Views : 4474 | Replies : 0

Top
 Post subject: Daemontools /service/test/log: unable to open supervise/ok: file does not exist
PostPosted: Thu Nov 26, 2009 2:11 pm 
/service/test/log: unable to open supervise/ok: file does not exist

This daemontools error appears when you've just created a new service (test in my case) to be supervised by svscan and you're trying to start it's logging service. The /service/test/log/supervise/ok and /service/test/log/supervise/control files are pipe files used for inter process communication (IPC). The output from main service (test) is sent via pipe (these files) to it's log service. For some reason, svscan doesn't create them when ...

Read more : Daemontools /service/test/log: unable to open supervise/ok: file does not exist | Views : 2310 | Replies : 0

Top
 Post subject: Vi/Vim - Show line numbers in vi or vim
PostPosted: Thu Oct 01, 2009 12:45 pm 
Vi/Vim editor has a handy option when it comes to editing a file: line numbers. This shows how to turn on and of the display of line numbers in vi or vim editors

Vi / vim has two working modes: Command mode and INSERT mode(-- INSERT --). You can switch between them, using the ESC key. Following commands require you to bee in vi / vim command mode.

While editing a document, type the following ...

Read more : Vi/Vim - Show line numbers in vi or vim | Views : 657 | Replies : 0

Top
 Post subject: Debug Apache's mod_rewrite with RewriteLog and RewriteLogLevel directives
PostPosted: Thu Aug 27, 2009 12:14 pm 
Rewriting URLs in Apache is a simple thing if you're skilled in RegEx (Regular Expressions). But there can be cases when URL rewriting doesn't work and you need to debug it.

Apache supports two directives that can come in handful: RewriteLog and RewriteLogLevel.

For best results, place these directives into your Virtual host configuration, not in httpd.conf (general Apache config file) so that you'll get information about rewritten URL's only in from the specific vhost. ...

Read more : Debug Apache's mod_rewrite with RewriteLog and RewriteLogLevel directives | Views : 5066 | Replies : 0

Top
 [ Total topics 21 Go to page 1, 2, 3


Last 10 active topics


TCP/IP Networking

No new posts How to add IP alias in Debian Linux to last after reboot
View the latest post
No new posts Linux How to change hardware MAC address of an interface
View the latest post

Linux & BSD on desktops and Multimedia stations

No new posts In Favor Of FreeBSD On The Desktop
View the latest post

Virtualization

No new posts Iptables filtering Xen bridged domains & enforcing specific IP address for each of these domains
View the latest post
No new posts spidervps.com - NEW VPS hosting company: SPIDER VPS !
View the latest post

Mysql

No new posts MySql rename table
View the latest post
No new posts Mysql> stored procedure for inserting in multiple tables \w common key
View the latest post
No new posts Mysql> select records that have date/datetime column equal to today's date
View the latest post
No new posts How to use a mysql stored procedure
View the latest post
No new posts Mysql command to show stored procedures
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 188 | Total topics 681 | Total members 827



cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO