 |
|
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|
 |
|
 |
Hi,
Does anybody know why it takes atleast 10 mins to login to the LINUX (RedHat) server with a user other than root...? However root login is instant..!
I tried modifying the sshd_config file and uncommented
Used DNS no
But still no succcess...
Also, new user creation using the useradd xxxx command takes around 10 mins....
Thanks in advance,
Faez
|
|
|
|
 |
|
 |
There may be something wrong there... I don't experience any delays when using ssh. I mostly use Ubuntu though, but still doesn't make sense that it would take that long, there may be some sort of database problem.
|
|
|
|
 |
|
 |
Btw.. I am using putty to login... Is it related to network problems...?
I am not able to use ftp command also through the windows 'cmd' as the session expires...
Regards,
Faez
modified 3 days ago.
|
|
|
|
 |
|
 |
Sounds like a network issue, I have used Red Hat in the past and never seen such a problem, even logging in from a client that is outside of the server's LAN.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
 |
|
 |
Is the server configured[^] to use networked authentication like LDAP, NIS or Winbind?
|
|
|
|
 |
|
 |
Its using LDAP authentication..... Below is the ssh log..
[faez@SJP2VM0185 ~]$ ssh -vvv ranga@SJP2VM0185
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to SJP2VM0185 [10.102.51.77] port 22.
debug1: Connection established.
debug1: identity file /home/faez/.ssh/identity type -1
debug1: identity file /home/faez/.ssh/id_rsa type -1
debug1: identity file /home/faez/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 116/256
debug2: bits set: 490/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/faez/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug3: check_host_in_hostfile: filename /home/faez/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug1: Host 'sjp2vm0185' is known and matches the RSA host key.
debug1: Found key in /home/faez/.ssh/known_hosts:1
debug2: bits set: 489/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/faez/.ssh/identity ((nil))
debug2: key: /home/faez/.ssh/id_rsa ((nil))
debug2: key: /home/faez/.ssh/id_dsa ((nil))
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-with-mic,password
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug3: Trying to reverse map address 10.102.51.77.
debug1: Unspecified GSS failure. Minor code may provide more information
Unknown code krb5 195
debug1: Unspecified GSS failure. Minor code may provide more information
Unknown code krb5 195
debug1: Unspecified GSS failure. Minor code may provide more information
Unknown code krb5 195
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/faez/.ssh/identity
debug3: no such identity: /home/faez/.ssh/identity
debug1: Trying private key: /home/faez/.ssh/id_rsa
debug3: no such identity: /home/faez/.ssh/id_rsa
debug1: Trying private key: /home/faez/.ssh/id_dsa
debug3: no such identity: /home/faez/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
ranga@sjp2vm0185's password:
debug3: packet_send2: adding 64 (len 59 padlen 5 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
********************** HANGS HERE... RESUMES AFTER 10 MINS *********
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 0
debug3: tty_make_modes: ospeed 38400
debug3: tty_make_modes: ispeed 38400
debug3: tty_make_modes: 1 3
debug3: tty_make_modes: 2 28
debug3: tty_make_modes: 3 127
debug3: tty_make_modes: 4 21
debug3: tty_make_modes: 5 4
debug3: tty_make_modes: 6 0
debug3: tty_make_modes: 7 0
debug3: tty_make_modes: 8 17
debug3: tty_make_modes: 9 19
debug3: tty_make_modes: 10 26
debug3: tty_make_modes: 12 18
debug3: tty_make_modes: 13 23
debug3: tty_make_modes: 14 22
debug3: tty_make_modes: 18 15
debug3: tty_make_modes: 30 0
debug3: tty_make_modes: 31 0
debug3: tty_make_modes: 32 0
debug3: tty_make_modes: 33 0
debug3: tty_make_modes: 34 0
debug3: tty_make_modes: 35 0
debug3: tty_make_modes: 36 1
debug3: tty_make_modes: 37 0
debug3: tty_make_modes: 38 1
debug3: tty_make_modes: 39 0
debug3: tty_make_modes: 40 0
debug3: tty_make_modes: 41 0
debug3: tty_make_modes: 50 1
debug3: tty_make_modes: 51 1
debug3: tty_make_modes: 52 0
debug3: tty_make_modes: 53 1
debug3: tty_make_modes: 54 1
debug3: tty_make_modes: 55 1
debug3: tty_make_modes: 56 0
debug3: tty_make_modes: 57 0
debug3: tty_make_modes: 58 0
debug3: tty_make_modes: 59 1
debug3: tty_make_modes: 60 1
debug3: tty_make_modes: 61 1
debug3: tty_make_modes: 62 0
debug3: tty_make_modes: 70 1
debug3: tty_make_modes: 71 0
debug3: tty_make_modes: 72 1
debug3: tty_make_modes: 73 0
debug3: tty_make_modes: 74 0
debug3: tty_make_modes: 75 0
debug3: tty_make_modes: 90 1
debug3: tty_make_modes: 91 1
debug3: tty_make_modes: 92 0
debug3: tty_make_modes: 93 0
debug1: Sending environment.
debug3: Ignored env HOSTNAME
debug3: Ignored env TERM
debug3: Ignored env SHELL
debug3: Ignored env HISTSIZE
debug3: Ignored env SSH_CLIENT
debug3: Ignored env SSH_TTY
debug3: Ignored env USER
debug3: Ignored env LS_COLORS
debug3: Ignored env MAIL
debug3: Ignored env PATH
debug3: Ignored env INPUTRC
debug3: Ignored env PWD
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: Ignored env SSH_ASKPASS
debug3: Ignored env SHLVL
debug3: Ignored env HOME
debug3: Ignored env LOGNAME
debug3: Ignored env CVS_RSH
debug3: Ignored env SSH_CONNECTION
debug3: Ignored env LESSOPEN
debug3: Ignored env G_BROKEN_FILENAMES
debug3: Ignored env _
debug2: channel 0: request shell confirm 0
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
Last login: Thu Feb 9 10:20:37 2012 from 10.102.51.77
[ranga@SJP2VM0185 ~]$
|
|
|
|
 |
|
 |
Have You Tried Connecting to Your SSH Terminal, with the Debugging Flag?
If Not, Please try Connecting with the Verbose flag and Post the Output (ssh -vvv)
|
|
|
|
 |
|
|
 |
|
 |
I've been looking around for learning to program in assembler on linux. I'm completely new to assembler. Amazon has several books, but I've been mistaken on what is a "good" book before. I've resolved to buy at least 2.
Anyone have any recommendations on a good one or two that I can look for specifically?
-- edit/update--
I found this: Assembly book
I'm still going to pick up a couple more, but this has been very helpful so far. It already gave me much of what I was missing in understanding.
-- end edit --
modified 12 Jan '12.
|
|
|
|
 |
|
 |
First hit on google:
Found this pretty useful for learning assembly in general.
http://asm.sourceforge.net/[^]
If you're looking for s good assembler try yasm or fasm. GAS has a funny syntax.
|
|
|
|
 |
|
 |
Thanks for the link. I've settled in to nasm as my first choice. I've written 2 full assembler programs so far, the most complicated being asking for 2 numbers and then outputting the sum. I have an understanding of what I have done so far, so I'm happy with it
I have to re-read the parts on the mathematical stuff with signed and unsigned so I can do the equivelant of if's/loops . It didn't sink in completely the first time.
I'm very much enjoying this !
-- edit --
The problem I was having with the first couple resources I tried was that they all assume you know more than I did. I had no degree of expertise/understanding for assembler. Yes, I could have learned it with enough time with the other resources, but the book I found is.... well, exactly what I was looking for. It is very much begginner.
I will be buying the other books as soon as I'm done with this one. At that time I think I will do better at understanding them. And what's learning to program without at least 2-3 books on the subject
-- end edit --
|
|
|
|
 |
|
 |
i honestly wouldnt invest a massivae amount of tie into learning ASM. the most you are ever going to use it is a few inline asm lines in between 1000's of lines of C / C++
|
|
|
|
 |
|
 |
It's more educational than anything else. I don't know how much (or if) I will use it later, but I want to learn and understand it.
|
|
|
|
 |
|
 |
I learned assembly in college (MIPS instruction set) and have yet to use it... it's good to know what's going on behind the scenes but it's awfully hard to write anything useful in assembly. With that said, knowledge is power!
|
|
|
|
 |
|
 |
Yeah, I went to the local college and took all the programming courses they offered. I was non-degree seeking. Without going to the university I missed out on some of the good stuff like compilers, assembler, writing an OS. I'm trying to spend some of my free time at home learning some of that stuff.
I completely agree about the length and difficulty with writing much in assembler.
|
|
|
|
 |
|
 |
Unless you're planning on writing a compiler/assembler/optimizer... probably not worth spending more than a semester's worth of time on it. Like I said though... knowledge is power. I hate seeing people on this site that only know really abstract languages like C#, Java, and scripting... since they seem to lose touch with what's going on with their code behind the scenes.
|
|
|
|
 |
|
 |
I don't mind abstract languages. I don't like doing things that I don't understand the workings of though (to a degree). I learned c and c++ first, so I usually want understand how I would do it there.
I know c (none of the really fancy stuff), c++ - probably just intermediate, javascript, jquery, c#,vb.net, wcf (basics..only written one service professionaly), vba, vb6, vbscript, classic asp, some very basic dos batch stuff, bash scripting, perl, php, Java, sql, er.. off the top of my head that is it. I know, compared to the people here I'm a noob
I am working on understanding assembler, doing some cool game programming tinkering, and a few other things right now at home. I want to do some more data structures, write a -very- simple virtual machine and implement scripting (I saw a project similar to what I want to do with that here on cp).
In the future I want to be able to do my own implementation of a unix clone as seen here:
http://www.jamesmolloy.co.uk/tutorial_html/[^]
and by then I hope to have found other things that I missed out on. I may not have missed out, but a friend of mine was at a university and did all these things. I did not have the opportunity to go. I hope to gain a better understanding of computers and programming by doing these.
Ultimately my only real personal goal is to make a 3d game I'm behind on mathematics though, and need to do some things while I'm catching up!
|
|
|
|
 |
|
 |
Good luck on your endeavors! ...nice to see ambitious people around
|
|
|
|
 |
|
 |
I dislike the new gnome. I only tried it a little, and it was just too alien. However, a coworker said something I couldn't let go. "You are too young to resist change" and it struck me that computer scientists should probably not resist change.
With this in mind, I went to upgrade my gentoo box to the new gnome. I was determined to try it until I got used to it to give it a fully educated review.
I went to the gentoo upgrade guide , and quickly changed my mind. I left out the default options being wierd. That was a given. The things that bothered me beyond that are quickly adding up. The eselects are long and cryptic, the gs configs are overly complicated, I no longer have a choice for audio and have to use pulse audio, there is no compiz support at all, many of the gnome2 apps have not been ported so they won't work, nvidia cards are pretty well not working and cause several errors, and there are many work arounds for things that don't work already.
I don't think it's a good time to change. What bothers me most about that is now I have to mask it to do a system update, and in a couple months they say they will no longer support the old gnome. If I don't mask it, I have to add lots of ~arch stuff in my update file, meaning it's not ezackery stable yet (though they say it's stable). Why do they make it stop my update?
I think I will keep it masked for now, and wait for it to actually become stable.
Anyone have thoughts on this?
|
|
|
|
 |
|
 |
It's a big change for gnome... every time a product makes a big evolutionary change, you can expect growing pains as well as people that are unhappy about where it's going. For now, I think you can safely continue to use the older versions of gnome, if you simply can't adjust to the new gnome in the future (once they stop supporting gnome 2), there's always kde.
|
|
|
|
 |
|
 |
I'd be more likely to switch to xfce or lxde.
I was prepared for the growing pains. It's just that it pretty well seems like nothing will work on my machine yet. I have a new nvidia graphics card, which pretty well shoots the new gnome in the foot.
|
|
|
|
 |
|
 |
I don't have an nvidia card... so can't comment on that specifically... but at least in Linux there's alternatives... with gnome being the most popular desktop environment, I'm sure the support for a large number of video cards will only continue to improve with time. Unless of course, too many users decide they don't like the new interface and decide to opt for something else, but I honestly don't see that as happening. Hopefully gnome will learn from their mistakes and try to please a wide user base.
|
|
|
|
 |
|
 |
I haven't switched to xfce yet. My decision was to wait until the new gnome and nvidia get along and try it again. I'm determined to give it a good shot before leaving. If dropping support for the old gnome causes problems before the new one is up and running on my machine, then I may switch to something else.
Hopefully it won't be long. With people out there using it now, I'm sure it will move swiftly. All they need is users able/willing to submit reports and useage information and I'm confident they will iron out the wrinkles. After it works with nvidia then I'll make the switch.
|
|
|
|
 |
|
 |
Good luck!
|
|
|
|
 |
|