Tuesday, May 21, 2013

How do I transfer files to and from my computer I'm remotely connected to through SSH?

Q. I want to be able to transfer files to and from my home computer remotely while accessing it from an SSH connection...How do I do this? Do I need to set up an FTP server on my home computer? It's running Debian Linux and I access it from my Android phone using ConnectBot.

A. If it's running an ssh server that will include scp and usually sftp.
You can connect with any scp/sftp client like winscp, rsync. If you set up SSH keys access you need not bother with passwords (though it's still a good idea to have some passphrase in case you lose the phone)

ftp is less secure, unless you use SSL

I am accessing my home linux box remotely from work. How can I copy files from that linux comp to my local com
Q. I am accessing my home linux computer remotely from my MacBook via SSH. I am behind a NAT, so I don't have a static IP. I want to retrieve some files from that linux box to my MacBook. Is there a reverse SCP command that I can use so that I can SCP the file from my home linux box to my MacBook at work through the already established tunnel?

A. You use scp direct (not through the tunnel). It can copy either way. One option is to log in to your Linux box through ssh, then use scp to the Mac from there. you would need the address of the mac, and forwarding set up at its' router. Alternatively use the scp from the mac console to your Linux machine. You must have its' address if you can ssh to it.

Is there a way to easily shutdown a remote linux server with a shell script?
Q. I have 3 linux servers hooked to my UPS. I can only hook the UPS to one of them. The UPS software will allow me to run a shell script on that one server before it shuts down. And I want that shell script to shut down the other 2 servers. Is this possible?
@ Roland J: I AM FULLY AWARE OF HOW TO SHUTDOWN A LINUX MACHINE.

@ Roland J: Please donât answer a question unless you actually READ the question!!!!! It makes other people think the question is answered, when in reality, your just lazy to even read the full title of the question. (or you donât know what the word âremoteâ means)

I need to know how to shutdown a linux machine REMOTELY.

This means that I want to run a script on LinuxBox1 and have LinuxBox2 (another linux server on same LAN) shut down.

A. Actually SSH would have to be set up first to allow passwordless, login between servers.

I found the solution else where, and just wanted to post it here, in case anyone else stubles on this question looking for an answer.

NOTE: IN THE RESOLUTION BELOW MANY OF THE COMMANDS ARE CUT OFF, OR INCORECTULY SHOW AS TWO LINES. FOLLOW THIS LINK FOR A PROPERLY FORMATED ANSWER.
http://www.justlinux.com/forum/showthread.php?p=863427#post863427

RESOLUTION:
Here's what I did...

First I ssh'd from each machine to each other one. (The first time u ssh to new machine it asked you to accept the machines "fingerprint" and saves it -- this is just so they know who each other are.

Then on the machine I wanted to be able to shutdown FROM I did
[CODE]
cd /root/.ssh/
ssh-keygen -t rsa
[/CODE]
and accepted the default location. (/root/.ssh/id_rsa)
I left the passphrase blank, so it would not be required.

Then basically you just need to copy that "id_rsa" file onto the DESTINATION machine, in the same directory, but named as "authorized_keys". Which can easily be done like this:
[CODE]
scp id_rsa.pub xxx.xxx.xxx.xxx:/root/.ssh/authorized_keys [/CODE]
Where xxx.xxx.xxx.xxx is the IP address or host name of remote machine.

[INDENT]NOTE: You may want to check if a file by that name already exists, on the remote machine, because the above command will overwrite it without warning. -- If you already have a file by that name on the remote machine, I would suggest using command above, but change the file name. Then on the remote machine, append the file you just copied to the existing one. This could easily be done like this: (there may be an even simpler way - but this is what I know)

[CODE]mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.backup
cat /root/.ssh/authorized_keys.backup /root/.ssh/yourfilename > /root/.ssh/authorized_keys
[/CODE]
[/INDENT]

Then make sure the /root/.ssh/authorized_keys file has 600 permissions.
[CODE]
chmod 600 /root/.ssh/authorized_ keys
[/CODE]

Then try to ssh to the remote machine.
[CODE]
ssh xxx.xxx.xxx.xxx
[/CODE]
And if it works like it did for me -- it will let you right in, with no username or password. If this works correctly, you should be able to remotely run commands through ssh within scripts.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

How would you authenticate a yahoo messenger account in the Empathy IM Client, on Linux operating system?

Q. I have Linux operating system. And I cannot authenicate my email with the IM that is supported on the system

A. http://live.gnome.org/Empathy/FAQ#How_can_I_connect_to_.28a_protocol.29_in_Empathy_.3F

install telepathy-haze

How do i get a linux operating system?
Q. I would like one of the free linux operating systems for my old computer but i have a really slow connection so i can't download it without it taking a few days. Is there anyway i can order it somewhere and it still be free? Thanks.

A. if you dont want to order and wiat for about a month then you can buy this months Linux magazine for about £5 ($10) and it comes with 6 different distributions on a CD that can be used as a trial CD or to instal it.

How do i install linux operating system on my laptop?
Q. Can someone talk me through the process to download and install linux operating system, i know that i would like to switch to that operating system, but i dont know which package i should get, or what type of installation to download and how to install???

thanks for the help.

A. Download the Linux installer CD or DVD image file. Next, burn the image to a disc - this is not the same thing as just copying it onto a disc. If you have Windows Vista or 7 then right click the file and choose 'open with Windows disc image burner' from the menu. With Windows 8 choose 'burn image to disc' from the menu. If you have XP then you'll need to use software such as Isoburn to create the disc: http://www.imgburn.com/index.php?act=download

Next, boot the laptop from the CD or DVD and then follow the instructions that it presents you with. If you're unfamiliar with Linux you should probably use Ubuntu as it's the easiest to use.

If you're uncomfortable with this procedure then Ubuntu have a utility to automatically download and install it alongside Windows, you can do this from within Windows by following this link: http://www.ubuntu.com/download/desktop/windows-installer . This method also provides an easy way to remove it again.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

How to create a use on Linux, allow them to login with a certain password and make them a memeber of a group?

Q. I need to create multiple users, allow them to login with a certain passwork say "fire" and then make them members of a group? How would I do that.

A. need more info. what is the distro your using? it matters. if your using a modern full featured distro like ubuntu then you can do it through System -> Admin -> Users and Groups. If you are using a non full featured linux distro like crunchbang then you need to do it through the terminal. terminal would be "sudo adduser" without the "". you will have to add arguments to that command. for full help with that type "adduser --help" it will tell you everything you need to know. the terminal option will be available on all linux distros.

Is there a way to download the mediawiki software and run it on locally for testing purposes?
Q. I'd like to start a wiki, and I've heard that the software is free, but I don't have anywhere to host it now. Is there a way I could set it up just to run locally and not available to the outside internet? (and add pages, edit pages, create user accounts, pretty much fully use it in every way, except locally). Thanks!

A. No problem. I have it running at home on a Linux box with Apache.

You'll need to start by installing a web server. Apache is free, and if you have Windows you can try IIS. There are plenty of tutorials on installing Mediawiki on both.

I need a good practical source from which I can learn how to use red hat Linux any suggestions ?
Q. I do not need a cluttered source, I already tried official guides but those are too long and boring (Same thing with a " a practical guide to fedora and RHEL). I am just looking for a short hand book that teaches the basics of red hat enterprise Linux (create file, search files, move files, list processes, file permissions ....). Please help

A. At this level you can probably work with any book that covers Unix/Linux basics. Red Hat specifics are probably not so relevant initially. (Certainly you should be able to mix and match Fedora, CentOS, and RedHat.)

I've used books from the "Dummy's Guide" series before, and although I've not looked at the Linux one specifically it might be worth seeing if you can borrow it from your local library.

There's an interesting looking YouTube series, too.

Finally, depending on where and in which country you live, there may be a Linux Users Group nearby. Some of them are a bit geeky (possibly too geeky) but you should find people there who are happy to spend some time with you, maybe over a beer, helping you learn.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Best Linux for an older computer with not so great specs?

Q. I have an old machine kicking around and I want to get linux running on it. It runs windows XP right now but it has very little RAM. I am not very technical at all so any help would be greatly appreciated :)

A. DSL, Puppy or Tiny Core will run on almost any hardware, but, as they are all quickly downloadable, try them all & see which you like best. And don't dismiss any of the "mainframe" sized distros, as they can run well on limited hardware, as has been said.

My old laptop is about to crash and burn need to get new one?
Q. Does anyone out there know what is the VERY BEST of the new small laptop's. I only have this ACER one 2 and a half years and found it very reliable - well up till now.
Have been told that the ASUS Eee PC 1000 is good - is it or is there a better one in the same price range

A. The Acer Aspire One is a really great netbook. Netbooks are basically all the same; dual core Intel Atom processor at 1.6GHz, about 1GB of RAM, Linux or XP operating system, tiny screen, tiny keyboard, and different hard drive ranges.
The Acer Aspire One is a great netbook because you get to customize it to fit your needs. They range from 8.9 inch to 10.1 inch for the screen. The Intel Atom is one of the best netbook processors. You can pick from 512MB to 1GB of RAM. You can choose either the Linux or the Microsoft operating system. And you can choose a SSD or a magnetic hard drive.
My experiences with the Acer Aspire One were great.

Which Linux Distro Should I Use?
Q. I am trying to find the right distro for my old crappy computer:
Intel Celeron M 1.8ghz
512mb RAM
Intel GMA 950

I am looking at these distros right now:
DSL
Tiny-Core
Puppy Linux
Fluxbuntu
WattOS

Do not recommend:
Ubuntu, or Xubuntu, or Ubuntu light.

Preferences: GUI, Somewhat easy to use, Requires 128mb RAM or less to run.

A. With a 1.8ghz CPU and 512mb RAM your options are more open than you might think

I thoroughly recommend Linux Mint 9 LXDE (similar in style to GNOME but lighter) which is ideally suited to older hardware and built upon Ubuntu 10.04 Its easy to install and easy to use plus it comes with much of the software you are likely to need preinstalled

Linux Mint 9 LXDE Download
http://www.linuxmint.com/edition.php?id=60

Linux Mint 9 LXDE User Guide pdf.
http://linuxmint.com/rel_isadora_lxde.php

You download the ISO. image of Linux Mint 9 LXDE then you need to create a Bootable LiveCD for installation

Linux Mint 9 LXDE can also be run direct from the LiveCD from Booting up without touching your Hard Drive



LUg.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

What are the differences between UNIX and Linux, and what about all those choices within Linux?

Q. What are the operational differences between Linux and UNIX? Why would a programmer choose one over the other? What about software selection and ease of programming (with already basic knowledge of programming, and wanting to dive in to open source)?

In terms of Linux, what makes things like Red Hat cost money and things like Ubuntu not? Is pay-for OS based on Linux better quality than freely distributed OS? What is the best choice for Linux-or-Unix OS for a budding programmer?

A. What is Linux
http://www.linux.org/info/

What is UNIX
http://www.unix.org/what_is_unix.html

Why Linux is Better
http://www.whylinuxisbetter.net/

Linux is open source therefore in most cases free of charge with the exception of enterprise releases such as SUSE Linux and Red Hat
http://www.novell.com/linux/
http://www.redhat.com/
http://en.wikipedia.org/wiki/Open_source_software

What is Ubuntu

Ubuntu is a community developed operating system that is perfect for laptops, desktops and servers. Whether you use it at home, at school or at work Ubuntu contains all the applications you'll ever need, from word processing and email applications, to web server software and programming tools.

Ubuntu is and always will be free of charge. You do not pay any licensing fees. You can download, use and share Ubuntu with your friends, family, school or business for absolutely nothing.

We issue a new desktop and server release every six months. That means you'll always have the latest and greatest applications that the open source world has to offer.

Ubuntu is designed with security in mind. You get free security updates for at least 18 months on the desktop and server. With the Long Term Support (LTS) version you get three years support on the desktop, and five years on the server. There is no extra fee for the LTS version, we make our very best work available to everyone on the same free terms. Upgrades to new versions of Ubuntu are and always will be free of charge.
http://www.ubuntu.com/products/whatisubuntu

Here are some options for installing or trying out Linux

Option One (Full installation)

I thoroughly recommend Linux Mint 8 Main Edition which is built upon Ubuntu 9.10 Its easy to install and easy to use plus it comes with much of the software you are likely to need preinstalled

Linux Mint 8 Download
http://www.linuxmint.com/edition.php?id=44

The Perfect Desktop - Linux Mint 8 (Helena) Installation
http://www.howtoforge.com/the-perfect-desktop-linux-mint-8-helena

Linux Mint 8 Helena User Guide
http://www.scribd.com/doc/23787138/Linux-Mint-8-Helena-User-Guide

You download the ISO. image of Linux Mint 8 then you need to create a Bootable LiveCD for installation

Linux Mint 8 can also be run direct from the LiveCD from Booting up without touching your Hard Drive

Option Two (Install Linux inside Windows)

Installing Ubuntu as a dual-boot with Windows without partitioning
http://www.psychocats.net/ubuntu/wubi

You keep Windows as it is, Wubi only adds an extra option to boot into Ubuntu. Wubi does not require you to modify the partitions of your PC, or to use a different bootloader, and does not install special drivers. It works just like any other application.

Wubi keeps most of the files in one folder, and if you do not like it, you can simply uninstall it as any other application.

Boot in to windows insert the Ubuntu 9.10 LiveCD and you will offered the option of installing inside windows which is where the Wubi installer comes in, you will be asked how many gigabytes you wish to allocate to Ubuntu (I recommend 8gb) then you set a password for your installation then click install and thats it.

Once Ubuntu is fully installed upon starting your PC you will be given a choice of which operating system you want to use Windows or Ubuntu

Ubuntu 9.10 Download
http://releases.ubuntu.com/9.10/

Ubuntu 9.10 (Karmic Koala) User Guide
http://ubuntuguide.org/wiki/Ubuntu:Karmic

Linux Mint 7 has a similar feature called mint4win and the directions given above for Wubi can be followed (XP and Vista only)
http://duncsweb.com/2009/09/27/mint4win-a-wubi-based-installer-of-linux-mint/

Linux Mint 7 Download
http://www.linuxmint.com/edition.php?id=38

Linux Mint 7 Gloria User Guide
http://www.scribd.com/doc/15884753/Linux-Mint-7-Gloria-User-Guide

Ubuntu 9.10 and Linux Mint 7 can also be run straight from the LiveCD without touching your Hard drive

At present I do not recommend Ubuntu 10.04/Linux Mint 9 owing to multiple stability issues

Option Three (LiveCD)

Here the possibilities are endless as you can try out as many different Linux distros. until you find the one thats right for you DISTROWATCH.COM gives full listings (second lists the major distributions)
http://distrowatch.com/

Major Linux Distributions
http://distrowatch.com/dwres.php?resource=major


LUg.

where to download red hat Linux Enterprise?
Q. is red hat enterprice is free? where to download it? for learning purpose?

A. You should go to :
http://distrowatch.com/search.php
and use the search engine to filter which distro would be best for you. You can select a version for beginners, or multimedia, or a special purpose. They are all free to download. You can read reviews and articles about each distro. You can select a distro for ease of use, needs little ram or hard drive space, popularity, most software packages available, amount of customization,etc.

I would also suggest that you go to that distros website to read their documentation, especially if you are new to linux. They have tutorials on how to install, how to setup various hardware, and tips and tricks. I would also recommend using their forum to search/ask for info/help.

What's the difference between Linux operating systems?
Q. Linux has a lot of operating systems, I'm not even going to bother to list them. I was wondering, it there a difference between them? Does each type of Linux operating system hold a specific purpose? For example, Red Hat holds a different functionality to Ubuntu, or something like that.

A. Linux has many distros but all versions of Linux are the same OS.

Linux is extremely customizable. So much so that it'd be impossible for one person to do all the tweaks necessary to have what most people consider a polished and functional operating system. On top of that many Linux distros are heavily customized for specific purposes. Robotics, hardware appliance (routers for example), Real time OS (traffic lights, microwave ovens, unmanned aircraft), Music studios, Network security, Home theatre, Cash register, various industrial and scientific specialties, generic servers and so on.

There are also distros that are specialized to fit on a 1.44 floppy, thumb drives and a few distros specifically designed to run on CDs rather than be installed on a machine. There are distros that mimic other operating systems such as Mac OS and Windows so closely that at a glance you wouldn't know that you were not using those OS's. Other's are branded such as Dell's version of Ubuntu which is customized for Dell hardware.

There are also commercial versions of Linux. Red Hat Enterprise for example which is designed for high end servers and IBM's SUSE which has customizations for running on IBM virtual servers/being the host OS for the virtual servers, a desktop version which much of Europe's governments uses.

Distros often come with sub distros that are customized for various purposes. For example most major distros have a KDE and a Gnome version These are customized to people's favorite window managers and some distros support up to 5 or 6 window managers with sub-distros. Most support at least 2 or 3. Long term support, special purpose sub-distros like Ubuntu Studio which is geared for musicians are also common with widely used general distros.

The majority of distros however are shortcuts for Linux users to get what they want/need without spending the thousand of hours personally making those customizations. For example some like myself do too much customization and install too much software to upgrade a machine every 2 years. So long term support versions appeal heavily to me. I need and use a large variety of applications so it's important to have very large software repositories. Other people choose high performance bare bone distros. Some people want total control over their sytem and choose primitive distros that give you the bare min necessary, anything else the user installs themselves and customize as they see fit. (not recommended for anybody but an expert).

There are philosophical choices involved in choosing a distro. One big split for example is RH vrs Debian based systems. The RH fork (RHE, SUSE, Mandriva, CentOS) and Debian fork (Ubuntu, Debian) have some small differences in the way they are built. For example RH systems use YUM for software installation while Debian based systems use Apt-Get. You can install and use YUM on Debian systems and Apt-Get on RH systems. It's just a matter of defaults. Same with how root privileges are handled, and other minor details. The average user won't notice such subtle differences.

I've included a link to distro watch which gives details about specific distros as well as release cycles and where to download them.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Do you think a Unix or Linux Administrator can get a job almost anywhere in the world easily?

Q. Let's say a person from America go to Asia, Europe, Africa, South America, or whatever. Do you think it would be easy to get a job since they have Linux Administration experience?

A. if you have the Linux qualifications then yes you will get a job any where in the world,
Linux runs the Internet,
Linux runs 455 of the worlds fastest top 500 HPC (High Powered Computers) Microsoft have 1 HPC in the bottom 45 (their own system)

You use Linux every day and don't know it, Linux run all domestic appliances from TV's Microwaves, Washers, Dryers, In car computers The list of embedded Linux in use is endless
if you want to know whats going on in the Linux world check these websites out
http://lxer.com/
http://lwn.net/
http://www.linuxtoday.com/

http://www.google.com/search?q=Intel%2Blinux&hl=en&prmd=n&source=univ&tbs=nws:1&tbo=u&ei=Si5yTOPOFIWBlAf7gvH0Dg&sa=X&oi=news_group&ct=title&resnum=5&ved=0CC0QsQQwBA
http://www-03.ibm.com/linux/

Why is Linux the operating system of choice for so many electronic gadgets?
Q. i need to know why Linux is the operating system of choice for so many electronic gadgets?

A. DavoJo has a good answer, but I'm going to go a little further and mention that embedded developers have the freedom to easily compile in only the features they need, which results is a fast-booting, bloat-free, lean operating system that is still as feature-rich as they desire.

Adding drivers for specialized hardware is easier than with other systems (Greg Kroah-Hartman and his team of volunteers will even write the drivers for you if you just provide specs), so hardware compatibility is a non-issue. With the abundance of Unix and portable C software available, software compatibility is also good.

Finally, Linux is free and easy to license, as long as you don't blatantly violate the GPL. (As of now, Linux is still licensed under version 2 of the GPL, so you still have a good number of options as far as how you use it and what you use it with.)

how can i get embedded linux?
Q. how and what to i need to create an embedded linux solution and what kind of thigns can i do with it?

A. hm well that is not an easy one, u can do a lot with embedded linux, as a matter of fact, nowadays it is included in many devices, but there are different eeproms with linux embedded, it is mostly build upon busybox which is actually just a small bash with minimal programs, but u can build upon it a good place to start looking are the wiki pages



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

I am new to Ubuntu Linux where should I start?

Q. I installed an old copy of ubuntu linux 6 and I am fairly new to it. I would like to know where to find programs for ubuntu, how to install them, how to troubleshoot some minor problems (such as getting the Internet to work) etc. Is there a good website for this sort of stuff?

A. Ubuntu 6.10 is no longer supported. You can get it up and running with a little extra work but why make it hard for yourself.

Take a look at Linux Mint 5 (Main Edition) its easy to install easy to use and has much of the software you are likely to need preinstalled.

Linux Mint 5 Release notes
http://www.linuxmint.com/rel_elyssa.php

Linux Mint 5 Download
http://www.linuxmint.com/edition.php?id=25

Linux Mint 5 installation tutorial
http://www.howtoforge.com/the-perfect-desktop-linux-mint-5-elyssa-r1

You download the ISO. image of Linux Mint 5 then you need to create a Bootable CD from the ISO. This can easily be done using Nero Burning ROM or similar software. Linux Mint 5 can also be run straight from the LiveCD you have created without touching your Hard Drive.

An alternative release of Ubuntu worth looking at is 8.04.2 http://releases.ubuntu.com/8.04/ The installation tutorial I have supplied above also applies to Ubuntu 8.04.2

There is a wealth of help and documentation from the Ubuntu Community and much of it applies to Linux Mint as well https://help.ubuntu.com/community

Coming soon is the AWESOME Ubuntu 9.04 which I am currently testing.

NOTE : Avoid Ubuntu 8.10 as it is utterly dreadful and this will be made abundantly clear upon the release of Ubuntu 9.04


LUg.

How do I get Ubuntu Linux to detect a windstream modem?
Q. I am hooking up my brothers new computer which has Ubuntu Linux and I need to know how to get it to detect his windstream modem.

A. I suspect that your modem doesn't have any driver for linux. THe Windstream website apparently only has windows drivers, and a search on the linux compatibility list turns up nothing. See the links below.

How do you make a computer running Ubuntu Linux show up on a network of Widows computers?
Q. I set up an old laptop with Ubuntu Linux with the intention of making it a print server. I hooked up a printer to it, and set it to share all printers, yet when I go onto my Windows computers, neither it, nor the printer attached to it, show up. What should I do to make it successfully work as a print server?

A. You need to install Samba server and client. This is the Windows network messaging protocol.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Newer Posts Older Posts Home