8

I am currently trying to make a desktop shortcut pointing to a network location.

I believe there's a way to do this and that I am probably missing something simple.

Can anyone able to point me in the right direction? I am trying to create a short cut pointing to: \192.168.1.90

3
  • pointing in browser or nautilus???
    – hingev
    Aug 1, 2012 at 11:10
  • pointing in nautilus if possible
    – user12622
    Aug 1, 2012 at 11:24
  • i have posted answer, please say what you get @user12622
    – hingev
    Aug 1, 2012 at 11:31

2 Answers 2

7

Say your server is an sftp server of the url ftp://myserver.com and your username there is myuser (works the same way for a regular ftp server or samba). You can open it with your regular nautilus file manager using nautilus ftp://[email protected] &.

The proceeding to do so in a .desktop file is basically as in 天使の's answer. You create a *.desktop file:

[Desktop Entry]
Name=Network(myserver)
Comment=Open ip in Nautilus
Exec=nautilus nautilus ftp://[email protected]
Icon=network
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;
OnlyShowIn=GNOME;Unity;
X-GNOME-Keywords=Network;myserver;
Name[en_US]=blubb

When you first connect to that server, you will be asked for a Password. Type in your password and click "Remember forever" in the password dialog.

2
  • 1
    Thank you, this has done the trick, just chose to use SMB instead of FTP. Thanks again
    – user12622
    Aug 1, 2012 at 14:07
  • Its works but I had to add: chmod +x to the file created so Ubuntu 14.04 doesn't raise a warning when truing to open the link.
    – COil
    Nov 9, 2016 at 8:35
2

Open gedit text editor and copy the below text and paste it into a new file. Then save the file giving name Network(192.168.1.90).desktop and exit gedit. Then from terminal, run this command chmod +x Network(192.168.1.90).desktop(to make it executable)

[Desktop Entry]
Name=Network(192.168.1.90)
Comment=Open ip in Nautilus 
Exec=nautilus-connect-server \\192.168.1.90
Icon=network
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;
X-GNOME-Keywords=Network;192.168.1.90;

Then double clicking the icon, will execute the file. Provide feedback, if it doesn't work.


If you want to remember configuration use Filezilla3 instead of Nuatilus download

configuration

give all configuration, and site name rename for example: site_one
after that just change in .desktop file

Exec=filezilla -c site_name

and save that file

8
  • 1
    Thank you for your help so far. This allows me to connect up to the server, however it doesn't remember the details. It prompts me to enter the details each time. Is there a way to make it remember these?
    – user12622
    Aug 1, 2012 at 11:31
  • @user12622 you can use filezila instead of nautilus, it can remember your config
    – hingev
    Aug 1, 2012 at 11:33
  • @con-f-use can you give an example?
    – hingev
    Aug 1, 2012 at 11:36
  • Stand by, I will formulate an answer.
    – con-f-use
    Aug 1, 2012 at 11:39
  • 1
    @天使の no worries, thank you for trying. Unfortunately I am the only computer literate user here really, they are getting on ok with Ubuntu this far, but I just think FTP isn't the best option for this. I need to get a "double click" approach for them and opening files off the server.
    – user12622
    Aug 1, 2012 at 12:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .