RSS
September 14, 2009 | Furyswrath | Comments 0

Ubuntu Quick Tips How to mount via SSH.

linuxpenSo I Thought Id Throw up a few Quick Tips on Ubuntu.  Just a few commands you may or may not know but they do come in Handy.

So many different Kernels out there But say you have a driver or piece of software that requires a certain kernel.  What is a Kernel you ask. Well lets ask Wikipedia :

In computing, the kernel is the central component of most computer operating systems. Its responsibilities include managing the system’s resources (the communication between hardware and software components).[1] Usually as a basic component of an operating system, a kernel can provide the lowest-level abstraction layer for the resources (especially memory, processors and I/O devices) that application software must control to perform its function. It typically makes these facilities available to application processes through inter-process communication mechanisms and system calls.

Operating System tasks are done differently by different kernels, depending on their design and implementation. While monolithic kernels will try to achieve these goals by executing all the operating system code in the same address space to increase the performance of the system, microkernels run most of the operating system services in user space as servers, aiming to improve maintainability and modularity of the operating system.[2] A range of possibilities exists between these two extremes.

So in partial laymen terms…  a Kernel is an operating system kernel is the piece or pieces of software that is responsible for servicing resource requests from applications and the management of resources. A kernel has facilities to receive resource requests and grant access to resources such as allocating space for a new file or creating a network connection. To generalize, kernels use a system call (or syscall) interface to handshake with applications.

In really Laymen terms..  Its what makes your Operating System function.

Now how do you find out what your kernel version is?  Easy from a terminal prompt:

uname -a

Need to find out what distribution of Ubuntu you are running ….  i.e.  Edgy, Hardy, Intrepid, Jaunty, Karmic , again from a terminal prompt :

cat /etc/issue

So say your a little bit more of  advanced user? and you want to mount a remote path via ssh. easy.

There are quite a few steps that you’ll have to follow, so get ready and open a terminal window.

First we’ll install the module:

sudo apt-get install sshfs

Now we will use the modprobe command to load it

sudo modprobe fuse

We’ll need to set up some permissions in order to access the utilities. Replace with your username.

sudo adduser  fuse
sudo chown root:fuse /dev/fuse
sudo chmod +x /dev/fusermount

Since we’ve added ourselves to a user group, we need to logout and back in at this point before we continue.

Now we’ll create a directory to mount the remote folder in. I chose to create it in my home directory and call it remoteserv.

mkdir ~/remoteserv

Now we have the command to actually mount it. You’ll be prompted to save the server key and for your remote password.

 sshfs @:/remotepath ~/remoteserv

Now you should be able to cd into the directory and start using it as if it was local.

fury@geekyServ:~/remoteserv$ ls -l
total 12
drwxr-xr-x 1 915247 155725 4096 2007-12-13 13:30 plasmaburn.net
drwxr-sr-x 1 root root 4096 2009-09-11 06:45 logs
drwx—— 1 9251247 155725 4096 2009-08-11 16:09 Maildir
drwxrwxr-x 1 151247 155725 4096 2008-10-29 02:34 scripts

Hope that is some help for some folks.   More to Come.. Stay tuned for a How-To on Fedora 11 / GMA500

Popularity: 1% [?]

Entry Information

Filed Under: TechnologyUbuntu / Linux

Tags:

About the Author: Hello! Im just a guy that wanted to help out the gaming community here in Oklahoma! If you would like contact me, Email me at furyswrath@plasmaburn.net Dont forget to Visit www.okgamers.com and find out how you can help Oklahoma Succeed in the gaming world!

RSSPost a Comment  |  Trackback URL

You must be logged in to post a comment.