├── server-admin └── chroot-sftp-user.md ├── shell-scripts ├── build-all.sh ├── combine-multiple-files.sh ├── commit-all.sh ├── ogv2avi.sh ├── optimize-pdf.sh ├── pull-all.sh └── reset-all.sh ├── ssh-ubuntu-server-virtualbox └── README.md ├── ubuntu-web-dev-setup └── README.md ├── xubuntu-12.04-web-dev-setup └── README.md └── xubuntu-14.04-mobile-web-dev-setup └── README.md /server-admin/chroot-sftp-user.md: -------------------------------------------------------------------------------- 1 | ## Dependencies 2 | 3 | * OpenSSH 4.9p1 or newer 4 | 5 | Install OpenSSH: 6 | 7 | $ apt-get install openssh-server 8 | 9 | 10 | ## Configure OpenSSH 11 | 12 | Edit sshd_config 13 | 14 | $ nano /etc/ssh/sshd_config 15 | 16 | Comment existing Subsystem: 17 | 18 | # Subsystem sftp /usr/lib/openssh/sftp-server 19 | 20 | Add below it new Subsystem: 21 | 22 | Subsystem sftp internal-sftp 23 | 24 | 25 | Check that `PasswordAuthentication` is either set to yes or commented out (not no): 26 | 27 | # PasswordAuthentication Yes 28 | 29 | Add user to AllowUsers: 30 | 31 | AllowUsers 32 | 33 | Add at end of sshd_config, add the following: 34 | 35 | # Chroot members of sftp to their home directory 36 | Match Group sftp 37 | ChrootDirectory %h 38 | ForceCommand internal-sftp 39 | AllowTcpForwarding no 40 | 41 | 42 | ## Setup chrooted usergroup 43 | 44 | $ sudo groupadd sftp 45 | 46 | 47 | ## Setup chrooted users: 48 | 49 | Create user if they don't exist 50 | 51 | $ adduser 52 | 53 | Add user to chrooted group 54 | 55 | $ usermod -G sftp 56 | 57 | Deny user shell access 58 | 59 | $ usermod -s /bin/false 60 | 61 | 62 | ## Directory permissions / ownership 63 | 64 | Users are restricied to their home directory, but cannot create directories or files in it. 65 | Root must own user home directory: 66 | 67 | $ chown root:root /home/ 68 | $ chmod 0755 /home/ 69 | 70 | ### Option 1: Establish one or more sub-directories (i.e. public_html) that user can create files and sub-directories in: 71 | 72 | $ mkdir /home// 73 | $ chown : /home// 74 | 75 | ### Option 2: Using Tuxlite (see http://tuxlite.com/installation/) 76 | 77 | $ cd TuxLite 78 | $ ./domain.sh add johndoe yourdomain.com -------------------------------------------------------------------------------- /shell-scripts/build-all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Executing pull-all.sh" 4 | . pull-all.sh 5 | 6 | echo 7 | echo "# # # # # # # #" 8 | echo 9 | 10 | echo "Traversing into Construct5 2-5" 11 | cd ../construct5 12 | git status 13 | echo "Enter complete release number (i.e. 2.5.6):" 14 | read release_number 15 | git tag $release_number 16 | git archive $release_number -o ../../../RELEASES/Construct5-$release_number.zip 17 | 18 | echo 19 | echo "# # # # # # # #" 20 | echo 21 | 22 | echo "Traversing into Construct5 Core 2-5" 23 | cd ../construct5-core 24 | git status 25 | echo "Enter release date (i.e. 1-13-2013):" 26 | read release_number 27 | git tag $release_number 28 | git archive $release_number -o ../../../RELEASES/Construct5-Core-$release_number.zip 29 | 30 | echo 31 | echo "# # # # # # # #" 32 | echo 33 | 34 | echo "Traversing into Construct5 Pro 2-5" 35 | cd ../construct5-pro 36 | git status 37 | echo "Enter complete release number (i.e. 1.6.666):" 38 | read release_number 39 | git tag $release_number 40 | git archive $release_number -o ../../../RELEASES/Construct5-Pro-$release_number.zip 41 | 42 | echo 43 | echo "# # # # # # # #" 44 | echo 45 | 46 | echo "Traversing into Construct Community 2-5" 47 | cd ../je-construct-community 48 | git status 49 | echo "Enter complete release number (i.e. 2.5.666):" 50 | read release_number 51 | git tag $release_number 52 | git archive $release_number -o ../../../RELEASES/Construct-Community-$release_number.zip 53 | 54 | echo 55 | echo "# # # # # # # #" 56 | echo 57 | 58 | echo "Traversing into Construct Pro 2-5" 59 | cd ../je-construct-pro 60 | git status 61 | echo "Enter complete release number (i.e. 2.5.666):" 62 | read release_number 63 | git tag $release_number 64 | git archive $release_number -o ../../../RELEASES/Construct-Pro-$release_number.zip 65 | 66 | -------------------------------------------------------------------------------- /shell-scripts/combine-multiple-files.sh: -------------------------------------------------------------------------------- 1 | for file in `ls *filename.csv`; do cat $file >> filename-combined.csv; done 2 | -------------------------------------------------------------------------------- /shell-scripts/commit-all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Enter commit message:" 3 | read commit_message 4 | 5 | echo "Traversing into Construct5 2.5" 6 | cd construct5 7 | 8 | git add -A 9 | git commit -m "$commit_message" 10 | git push --tags 11 | 12 | echo 13 | echo "# # # # # # # #" 14 | echo 15 | 16 | echo "Traversing into Construct5 Core 2.5" 17 | cd ../construct5-core 18 | 19 | git add -A 20 | git commit -m "$commit_message" 21 | git push origin 2-5 --tags 22 | 23 | echo 24 | echo "# # # # # # # #" 25 | echo 26 | 27 | echo "Traversing into Construct5 Pro 2.5" 28 | cd ../construct5-pro 29 | 30 | git add -A 31 | git commit -m "$commit_message" 32 | git push --tags 33 | 34 | echo 35 | echo "# # # # # # # #" 36 | echo 37 | 38 | echo "Traversing into Construct Community 2.5" 39 | cd ../je-construct-community 40 | 41 | git add -A 42 | git commit -m "$commit_message" 43 | git push origin 2-5 --tags 44 | 45 | echo 46 | echo "# # # # # # # #" 47 | echo 48 | 49 | echo "Traversing into Construct Pro 2.5" 50 | cd ../je-construct-pro 51 | 52 | git add -A 53 | git commit -m "$commit_message" 54 | git push origin 2-5 --tags 55 | 56 | -------------------------------------------------------------------------------- /shell-scripts/ogv2avi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ogv to avi 3 | # invoke as: /usr/bin/ogv2avi foo.ogv bar.avi 4 | mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o "$2" 5 | 6 | -------------------------------------------------------------------------------- /shell-scripts/optimize-pdf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # http://www.ubuntugeek.com/ubuntu-tiphowto-reduce-adobe-acrobat-file-size-from-command-line.html 3 | 4 | read -p "Enter source filename: " SOURCE 5 | read -p "Enter destination filename: " DESTINATION 6 | 7 | gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$DESTINATION $SOURCE 8 | 9 | # http://milan.kupcevic.net/ghostscript-ps-pdf/ 10 | 11 | # PDF optimization level selection options 12 | # -dPDFSETTINGS=/screen (screen-view-only quality, 72 dpi images) 13 | # -dPDFSETTINGS=/ebook (low quality, 150 dpi images) 14 | # -dPDFSETTINGS=/printer (high quality, 300 dpi images) 15 | # -dPDFSETTINGS=/prepress (high quality, color preserving, 300 dpi imgs) 16 | # -dPDFSETTINGS=/default (almost identical to /screen) 17 | 18 | # Paper size selection options 19 | # -sPAPERSIZE=letter 20 | # -sPAPERSIZE=a4 21 | # -dDEVICEWIDTHPOINTS=w -dDEVICEHEIGHTPOINTS=h (point=1/72 of an inch) 22 | # -dFIXEDMEDIA (force paper size over the PostScript defined size) 23 | 24 | # Other options 25 | # -dEmbedAllFonts=true 26 | # -dSubsetFonts=false 27 | # -dFirstPage=pagenumber 28 | # -dLastPage=pagenumber 29 | # -dAutoRotatePages=/PageByPage 30 | # -dAutoRotatePages=/All 31 | # -dAutoRotatePages=/None 32 | # -r1200 (resolution for pattern fills and fonts converted to bitmaps) 33 | # -sPDFPassword=password 34 | 35 | -------------------------------------------------------------------------------- /shell-scripts/pull-all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Traversing into Construct5 2.5" 4 | cd construct5 5 | 6 | git pull 7 | 8 | echo 9 | echo "# # # # # # # #" 10 | echo 11 | 12 | echo "Traversing into Construct5 Core 2.5" 13 | cd ../construct5-core 14 | 15 | git pull origin 2-5 16 | 17 | echo 18 | echo "# # # # # # # #" 19 | echo 20 | 21 | echo "Traversing into Construct5 Pro 2.5" 22 | cd ../construct5-pro 23 | 24 | git pull 25 | 26 | echo 27 | echo "# # # # # # # #" 28 | echo 29 | 30 | echo "Traversing into Construct Community 2.5" 31 | cd ../je-construct-community 32 | 33 | git pull origin 2-5 34 | 35 | echo 36 | echo "# # # # # # # #" 37 | echo 38 | 39 | echo "Traversing into Construct Pro 2.5" 40 | cd ../je-construct-pro 41 | 42 | git pull origin 2-5 43 | 44 | -------------------------------------------------------------------------------- /shell-scripts/reset-all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Traversing into Construct5 2.5" 4 | cd construct5 5 | 6 | git reset HEAD --hard 7 | 8 | echo 9 | echo "# # # # # # # #" 10 | echo 11 | 12 | echo "Traversing into Construct5 Core 2.5" 13 | cd ../construct5-core 14 | 15 | git reset HEAD --hard 16 | 17 | echo 18 | echo "# # # # # # # #" 19 | echo 20 | 21 | echo "Traversing into Construct5 Pro 2.5" 22 | cd ../construct5-pro 23 | 24 | git reset HEAD --hard 25 | 26 | echo 27 | echo "# # # # # # # #" 28 | echo 29 | 30 | echo "Traversing into Construct Community 2.5" 31 | cd ../je-construct-community 32 | 33 | git reset HEAD --hard 34 | 35 | echo 36 | echo "# # # # # # # #" 37 | echo 38 | 39 | echo "Traversing into Construct Pro 2.5" 40 | cd ../je-construct-pro 41 | 42 | git reset HEAD --hard 43 | 44 | -------------------------------------------------------------------------------- /ssh-ubuntu-server-virtualbox/README.md: -------------------------------------------------------------------------------- 1 | 1. In VM Manager, go to File -> Preferences -> Network and add a Host-only adapter if none exists 2 | 3 | 2. Open setting of VM in VM Manager, Network -> Adapter 2 4 | - Enabled Network Adapter 5 | - Attached to: Bridged Adapter 6 | - Name eth0 7 | - Adapter Type: PCnet-PC II 8 | - Promiscuous Mode: Allow All 9 | 3. Boot VM 10 | `$ sudo nano /etc/network/interfaces` 11 | - add 12 | `auto eth1`
13 | `iface eth1 inet static`
14 | `address 192.168.0.50`
15 | `netmask 255.255.255.0` 16 | 17 | 4. `$ sudo /etc/init.d/networking restart` 18 | 19 | 5. `$ ifconfig` 20 | 21 | 6. `$ sudo aptitude install openssh-server` 22 | 23 | -------------------------------------------------------------------------------- /ubuntu-web-dev-setup/README.md: -------------------------------------------------------------------------------- 1 | Changelog: 2 | - Apr 27, 2012: Updated segments for Ubuntu 12.04 3 | 4 | 5 | Install Ubuntu 6 | -------------- 7 | 8 | $ sudo apt-get update 9 | $ sudo apt-get upgrade 10 | 11 | 12 | 13 | 14 | 15 | LAMP 16 | ---- 17 | 18 | 1. Install LAMP 19 | 20 | `$ sudo apt-get install lamp-server^` 21 | 22 | 2. Enable usermod to use user's home diretory in Apache 23 | 24 | `$ sudo a2enmod userdir`
25 | `$ sudo service apache2 restart` 26 | 27 | 3. Edit /etc/apache2/mods-enabled/php5.conf and comment `php_admin_value engine Off` of the line in the following code - http://forums.digitalpoint.com/showthread.php?t=1736370#post13839938 28 | 29 | ``
30 | ` `
31 | `# php_admin_value engine Off`
32 | `
`
33 | `
`
34 | 35 | 4. Run Apache as yourself, add the following to end of /etc/apache2/httpd.conf - http://ubuntuforums.org/showthread.php?t=809934 36 | 37 | `ServerName localhost` 38 | `User username`
39 | `Group username`
40 | 41 | 5. Set Userdir as default localhost - https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual%20Hosts\ 42 | 43 | `$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/username`
44 | `$ sudo nano /etc/apache2/sites-available/username`
45 | - Change the `DocumentRoot` to point to the new location. For example, `/home/username/public_html/`
46 | - Change the `Directory` directive, replace `` with ``
47 | 48 | - Disable default site and enable yours 49 | `$ sudo a2dissite default && sudo a2ensite username` 50 | 51 | 6. Specify DirectoryIndex of files - https://help.ubuntu.com/10.04/serverguide/C/httpd.html 52 | 53 | `$ sudo nano /etc/apache2/sites-available/username` 54 | 55 | - add the following to below allow from all to define execution order of files 56 | 57 | `DirectoryIndex index.html index.htm default.htm index.php default.php kickstart.php` 58 | 59 | 60 | 7. Enable mod_rewrite http://www.ghacks.net/2009/12/05/enable-mod_rewrite-in-a-ubuntu-server/ 61 | 62 | `$ sudo a2enmod rewrite` 63 | 64 | - edit /etc/apache2/sites-enabled/username 65 | 66 | First look in the `` section and change the line: 67 | 68 | `AllowOverride None` 69 | to 70 | `AllowOverride All` 71 | 72 | Do the same for the `` section. 73 | 74 | Once you have the file edited, restart Apache with the command: 75 | 76 | `$ sudo service apache2 restart` 77 | 78 | 8. Install phpMyAdmin - https://help.ubuntu.com/community/phpMyAdmin 79 | 80 | `$ sudo apt-get install phpmyadmin` 81 | 82 | - Add the following line to /etc/apache2/apache2.conf - https://help.ubuntu.com/community/phpMyAdmin 83 | 84 | `Include /etc/phpmyadmin/apache.conf` 85 | 86 | 9. Set up mail server to send email to the real world - http://www.glorat.net/2008/11/ubuntu-804-hardy-gmail-smarthost-setup-with-exim4.html 87 | 88 | `$ sudo apt-get install exim4`
89 | `$ sudo dpkg-reconfigure exim4-config` 90 | 91 | - Choose mail sent by smarthost; no local mail 92 | - System mail name: Your chosen host name 93 | - IP-addresses to listen on: 127.0.0.1 (You don't want to allow external connections!) 94 | - Other destinations for which mail is accepted: Leave blank 95 | - Visible domain name for local users: Your chosen host name 96 | - IP address or host name of the outgoing smarthost: smtp.gmail.com::587 97 | - Keep number of DNS-queries minimal (Dial-on-Demand)? No 98 | - Split configuration into small files? Yes 99 | - Root and postmaster mail recipient: Leave blank 100 | 101 | `$ sudo nano /etc/exim4/passwd.client` 102 | 103 | And add the following lines, substituting yourAccountName and y0uRpaSsw0RD as appropriate 104 | 105 | `gmail-smtp.l.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD`
106 | `*.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD`
107 | `smtp.gmail.com:yourAccountName@gmail.com:y0uRpaSsw0RD` 108 | 109 | `$ update-exim4.conf`
110 | `$ sudo /etc/init.d/exim4 restart` just for good measure 111 | 112 | 113 | 114 | 115 | Tools 116 | ----- 117 | 118 | 1. Install "open in terminal" menu context http://ubuntu-tutorials.com/2007/05/13/nautilus-open-terminal-terminal-quick-launch/ 119 | 120 | `$ sudo apt-get install nautilus-open-terminal` 121 | 122 | 2. Add Gimp "save for web" http://blog.sudobits.com/2010/09/06/gimp-save-for-web-plugin-image-optimization-on-ubuntu/ 123 | 124 | Open Synaptic package manager and search for ‘gimp plugin registry’ 125 | 126 | 3. Install VirtualBox - https://help.ubuntu.com/community/VirtualBox 127 | - Download from http://www.virtualbox.org/wiki/Linux_Downloads for USB support 128 | - if VT-X issue 129 | `$ VBoxManage modifyvm virtualmachinename --hwvirtex off` 130 | - Install guest additions 131 | 132 | 1. Launch VB 133 | 2. Devices -> Install Guest Additions 134 | 135 | - Share host folder 136 | `VBoxManage sharedfolder add "XP" -name "share" -hostpath /home/your/shared/directory/VirtualBoxShare/` 137 | 138 | 4. Install rpl package (cli find/replace in multiple files)- http://www.laffeycomputer.com/rpl.html 139 | 140 | `$ sudo apt-get install rpl` 141 | 142 | 5. Install PEAR 143 | - Synaptic Package Manager `php-pear` 144 | 145 | 6. Install Phing - http://www.phing.info/trac/wiki/Users/Download 146 | 147 | 7. Install s3cmd package 148 | 149 | Import S3tools signing key: 150 | `$ wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -` 151 | 152 | Add the repo to sources.list: 153 | `$ sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list` 154 | 155 | Refresh package cache and install the newest s3cmd: 156 | `$ sudo apt-get update && sudo apt-get install s3cmd` 157 | 158 | 159 | GIT 160 | --- 161 | 162 | Set up Git 163 | 164 | `$ sudo apt-get install git-core` 165 | 166 | 167 | Gedit 168 | ----- 169 | 170 | 1. Advanced find / replace plugin for gedit (Gnome Text Editor) - http://code.google.com/p/advanced-find/ 171 | 172 | - download and Extract folder to directory ~/.gnome2/gedit/plugins 173 | 174 | 2. Transform Gedit Into A Web Developer IDE - http://maketecheasier.com/transform-gedit-into-a-web-developer-ide/2010/12/29 175 | 176 | `$ sudo apt-get install gedit-plugins` 177 | 178 | 3. Install gedit-Gmate - Gmate is an additional set of plugin for gedit to make it more similar to TextMate. It contains code snippets, plugins, and an automatic registration of rails-related files. 179 | 180 | `$ sudo apt-add-repository ppa:ubuntu-on-rails/ppa`
181 | `$ sudo apt-get update`
182 | `$ sudo apt-get install gedit-gmate exuberant-ctags` 183 | 184 | 4. Gedit plugin to format, minify, and validate javascript and CSS 185 | 186 | PREREQUISITES - NodeJS: http://nodejs.org/ 187 | 188 | `$ sudo apt-get install nodejs` 189 | 190 | INSTALL 191 | 192 | `$ git clone -b Gedit2 https://github.com/trentrichardson/Gedit-Clientside-Plugin.git` 193 | 194 | - Copy the clientside directory and clientside.gedit-plugin file into your gedit plugins directory (/usr/lib/gedit/plugins/). 195 | - Start or restart gedit 196 | - Open the Preferences, and navigate to Plugins, check to enable Clientside plugin 197 | 198 | * More Gedit Plugins - http://live.gnome.org/Gedit/Plugins 199 | 200 | 5. Gedit themes - https://github.com/mig/gedit-themes 201 | 202 | `$ git clone https://github.com/mig/gedit-themes.git ~/.gnome2/gedit/styles`
203 | `$ cd ~/.gnome2/gedit/gedit/styles`
204 | 205 | 206 | 207 | Networking 208 | -------- 209 | 210 | 1. Install Samba - http://ubuntuforums.org/showpost.php?p=7576893&postcount=6 211 | 212 | System --> Administration --> Synaptic Package Manager and install or check these: smbclient, libsmbclient, samba-common, nautilus-share and samba 213 | 214 | 2. Change workgroup name - http://www.liberiangeek.net/2011/03/change-workgroup-ubuntu-11-04-natty-narwhal/ 215 | 216 | `$ sudo nano /etc/samba/smb.conf` 217 | 218 | 3. Set smbpasswd if sharing folder - https://help.ubuntu.com/8.04/internet/C/networking-shares.html 219 | 220 | `$ sudo smbpasswd -a username` 221 | 222 | 4. Install Openssh-server - https://help.ubuntu.com/community/SSH?action=show&redirect=SSHHowto 223 | 224 | 225 | 226 | 227 | DNS 228 | --------- 229 | 230 | 1. Edit resolv.conf to set DNS to use Google 231 | 232 | `$ sudo nano /etc/resolv.conf` 233 | 234 | `nameserver 8.8.8.8`
235 | `nameserver 8.8.4.4` 236 | 237 | 2. Prevent file from being overwritten 238 | 239 | `$ sudo chattr +i /etc/resolv.conf` 240 | 241 | 242 | Install Oracle Java - from http://forums.linuxmint.com/viewtopic.php?f=42&t=93052 243 | --------- 244 | `$ echo "deb http://www.duinsoft.nl/pkg debs all" | sudo tee /etc/apt/sources.list.d/oracle-java.list` 245 | `$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26` 246 | `$ sudo apt-get update` 247 | `$ sudo apt-get install update-sun-jre` 248 | `$ sudo update-sun-jre -v -i install` 249 | 250 | `$ java -version` should give us `java version "1.6.0_31"` 251 | 252 | 253 | 254 | Awesome Apps 255 | ------------ 256 | 257 | - Keepass (http://sourceforge.net/projects/keepass/forums/forum/329220/topic/4503818) 258 | `$ sudo apt-get install keepass2` 259 | - Filezila 260 | `$ sudo aptitude install filezilla` 261 | - Gimp 262 | `$ sudo apt-get install gimp` 263 | - Inkscape 264 | `$ sudo apt-get install inkscape` 265 | - Trimage image compressor 266 | `$ sudo apt-get install trimage` 267 | - Dragondisk Amazon S3 Client - http://www.dragondisk.com/ 268 | - Linkchecker 269 | `$ sudo apt-get install linkchecker-gui` 270 | - Giggle - graphical frontend for git tracker 271 | `$ apt-get install giggle` 272 | - Meld diff viewer 273 | `$ apt-get install meld` 274 | - PhpStorm from http://www.jetbrains.com/ 275 | - Kxb CD / DVD creator 276 | - XVidCap 277 | - AcidRip 278 | - LibreOffice 279 | - Add LibreOffice repo `sudo apt-add-repository ppa:libreoffice/ppa` 280 | 281 | -------------------------------------------------------------------------------- /xubuntu-12.04-web-dev-setup/README.md: -------------------------------------------------------------------------------- 1 | Basic Setup 2 | --------- 3 | 4 | WARNING: ATI/AMD proprietary FGLRX graphics drivers seem to prevent Java from working (may have other adverse affects) 5 | 6 | 1. Update 7 | 8 | `$ sudo apt-get update && sudo apt-get upgrade` 9 | 10 | 2. Set up dual monitors 11 | 12 | `$ sudo nano ~/.xprofile` 13 | 14 | add `xrandr --output VGA-0 --left-of DVI-0` 15 | 16 | 3. Move panels to primary 17 | 18 | - Right-click > Panel > Panel Preferences > Output 19 | 20 | 4. Free ctrl+f5 21 | 22 | - Applications Menu > Settings > Settings Manager > Window Manager 23 | - check the Keyboard tab, and find the option which has Ctrl+F5 configured as short-cut key 24 | - clear that short-cut key 25 | - you should be able to use Ctrl+F5 key now 26 | 27 | 5. Set custom Datetime Date 28 | - right-click date > properties 29 | 30 | `%a, %d %b %Y %l:%M:%S %P` 31 | 32 | 6. Add some panel items 33 | - right-click top panel, click Places 34 | - right-click Places > move 35 | 36 | 7. Tweak terminal appearance 37 | 38 | - background: #2C001E @ 95% opacity 39 | - text-selection: #DD4814 40 | - text: #f3f3f3 41 | 42 | 8. Speed up Thunar initial launch - http://ubuntuforums.org/showpost.php?p=11109244&postcount=1 43 | - Open Thunar 44 | - File > Properties > Permissions 45 | - set your "group" to have read & write permissions 46 | 47 | 48 | 49 | Web Server 50 | ---------- 51 | 52 | 1. Install LAMP 53 | 54 | `$ sudo apt-get install lamp-server^` 55 | 56 | 2. Enable usermod to use user's home diretory in Apache 57 | 58 | `$ sudo a2enmod userdir` 59 | 60 | `$ sudo service apache2 restart` 61 | 62 | 3. Edit /etc/apache2/mods-enabled/php5.conf and comment `php_admin_value engine Off` of the line in the following code - http://forums.digitalpoint.com/showthread.php?t=1736370#post13839938 63 | 64 | ``
65 | ` `
66 | `# php_admin_value engine Off`
67 | `
`
68 | `
` 69 | 70 | 4. Run Apache as yourself, add the following to end of /etc/apache2/httpd.conf - http://ubuntuforums.org/showthread.php?t=809934. NOTE: This file may not exist by default, but exists for user configurations. You can create it with `$ sudo nano /etc/apache2/httpd.conf` 71 | 72 | `ServerName localhost` 73 | 74 | `User username` 75 | 76 | `Group username` 77 | 78 | 5. Set Userdir as default localhost - https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual%20Hosts\ 79 | 80 | `$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/username` 81 | 82 | `$ sudo nano /etc/apache2/sites-available/username` 83 | 84 | - Change the `DocumentRoot` to point to the new location. For example, `/home/username/public_html/` 85 | 86 | - Change the `Directory` directive, replace `` with `` 87 | 88 | - Disable default site and enable yours 89 | 90 | `$ sudo a2dissite default && sudo a2ensite username` 91 | 92 | 6. Specificy DirectoryIndex of files - https://help.ubuntu.com/10.04/serverguide/C/httpd.html 93 | 94 | `$ sudo nano /etc/apache2/sites-available/username` 95 | 96 | - add the following to below allow from all to define execution order of files 97 | 98 | `DirectoryIndex index.html index.htm default.htm index.php default.php kickstart.php` 99 | 100 | 101 | 7. Enable mod_rewrite http://www.ghacks.net/2009/12/05/enable-mod_rewrite-in-a-ubuntu-server/ 102 | 103 | `$ sudo a2enmod rewrite` 104 | 105 | - edit /etc/apache2/sites-enabled/username 106 | 107 | First look in the `` section and change the line: 108 | 109 | `AllowOverride None` 110 | 111 | to 112 | 113 | `AllowOverride All` 114 | 115 | Do the same for the `` section. 116 | 117 | Once you have the file edited, restart Apache with the command: 118 | 119 | `$ sudo service apache2 restart` 120 | 121 | 8. Send Email with SSMTP and Google Apps - http://www.bunkerhollow.com/blogs/matt/archive/2010/10/12/ubuntu-send-email-with-ssmtp-and-google-apps-gmail.aspx 122 | 123 | `sudo apt-get install ssmtp` 124 | 125 | `sudo cp /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.bak` 126 | 127 | `sudo nano /etc/ssmtp/ssmtp.conf` 128 | 129 | - mailhub=smtp.gmail.com:587 130 | - hostname=USER@MYDOMAIN.com 131 | - root=USER@MYDOMAIN.com 132 | - AuthUser=USER@MYDOMAIN.com 133 | - AuthPass=PASSWORD 134 | - UseSTARTTLS=yes 135 | - UseTLS=yes 136 | - FromLineOverride=yes 137 | 138 | `sudo nano /etc/ssmtp/revaliases` 139 | 140 | - root:USER@MYDOMAIN.com:smtp.gmail.com:587 141 | - user:USER@MYDOMAIN.com:smtp.gmail.com:587 142 | 143 | 9. Fetch latest Adminer 144 | 145 | `wget http://www.adminer.org/latest-mysql-en.php -O /home/username/public_html/adminer/index.php` 146 | 147 | 10. Install cURL 148 | 149 | `$ sudo apt-get install php5-curl` 150 | 151 | DNS 152 | --------- 153 | 154 | 1. Edit resolv.conf to set DNS to use Google nameservers - http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ 155 | 156 | `$ sudo nano /etc/resolvconf/resolv.conf.d/head` 157 | 158 | -add 159 | 160 | `nameserver 8.8.8.8` 161 | 162 | `nameserver 8.8.4.4` 163 | 164 | 165 | Tools / Apps 166 | ----- 167 | 168 | 1. Install Git 169 | 170 | `sudo apt-get install git-core` 171 | 172 | 2. Implement custom named ssh files 173 | `$ sudo nano /etc/ssh/ssh_config` 174 | 175 | add `IdentityFile ~/.ssh/customname` 176 | 177 | 3. Install Oracle (Sun) Java 1.7.0_05 - http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html 178 | `sudo add-apt-repository ppa:webupd8team/java` 179 | `sudo apt-get update` 180 | `sudo apt-get install oracle-java7-installer` 181 | 182 | 183 | 4. Install Gedit 184 | 185 | `sudo apt-get install gedit gedit-plugins gedit-developer-plugins` 186 | 187 | - Eliminate annoying backup files 188 | 189 | - Edit > Preferences, select the Editor tab, uncheck “Create a backup copy of files before saving” option, click Close. 190 | 191 | - Gedit plugin to format, minify, and validate javascript and CSS 192 | 193 | PREREQUISITES - NodeJS: http://nodejs.org/ 194 | 195 | `$ sudo apt-get install nodejs` 196 | 197 | From - https://github.com/mishoo/UglifyJS/issues/479#issuecomment-22239557 198 | 199 | `$ sudo add-apt-repository ppa:chris-lea/node.js` 200 | `$ sudo apt-get update` 201 | `$ sudo apt-get install nodejs` 202 | `$ npm install uglify-js` 203 | 204 | INSTALL 205 | 206 | `$ git clone https://github.com/trentrichardson/Gedit-Clientside-Plugin.git` 207 | 208 | - Copy the clientside directory and clientside.gedit-plugin file into your gedit plugins directory (/usr/lib/gedit/plugins/). 209 | - Start or restart gedit 210 | - Open the Preferences, and navigate to Plugins, check to enable Clientside plugin 211 | 212 | - Gedit themes - https://github.com/mig/gedit-themes 213 | 214 | `$ git clone https://github.com/mig/gedit-themes.git ~/.gnome2/gedit/styles`
215 | `$ cd ~/.gnome2/gedit/gedit/styles`
216 | 217 | 5. Add Gimp "save for web" http://blog.sudobits.com/2010/09/06/gimp-save-for-web-plugin-image-optimization-on-ubuntu/ 218 | 219 | Open Synaptic package manager and search for ‘gimp plugin registry’ 220 | 221 | 6. Install VirutalBox - https://help.ubuntu.com/community/VirtualBox 222 | - Download from http://www.virtualbox.org/wiki/Linux_Downloads for USB support 223 | - if VT-X issue 224 | `$ VBoxManage modifyvm virtualmachinename --hwvirtex off` 225 | - Install guest additions 226 | 227 | 1. Launch VB 228 | 2. Devices -> Install Guest Additions 229 | 230 | - Share host folder 231 | `VBoxManage sharedfolder add "XP" -name "share" -hostpath /home/your/shared/directory/VirtualBoxShare/` 232 | 233 | 7. Install PEAR 234 | - Synaptic Package Manager `php-pear` 235 | 236 | 8. Install Phing 237 | $ pear channel-discover pear.phing.info 238 | $ pear install phing/phing 239 | $ pear install VersionControl_SVN-0.5.1 240 | 241 | 9. Install latest Ruby 242 | 243 | $ sudo apt-get update 244 | $ sudo wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz 245 | $ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion 246 | $ tar xvfz ruby-2.0.0-p247.tar.gz 247 | $ cd ruby-2.0.0-p247.tar.gz 248 | $ ./configure 249 | $ make 250 | $ sudo make install 251 | $ sudo gem update --system 252 | 253 | # choose your interpreter 254 | # changes symlinks for /usr/bin/ruby , /usr/bin/gem 255 | # /usr/bin/irb, /usr/bin/ri and man (1) ruby 256 | $ sudo update-alternatives --config ruby 257 | $ sudo update-alternatives --config gem 258 | 259 | # now try 260 | $ ruby --version 261 | 262 | 10. Installing SASS 263 | - Oprional setp if not compiling from source 264 | $ sudo apt-get install ruby-full build-essential 265 | 266 | $ sudo apt-get install rubygems 267 | $ sudo gem install sass 268 | 269 | $ sass -v 270 | - If there is an error, add `export PATH=$PATH:/var/lib/gems/1.8/bin` to `~/.bashrc` 271 | 272 | 273 | Other Great Apps 274 | -------------- 275 | - Meld Diff Viewer 276 | - FileZilla 277 | - Edit > Settings > sftp to import your .ppk keyfile 278 | 279 | - KeePassX 280 | - Giggle Git repositoy viewer 281 | - palimpsest "Disk Utility" 282 | - Back in Time - http://backintime.le-web.org/ 283 | `$ sudo add-apt-repository ppa:bit-team/stable` 284 | 285 | - Gimp 286 | - Trimage image compressor 287 | - K3B 288 | - Arista Transcoder - video converter 289 | 290 | 291 | Network File Sharing (NFS) - http://ubuntuforums.org/showthread.php?t=249889 292 | ----- 293 | 294 | Server: 295 | 296 | `$ sudo apt-get install nfs-kernel-server rpcbind` 297 | 298 | `$ sudo nano /etc/exports` 299 | - example red/write share of users home directory to only local addresses `/home/user 192.168.0.0/24(rw,no_root_squash,no_subtree_check) 300 | 301 | `$ sudo /etc/init.d/nfs-kernel-server restart` 302 | 303 | `$ sudo exportfs -a` 304 | 305 | Client: 306 | 307 | `$ sudo apt-get install nfs-common rpcbind` 308 | 309 | `$ sudo mkdir /mnt/localNameOfTheShare` 310 | 311 | - one time mount `sudo mount server.mydomain.com://home/user /mnt/localNameOfTheShare` 312 | 313 | - mount at boot `$ sudo nano -w /etc/fstab` add `server.mydomain.com://home/user /mnt/localNameOfTheShare nfs rw,soft,intr 0 0` 314 | 315 | - `server.mydomain.com` can also be an IP address 316 | 317 | 318 | Speed up folder view 319 | ----- 320 | - something to do with folder permissions / adding yourself 321 | 322 | Tweak Grub 323 | ----- 324 | -`$ sudo nano /etc/default/grub` 325 | 326 | -`$ sudo update-grub` 327 | 328 | Realtek Network Driver - http://ubuntuforums.org/showpost.php?p=11585129&postcount=4 329 | ----- 330 | * if `lspci -nn | grep 0200` gives us `[10ec:8169]` 331 | * `sudo modprobe r8169` to manually enable 332 | ``` 333 | $ sudo su 334 | $ echo r8169 >> /etc/modules 335 | $ exit 336 | ``` 337 | 338 | 339 | 340 | `couldn't connect to: /tmp/keyring...` issue - http://laslow.net/2012/05/06/gnome-keyring-issues-in-ubuntu-12-04/ 341 | ----- 342 | - edit /etc/xdg/autostart/gnome-keyring-pkcs11.desktop 343 | - find `OnlyShowIn=GNOME;Unity` and add `;XFCE` to it (i.e. `OnlyShowIn=GNOME;Unity;XFCE`). 344 | 345 | 346 | 347 | 348 | -------------------------------------------------------------------------------- /xubuntu-14.04-mobile-web-dev-setup/README.md: -------------------------------------------------------------------------------- 1 | Basic Setup 2 | --------- 3 | 4 | WARNING: ATI/AMD proprietary FGLRX graphics drivers seem to prevent Java from working (may have other adverse affects) 5 | 6 | 1. Update 7 | 2. 8 | `$ sudo apt-get update && sudo apt-get upgrade` 9 | 10 | 4. Free ctrl+f5 11 | 12 | - Applications Menu > Settings > Settings Manager > Window Manager 13 | - check the Keyboard tab, and find the option which has Ctrl+F5 configured as short-cut key 14 | - clear that short-cut key 15 | - you should be able to use Ctrl+F5 key now 16 | 17 | 5. Set custom Datetime Date 18 | - right-click date > properties 19 | 20 | `%a, %d %b %Y %l:%M:%S %P` 21 | 22 | 6. Add some panel items 23 | - right-click top panel, click Places 24 | - right-click Places > move 25 | 26 | 7. Tweak terminal appearance 27 | 28 | - background: #2C001E @ 95% opacity 29 | - text-selection: #DD4814 30 | - text: #f3f3f3 31 | 32 | 8. Speed up Thunar initial launch - http://ubuntuforums.org/showpost.php?p=11109244&postcount=1 33 | - Open Thunar 34 | - File > Properties > Permissions 35 | - set your "group" to have read & write permissions 36 | 37 | 38 | 39 | Web Server 40 | ---------- 41 | 42 | 1. Install LAMP 43 | 44 | `$ sudo apt-get install lamp-server^` 45 | 46 | *[OPTIONAL]* Add dotdeb packages 47 | 48 | 49 | $ sudo add-apt-repository ppa:ondrej/php5 50 | $ sudo apt-get update 51 | $ sudo apt-get dist-upgrade 52 | 53 | 54 | 2. Enable usermod to use user's home diretory in Apache 55 | 56 | 57 | $ sudo a2enmod userdir 58 | $ sudo service apache2 restart 59 | 60 | 61 | 3. Edit /etc/apache2/mods-enabled/php5.conf and comment `php_admin_value engine Off` of the line in the following code - http://forums.digitalpoint.com/showthread.php?t=1736370#post13839938 62 | 63 | 64 | 65 | 66 | # php_admin_value engine Off 67 | 68 | 69 | 70 | 71 | 4. Run Apache as yourself, create `/etc/apache2/conf-enabled/httpd.conf` and add: 72 | ```` 73 | ServerName localhost 74 | User username 75 | Group username 76 | ```` 77 | 78 | 79 | 80 | // TODO: Review for Apache 2.4.7 81 | 5. Set Userdir as default localhost - https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual%20Hosts\ 82 | 83 | `$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/username` 84 | 85 | `$ sudo nano /etc/apache2/sites-available/username` 86 | 87 | - Change the `DocumentRoot` to point to the new location. For example, `/home/username/public_html/` 88 | 89 | - Change the `Directory` directive, replace `` with `` 90 | 91 | - Disable default site and enable yours 92 | 93 | `$ sudo a2dissite default && sudo a2ensite username` 94 | 95 | 6. Specificy DirectoryIndex of files - https://help.ubuntu.com/10.04/serverguide/C/httpd.html 96 | 97 | `$ sudo nano /etc/apache2/sites-available/username` 98 | 99 | - add the following to below allow from all to define execution order of files 100 | 101 | `DirectoryIndex index.html index.htm default.htm index.php default.php kickstart.php` 102 | 103 | 104 | 7. Enable mod_rewrite http://www.ghacks.net/2009/12/05/enable-mod_rewrite-in-a-ubuntu-server/ 105 | 106 | `$ sudo a2enmod rewrite` 107 | 108 | - edit /etc/apache2/sites-enabled/username 109 | 110 | First look in the `` section and change the line: 111 | 112 | `AllowOverride None` 113 | 114 | to 115 | 116 | `AllowOverride All` 117 | 118 | Do the same for the `` section. 119 | 120 | Once you have the file edited, restart Apache with the command: 121 | 122 | `$ sudo service apache2 restart` 123 | 124 | 8. Send Email with SSMTP and Google Apps - http://www.bunkerhollow.com/blogs/matt/archive/2010/10/12/ubuntu-send-email-with-ssmtp-and-google-apps-gmail.aspx 125 | 126 | `sudo apt-get install ssmtp` 127 | 128 | `sudo cp /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.bak` 129 | 130 | `sudo nano /etc/ssmtp/ssmtp.conf` 131 | 132 | - mailhub=smtp.gmail.com:587 133 | - hostname=USER@MYDOMAIN.com 134 | - root=USER@MYDOMAIN.com 135 | - AuthUser=USER@MYDOMAIN.com 136 | - AuthPass=PASSWORD 137 | - UseSTARTTLS=yes 138 | - UseTLS=yes 139 | - FromLineOverride=yes 140 | 141 | `sudo nano /etc/ssmtp/revaliases` 142 | 143 | - root:USER@MYDOMAIN.com:smtp.gmail.com:587 144 | - user:USER@MYDOMAIN.com:smtp.gmail.com:587 145 | 146 | 9. Fetch latest Adminer 147 | 148 | `wget http://www.adminer.org/latest-mysql-en.php -O /home/username/public_html/adminer/index.php` 149 | 150 | 10. Install cURL 151 | 152 | `$ sudo apt-get install php5-curl` 153 | 154 | DNS 155 | --------- 156 | 157 | 1. Edit resolv.conf to set DNS to use Google nameservers - http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ 158 | 159 | `$ sudo nano /etc/resolvconf/resolv.conf.d/head` 160 | 161 | -add 162 | 163 | `nameserver 8.8.8.8` 164 | 165 | `nameserver 8.8.4.4` 166 | 167 | 168 | Tools / Apps 169 | ----- 170 | 171 | 1. Install Git 172 | 173 | `sudo apt-get install git` 174 | 175 | 2. Implement custom named ssh files 176 | `$ sudo nano /etc/ssh/ssh_config` 177 | 178 | add `IdentityFile ~/.ssh/customname` 179 | 180 | 3. Install Oracle (Sun) Java 1.7.0_05 - http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html 181 | `sudo add-apt-repository ppa:webupd8team/java` 182 | `sudo apt-get update` 183 | `sudo apt-get install oracle-java7-installer` 184 | 185 | 186 | 4. Install Gedit 187 | 188 | `sudo apt-get install gedit gedit-plugins gedit-developer-plugins` 189 | 190 | - Eliminate annoying backup files 191 | 192 | - Edit > Preferences, select the Editor tab, uncheck “Create a backup copy of files before saving” option, click Close. 193 | 194 | - Gedit plugin to format, minify, and validate javascript and CSS 195 | 196 | PREREQUISITES - NodeJS: http://nodejs.org/ 197 | 198 | `$ sudo apt-get install nodejs` 199 | 200 | From - https://github.com/mishoo/UglifyJS/issues/479#issuecomment-22239557 201 | 202 | `$ sudo add-apt-repository ppa:chris-lea/node.js` 203 | `$ sudo apt-get update` 204 | `$ sudo apt-get install nodejs` 205 | `$ npm install uglify-js` 206 | 207 | INSTALL 208 | 209 | `$ git clone https://github.com/trentrichardson/Gedit-Clientside-Plugin.git` 210 | 211 | - Copy the clientside directory and clientside.gedit-plugin file into your gedit plugins directory (/usr/lib/gedit/plugins/). 212 | - Start or restart gedit 213 | - Open the Preferences, and navigate to Plugins, check to enable Clientside plugin 214 | 215 | - Gedit themes - https://github.com/mig/gedit-themes 216 | 217 | `$ git clone https://github.com/mig/gedit-themes.git ~/.gnome2/gedit/styles`
218 | `$ cd ~/.gnome2/gedit/gedit/styles`
219 | 220 | 5. Add Gimp "save for web" http://blog.sudobits.com/2010/09/06/gimp-save-for-web-plugin-image-optimization-on-ubuntu/ 221 | 222 | Open Synaptic package manager and search for ‘gimp plugin registry’ 223 | 224 | 6. Install VirutalBox - https://help.ubuntu.com/community/VirtualBox 225 | - Download from http://www.virtualbox.org/wiki/Linux_Downloads for USB support 226 | - if VT-X issue 227 | `$ VBoxManage modifyvm virtualmachinename --hwvirtex off` 228 | - Install guest additions 229 | 230 | 1. Launch VB 231 | 2. Devices -> Install Guest Additions 232 | 233 | - Share host folder 234 | `VBoxManage sharedfolder add "XP" -name "share" -hostpath /home/your/shared/directory/VirtualBoxShare/` 235 | 236 | 7. Install PEAR 237 | - Synaptic Package Manager `php-pear` 238 | 239 | 8. Install Phing 240 | $ pear channel-discover pear.phing.info 241 | $ pear install phing/phing 242 | $ pear install VersionControl_SVN-0.5.1 243 | 244 | 9. Install latest Ruby 245 | 246 | $ sudo apt-get update 247 | $ sudo wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz 248 | $ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion 249 | $ tar xvfz ruby-2.0.0-p247.tar.gz 250 | $ cd ruby-2.0.0-p247.tar.gz 251 | $ ./configure 252 | $ make 253 | $ sudo make install 254 | $ sudo gem update --system 255 | 256 | # choose your interpreter 257 | # changes symlinks for /usr/bin/ruby , /usr/bin/gem 258 | # /usr/bin/irb, /usr/bin/ri and man (1) ruby 259 | $ sudo update-alternatives --config ruby 260 | $ sudo update-alternatives --config gem 261 | 262 | # now try 263 | $ ruby --version 264 | 265 | 10. Installing SASS 266 | - Oprional setp if not compiling from source 267 | $ sudo apt-get install ruby-full build-essential 268 | 269 | $ sudo apt-get install rubygems 270 | $ sudo gem install sass 271 | 272 | $ sass -v 273 | - If there is an error, add `export PATH=$PATH:/var/lib/gems/1.8/bin` to `~/.bashrc` 274 | 275 | 276 | Other Great Apps 277 | -------------- 278 | - Meld Diff Viewer 279 | - FileZilla 280 | - Edit > Settings > sftp to import your .ppk keyfile 281 | 282 | - KeePassX 283 | - Giggle Git repositoy viewer 284 | - palimpsest "Disk Utility" 285 | - Back in Time - http://backintime.le-web.org/ 286 | `$ sudo add-apt-repository ppa:bit-team/stable` 287 | 288 | - Gimp 289 | - Trimage image compressor 290 | - K3B 291 | - Arista Transcoder - video converter 292 | 293 | 294 | Network File Sharing (NFS) - http://ubuntuforums.org/showthread.php?t=249889 295 | ----- 296 | 297 | Server: 298 | 299 | `$ sudo apt-get install nfs-kernel-server rpcbind` 300 | 301 | `$ sudo nano /etc/exports` 302 | - example red/write share of users home directory to only local addresses `/home/user 192.168.0.0/24(rw,no_root_squash,no_subtree_check) 303 | 304 | `$ sudo /etc/init.d/nfs-kernel-server restart` 305 | 306 | `$ sudo exportfs -a` 307 | 308 | Client: 309 | 310 | `$ sudo apt-get install nfs-common rpcbind` 311 | 312 | `$ sudo mkdir /mnt/localNameOfTheShare` 313 | 314 | - one time mount `sudo mount server.mydomain.com://home/user /mnt/localNameOfTheShare` 315 | 316 | - mount at boot `$ sudo nano -w /etc/fstab` add `server.mydomain.com://home/user /mnt/localNameOfTheShare nfs rw,soft,intr 0 0` 317 | 318 | - `server.mydomain.com` can also be an IP address 319 | 320 | 321 | Speed up folder view 322 | ----- 323 | - something to do with folder permissions / adding yourself 324 | 325 | Tweak Grub 326 | ----- 327 | -`$ sudo nano /etc/default/grub` 328 | 329 | -`$ sudo update-grub` 330 | 331 | Realtek Network Driver - http://ubuntuforums.org/showpost.php?p=11585129&postcount=4 332 | ----- 333 | - if `lspci -nn | grep 0200` gives us `[10ec:8169]` 334 | - `sudo modprobe r8169` to manually enable 335 | 336 | - `sudo su` 337 | - `echo r8169 >> /etc/modules` 338 | - `exit` 339 | 340 | 341 | 342 | `couldn't connect to: /tmp/keyring...` issue - http://laslow.net/2012/05/06/gnome-keyring-issues-in-ubuntu-12-04/ 343 | ----- 344 | - edit /etc/xdg/autostart/gnome-keyring-pkcs11.desktop 345 | - find `OnlyShowIn=GNOME;Unity` and add `;XFCE` to it (i.e. `OnlyShowIn=GNOME;Unity;XFCE`). 346 | 347 | 348 | 349 | 350 | --------------------------------------------------------------------------------