Wednesday, August 25, 2010

eBox Installation Problems

When setting up openVPN, the first problem was copying the VPN configuration files to my Windows machine, which I had on the WAN side. I had a Linux computer setup on the LAN side, but shares were not working properly yet. SOLUTION: email. After using cp command to change the .zip extension I was able to send to myself in Gmail.
More problems ensued: was getting error about the TAP-Win32 adaptors. The simplest fix was to download the latest version of OpenVPN, namely at this time openvpn-2.1_rc22-install.exe. Once this was installed, no more errors regarding the TAP-Win32 adaptors. Another solution would be to go to Start Menu - OpenVPN - Utilities. Right click and run as administrator, the 'Add new TAP adapter' option. I tried this first, but got the additional error of 'route addition failed using createipforwardentry'... SOLUTION: install OpenVPN 2.1 or later.
Remember, always need to run OpenVPN as administrator in Windows 7. Also, the VPN files go in the VPN directory: Program Files\OpenVPN\config

Sunday, August 15, 2010

Linux Commands Most Useful

more = view text file. Most Linux configurations are done in text files, so viewing these files is requisite to knowing your OS settings.
cat = also used to display files text files. cat /etc/issue displays Linux version
sudo = super user do... execute a command as root. This must be used in front of many of the commands which follow. Anything that changes outside of personal directory must be done as root.
su = change to super user... change session to super user
nano = simple text editor... often need to use: sudo nano [path/file]
man = manual for commands. use with command name after. Can often use [command] -h
info = more information about commands

apt-get = aptitude get used to get and install .deb software packages.
extensions: update; clean; autoclean; upgrade; install
ls = list folder contents; dir = also works as ls; cp = copy files; rm = remove; cd = change directory; mv = move files;
pico = another simple text editor
ufw = uncomplicated firewall.... used in Ubuntu server
extensions: allow; deny; delete; status; status verbose; disable; enable; reset; default
poweroff = kill systems and shutdown
reboot = obvious
uname -a = displays kernel version

SSH = secure shell to server/another linux machine ssh
SCP = secure shell copy from local to server or between servers