August 21, 2014, 04:19:36 AM

News : LinuxSolved.com Linux Help Community Forum..


Recent Posts

Pages: 1 ... 8 9 [10]
91
Linux Servers Support / Re: ftp between computers
« Last post by dalek on November 20, 2012, 07:17:52 PM »
Check the permissions.  That sounds like a permission problem but GUI's are a bit different on those types of errors.  It's been a while since I fired up my 2nd rig so I can't recall the details. I'm also bad to just login as root too.  lol

 :)    :)
92
Linux Servers Support / Re: ftp between computers
« Last post by fullofhope on November 20, 2012, 04:56:56 PM »
Tried the final suggestion:

ftp://myname@192.168.1.xx/media

It just says "could not enter folder /media"
93
Linux Servers Support / Re: ftp between computers
« Last post by dalek on November 20, 2012, 04:42:18 PM »
Hmmm, sort of the same thought here.  Simple but I don't know if this will work or not.  Do you have a file called .bash_login in the home directory?  Something like this:

Code: [Select]
root@fireball / # ls -al /home/dale/.bash_logout
-rw-r--r-- 1 dale users 127 Dec  8  2008 /home/dale/.bash_logout
root@fireball / #

The contents of my file for a user is this:

Code: [Select]
root@fireball / # cat /home/dale/.bash_logout
# /etc/skel/.bash_logout

# This file is sourced when a login shell terminates.

# Clear the screen for security's sake.
clear
root@fireball / #

All it does is clear the screen.  For my root user:

Code: [Select]
root@fireball / # cat /root/.bash_login
setterm -powersave off -blank 0
cd /
clear
root@fireball / #

On this one, it disabled the powersave since I want to see my screen when compiling in a console.  Long story. 

Since you are using a GUI to do this, I'm not sure it will work.  I would put the following in the file for whatever user you are using and see if it works:

Code: [Select]
cd /media/Slideshows

I'm not sure if the GUI browsers read that file tho.  Just add it to it and see if it works.  If not, just remove it again. 

You may also want to try:

Code: [Select]
ftp://myname@192.168.1.xx/media/Slideshows

Since you are typing that into the GUI, it should see that. 

I gave examples to sort of let you see that the file accepts commands just like you type into a console.

Hope that helps. 

 :)    :) 
94
Linux Servers Support / ftp between computers
« Last post by fullofhope on November 20, 2012, 04:19:30 PM »
Hi,
A very elementary problem but I cannot solve it after many days.
Two computers. Both in same room. One on my left, one on my right. Both ethernetted to the box on the wall. Both use PCLinux. Both have firewall turned off. I don't give a toss about 'security' I just want them to talk to each other.
I can just about get an ftp connection (on a good day) on Krusader. I want to use this to be able to synchronise the two computers. Both have multiple HD's and multiple partitions by the way. I can type the following on the left:

ftp://myname@192.168.1.xx

--and that gets me into my home directory on the right OK. But I don't always want my home directory, but a different partition called, lets say, /media/Slideshows. Much too big to have in my home directory, that's why it has its own partition.

Now there is undoubtedly some easy way to type in some different command that will get me straight into where I want it to be. I can't find simple advice about this anywhere, because it is too elementary (except to me of course). Please someone enlighten me!
95
Linux Development & Programming / Re: Shell Scripting Help
« Last post by Chris4610 on November 16, 2012, 03:24:17 PM »
Below is something I needed help with, it is something similar to what I had gotten some help on


case and switch script should:
 -request a user name,
-request 8 numbers and ask the user if they are to be added or sorted (both need to
work!) OR request 8 names (1
st
 and last) and sort them by the second field (check
the hints and tips sheet for multi part user input),
-multiply two numbers from user input,
- give the user the choice of running; ‘who’, ‘w’ or ‘finger’ and echo only the first
and third columns to the screen (save this also for exit echo), 
- have a conditional ‘while’ statement, 
- track the number of choices the users makes (use a counter),
- have at least 2 if statements, 
- include an option that will add from a start number and end at another number
using user input for all numbers including the increment number
96
Linux Development & Programming / Re: Shell Scripting Help
« Last post by Chris4610 on November 13, 2012, 10:31:25 PM »
I made a small error I had included 2 separate script statements thinking they were all one, the 2nd was in C-shell and did not not that. So I will post the one only for help and what i've done so far. I am getting an undefined variable, it brings up he date I want but the variable error shows and it is because of line 5. Also below what I have done so far is the script I am trying to alter into a working script, let me stress this is not a test or anything just I have been having to deal with a future mother in law and father in law that were hospitalized a week apart so I fell behind on a little of my work so I am desperate for help.

Ty,

Chris :'(

#!/bin/csh
echo "Enter the month date"
set a = ($<)
date | cut -f3 -d' '    #date command cut to the date
if ( $a == $date ) then       #if correct date entered
echo "What is my name ?" #ask for name
set b = $< #setting variable
echo "Hello $b"
else
echo "Please try again"
exit 0
endif
@ h = 0
@ i = 0
@ j = 0
@ k = 0
@ l = 0
@ z = 0
set e = /home/students/fall2012/crn12143/frugard

#! /bin/csh
echo "Enter the month date"
set a = ($<)
set date = `date | cut -f 3 -d ' '`     #date command cut to the date
        if ( $a == $date ) then         #if correct date entered
        echo "What's your first name ?" #ask for name
        set b = $<                      #setting variable
        echo "Hello $b "
        else
        echo "I'm sorry that is not correct."
        exit 0
        endif
        @ h = 0                         # declaring the variables
        @ i = 0
        @ j = 0
        @ k = 0
        @ l = 0
        @ z = 0
set e = /home/fall_05/user-name/HW/11-22  #path
set f = $e/menu                         #set variable for menu
while (1)
        top:
        clear
        cat $f                          #cat menu
        echo -n "Enter your choice  "
        set a = $<                      #set variable for choice
        #set z = 1                      # the counter wouldn't work until I defined the
variable
        switch ( $a )
                case [aA]:              #case a
                        @ h = 1         # h is equal to 1 this sets the variable
 for listing inputs
                        ls              #command
                        @ z = $z + 1    #The counter
                        sleep 2
          goto top
                case [bB]:
          @ i = 1
                        who
                        @ z = $z + 1
                        sleep 2
          goto top
  case [cC]:
          @ j = 1
97
Linux Development & Programming / Re: Shell Scripting Help
« Last post by Chris4610 on November 12, 2012, 06:39:53 PM »
I tried to figure out how to do this long script but I can't figure it out, is there anyone at all that can help me with this?

Ty,

Chris
98
Other Devices / Re: D-link DWA-123 usb wifi adapter on Ubuntu linux
« Last post by sanemdeepak on November 11, 2012, 07:14:34 AM »
lsusb shows the following result

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 002: ID 2001:3c1d D-Link Corp.
99
Other Devices / D-link DWA-123 usb wifi adapter on Ubuntu linux
« Last post by sanemdeepak on November 11, 2012, 07:13:19 AM »
Guys can any one help me to install my D-link DWA-123 usb wireless adapter on ububtu linux. please  :( :( :(
100
Linux Development & Programming / Re: Programming Help
« Last post by Chris4610 on November 09, 2012, 06:52:50 PM »
I thankfully was able to actually work out the answers for the questions I needed help on. But if anyone can please help me with the linux shell scripting post that I made it would really bail me out of a bad mess. I just can't grasp the concept of building scripts by myself.

Ty,

Chris
Pages: 1 ... 8 9 [10]