Hey Tuna! [Award winning HackFester!]
There are two options for command line shares access:
1) smbclient:
smbclient //ip-address//e$ -U ntusername
2) cifs mount
mkdir -p /mnt/test
mount -t cifs //server-ip/share username=monk,password=secreat /mnt/test
cd /mnt/test
mount.cifs //192.168.1.6/ssh-vnc /mnt/test/ -o user=asil.kit,dom=obnosis.com
Bonus Question: Viewing pictures via command line:
A) Use X11 forwarding (if you have 6000 open)
1) setup SSH correctly
ssh -X -Y username@system
2) Set display as 0:0 [can be automated in .bashrc]
DISPLAY=168.109.98.15:0.0; export DISPLAY
3) xv, gqview or xzgv would both work.
Gqview is exclusively an x-app, where is xzgv is based on zgv, which is an svgalib app.
2) Using zgv you could even do pictures on linux console via
sdl or svgalib (it's a hack).
3) "display/imagemagic"
B) Using console (various solutions):
1) To use ascii for display, it is possible to
use sdl and then invoke the aalib to display jpgs as ascii art on
console.
2) fbi fbv or fbview for example. you do need to be running a framebuffer and you must be logged in; no vtty's.
3) gqview
http://gqview.sourceforge.net/ [various clients even exist for manipulating via ssh]
www.Obnosis.com |
http://wiki.obnosis.com |
http://hackfest.obnosis.com (503)754-4452
PLUG HACKFESTS -
http://uat.edu Second Saturday of Each Month Noon - 3PM
> Date: Wed, 14 Jan 2009 02:55:45 -0700
> From: tuna@supertunaman.com
> To: plug-discuss@lists.plug.phoenix.az.us
> Subject: Samba Shares via Command Line? (Oh, and viewing pictures)
>
> So here's the dealio.
>
> As many of you know, I happen to attend an online high school. This
> allows a great deal of flexibility. When I'm vacationing somewhere, I
> can just SSH back home and access all my files. I can get a
> half-finished paper from my desktop, work on it some more, and turn it in.
>
> However, this year I am taking a C++ course. For many of the
> assignments, I have to use Visual Studio. I have made the Visual Studio
> 2008 dir on my Windows box a Samba share, but I only know how to access
> those using a nice pretty file manager such as Konquerer or whatever
> that one in GNOME is called. I would like to fix that.
>
> How do I access Samba shares with the command line? It is driving me
> mad, not only the idea of not being able to access my code if I am to go
> on a surprise vacation to California or whatever, but also having one
> more reason why I can't just go totally CLI (I'm getting there though).
>
> Oh, and while I'm on the topic of CLI, a friend of mine for some odd
> reason is stuck in a command line environment. He would greatly
> appreciate being able to simply view images again. If anyone knows of
> some way to view .jpg's and .png's from the command line, please reply
> with such info off-list.
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_012009---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss