Bits Build your own server

Discussion in 'Article Discussion' started by Da Dego, 5 Jun 2007.

  1. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Can you post the output of the following commands?
    Code:
    id
    ls -al ~/.vnc
     
  2. TheMutt

    TheMutt New Member

    Joined:
    19 Feb 2009
    Posts:
    7
    Likes Received:
    0
    will do as soon as I get home. I'm at class right now.
     
  3. TheMutt

    TheMutt New Member

    Joined:
    19 Feb 2009
    Posts:
    7
    Likes Received:
    0
    ok here's the output

    Code:
    nick@mutt-server:~$ id
    uid=1000(nick) gid=1000(nick) groups=4(adm),20(dialout),24(cdrom),46(plugdev),112(lpadmin),120(admin),122(sambashare),1000(nick)
    nick@mutt-server:~$ ls -al ~/.vnc
    total 16
    drwxr-xr-x  2 nick nick 4096 2009-02-18 22:37 .
    drwxr-xr-x 18 nick nick 4096 2009-02-19 17:34 ..
    -rw-------  1 nick nick    8 2009-02-18 22:26 passwd
    -rw-r--r--  1 nick nick    5 2009-02-19 17:35 port
    nick@mutt-server:~$ 
    
     
  4. TheMutt

    TheMutt New Member

    Joined:
    19 Feb 2009
    Posts:
    7
    Likes Received:
    0
    It seems to be working now. I'm not sure what changed, but I'm not complaining.

    I do have a question though. It seems after I've downloaded the a file via torrent onto the server, to open it on my other computer, I have to download the file on there, from the server (if only in a temp file). The point is, when I do this, it takes up space and takes time to transfer the file over.

    However, I noticed this doesn't seem to happen when I access files through opening the a folder location of \\(ip address)\homes. and I seem to be able to run files directly from it, rather than transfering to the computer I'm using... If this is the case, can I change it so that the torrents download to that folder without any reprecussions?

    I'm fairly confident I could change the download location, I just want to make sure my assumptions about how this works are correct.
     
  5. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    You can change the download location (in Torrentflux), or you can add a new samba share that links to the directory where you download. I'd go for the latter.
     
  6. TheMutt

    TheMutt New Member

    Joined:
    19 Feb 2009
    Posts:
    7
    Likes Received:
    0
    I'm not sure I know how to do that latter. Any reason to choose it over changing the the directory it downloads to?
     
  7. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    I like to have my files organised, and downloads usually aren't :)

    To add a samba share, add
    Code:
     [sharename]
    path = /path/to/files
    browsable = yes
    read only = no
    
     
  8. TheMutt

    TheMutt New Member

    Joined:
    19 Feb 2009
    Posts:
    7
    Likes Received:
    0
    Thank you very much. Your guide is great, and you've been a great help.
     
  9. abezontar

    abezontar New Member

    Joined:
    4 Mar 2009
    Posts:
    2
    Likes Received:
    0
    I'm having a problem with the VNC portion. I've installed x11vnc with syanptic, but when I try to add users with the password commands in the terminal, I get the following error

    the program 'vncpasswd' can be found in the following packages:
    *tightvncserver
    *vnc4-common
    Try: sudo apt-get install <selected package>
    -bash: vncpasswd: command not found

    any suggestions?
     
  10. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    It seems like a dependency hasn't been installed. Try reinstalling X11vnc
     
  11. abezontar

    abezontar New Member

    Joined:
    4 Mar 2009
    Posts:
    2
    Likes Received:
    0
    I've tried that, and I'm still getting the same error.
     
  12. steveo_mcg

    steveo_mcg New Member

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    Did you try installing one of the packages suggested? vnc4-common might be a good place to start.
     
  13. Dreaming

    Dreaming New Member

    Joined:
    31 Jan 2007
    Posts:
    589
    Likes Received:
    7
    Weird problem dudes.

    Installed mysql and phpmyadmin but when I browse to localhost I just get "It works!" straight off, no subdirectories or whatever. Am a bit stumped really. I'm guessing this is a problem with phpmyadmin? I will continue googling.

    I've added a screenshot to demostrate the problem. Compare with the pics from the guide here:
    [​IMG] [​IMG]

    What mine looks like (notice URL)
    [​IMG]

    edit: FIXED

    I just tried to navigate to http://localhost/phpmyadmin/ and it worked immediately. dont know why mine is different but there we are.
     
    Last edited: 7 Apr 2009
  14. Dreaming

    Dreaming New Member

    Joined:
    31 Jan 2007
    Posts:
    589
    Likes Received:
    7
    Oh yes, do this, I had exactly the same problem :)
     
  15. Dreaming

    Dreaming New Member

    Joined:
    31 Jan 2007
    Posts:
    589
    Likes Received:
    7
    frustration, I don't have write access to the home directory, nor permission to create folders. all i have is the desktop lol unless i use the superuser which obviously is not ideal. jesssssssus you'd think it would be easy :p do you think its because im using a later kernel build of xubuntu?
     
  16. steveo_mcg

    steveo_mcg New Member

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    No big deal, this is command you'll need to learn sooner or later :)
    Code:
    sudo chown [username] /dir
    
    if you run that for your configured user on your home directory it will change owner to what ever you enter for the first parameter. Plenty of reading on the web for it, another good one to get early on is chmod and chgrp.


    You've probably done some thing as root by accident and messed the permissions up for the /home/usr dir.
     
  17. Dreaming

    Dreaming New Member

    Joined:
    31 Jan 2007
    Posts:
    589
    Likes Received:
    7
    thanks, but running into more problems, it just seems there are lots of things to go wrong really (if you dont know what you're doing) and for a fileserver you want it to be quite stable and easy to run, i realised that after my brother turned it off it had dismounted the extra hard disk and so that probably didnt help and so now i dont know what settings are stored where heh.

    might have a bash and see if i can get it running with windoze
     
  18. sachwa

    sachwa New Member

    Joined:
    30 Jun 2009
    Posts:
    1
    Likes Received:
    0
    Hello all,

    I relatively new to linux and still feeling my way around, so apologies in advance for any stupitidy on my part ;)

    Have been following Glider's excellent guide to setting up a server with Xubuntu, and got to the end of part 4 (installing samba) & attempted '\\my IP add\homes' on my XP desktop; I get the user/password box come up but any attempt to login first just resets the login box and then gives me this error:

    'Windows cannot find '\\(ip add)\homes'.

    I don't know if this is at all relevant, but both machines are connected to the same router (with different IP addresses).

    Thanks in advance for any help folks.
     
  19. sarulnizam

    sarulnizam New Member

    Joined:
    6 Aug 2009
    Posts:
    1
    Likes Received:
    0
     
  20. Mattasp

    Mattasp New Member

    Joined:
    10 Aug 2008
    Posts:
    4
    Likes Received:
    0
    Hey! i have done alle this and it worked perfect from my windows based computer, but now i wanna go all (linux) and i installed another linux on a second comp, but i dont seem to find the server, is there anyone who can give me a dummy tutorial on this?


    Thanx A-Maze
     
Tags: Add Tags

Share This Page