Re: misc questions re setting LANG
On Wed, Aug 29, 2007 at 05:04:20AM +0200, Nikola Lecic wrote: On Mon, 27 Aug 2007 23:30:48 -0700 Gary Kline [EMAIL PROTECTED] wrote: Does anybody know howto set my env to iso.8859-1 (Latin1) so that, say [Alt]-i will produce an e-aigu? I think that's e-acute. I have it partlyworking in regular xterm. I can type the string % cafe with the final e being hex-e9 and I get zsh: command not found: \M-i which makes sense. It would be nice to see the cafe echoed with the aigu over the e, but whatever. On both the Gnome Terminal and the KDE Konsole, zip, nada, nothing. I've tried Setttings for the Konsole terms. No joy. I don't know where to mouse and click for Gnome. Oh,and most of the time in vi no Latin1 chars. Gary, If you run % xterm -lc iso-8859-1 you will get what you want, i.e. ISO-8859-1 terminal in UTF-8 environment and Alt+I will produce é. Please read xterm man page for more explanation on -lc and -en. See also luit(1). If you really want to change the locale of Gnome/KDE/Xfce from default UTF-8 to ISO-8859-1 (not recommended), then you should appropriately set LANG and LC_ALL variables in ~/.xinitrc. Nikola, Thanks for the clue re xterm. I'm still using CTWM most places and use xterm exclusively. Sometimes I've been able to use 8859-1 in vi, sometimes not. Never read the man page (hanging my head). OTOT, I do have the LC* variables set ... else perl complains. ...It's time to join the 20th century:) gary Nikola Le??i?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: misc questions re setting LANG
On Mon, 27 Aug 2007 23:30:48 -0700 Gary Kline [EMAIL PROTECTED] wrote: Does anybody know howto set my env to iso.8859-1 (Latin1) so that, say [Alt]-i will produce an e-aigu? I think that's e-acute. I have it partlyworking in regular xterm. I can type the string % cafe with the final e being hex-e9 and I get zsh: command not found: \M-i which makes sense. It would be nice to see the cafe echoed with the aigu over the e, but whatever. On both the Gnome Terminal and the KDE Konsole, zip, nada, nothing. I've tried Setttings for the Konsole terms. No joy. I don't know where to mouse and click for Gnome. Oh,and most of the time in vi no Latin1 chars. Gary, If you run % xterm -lc iso-8859-1 you will get what you want, i.e. ISO-8859-1 terminal in UTF-8 environment and Alt+I will produce é. Please read xterm man page for more explanation on -lc and -en. See also luit(1). If you really want to change the locale of Gnome/KDE/Xfce from default UTF-8 to ISO-8859-1 (not recommended), then you should appropriately set LANG and LC_ALL variables in ~/.xinitrc. Nikola Lečić ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Misc questions (reposted, first reply only went out to origional user requesting it)
On Saturday 25 January 2003 20:32, pura life CR wrote: Hi, I am freebsd user, I have few misc questions: 1. Where can i get the source code of the daemon saver? I want to know how the logo can jump in the screen. /usr/src/sys/modules/syscons/daemon/daemon_saver.c 2. What command can i use if I want to crypt a word and I see it encrypoted just like the /etc/master.passwd file? For example, I want to know how the password foobar would be encrypted in /etc/master.passwd if It would be my real passwd. This would not be done with a command. It is done with a call to the crypt() function in libcrypt. You may see the crypt(3) manpage for more information (type man 3 crypt at your command prompt) 3. Where can I get more informacion about svr4 and linux emulation?, What does this emulation consist on? Can I run linux and svr4 binaries?. See section 20 (Linux Binary Compatibility) in the FreeBSD handbook. If you installed the doc distribution, the handbook is in /usr/share/doc/handbook/index.html on your file system. The SVR4 emulation works in the same way as the Linux emulation, so the section of the handbook applies here too. That's all for now. regards, _ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Misc Questions.
You'll get better response if you send each question as a seperate email, with an appropriate subject line for each one. May sound silly, but a lot of people will delete messages with subjects like Misc Questions without even reading them. pura life CR wrote: 1. Where can i get the source code of the daemon saver? I want to know how the logo can jump in the screen. /usr/src/usr.sbin/daemon/ 2. What command can i use if I want to crypt a word and I see it encrypoted just like the /etc/master.passwd file? For example, I want to know how the password foobar would be encrypted in /etc/master.passwd if It would be my real passwd. I don't know the answer to this one, check the source. 3. Where can I get more informacion about svr4 and linux emulation?, The handbook is a good place to start: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html What does this emulation consist on? Can I run linux and svr4 binaries?. It's not really emulation. In the case of Linux, it actually installs a RedHat kernel and uses it when the system calls differ from the native FreeBSD system calls. You should be able to run most Linux and srv4 binaries. In my experience, I've only ever come across 1 Linux binary that wouldn't run (Pervasive database server). I can't vouch for the srv4 compatibility, as I've never used it. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Fwd: Re: Misc Questions. (reposted yet again)
Yet again, I post only to the sender, not the list, sorry :) -- Forwarded Message -- Subject: Re: Misc Questions. Date: Sat, 25 Jan 2003 21:07:30 +0200 From: Willie Viljoen [EMAIL PROTECTED] To: Bill Moran [EMAIL PROTECTED] Some friendly corrections, sorry Bill :-) On Saturday 25 January 2003 20:55, Bill Moran wrote: You'll get better response if you send each question as a seperate email, with an appropriate subject line for each one. May sound silly, but a lot of people will delete messages with subjects like Misc Questions without even reading them. I'm with you on the subjects, but he's perfectly fine putting it in one e-mail, multiple mails would have annoyed me more. pura life CR wrote: 1. Where can i get the source code of the daemon saver? I want to know how the logo can jump in the screen. /usr/src/usr.sbin/daemon/ As I pointed out in my previous post, it is at /usr/src/sys/modules/syscons/daemon/daemon_saver.c /usr/src/usr.sbin/daemon contains source for the daemon(8) utility used to daemonize a normally non-daemon process. 2. What command can i use if I want to crypt a word and I see it encrypoted just like the /etc/master.passwd file? For example, I want to know how the password foobar would be encrypted in /etc/master.passwd if It would be my real passwd. I don't know the answer to this one, check the source. See my other post, it's in libcrypt, more information is in crypt(3) 3. Where can I get more informacion about svr4 and linux emulation?, The handbook is a good place to start: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html What does this emulation consist on? Can I run linux and svr4 binaries?. It's not really emulation. In the case of Linux, it actually installs a RedHat kernel and uses it when the system calls differ from the native FreeBSD system calls. You should be able to run most Linux and srv4 binaries. In my experience, I've only ever come across 1 Linux binary that wouldn't run (Pervasive database server). I can't vouch for the srv4 compatibility, as I've never used it. Bill is spot on here. For more information, section 20 in the handbook (other post) -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) [EMAIL PROTECTED] --- -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Misc Questions.
On Sat, Jan 25, 2003 at 01:55:50PM -0500, Bill Moran wrote: 2. What command can i use if I want to crypt a word and I see it encrypoted just like the /etc/master.passwd file? For example, I want to know how the password foobar would be encrypted in /etc/master.passwd if It would be my real passwd. I don't know the answer to this one, check the source. crypt(3) is the C language interface. Or perl will let you get at it from the command line. The format of the salt determines the encryption algorithm used: Eg. DES just uses two characters: % perl -e 'print crypt(password, xx), \n;' xxj31ZMTZzkVA whereas MD5 uses the 'Modular' format and an 8 character salt: % perl -e 'print crypt(q{password}, q{$1$$}), \n;' $1$$UYCIxa628.9qXjpQCjM4a. Only MD5 and DES are available in FreeBSD 4.x --- other systems may support Blowfish using salts that start $2$ Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Misc Questions.
On Sat, Jan 25, 2003 at 01:55:50PM -0500, Bill Moran wrote: snip 2. What command can i use if I want to crypt a word and I see it encrypoted just like the /etc/master.passwd file? For example, I want to know how the password foobar would be encrypted in /etc/master.passwd if It would be my real passwd. I don't know the answer to this one, check the source. snip If you are using md5 password hashing for master.passwd then you can use the command: # md5 -s mypassword This should show you what the string ``mypassword'' will hash to using md5. However, the other options are des and blf (blowfish). To see which you are using check the paramter passwd_format in /etc/login.conf. I don't know what you would use to figure the others, at least not through bash. Nathan -- GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc msg16695/pgp0.pgp Description: PGP signature
Re: Fwd: Re: Misc Questions. (reposted yet again)
Willie Viljoen wrote: Some friendly corrections, sorry Bill :-) Not a problem. I'd rather be corrected once than be wrong over and over again. (That's assuming I'm smart enough to remember the correction ...) On Saturday 25 January 2003 20:55, Bill Moran wrote: You'll get better response if you send each question as a seperate email, with an appropriate subject line for each one. May sound silly, but a lot of people will delete messages with subjects like Misc Questions without even reading them. I'm with you on the subjects, but he's perfectly fine putting it in one e-mail, multiple mails would have annoyed me more. Well, I stated it the way I did because it's in line with this document: http://www.lemis.com/questions.html which has been the rulebook on how to use questions@ for as long as I can remember. pura life CR wrote: 1. Where can i get the source code of the daemon saver? I want to know how the logo can jump in the screen. /usr/src/usr.sbin/daemon/ As I pointed out in my previous post, it is at /usr/src/sys/modules/syscons/daemon/daemon_saver.c /usr/src/usr.sbin/daemon contains source for the daemon(8) utility used to daemonize a normally non-daemon process. My mistake. I didn't fully pay attention to the results of my search, thus my reply was inaccurate. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Commands to check encrypted passwords (was Re: Misc Questions.)
Nathan, This won't work, the md5 system command is to generated md5 message digests. These are very different from salted passwords, which are a one-way encryption that will almost never be the same. Message digests are always the same, using them to encrypt passwords would be abit silly :) Digests are used (normally) to check the integrity of a downloaded file. To do this from the command line (without compiling a C program to use it from libcrypt) you can use perl, as Matthew Seamon points out: % perl -e 'print crypt(q{password}, q{$1$$}), \n;' $1$$UYCIxa628.9qXjpQCjM4a. In this case, the 's would be the 8 character MD5 salt. Will On Saturday 25 January 2003 21:35, Nathan Kinkade wrote: On Sat, Jan 25, 2003 at 01:55:50PM -0500, Bill Moran wrote: snip 2. What command can i use if I want to crypt a word and I see it encrypoted just like the /etc/master.passwd file? For example, I want to know how the password foobar would be encrypted in /etc/master.passwd if It would be my real passwd. I don't know the answer to this one, check the source. snip If you are using md5 password hashing for master.passwd then you can use the command: # md5 -s mypassword This should show you what the string ``mypassword'' will hash to using md5. However, the other options are des and blf (blowfish). To see which you are using check the paramter passwd_format in /etc/login.conf. I don't know what you would use to figure the others, at least not through bash. Nathan -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Fwd: Re: Misc Questions. (reposted yet again)
On Saturday 25 January 2003 20:55, Bill Moran wrote: You'll get better response if you send each question as a seperate email, with an appropriate subject line for each one. May sound silly, but a lot of people will delete messages with subjects like Misc Questions without even reading them. I'm with you on the subjects, but he's perfectly fine putting it in one e-mail, multiple mails would have annoyed me more. Well, I stated it the way I did because it's in line with this document: http://www.lemis.com/questions.html which has been the rulebook on how to use questions@ for as long as I can remember. Can't argue with the rulebook, I guess I was abit of an ignoramis there, apologies. We should be moving this to freebsd-chat@ soon :) Will -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Commands to check encrypted passwords (was Re: Misc Questions.)
On Sat, Jan 25, 2003 at 09:48:03PM +0200, Willie Viljoen wrote: Nathan, This won't work, the md5 system command is to generated md5 message digests. These are very different from salted passwords, which are a one-way encryption that will almost never be the same. Message digests are always the same, using them to encrypt passwords would be abit silly :) Digests are used (normally) to check the integrity of a downloaded file. To do this from the command line (without compiling a C program to use it from libcrypt) you can use perl, as Matthew Seamon points out: % perl -e 'print crypt(q{password}, q{$1$$}), \n;' $1$$UYCIxa628.9qXjpQCjM4a. In this case, the 's would be the 8 character MD5 salt. Will Will, Thanks for the clarification! My own ignorance on the subject led me to post bad info to the list! I'll have to read up on all this. Thanks, Nathan -- GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc msg16737/pgp0.pgp Description: PGP signature