Posts Tagged ‘ Linux

Mount Windows Shares Permanently Ubuntu 10.4

Make ubuntu 10.4 have icons for SMB network folders on the desktop when available.

MountWindowsSharesPermanently.PDF.ZIP – Site download

Source:  https://wiki.ubuntu.com/MountWindowsSharesPermanently

Ubuntu 10.4 VPNC Cisco Connection

  • Install vpnc Client
    sudo apt-get install vpnc
  • sudo create file in “/etc/vpnc/” called “*something*.conf” <- creating config file

edit file and place information


IPSec gateway domain.co.uk
IPSec ID GroupID
IPSec secret GroupPassword
Xauth username VPNUsername
Xauth password VPNPassword

  • sudo vpnc-connect *something* <- e.g if file was work.conf then sudo vpnc-connect work
  • sudo vpnc-disconnect <- Disconnect from VPN

Not needed, but SCRIPT login/logout:

  • create file on desktop called “VPN.sh
  • place below script in file and amend connection string.

#!/bin/bash
echo “You Sure you want to connect to
VPN? Press ENTER”
read var_1
sudo vpnc-connect *something*
echo -n “Please ENTER again to disconnect”
read var_2
clear
sudo vpnc-disconnect
echo “VPN has been disconnected”
read var_3

  • Run terminal & navigate to location of VPN.sh
  • Type “chmod 777 VPN.sh” <- Make script executable
  • click “VPN.sh” from desktop and select run in terminal

Links I used when doing this.

  • http://www.ax697.org/writing-a-basic-ubuntu-script-200786.html
  • http://www.longren.org/2007/05/17/how-to-cisco-vpn-client-on-ubuntu-704-feisty-fawn/
  • http://www.gentoo.org/doc/en/vpnc-howto.xml
  • http://ubuntuforums.org/showthread.php?t=16434

Useful Ubuntu Commands

A list of usful commands.

  • gksudo nautilus (opens file browser as admin)
  • sudo -i (open a sudo terminal)
  • apt-get update (get apt-get uptodate)
  • apt-get install nautilus-gksu (Open folder as root)
  • apt-get install compizconfig-settings-manager (Extra cool graphics)
  • apt-get install x11vnc (VNC for linux, nice to have remote desktop viewer on reverse)
  • apt-get install xrdp (xRDP application)
  • apt-get install ddclient (dyndns.org updater)
  • apt-get install hplip-gui (GUI HP Printer Tools)
  • dpkg -l | grep ii >file.txt (Get a list of software installed and put into file |grep not required)
  • Image Resizer
  • Install SSH
  • Batch Image Editor