Re: [ubuntu-uk] Help needed with ssh
A bit of good news, I managed to break my Gallery last night, doing something I was able to do before, but since Gallery updated, it stopped the gallery from working and broke it and it took the site offline. Took me ages to work it out, but I discovered that the file I had changed had the wrong permissions on it, and managed via the command line to change the permissions and now the site is back. I still cant get the changes I made to the file to show up, even though they are in there. I can deal with that though. I am feeling so chuffed with myself, I cant believe I have done that. Yay. Just thought I would share. John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Robert McWilliam wrote: > > I was thinking about better ways to help you through this earlier but > then forgot about it when you went quiet. The ideal would be someone who > knows what they're doing to sit next to you and take you through the > procedures you want to do and explain them. If you can't find anyone > local to do that it should be possible to get close to that using > phone/skype/whatever telecoms you prefer and screen's ability to share a > session so that you and someone[1] explaining things could see the same > shell. > > Robert > > [1] I'm happy to be that someone and I'm sure others here would also be > willing to try it if we can't find a time when we're both available (or > do but my way of explaining things makes no sense to you...) > > Robert McWilliam r...@allmail.netwww.ormiret.com > > This message has been ROT26 encrypted. > > > Hi Robert, thank you so much, I might take you up on that, that was something I mentioned a while back, about pc to pc help. I have gitso installed, so you could connect to my pc and show me some things, to help me learn. It will work as somebody from here has already used it on my laptop. I Have been learning tonight about making copies of files before editing them, and deleting the copies. Its funny really, I had intended for my last e-mail to show that I am getting on with things and to let you know I had learnt a bit, but for some reason, that didnt quite come over. No matter, I am feeling quite pleased with myself really for what I have learnt so far. Thank you all for your support. John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
John, I'm sure that if you have any problems you can join the IRC channel #ubuntu-uk on irc.freenode.net and there's sure to be someone who'll help you in there. See https://help.ubuntu.com/community/InternetRelayChat for more IRC details. -- Josh Holland (key F6067C12) http://joshh.co.uk dutchie on irc.freenode.net http://twitter.com/jshholland http://identi.ca/jshholland -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On Fri, 24 Jul 2009 15:22 +0100, "John Matthews" wrote: > I am now finding it frustrating because I cant copy and paste from my > desktop to the file plus saving what I have done, cant work that one out > yet, its probably very simple, but I am trying. But at least I have got > that far. I was thinking about better ways to help you through this earlier but then forgot about it when you went quiet. The ideal would be someone who knows what they're doing to sit next to you and take you through the procedures you want to do and explain them. If you can't find anyone local to do that it should be possible to get close to that using phone/skype/whatever telecoms you prefer and screen's ability to share a session so that you and someone[1] explaining things could see the same shell. Robert [1] I'm happy to be that someone and I'm sure others here would also be willing to try it if we can't find a time when we're both available (or do but my way of explaining things makes no sense to you...) Robert McWilliam r...@allmail.netwww.ormiret.com This message has been ROT26 encrypted. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
If you're just talking about copying and pasting text, then absolutely... It's ctrl+shift+c and ctrl+shift+v in gnome-terminal - or alternatively highlight text with the mouse and use the middle mouse button to paste (which also works with anything else in gnome...not sure about kde!) On 24/07/2009, Sean Miller wrote: > Confused - you can copy and paste to shell, surely? > > I'm sure I've done it many times. In fact I'm absolutely sure! > > Sean > > -- > ubuntu-uk@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ > -- Sent from my mobile device -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Confused - you can copy and paste to shell, surely? I'm sure I've done it many times. In fact I'm absolutely sure! Sean -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On Fri, Jul 24, 2009 at 3:22 PM, John Matthews wrote: > > I am now finding it frustrating because I cant copy and paste from my > desktop to the file plus saving what I have done, cant work that one out > yet, its probably very simple, but I am trying. But at least I have got > that far. > > John - you might want to look at a solution such as Filezilla to copy files to and from the remote server in a graphical fashion, although this can also be achieved using Nautilus. The command line method of doing this would be using scp (e.g. scp u...@hostname:/var/www/public_html or whatever your file path is to the hosting directory). To copy files before you edit them just cp filename filename.old You'll then be able to edit the original file with nano or vi or whatever you prefer as an editor... Hope this helps Paul -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Alan Lord (News) wrote: > On 17/07/09 13:33, John Matthews wrote: > > >> I got down to the permissions page, and it just looked like a lot of >> stuff, that made no sense at all. >> >> I am sorry that I have had to ask, I will try from now on to not bother >> you. >> >> Thank you again, >> >> John. >> >> > > Hi John, > > There is another, quite recent "book" that is online which might help > you too. > > It does good job of comparing the differences between using a GUI > (Windows and the Mouse etc) and the command line. > > It has quite a few pictures too. You can read the book online here: > > http://en.flossmanuals.net/gnulinux > > and also get it as an indexed PDF from here: > > http://en.flossmanuals.net/CommandLineIntro/FM_16Apr09.pdf > > HTH > > Alan > > > Hi sorry its taken me so long to get back to you, not been too good here. Have been going through things, its slow, and I'm stuck. I have actually been going through that book, I think it was Lucy on here that posted about it a while back, I have been finding it really useful. I have been able to get into the site find my way around, and get right into files, using nano, but I am pooping myself, trying to edit them. Took me a while cause I kept on going to a certain folder, but not giving the correct commands after that, and being told all the time that the folders I'm looking at arent there. Hope that makes sense. I wasnt looking at what was just before the $ and once I realised that, I found it made sense and I could navigate further in. The other things was, I am not used to how the Directory is, as I'm used to public_html tree, and its learning that as well, that has taken a while, but having the tree open in Places has helped. Now I can navigate straight to a Directory I want, as soon as I log in (this is both in Ubuntu and Putty if I'm in Windows). Its taken me a while and a lot of sweating just in case I mess things up. I am in the process of learning the copy and remove commands just before I edit something in a file. I am now finding it frustrating because I cant copy and paste from my desktop to the file plus saving what I have done, cant work that one out yet, its probably very simple, but I am trying. But at least I have got that far. That is my update. John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On 17/07/09 13:33, John Matthews wrote: > I got down to the permissions page, and it just looked like a lot of > stuff, that made no sense at all. > > I am sorry that I have had to ask, I will try from now on to not bother > you. > > Thank you again, > > John. > Hi John, There is another, quite recent "book" that is online which might help you too. It does good job of comparing the differences between using a GUI (Windows and the Mouse etc) and the command line. It has quite a few pictures too. You can read the book online here: http://en.flossmanuals.net/gnulinux and also get it as an indexed PDF from here: http://en.flossmanuals.net/CommandLineIntro/FM_16Apr09.pdf HTH Alan -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On 17/07/09 13:33, John Matthews wrote: >> >> This page (of the link I have referred you to on several occasions) will >> explain all this far better than I can in a text-mode email. >> >> http://linuxcommand.org/lts0070.php >> > > I got down to the permissions page, and it just looked like a lot of > stuff, that made no sense at all. > > I am sorry that I have had to ask, I will try from now on to not bother > you. > > Thank you again, > > John. I wasn't trying to put you off! Sorry if I was unclear. As I said, I thought that page explained it better than I could. Especially as we only use plain text email, i.e no pictures, diagrams etc... The list is here to help as someone else said. You never mentioned that you had read (or tried to read) any of the materials we have pointed you to. What do you find hard to understand regarding the permissions page? Also, it might be better to start a new thread such as "help with understanding permissions" or something like that. That way it is easier to keep track of what a particular topic is about. This one is not really much to do with ssh anymore. Cheers Al -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
2009/7/17 John Matthews : > [snip] > I got down to the permissions page, and it just looked like a lot of > stuff, that made no sense at all. > > I am sorry that I have had to ask, I will try from now on to not bother > you. I hope you won't stop asking. Especially if you've read the contents of a link and it didn't make sense. I think the problem in this case was that it didn't sound like you'd bothered to look, but were just asking to be spoon-fed. If you make an effort (which I think you are), and make it clear that you are doing so, everyone should be happy to keep helping, even if you ask "stupid" questions - as a wise person once said "the only stupid question is the one you don't ask". HTH Cofion/Regards, Neil. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Just to add to thisthe $ or # denote the type of access you have... $ means that you have standard shell access, whereas if you see # at the start of a command you have (or should have) root access. Obviously in Ubuntu if you are looking for help somewhere and see a command written as #apt-get install, you can achieve the same using $sudo apt-get install On Fri, Jul 17, 2009 at 1:53 PM, Sean Miller wrote: > > Hmmm... typing "pwd" will show the current directory. The "$" is the > command prompt, it is not part of the command. > -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On Fri, Jul 17, 2009 at 1:33 PM, John Matthews wrote: > the $pwd commands shows the directory, then it says if you want to > change the directory, it tells you to use $cd /usr/then directory you Hmmm... typing "pwd" will show the current directory. The "$" is the command prompt, it is not part of the command. So, for instance you type... pwd and it says "/home/jakewc2" you then type "ls" and it says fred george bob install.txt Now, if you want to get to the files in "george" you simply type "cd george" and then "ls" and you find out what's in george. To go back up again type "cd .." (.. means the level higher than you are at present) "ls -F | grep /" is a good command too, as it only shows the directories and leaves out the files. Sean -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Alan Lord (News) wrote: > On 17/07/09 06:45, John Matthews wrote: > >> Ok, this is some good news, I have a question to ask, I need to change >> the permissions of a file in one of my folders, on my site, it has to be >> read only, as it is its 777. >> >> I have gotten into the folder and have the list of files and their >> permissions, and I can see the file I need to change, but I am not sure >> of the command. >> >> I know you have to chmod to something but I cannot work it out. >> >> Can somebody help please? >> > > chmod is the right command but, depending on who *owns* the file you > might not have permissions to do so straight away. > > man chmod will help you. There are several ways to achieve the same thing. > > essentially the command is: > > chmod [OPTION]... MODE[,MODE]... FILE... > > or > > chmod [OPTION]... OCTAL-MODE FILE... > > Personally I prefer the octal method. > > Your file has three sets of permissions > > -rw-r--r-- 1 alord alord 49 2009-05-13 19:43 temp > > (BTW, this information is well documented in several of the links we > supplied previously). > > Ignoring the very first (from the left) "-" you should see three groups > of "---" Which in my case show > > rw- (The File Owner: The first alord you see) > r-- (The Group Owner: The 2nd alord) > r-- (Anyone/Everyone: Also referred to as World) > > So, who do you want to have read only access? Everyone but you? Everyone > but you and the group? Or Everyone? > > chmod 444 filename > > Will set all three sets of permissions to Read only. > > chmod 666 filename > > Will set all three sets of perms to Read/Write. > > chmod 555 filename > > Will set all three perms to Read/Execute > > You add up three numbers to get the right one: > > 1: Execute, > 2: Write, > 4: Read. > > If you want the file to be read only for everyone else, but *you* (The > file's owner) needs read/write then do: > > chmod 644 filename > > You do not say what or who owns the file. If it on your webserver, it > might be owned by the web-server perhaps? Sometimes called www-data, > apache, nobody or httpd. The name is [almost] arbitrary but if it isn't > the same as your username you do not own it. > > If you are not the owner you might not be able to change it without > becoming root or assuming root privileges by using sudo (if available on > your system). > > This page (of the link I have referred you to on several occasions) will > explain all this far better than I can in a text-mode email. > > http://linuxcommand.org/lts0070.php > > Alan > > > > > > Hi, thank you so much for your help, I really appreciate it. I am sorry that I have to ask, I am finding it hard to follow some of those instructions, example in point:- the $pwd commands shows the directory, then it says if you want to change the directory, it tells you to use $cd /usr/then directory you want. I followed those instructions, but nothing was happened, and it wasnt until I thought to go into my Places and do it that way, that I discovered that I have to on my machine, add cd /home/myname/then directory, then it would work. I got down to the permissions page, and it just looked like a lot of stuff, that made no sense at all. I am sorry that I have had to ask, I will try from now on to not bother you. Thank you again, John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On 17/07/09 06:45, John Matthews wrote: > Ok, this is some good news, I have a question to ask, I need to change > the permissions of a file in one of my folders, on my site, it has to be > read only, as it is its 777. > > I have gotten into the folder and have the list of files and their > permissions, and I can see the file I need to change, but I am not sure > of the command. > > I know you have to chmod to something but I cannot work it out. > > Can somebody help please? chmod is the right command but, depending on who *owns* the file you might not have permissions to do so straight away. man chmod will help you. There are several ways to achieve the same thing. essentially the command is: chmod [OPTION]... MODE[,MODE]... FILE... or chmod [OPTION]... OCTAL-MODE FILE... Personally I prefer the octal method. Your file has three sets of permissions -rw-r--r-- 1 alord alord 49 2009-05-13 19:43 temp (BTW, this information is well documented in several of the links we supplied previously). Ignoring the very first (from the left) "-" you should see three groups of "---" Which in my case show rw- (The File Owner: The first alord you see) r-- (The Group Owner: The 2nd alord) r-- (Anyone/Everyone: Also referred to as World) So, who do you want to have read only access? Everyone but you? Everyone but you and the group? Or Everyone? chmod 444 filename Will set all three sets of permissions to Read only. chmod 666 filename Will set all three sets of perms to Read/Write. chmod 555 filename Will set all three perms to Read/Execute You add up three numbers to get the right one: 1: Execute, 2: Write, 4: Read. If you want the file to be read only for everyone else, but *you* (The file's owner) needs read/write then do: chmod 644 filename You do not say what or who owns the file. If it on your webserver, it might be owned by the web-server perhaps? Sometimes called www-data, apache, nobody or httpd. The name is [almost] arbitrary but if it isn't the same as your username you do not own it. If you are not the owner you might not be able to change it without becoming root or assuming root privileges by using sudo (if available on your system). This page (of the link I have referred you to on several occasions) will explain all this far better than I can in a text-mode email. http://linuxcommand.org/lts0070.php Alan -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
A relatively usual setting is 755... that means that the owner can write but everybody else can simply read and execute. Is that what you want? There is an alternative syntax that you might find useful from the command line if you don't find the binary syntax intuitive. There are three user categories... u - this is the owner of the file g - these are members of the group of users the file belongs to o - these are others, don't get this confused with "owner", it isnt!! there is also and option "a" which sets all users. There are then three basic privileges you can grant... r - read w - write x - execute There are a couple of others, but we won't worry about that for now!! So, if you want to give, say, the group execute the syntax is chmod g+x filename Similarly, if you want to remove write from group and others chmod go-w filename For file modifications you may find this more intuitive, you may not. The binary may work better for you, depending on the way your mind works :-) Incidentally, you can find all these things out by simply going to Google and typing "chmod". As you can with pretty much any question you might have. Or, as we keep telling you (but you dont seem to notice), typing "man chmod" from command prompt!! Might be worth doing this in future - it'll save you waiting for somebody on the group to reply!! Google is your friend, and so is man :-) Sean -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Ok, this is some good news, I have a question to ask, I need to change the permissions of a file in one of my folders, on my site, it has to be read only, as it is its 777. I have gotten into the folder and have the list of files and their permissions, and I can see the file I need to change, but I am not sure of the command. I know you have to chmod to something but I cannot work it out. Can somebody help please? John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
This may be of help... http://linuxcommand.org/learning_the_shell.php Sean -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
2009/7/15 John Matthews : > Hi, thank you for your message. So as I understand it then, if I have a > folder on the desktop called title, that is called a directory then yes? > I wanted to copy that folder to the home directory. > > So what is the difference between scp and cp ~r Others have explained the difference between the commands, but I just wanted to point something out that may cause more confusion. It might just be a typo, but you used a ~ (tilde) in your question, where Sean used a - (minus or hyphen). Using a hyphen marks the next group of characters as an option to change the behaviour of the command you are using. Using a tilde refers to a user's home directory, and you'll get some strange error messages! You can also use the -r option on the scp command to copy a directory and its contents. > I really am not getting it, its very confusing. This page is showing two > different ways of copying. I am more confused now. > > I need to find a night school, so I can get somebody to show me, this is > just not working. A LUG would also help, and is probably free (as in cost) too! This is the sort of situation where it will take about 10 weeks by email/mailing list to tell you as much about the command line as can be demonstrated in 10 minutes with two people at one PC! LUGs are friendly and most welcome new members, so it's definitely worth looking for one near you. > I have never felt so frustrated in all my life as I have since trying to > learn Linux. I used to be an Intensive Care nurse, and I never found it > as hard as this. It was intense, but not as hard to work out what to do. You were probably in the same room as the person who trained you to be an Intensive Care nurse. The fact that you're not in the same room as us lot trying to teach you how to use the command line makes a big difference. Don't give up! Cofion/Regards, Neil. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
John Matthews wrote: > Hi, thank you for your message. So as I understand it then, if I have a > folder on the desktop called title, that is called a directory then yes? > I wanted to copy that folder to the home directory. Hi John, directories = folders, it's just different nomenclatures. Many of us grew up with Linux (and various other UNIX systems) at the command line, so calling a folder a directory is just habit. Assume they're the same thing, because the are :) > So what is the difference between scp and cp ~r Secure CoPy (scp) is used to copy data to and from remote systems over the SSH protocol. CoPy (cp) is used to copy data around on a local system. > I really am not getting it, its very confusing. This page is showing two > different ways of copying. I am more confused now. They are two different ways of copying, but they're different tools to achieve different things. > I need to find a night school, so I can get somebody to show me, this is > just not working. Someone earlier suggested finding a local Linux User Group and attending one of their meetings - see www.lug.org.uk to find your nearest. LUGs are usually full of bright, patient and helpful people, as you're finding here I hope! I'm sure at least one person will have a laptop and will be able to give you a quick few minutes demonstrating various shell concepts and commands. > I have never felt so frustrated in all my life as I have since trying to > learn Linux. I used to be an Intensive Care nurse, and I never found it > as hard as this. It was intense, but not as hard to work out what to do. Keep at it. Try to remember there is a wealth of information now to help you, via manual (or man) pages, Google, LUGs, HOWTO files, etc. I know you stated at one point that you preferred to be shown things rather than have to read about them, but at some point it's best to just ... well, read stuff! The man pages are usually good at going in depth as to a command's function, while invariably typing the command name followed by --help will bring up a quick list of the command's function and optional parameters for usage, e.g. cp --help As I and others will say, we were all beginners once, just at different times :) I was a Linux beginner way back in 1994, and even today I'm still learning stuff. Please continue to ask questions, but please also take a stab at reading the documentation for the commands you want to play with, or seek out some FAQs and HOWTOs :) -n -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Alan Lord (News) wrote: > On 15/07/09 17:53, John Matthews wrote: > >> Hi, thank you for your message. So as I understand it then, if I have a >> folder on the desktop called title, that is called a directory then yes? >> I wanted to copy that folder to the home directory. >> > > Yes, in Linux, a folder is usually known as a directory. But they mean > much the same. A place where files are stored inside. > > >> So what is the difference between scp and cp ~r >> > > man scp > man cp > > scp is "Secure CoPy" and is generally used between *different* > computers; but may also be used on the same machine too. > > cp is the general "CoPy" command of the Linux shell. > > I posted quite a few links on an earlier post. > > A quick glance at this one: http://linuxcommand.org/learning_the_shell.php > > would help you considerably: Especially for copying files see: > http://linuxcommand.org/lts0050.php#cp > > HTH > > Alan > > > Hi Alan, thank you for the message. I have been bit busy since this morning trying to get a few things sorted, and writing in this thread and trying a few things out, are being done inbetween. I will take a look at that url you posted, and see how I get on. Thank you again, John -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On 15/07/09 17:53, John Matthews wrote: > Hi, thank you for your message. So as I understand it then, if I have a > folder on the desktop called title, that is called a directory then yes? > I wanted to copy that folder to the home directory. Yes, in Linux, a folder is usually known as a directory. But they mean much the same. A place where files are stored inside. > So what is the difference between scp and cp ~r man scp man cp scp is "Secure CoPy" and is generally used between *different* computers; but may also be used on the same machine too. cp is the general "CoPy" command of the Linux shell. I posted quite a few links on an earlier post. A quick glance at this one: http://linuxcommand.org/learning_the_shell.php would help you considerably: Especially for copying files see: http://linuxcommand.org/lts0050.php#cp HTH Alan -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Hi, thank you for your message. So as I understand it then, if I have a folder on the desktop called title, that is called a directory then yes? I wanted to copy that folder to the home directory. So what is the difference between scp and cp ~r I really am not getting it, its very confusing. This page is showing two different ways of copying. I am more confused now. I need to find a night school, so I can get somebody to show me, this is just not working. I have never felt so frustrated in all my life as I have since trying to learn Linux. I used to be an Intensive Care nurse, and I never found it as hard as this. It was intense, but not as hard to work out what to do. John. Sean Miller wrote: > if you're trying to copy a directory you need to use "cp -r" > > ie. "cp -r ~/Desktop/title ~" or similar, which will create a > directory called "title" under your home directory with the same > contents as the one on your desktop. ("~" is Linux shorthand for your > home directory) > > Sean > > On Wed, Jul 15, 2009 at 5:01 PM, John Matthews wrote: > >> Robert McWilliam wrote: >> >>> On Wed, Jul 15, 2009 at 10:44:03AM +0100, John Matthews wrote: >>> >>> This is something that I came across last night, whilst trying to upload a file from my Dektop to my website using shell commands, or at least trying to. Something that I found out after a while was that you need a Terminal open for the Desktop and one for the Remote server. I just could not get my Terminal to recognise that there was a file on my desktp that needed to be transfered, kept saying no file found. This is something that is really frustrating me that I couldnt get that to work, which was why I asked about pc to pc help. >>> I'll try and give a simple explanation of how scp works, if anything >>> doesn't make sense or doesn't work come back to us (ideally with the >>> command you're trying to run that doesn't work). >>> >>> scp copies things from one place to another, normally with the two >>> places being on different machines. >>> >>> General usage is: >>> scp >>> >>> For the simple case and will both be files >>> (destination one that will be created), or you can give a directory >>> for destination and the file will be placed in it with the same name >>> as it had originally. They can be files on the same machine the >>> command is being run on (in which case they are referred to by the >>> path, e.g. /home/user/some.file) or on another machine (in which case >>> you need to specify the machine, user name and the path in the form >>> @:, e.g. j...@example.com:/var/www/). >>> >>> To copy something from your Desktop on an ubuntu machine to somewhere >>> on a webserver you'd want to run scp on the ubuntu machine, with >>> source as the path to the file and destination specifying the web >>> server. Something like: >>> scp ~/Desktop/file_to.go j...@example.com:/where/file/goes/ >>> >>> To get something from the remote server: >>> scp j...@example.com:/file/to.get ~/Desktop/ >>> >>> I think you might be confused about where you run these commands. If >>> the webserver is running an SSH server and your local machine isn't >>> then you should be running all the scp commands on your local >>> machine. You then refer to things on the local machine with normal >>> paths and stuff on the remote machine with paths with the server >>> address prepended. >>> >>> Hopefully that'll help some, if anythings not clear: ask. >>> >>> Robert >>> >>> >> Hi, that is really handy, and looks quite simple, but when I tried it, I >> couldnt get it to work. >> To start off with, I just was trying to move it between my desktop to >> the home folder. >> >> ake...@jakewc2-laptop:~$ scp /home/jakewc2/Desktop/title >> /home/jakewc2/Books/ >> cp: omitting directory `/home/jakewc2/Desktop/title' >> >> I saw I left the / after title so added it on the next go, still same >> message. If it has moved it, I cant find the thing, its not where I >> wanted it to be. This is one of those commands that I would imagine to >> one of the most used, and once I know how to use it, will probably use >> the terminal all the time, for things like that. Much easier that the >> interface way. >> >> This is what I mean by being shown, somewhere I am not seeing what you >> are trying to tell me. I know it looks like, and I feel quite >> embarrassed, but I am not really as thick as it looks, might be more >> green as in cabbage looking. I do pick things things up. >> >> >> John. >> >> >> -- >> ubuntu-uk@lists.ubuntu.com >> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk >> https://wiki.ubuntu.com/UKTeam/ >> >> > > -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
if you're trying to copy a directory you need to use "cp -r" ie. "cp -r ~/Desktop/title ~" or similar, which will create a directory called "title" under your home directory with the same contents as the one on your desktop. ("~" is Linux shorthand for your home directory) Sean On Wed, Jul 15, 2009 at 5:01 PM, John Matthews wrote: > Robert McWilliam wrote: >> On Wed, Jul 15, 2009 at 10:44:03AM +0100, John Matthews wrote: >> >>> This is something that I came across last night, whilst trying to upload >>> a file from my Dektop to my website using shell commands, or at least >>> trying to. Something that I found out after a while was that you need a >>> Terminal open for the Desktop and one for the Remote server. I just >>> could not get my Terminal to recognise that there was a file on my >>> desktp that needed to be transfered, kept saying no file found. This is >>> something that is really frustrating me that I couldnt get that to work, >>> which was why I asked about pc to pc help. >>> >> >> I'll try and give a simple explanation of how scp works, if anything >> doesn't make sense or doesn't work come back to us (ideally with the >> command you're trying to run that doesn't work). >> >> scp copies things from one place to another, normally with the two >> places being on different machines. >> >> General usage is: >> scp >> >> For the simple case and will both be files >> (destination one that will be created), or you can give a directory >> for destination and the file will be placed in it with the same name >> as it had originally. They can be files on the same machine the >> command is being run on (in which case they are referred to by the >> path, e.g. /home/user/some.file) or on another machine (in which case >> you need to specify the machine, user name and the path in the form >> @:, e.g. j...@example.com:/var/www/). >> >> To copy something from your Desktop on an ubuntu machine to somewhere >> on a webserver you'd want to run scp on the ubuntu machine, with >> source as the path to the file and destination specifying the web >> server. Something like: >> scp ~/Desktop/file_to.go j...@example.com:/where/file/goes/ >> >> To get something from the remote server: >> scp j...@example.com:/file/to.get ~/Desktop/ >> >> I think you might be confused about where you run these commands. If >> the webserver is running an SSH server and your local machine isn't >> then you should be running all the scp commands on your local >> machine. You then refer to things on the local machine with normal >> paths and stuff on the remote machine with paths with the server >> address prepended. >> >> Hopefully that'll help some, if anythings not clear: ask. >> >> Robert >> > Hi, that is really handy, and looks quite simple, but when I tried it, I > couldnt get it to work. > To start off with, I just was trying to move it between my desktop to > the home folder. > > ake...@jakewc2-laptop:~$ scp /home/jakewc2/Desktop/title > /home/jakewc2/Books/ > cp: omitting directory `/home/jakewc2/Desktop/title' > > I saw I left the / after title so added it on the next go, still same > message. If it has moved it, I cant find the thing, its not where I > wanted it to be. This is one of those commands that I would imagine to > one of the most used, and once I know how to use it, will probably use > the terminal all the time, for things like that. Much easier that the > interface way. > > This is what I mean by being shown, somewhere I am not seeing what you > are trying to tell me. I know it looks like, and I feel quite > embarrassed, but I am not really as thick as it looks, might be more > green as in cabbage looking. I do pick things things up. > > > John. > > > -- > ubuntu-uk@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ > -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Robert McWilliam wrote: > On Wed, Jul 15, 2009 at 10:44:03AM +0100, John Matthews wrote: > >> This is something that I came across last night, whilst trying to upload >> a file from my Dektop to my website using shell commands, or at least >> trying to. Something that I found out after a while was that you need a >> Terminal open for the Desktop and one for the Remote server. I just >> could not get my Terminal to recognise that there was a file on my >> desktp that needed to be transfered, kept saying no file found. This is >> something that is really frustrating me that I couldnt get that to work, >> which was why I asked about pc to pc help. >> > > I'll try and give a simple explanation of how scp works, if anything > doesn't make sense or doesn't work come back to us (ideally with the > command you're trying to run that doesn't work). > > scp copies things from one place to another, normally with the two > places being on different machines. > > General usage is: > scp > > For the simple case and will both be files > (destination one that will be created), or you can give a directory > for destination and the file will be placed in it with the same name > as it had originally. They can be files on the same machine the > command is being run on (in which case they are referred to by the > path, e.g. /home/user/some.file) or on another machine (in which case > you need to specify the machine, user name and the path in the form > @:, e.g. j...@example.com:/var/www/). > > To copy something from your Desktop on an ubuntu machine to somewhere > on a webserver you'd want to run scp on the ubuntu machine, with > source as the path to the file and destination specifying the web > server. Something like: > scp ~/Desktop/file_to.go j...@example.com:/where/file/goes/ > > To get something from the remote server: > scp j...@example.com:/file/to.get ~/Desktop/ > > I think you might be confused about where you run these commands. If > the webserver is running an SSH server and your local machine isn't > then you should be running all the scp commands on your local > machine. You then refer to things on the local machine with normal > paths and stuff on the remote machine with paths with the server > address prepended. > > Hopefully that'll help some, if anythings not clear: ask. > > Robert > Hi, that is really handy, and looks quite simple, but when I tried it, I couldnt get it to work. To start off with, I just was trying to move it between my desktop to the home folder. ake...@jakewc2-laptop:~$ scp /home/jakewc2/Desktop/title /home/jakewc2/Books/ cp: omitting directory `/home/jakewc2/Desktop/title' I saw I left the / after title so added it on the next go, still same message. If it has moved it, I cant find the thing, its not where I wanted it to be. This is one of those commands that I would imagine to one of the most used, and once I know how to use it, will probably use the terminal all the time, for things like that. Much easier that the interface way. This is what I mean by being shown, somewhere I am not seeing what you are trying to tell me. I know it looks like, and I feel quite embarrassed, but I am not really as thick as it looks, might be more green as in cabbage looking. I do pick things things up. John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On Wed, Jul 15, 2009 at 10:44:03AM +0100, John Matthews wrote: > This is something that I came across last night, whilst trying to upload > a file from my Dektop to my website using shell commands, or at least > trying to. Something that I found out after a while was that you need a > Terminal open for the Desktop and one for the Remote server. I just > could not get my Terminal to recognise that there was a file on my > desktp that needed to be transfered, kept saying no file found. This is > something that is really frustrating me that I couldnt get that to work, > which was why I asked about pc to pc help. I'll try and give a simple explanation of how scp works, if anything doesn't make sense or doesn't work come back to us (ideally with the command you're trying to run that doesn't work). scp copies things from one place to another, normally with the two places being on different machines. General usage is: scp For the simple case and will both be files (destination one that will be created), or you can give a directory for destination and the file will be placed in it with the same name as it had originally. They can be files on the same machine the command is being run on (in which case they are referred to by the path, e.g. /home/user/some.file) or on another machine (in which case you need to specify the machine, user name and the path in the form @:, e.g. j...@example.com:/var/www/). To copy something from your Desktop on an ubuntu machine to somewhere on a webserver you'd want to run scp on the ubuntu machine, with source as the path to the file and destination specifying the web server. Something like: scp ~/Desktop/file_to.go j...@example.com:/where/file/goes/ To get something from the remote server: scp j...@example.com:/file/to.get ~/Desktop/ I think you might be confused about where you run these commands. If the webserver is running an SSH server and your local machine isn't then you should be running all the scp commands on your local machine. You then refer to things on the local machine with normal paths and stuff on the remote machine with paths with the server address prepended. Hopefully that'll help some, if anythings not clear: ask. Robert Robert McWilliamr...@allmail.net www.ormiret.com Speed the earth is orbiting the sun: ~65,000 miles per hour. Speed we orbit the galactic centre: ~600,000 miles per hour. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
John Matthews wrote: > > > Hi Darren, > > Well see I didnt know that, and I am so glad that you have explained it. > This is something that I came across last night, whilst trying to upload > a file from my Dektop to my website using shell commands, or at least > trying to. Something that I found out after a while was that you need a > Terminal open for the Desktop and one for the Remote server. I just > could not get my Terminal to recognise that there was a file on my > desktp that needed to be transfered, kept saying no file found. This is > something that is really frustrating me that I couldnt get that to work, > which was why I asked about pc to pc help. > I suspect you were doing: $ scp /Desktop/somefile.tar usern...@server:~/ The error is that "/Desktop" isn't a valid location. You either need to use, /home/john/Desktop/somefile.tar or "~/Desktop/somefile.tar". The "~" expands automatically to your "Home", which is normally /home/john/. > I am sorry about all the questions, I think I already frightened > somebody off, which I am really sorry about if I have. :( > > John > > I'm sure you haven't!. :) Kind Regards, Dave Walker -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
> > I still have that problem with my Terminal not recognising files, its > really frustrating. One person helping me thought it might be my Ubuntu, > as I was trying to follow his directions and all I was getting was file > not found and it was right there on the Desktop. Which was why I > wondered if somebody could possibly come onto my pc to take a look and > actually show me, if there was something wrong. > > Thank you again though, that is really helpful. > > John. > Few things to remember about how you address files on the terminal. If you're used to Windows it can be a little confusing as Windows is a bit woolly on this kind of thing, Linux is more explicit about what you want to do. If you have a file with a space in it, you have to either escape the space or quote the whole thing. E.g.: $ ls Tel List.csv (without escaping the spaces) $ cp Tel List.csv Tel List2.csv cp: target `List2.csv' is not a directory (with escaping the spaces, it works) $ cp Tel\ List.csv Tel\ List2.csv (or quoting the text) $ cp "Tel List.csv" "Tel List3.csv" $ ls Tel List2.csv Tel List.csv -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Alan Lord (News) wrote: > On 15/07/09 09:05, danattwood wrote: > > >> You could try using a program like filezilla which works just like a >> standard ftp program but will let you use sftp so it's nice and secure. >> This will let you naviagte the 'tree', move files around and set >> permissions etc. When set up correctly the places menu can work in >> exactly the same way. >> > > Huh? > > Why do you want to use Filezilla? > > Under the Places menu is an option that says "Connect to server..." > > Select that, choose "ssh" in the service type drop-down, then fill in > the following fields: > > Server: Enter the IP address or domain name of the machine you want to > connect to. > > It will prompt you for a username and password. > > Once connected your file browser (nautilus) will open. > > I would recommend you select "Tree view" in the side pane of Nautilus. > If the side panel is not visible try F9 or look under the view menu for > the Side Pane option :-) > > You can now navigate around the filesystem on the remote host just as > you would with a local filesystem. > > In the tree view you can open local folders and drag and drop files and > directories between the local machine and the remote host. > > It really isn't that hard. It is very similar to another proprietary > software maker's file manager. IIRC it was called Windows Explorer. > > Right clicking on a file and selecting properties will bring up a useful > dialogue box. The Permissions tab is probably the most useful. > > However much of this can be accomplished from the command line, and when > you need to do multiple operations it is usually faster. Some useful > commands once logged into a machine are: > > lslist directory contents > ls -lalist everything in the dir and show lots more information > > chmod Change the permisssions of a file (man chmod for more info) > chown Change the owner of the file > > pwd Present Working Directory (Where am I now?) > > cpCopy (copy a file/files/directories) > mvMove (also used for renaming a file/directory) > > duShow how much space is being used in a particular directory. > dfShow what partitions are mounted and where to. > > less Print the contents of a file to the screen page-by-page > > mkdir Make a directory > rmdir Remove a directory > > touch Create an empty (zero byte) file > > man lsOpen the manual page for the "ls" command. man "command" will > bring up a man page for the command, e.g. > > man chmod > man pwd > man cp > > etc etc. > > HTH > > Alan > > >> Or how about finding out about you local lug and popping in to one of >> their meets. I'm sure someone there will give you quick lesson on using >> the places menu and ssh >> > > Good advice. > > > Hi Alan, I didnt see this e-mail to start, just had to search for it. It is very helpful especially with Nautilus and using the tree menu, I didnt know that was available, and I prefere that, as I used it on Explorer. Ok, I know I have kept on, but and I'm sorry about that, but I am glad I did because I wouldnt have known about the ssh thing and Linux Command Line. I have copied those commands you gave me over to a text editor to learn and try out. I still have that problem with my Terminal not recognising files, its really frustrating. One person helping me thought it might be my Ubuntu, as I was trying to follow his directions and all I was getting was file not found and it was right there on the Desktop. Which was why I wondered if somebody could possibly come onto my pc to take a look and actually show me, if there was something wrong. Thank you again though, that is really helpful. John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
> > Hi Darren, > > Well see I didnt know that, and I am so glad that you have explained it. > This is something that I came across last night, whilst trying to upload > a file from my Dektop to my website using shell commands, or at least > trying to. Something that I found out after a while was that you need a > Terminal open for the Desktop and one for the Remote server. I just > could not get my Terminal to recognise that there was a file on my > desktp that needed to be transfered, kept saying no file found. This is > something that is really frustrating me that I couldnt get that to work, > which was why I asked about pc to pc help. > > I am sorry about all the questions, I think I already frightened > somebody off, which I am really sorry about if I have. :( > > John > Not sure what you mean about needing a terminal open for your desktop and one for the remote server. Unless I'm misunderstanding, you don't need to. >From a Windows desktop you will need to use WinSCP, Filezilla or Pscp to transfer files over SSH. >From Linux there are various ways. The easiest is use to use a terminal program like Gnome-terminal or Konsole. Type scp filename u...@remotehost: Or probably slightly easier just type sftp u...@remotehost and then use it like normal FTP. Easiest is to use fish in Dolphin on KDE4 - Just open a file browser and type fish://u...@remotehost and you will get a remote filesystem. If you use Gnome (default in Ubuntu) then you can open the file browser and type sftp://u...@remotehost to get the same. Remember Linux is case-sensitive. File is not the same as file. Darren -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
darren.mans...@opengi.co.uk wrote: >>> >> Hi thank you for your message, well that sort of defeats the object >> > for > >> me really as I want to learn the commands. Its kind of frustrating >> > that > >> there isnt something available for beginners to read for ssh. I know >> people have given me some urls but they are quite intense and expect >> people to already have some knowledge of what they are talking about, >> > so > >> its very hard making my way through them. >> >> Plus after finding out last night that I might have a problem with the >> terminal not recocnising folders where they are supposed to be, it >> > sort > >> of was why I wanted help pc to pc, to make sure. >> >> Nothing is ever easy is it. >> >> John. >> >> -- >> > > I think what you're really trying to find out is how to use the shell. > SSH and the shell are 2 different things, SSH is the method of > connecting into a shell over a network. To actually do stuff once you're > connected you use standard Linux/Unix commands such as ls, rm, mv, cp > etc. This is pretty good http://www.reallylinux.com/docs/basic.shtml > > For using SSH, it's a different set of commands. As I said SSH is just a > method of connecting. There are other things that have been added > alongside SSH such as SCP and SFTP, which are just ways of copying files > over SSH. Just google SSH tutorial for that. > > Darren > > Hi Darren, Well see I didnt know that, and I am so glad that you have explained it. This is something that I came across last night, whilst trying to upload a file from my Dektop to my website using shell commands, or at least trying to. Something that I found out after a while was that you need a Terminal open for the Desktop and one for the Remote server. I just could not get my Terminal to recognise that there was a file on my desktp that needed to be transfered, kept saying no file found. This is something that is really frustrating me that I couldnt get that to work, which was why I asked about pc to pc help. I am sorry about all the questions, I think I already frightened somebody off, which I am really sorry about if I have. :( John -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On 15/07/09 09:57, John Matthews wrote: > Hi thank you for your message, well that sort of defeats the object for > me really as I want to learn the commands. Its kind of frustrating that > there isnt something available for beginners to read for ssh. I know > people have given me some urls but they are quite intense and expect > people to already have some knowledge of what they are talking about, so > its very hard making my way through them. You don't want to know about ssh then. ssh is just the mechanism to connect to another machine over a secure link. Once you nave connected to your machine using something like: ssh myn...@remote_machine.com then what you need to know is about the *Linux Command Line* sometimes called a *shell*. Here are some useful links. https://help.ubuntu.com/community/UsingTheTerminal http://www.informit.com/articles/article.aspx?p=1226928 http://ubuntuforums.org/showthread.php?p=990636 http://www.tuxfiles.org/linuxhelp/cli.html http://linuxcommand.org/learning_the_shell.php There's a few to be getting on with... (All I did was put "Ubuntu Command Line" into Google). There is also a nice e-book available called the Ubuntu Pocket Reference Guide, free in digital form for download from here: http://www.ubuntupocketguide.com/index_main.html The Linux Documentation Project has a host of useful information: http://tldp.org/ including such gems as: Bash Guide For Beginners: http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html (Bash is the name of the default shell, or CLI used in most Linux distros) Introduction to Linux: http://tldp.org/LDP/intro-linux/html/index.html GNU/Linux Command Line Tools Summary: http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/index.html There really is a great deal of information out there. And there are *lots and lots* of commands. Anytime you need to know *how* to do a particular task or job, do ask. That is what these lists are for. Sometimes it can be hard to find the right command when you don't know what it is called. But trying to do some kind of guide or lesson is going to be hard because there are loads of commands. Which ones whould we do and which should we pass-over? I gave you a start on my previous post, and hopefully these links will help you get more familiar. But don't be put off because it is unfamiliar or seemingly difficult. Once you get the hang of it you will never look back! Cheers Alan -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
> > > > > Hi thank you for your message, well that sort of defeats the object for > me really as I want to learn the commands. Its kind of frustrating that > there isnt something available for beginners to read for ssh. I know > people have given me some urls but they are quite intense and expect > people to already have some knowledge of what they are talking about, so > its very hard making my way through them. > > Plus after finding out last night that I might have a problem with the > terminal not recocnising folders where they are supposed to be, it sort > of was why I wanted help pc to pc, to make sure. > > Nothing is ever easy is it. > > John. > > -- I think what you're really trying to find out is how to use the shell. SSH and the shell are 2 different things, SSH is the method of connecting into a shell over a network. To actually do stuff once you're connected you use standard Linux/Unix commands such as ls, rm, mv, cp etc. This is pretty good http://www.reallylinux.com/docs/basic.shtml For using SSH, it's a different set of commands. As I said SSH is just a method of connecting. There are other things that have been added alongside SSH such as SCP and SFTP, which are just ways of copying files over SSH. Just google SSH tutorial for that. Darren -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
danattwood wrote: > John wrote: > >> On 15/07/2009 02:10, William Anderson wrote: >> >>> John Matthews wrote: >>> >>> Hi its me again, it seems I might be having a few problems with my Ubuntu, as I cant get my files recognised when trying to use commands. Most likely me not understanding how its done. >>> It would be more useful to know what you're actually trying to do and at >>> what point you're running aground :) >>> >>> -n >>> >>> >>> >> I am a complete novice. I have managed to find my way to the server >> tree, at laest for one of my sites. >> >> I think things like navigating round the site, >> calling up files or folders, >> somebody mentioned how to make a copy/backup of anything I do on the >> site, so I have to do that. I use nano as the text editor. >> >> Copying files, pasting them from one place to another. >> Uploading files, then installing the into the correct folders. >> Writig to files. >> Permissions on those files. >> >> When it talks about pointing to a file for a program to work, giving >> that file permissions. >> >> What I need is for somebody to show me how to do it, so that can see >> and copy the commands to learn. >> >> Somebody told me to get into the site using the Places, but that only >> takes me to one place, I need to be able to get into the Tree, so that >> I can see what is there Hopefully that makes sense. >> >> Its is basically a teaching session. >> >> Hope that helps. >> >> John >> > You could try using a program like filezilla which works just like a > standard ftp program but will let you use sftp so it's nice and secure. > This will let you naviagte the 'tree', move files around and set > permissions etc. When set up correctly the places menu can work in > exactly the same way. > > Or how about finding out about you local lug and popping in to one of > their meets. I'm sure someone there will give you quick lesson on using > the places menu and ssh > > Dan > > Hi thank you for your message, well that sort of defeats the object for me really as I want to learn the commands. Its kind of frustrating that there isnt something available for beginners to read for ssh. I know people have given me some urls but they are quite intense and expect people to already have some knowledge of what they are talking about, so its very hard making my way through them. Plus after finding out last night that I might have a problem with the terminal not recocnising folders where they are supposed to be, it sort of was why I wanted help pc to pc, to make sure. Nothing is ever easy is it. John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On 15/07/09 09:05, danattwood wrote: > You could try using a program like filezilla which works just like a > standard ftp program but will let you use sftp so it's nice and secure. > This will let you naviagte the 'tree', move files around and set > permissions etc. When set up correctly the places menu can work in > exactly the same way. Huh? Why do you want to use Filezilla? Under the Places menu is an option that says "Connect to server..." Select that, choose "ssh" in the service type drop-down, then fill in the following fields: Server: Enter the IP address or domain name of the machine you want to connect to. It will prompt you for a username and password. Once connected your file browser (nautilus) will open. I would recommend you select "Tree view" in the side pane of Nautilus. If the side panel is not visible try F9 or look under the view menu for the Side Pane option :-) You can now navigate around the filesystem on the remote host just as you would with a local filesystem. In the tree view you can open local folders and drag and drop files and directories between the local machine and the remote host. It really isn't that hard. It is very similar to another proprietary software maker's file manager. IIRC it was called Windows Explorer. Right clicking on a file and selecting properties will bring up a useful dialogue box. The Permissions tab is probably the most useful. However much of this can be accomplished from the command line, and when you need to do multiple operations it is usually faster. Some useful commands once logged into a machine are: ls list directory contents ls -la list everything in the dir and show lots more information chmod Change the permisssions of a file (man chmod for more info) chown Change the owner of the file pwd Present Working Directory (Where am I now?) cp Copy (copy a file/files/directories) mv Move (also used for renaming a file/directory) du Show how much space is being used in a particular directory. df Show what partitions are mounted and where to. lessPrint the contents of a file to the screen page-by-page mkdir Make a directory rmdir Remove a directory touch Create an empty (zero byte) file man ls Open the manual page for the "ls" command. man "command" will bring up a man page for the command, e.g. man chmod man pwd man cp etc etc. HTH Alan > > Or how about finding out about you local lug and popping in to one of > their meets. I'm sure someone there will give you quick lesson on using > the places menu and ssh Good advice. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
John wrote: > On 15/07/2009 02:10, William Anderson wrote: >> John Matthews wrote: >> >>> Hi its me again, it seems I might be having a few problems with my >>> Ubuntu, as I cant get my files recognised when trying to use commands. >>> Most likely me not understanding how its done. >>> >> >> It would be more useful to know what you're actually trying to do and at >> what point you're running aground :) >> >> -n >> >> > I am a complete novice. I have managed to find my way to the server > tree, at laest for one of my sites. > > I think things like navigating round the site, > calling up files or folders, > somebody mentioned how to make a copy/backup of anything I do on the > site, so I have to do that. I use nano as the text editor. > > Copying files, pasting them from one place to another. > Uploading files, then installing the into the correct folders. > Writig to files. > Permissions on those files. > > When it talks about pointing to a file for a program to work, giving > that file permissions. > > What I need is for somebody to show me how to do it, so that can see > and copy the commands to learn. > > Somebody told me to get into the site using the Places, but that only > takes me to one place, I need to be able to get into the Tree, so that > I can see what is there Hopefully that makes sense. > > Its is basically a teaching session. > > Hope that helps. > > John You could try using a program like filezilla which works just like a standard ftp program but will let you use sftp so it's nice and secure. This will let you naviagte the 'tree', move files around and set permissions etc. When set up correctly the places menu can work in exactly the same way. Or how about finding out about you local lug and popping in to one of their meets. I'm sure someone there will give you quick lesson on using the places menu and ssh Dan -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On 15/07/2009 02:10, William Anderson wrote: John Matthews wrote: Hi its me again, it seems I might be having a few problems with my Ubuntu, as I cant get my files recognised when trying to use commands. Most likely me not understanding how its done. It would be more useful to know what you're actually trying to do and at what point you're running aground :) -n I am a complete novice. I have managed to find my way to the server tree, at laest for one of my sites. I think things like navigating round the site, calling up files or folders, somebody mentioned how to make a copy/backup of anything I do on the site, so I have to do that. I use nano as the text editor. Copying files, pasting them from one place to another. Uploading files, then installing the into the correct folders. Writig to files. Permissions on those files. When it talks about pointing to a file for a program to work, giving that file permissions. What I need is for somebody to show me how to do it, so that can see and copy the commands to learn. Somebody told me to get into the site using the Places, but that only takes me to one place, I need to be able to get into the Tree, so that I can see what is there Hopefully that makes sense. Its is basically a teaching session. Hope that helps. John -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
John Matthews wrote: > Hi its me again, it seems I might be having a few problems with my > Ubuntu, as I cant get my files recognised when trying to use commands. > Most likely me not understanding how its done. It would be more useful to know what you're actually trying to do and at what point you're running aground :) -n -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Hi its me again, it seems I might be having a few problems with my Ubuntu, as I cant get my files recognised when trying to use commands. Most likely me not understanding how its done. I have been really grateful for the support so far, but I was wondering, would somebody be willing to go through things with me via pc to pc support, to make sure I'm getting this, it just doesnt seem to be working out very well. I know its a lot to ask, and I am sorry to have to do it this way. Thank you again for all your help. John. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
John Matthews wrote: > Hi Alan, > > Yay, that has helped immensely, I have managed to get into the server > and can see all the files using sftp. Brilliant. Its really helped > because I have just noticed why something isnt working. > > Amazing, agian you all have been really helpful. I hope I can ask more > questions. > > @Sean.I have added you to my AIM, hope that is ok. > > John. > > Alan Bell wrote: > >> Hi John, >> ssh is a secure way of communicating with a remote server. At the most >> basic level it is like having a terminal session on the remote computer, >> you can use commands such as "cd" to change directory, "ls" to view the >> contents of your current directory (same as "dir" in dos) "pwd" to print >> your current working directory location. "nano index.html" to edit the >> file called index.html in the current directory. >> You can also pass other things over the secure tunnel. If you use "sftp >> j...@remote.host.com" instead of "ssh j...@remote.host.com" then you get >> a secure ftp-like session where you can put and get files to and from >> the server. You can also do this graphically in Ubuntu by going to the >> places menu then connect to server and select ssh from the dropdown. Put >> in your details then you will be able to browse the remote server over >> the ssh session and do pretty much anything on it as if it were local. >> >> Alan. >> >> John Matthews wrote: >> >> >>> Hi everybody, >>> >>> I am so sorry to ask this, but I was wondering if somebody would be >>> willing to give me some help with ssh and commands for running a website >>> via a terminal. >>> >>> I have been trying to learn from the websites, but I am not finding it >>> easy. If somebody could just start by showing me some basic commands, to >>> start off with, just so I can start, I would really appreciate it. >>> >>> Thank you >>> >>> John. >>> >>> >>> >>> >> >> > > > Although you seem to be happy using the "Connect to server..." gui interface there are some things which you will have to do through a terminal ssh session such as restarting the webserver if you've changed any configuration for it. If, as it sounds like, you're unfamiliar with the command line then the "man" command is your friend. Man is short for manual and gives you a help file for various commands. For example "man ls" would give you a document listing the various options for the ls command. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Hi John, Other useful commands could include df (shows disk usage) pwd (print working directory) mkdir (makes a directory) I also find lynx really useful for testing websites from remote locations and for W3C compliance - just apt-get install lynx then you should be able to use lynx http://www.example.com I pretty much permanently have a copy of o'reillys pocket linux command line reference attached to me... It's a really useful book, and you can pick up a copy on ebay for next to nothing... You can of course also look at the man page to find out command usages... Just type in man command To get an idea of how best to use a command :-) P On 13/07/2009, John Matthews wrote: > Hi Alan, > > Yay, that has helped immensely, I have managed to get into the server > and can see all the files using sftp. Brilliant. Its really helped > because I have just noticed why something isnt working. > > Amazing, agian you all have been really helpful. I hope I can ask more > questions. > > @Sean.I have added you to my AIM, hope that is ok. > > John. > > Alan Bell wrote: >> Hi John, >> ssh is a secure way of communicating with a remote server. At the most >> basic level it is like having a terminal session on the remote computer, >> you can use commands such as "cd" to change directory, "ls" to view the >> contents of your current directory (same as "dir" in dos) "pwd" to print >> your current working directory location. "nano index.html" to edit the >> file called index.html in the current directory. >> You can also pass other things over the secure tunnel. If you use "sftp >> j...@remote.host.com" instead of "ssh j...@remote.host.com" then you get >> a secure ftp-like session where you can put and get files to and from >> the server. You can also do this graphically in Ubuntu by going to the >> places menu then connect to server and select ssh from the dropdown. Put >> in your details then you will be able to browse the remote server over >> the ssh session and do pretty much anything on it as if it were local. >> >> Alan. >> >> John Matthews wrote: >> >>> Hi everybody, >>> >>> I am so sorry to ask this, but I was wondering if somebody would be >>> willing to give me some help with ssh and commands for running a website >>> via a terminal. >>> >>> I have been trying to learn from the websites, but I am not finding it >>> easy. If somebody could just start by showing me some basic commands, to >>> start off with, just so I can start, I would really appreciate it. >>> >>> Thank you >>> >>> John. >>> >>> >>> >> >> >> > > > -- > ubuntu-uk@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ > -- Sent from my mobile device -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Hi Alan, Yay, that has helped immensely, I have managed to get into the server and can see all the files using sftp. Brilliant. Its really helped because I have just noticed why something isnt working. Amazing, agian you all have been really helpful. I hope I can ask more questions. @Sean.I have added you to my AIM, hope that is ok. John. Alan Bell wrote: > Hi John, > ssh is a secure way of communicating with a remote server. At the most > basic level it is like having a terminal session on the remote computer, > you can use commands such as "cd" to change directory, "ls" to view the > contents of your current directory (same as "dir" in dos) "pwd" to print > your current working directory location. "nano index.html" to edit the > file called index.html in the current directory. > You can also pass other things over the secure tunnel. If you use "sftp > j...@remote.host.com" instead of "ssh j...@remote.host.com" then you get > a secure ftp-like session where you can put and get files to and from > the server. You can also do this graphically in Ubuntu by going to the > places menu then connect to server and select ssh from the dropdown. Put > in your details then you will be able to browse the remote server over > the ssh session and do pretty much anything on it as if it were local. > > Alan. > > John Matthews wrote: > >> Hi everybody, >> >> I am so sorry to ask this, but I was wondering if somebody would be >> willing to give me some help with ssh and commands for running a website >> via a terminal. >> >> I have been trying to learn from the websites, but I am not finding it >> easy. If somebody could just start by showing me some basic commands, to >> start off with, just so I can start, I would really appreciate it. >> >> Thank you >> >> John. >> >> >> > > > -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Hi John, ssh is a secure way of communicating with a remote server. At the most basic level it is like having a terminal session on the remote computer, you can use commands such as "cd" to change directory, "ls" to view the contents of your current directory (same as "dir" in dos) "pwd" to print your current working directory location. "nano index.html" to edit the file called index.html in the current directory. You can also pass other things over the secure tunnel. If you use "sftp j...@remote.host.com" instead of "ssh j...@remote.host.com" then you get a secure ftp-like session where you can put and get files to and from the server. You can also do this graphically in Ubuntu by going to the places menu then connect to server and select ssh from the dropdown. Put in your details then you will be able to browse the remote server over the ssh session and do pretty much anything on it as if it were local. Alan. John Matthews wrote: > Hi everybody, > > I am so sorry to ask this, but I was wondering if somebody would be > willing to give me some help with ssh and commands for running a website > via a terminal. > > I have been trying to learn from the websites, but I am not finding it > easy. If somebody could just start by showing me some basic commands, to > start off with, just so I can start, I would really appreciate it. > > Thank you > > John. > > -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
William Anderson wrote: > John Matthews wrote: > >> Hi everybody, >> >> I am so sorry to ask this, but I was wondering if somebody would be >> willing to give me some help with ssh and commands for running a website >> via a terminal. >> > > Echoing others, knowing more about what you mean by "running a website" > would be useful in helping you :) > > -n > > Hi everybody, thank you so much for the help, I have kept those commands and will try them out. I have a website on a server, and know very little about running a console. I want to learn, but reading the websites is confusing. I am old school and not good at learning from written work, I'm better being shown. I do learn quick though. John -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
John Matthews wrote: > Hi everybody, > > I am so sorry to ask this, but I was wondering if somebody would be > willing to give me some help with ssh and commands for running a website > via a terminal. Echoing others, knowing more about what you mean by "running a website" would be useful in helping you :) -n -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
On Mon, Jul 13, 2009 at 6:29 PM, Paul Roach wrote: > > Then you will have a console on the remote machine. From there, you > can edit files using nano > > nano filename > > There are prompts at the bottom of the screen. > > When editing a file, it's recommended to copy the file first. > > cp file.txt file.txt.backup > > Then you can edit the file without worries... > Tip: Create a .nanorc file: nano ~/.nanorc Write the lines: set backup set backupdir /home/yourusername/backups/nano and save and exit. Obviously set the backupdir path to something which exists, or make it. Every time you save a file, a copy of the original will automatically go into the backup directory you specified. This feature has saved me multiple times :) Some other options which I have in my .nanorc which make nano more comfortable: set nowrap set smarthome set autoindent set multibuffer set smooth set suspend Apologies for going a little off the thread topic, but I figured these might be useful, I find that even many people who use it daily don't know that nano can be customised in these ways, so I like to spread the knowledge. It can even accept mouse clicks... more help at "man 5 nanorc" :) Regards, Matthew -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
Got IM, John? If so, send msg to s...@seanmiller.net on MSN or seanofavalon on AIM. If I'm around happy to help if I can. Best, Sean -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Help needed with ssh
When you say running a website? Doi you mean going to a website via the command line, using say, lynx, or are you looking to set up a site. To ssh, just ssh u...@ipaddress Then you will have a console on the remote machine. From there, you can edit files using nano nano filename There are prompts at the bottom of the screen. When editing a file, it's recommended to copy the file first. cp file.txt file.txt.backup Then you can edit the file without worries... Does this help to get you started.. P On 13/07/2009, John Matthews wrote: > Hi everybody, > > I am so sorry to ask this, but I was wondering if somebody would be > willing to give me some help with ssh and commands for running a website > via a terminal. > > I have been trying to learn from the websites, but I am not finding it > easy. If somebody could just start by showing me some basic commands, to > start off with, just so I can start, I would really appreciate it. > > Thank you > > John. > > -- > ubuntu-uk@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ > -- Sent from my mobile device -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/