This may be helpful — or not! I may misremember. New versions may put things in different places. The stars may be differently aligned. There may be some bias. :p Your brain is your best tool (and web search is your next one!).
GNU/Linux | BSD Unix Mac OSX | MicroSoft Windows 7 | ||
---|---|---|---|---|
"Red Hat family" (such as, Fedora) | "Debian family" (such as, Ubuntu) | |||
root | ||||
run admin commands |
$ su
then do your commands With this way, you "act as root", but don't have all of root's environment and powers. (You can try sudo, but may need to set up sudoers file first. Fedora doesn't add users to sudoers automatically.)note |
$ sudo <command>
With sudo, you "act as root", but don't have all of root's environment and powers.note |
$ sudo <command>
With sudo, you "act as root", but don't have all of root's environment and powers.note |
Right-click and "run as administrator" (?) |
run as root |
$ su -
The '-' makes you "completely become root" - you get all root's environment.note |
$ sudo su -
The '-' makes you "completely become root" - you get all root's environment.note |
$ sudo -i
The '-' makes you "completely become root" - you get all root's environment. "To enable the root user account in Leopard, start Directory Utility (/Applications/Utilities), clicking the lock to authenticate yourself, and selecting Security→Enable Root User. You can run a login (sh) shell as root, even if the root user is not enabled, by entering the command sudo -i You can also run an alternative shell, say tcsh, as root with the command sudo /bin/tcsh Alternatively, you can run a default shell process with administrative privileges with the sudo -s command." note |
Right-click and "run as administrator" (?) |
disks | ||||
mounted in: | /media | /media | /Volumes | alphabet (such as E:\\) |
see disks: |
# fdisk -l
$ df -h |
same? | same? | Click on the MyComputer thingie. |
network | ||||
hosts | /etc/hosts | /etc/hosts | /private/etc/hosts | c:\\Windows\system32\drives\etc\hosts |
network configuration | # ifconfig | $ sudo ifconfig ? | $ sudo ifconfig ? | > ipconfig |
Apache | ||||
server | /usr/sbin/httpd | /usr/sbin/apache2 | usr/sbin/httpd |
WAMP:
\wamp\bin\apache/Apachex.x\bin\httpd
XAMPP: ?? |
document root more | /var/www/ | /var/www/html/ |
/Library/WebServer/Documents
more
MAMP - /Applications/MAMP/htdocs/ |
WAMP:
\wamp\bin\apache/Apachex.x\bin\httpd
XAMPP: ?? |
main config file | /etc/httpd/httpd.conf | /etc/apache2/apache2.conf | /private/etc/apache2/apache.conf? /private/etc/apache2/httpd.conf |
WAMP:
\wamp\bin\apache/Apachex.x\conf\httpd.conf
XAMPP: ?? |
vhosts config |
/usr/sbin/httpd/extra /usr/sbin/httpd/vhosts |
/etc/apache2/sites-available /etc/apache2/sites-enabled $ a2ensite <virtualhostfile.conf> $ a2dissite default OR $ ln -s to make a symlink in sites-enabled (don't forget to sudo for editing and commands.) DigitalOcean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts |
/private/etc/apache2/extra/httpd-vhosts.conf
(don't forget to sudo for editing and commands.) |
WAMP:
\wamp\bin\apache/Apachex.x\conf\extra
XAMPP: ?? |
other configs |
/usr/sbin/httpd/vhosts
Set up your virtual hosts in this file Call this file near the bottom of the main httpd.confnote |
/etc/apache2/apache2.conf
Many configs such as enabling .htaccess go in this filenote /usr/sbin/httpd/extra/ ?? |
/private/etc/apache2/extra/httpd-*.conf |
WAMP:
\wamp\bin\apache/Apachex.x\conf\extra
XAMPP: ?? |
start | stop | restart | # apachectrl [start|stop|restart] | $ sudo service apache2 [start|stop|restart] |
$ sudo apachectrl [start|stop|restart] OR $ sudo httpd -k [start|stop|restart] |
WAMP:
Click on the little icon thingie.
or: \wamp\bin\apache\bin\httpd start | stop | restart XAMPP: ?? |
CMS Permalinks or .htaccess not working: |
Should be ok:
mod_rewrite is enabled by default.
→ Check "AllowOverride" directives in httpd.conf or virtual hosts file. |
→ mod_rewrite may need to be enabled.
→ Check "AllowOverride" directives in apache2.conf or virtual hosts file. |
→ mod_rewrite may need to be enabled (in main httpd.conf file)
→ Check "AllowOverride" directives in apache2.conf or virtual hosts file. → ownership of .htaccess may need to be changed to _www |
WAMP, XAMPP:
enable mod_rewrite module in httpd.conf If not working, check "AllowOverride" directives in httpd.conf or virtual hosts file. |
apache on your lan |
System → Administration → Firewall : open port 80.
Check "allow,deny" directives in httpd.conf, vhosts files. If still problem: forums.fedoraforum.org/archive/index.php/t-245478.html fedoraproject.org/wiki/SELinux/apache |
?? | ?? | ?? |
apache resources | https://fedoraproject.org/wiki/Administration_Guide_Draft/Apache | ?? | ?? | ?? |
PHP | ||||
configure |
/etc/php.ini
more in /etc/php.d/ |
?? | ?? |
WAMP:
\wamp\bin\apache/Apachex.x\bin\httpd
XAMPP: ?? |
MySQL | ||||
server location | /usr/bin/mysqld | /usr/bin/mysqld | /usr/local/mysql/bin/mysqld |
WAMP:
\wamp\bin\mysql\bin\mysqld
XAMPP: ?? |
start server | service mysqld start | service mysqld start ?? | sudo /usr/local/mysql/support-files/mysql.server [start|stop|restart] |
WAMP:
??
XAMPP: ?? |
client location | /usr/bin/mysql | /usr/bin/mysql | /usr/local/mysql/bin/mysql |
WAMP:
\wamp\bin\mysql\bin\mysql
XAMPP: ?? |
login to mysql client | mysql -u root -p | mysql -u root -p | ??? |
WAMP:
none
XAMPP: none use PHPMyAdmin |
config files |
/etc/my.cnf
other config: /usr/share/mysql |
/usr/share/mysql ? |
/etc/my.cnf
template: /usr/local/mysql/supportfiles/my-large.cnf |
WAMP:
\wamp\bin\mysql\conf ??
XAMPP: ?? |
database files | /var/lib/mysql | ?? | ?? |
WAMP:
\wamp\bin\mysql\mysqln.n\data\
XAMPP: ?? |
more useful mysql | dev.mysql.com/doc/refman/5.0/en/installation-layouts.html | dev.mysql.com/doc/refman/5.0/en/installation-layouts.html | comentum.com/mysql-administration.html dev.mysql.com/doc/mysql-macosx-excerpt/5.5/en/macosx-installation-notes.html |
WAMP:
??
XAMPP: ?? |
phpmyadmin | /etc/phpMyAdmin/config.inc.php |
/etc/phpmyadmin/config.inc.php
To get to phpmyadmin, you have to put http://127.0.0.1/phpmyadmin ... http://localhost/phpmyadmin doesn't work. there's probably somewhere to fix this. |
?? |
WAMP:
??
XAMPP: ?? |
editors | ||||
vi (vim) | vi gets you vim more | vi gets you only vi. You have to install vim yourself. Then type vim if you want vim (or make an alias). |
Only vi is installed. Have to get vim yourself.
2015 - It looks like vim is installed by defult now. vi runs vim |
Huh? What's vi? |
gui editors | Gedit, Bluefish | Gedit, Bluefish | TextEdit, TextWrangler. more | NotePad++ more |
settings |
Must: character set UTF-8
Useful: show line numbers, auto-indent, syntax coloring, auto-completion |
|||
typing བོད་ཡིག་ → DigitalTibetan.org | ||||
fonts | Any and all .ttf (TrueType) unicode Tibetan font | |||
font location | /usr/share/fonts/ more | ?? | /Library/Fonts/ /System/Library/Fonts/ more | C:\\Windows\fonts\ more |
input method (IME) | scim, ibus more | scim, ibus more |
System Preferences → Language & Text → Input Sources
then, enable Otani, QWERTY, or Wylie keyboard. |
Control Panel → ... enable Tibetan keyboard ... |
applications | ||||
find programs to install | GUI: System → Administration → Add/remove software | GUI: "Software Center" | ??? | Search the web, take your chances. |
Search with words describing the kind of program you are looking for.
Almost any program you want, will be in the repository: latest version, no viruses, ready to install. |
||||
install programs |
GUI: System → Administration → Add/remove software
CLI: # yum install <package> |
GUI: ???
CLI: $ sudo apt-get install <package> |
??? | Go to website; pay money; scan for viruses; ... |
find installed gui applications | hopefully got added to Applications menu | new gnome makes life more interesting for you! |
• Finder menu → Go → Applications
OR • open Finder, and under "Places" in sidebar → Applications more |
Start menu: view programs, or type in the most excellent search bar |
All content not copyright by anyone else is
copyright © 2003–2015 James Walker.
License for use is the GNU Free Documentation License.
Find it:
here in the
License directory
or
at the Free Software Foundation,
www.fsf.org
It would be great to have Tibetan and Chinese translations of this page. Can you help? Contact us! http://tibetangeeks.com/contact/