Ubuntu
Ubuntu-tietoja tänne.
Add colors in vim and terminal
sudo vi /etc/vim/vimrc
Enable syntax on
set alias for ls in the
vim /root/.bashrc
apt-get install vim
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
alias cls=clear
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
install and configure open-ssh client and server
echo You should have those, but run the comands to install any newer version if there are any ...
sudo apt-get install openssh-client
sudo apt-get install openssh-server
echo change the default port to listen from Port 22 - > Portxxxx
vim /etc/ssh/sshd_config
echo Restart the sshd deamon
sudo /etc/init.d/ssh restart
install flash player for Firefox
sudo aptitude install flashplugin-nonfree
?>
Install LAMP
#iNSTALL APACHE
sudo apt-get install apache2
#Start or stop Apache
sudo /etc/init.d/apache2 stop | start | restart
#if installation of previous packages has failed
dpkg --configure -a
#install PHP mod_php for Apache
sudo apt-get install php5 libapache2-mod-php5
echo '' > /var/www/test.php
open http://localhost/test.php - > you should see Haudi World
#install mySQL
#iNSTALL APACHE
sudo apt-get install apache2
#Start or stop Apache
#if installation of previous packages has failed
dpkg --configure -a
sudo /etc/init.d/apache2 stop | start | restart
#install PHP mod_php for Apache
sudo apt-get install php5 libapache2-mod-php5
echo '' > /var/www/test.php
#iNSTALL APACHE
sudo apt-get install apache2
#Start or stop Apache
#if installation of previous packages has failed
dpkg --configure -a
sudo /etc/init.d/apache2 stop | start | restart
#install PHP mod_php for Apache
sudo apt-get install php5 libapache2-mod-php5
echo '' > /var/www/test.php
#install mysql
#iNSTALL APACHE
sudo apt-get install apache2
#Start or stop Apache
#if installation of previous packages has failed
dpkg --configure -a
sudo /etc/init.d/apache2 stop | start | restart
#install PHP mod_php for Apache
sudo apt-get install php5 libapache2-mod-php5
echo '' > /var/www/test.php
#iNSTALL APACHE
sudo apt-get install apache2
#if installation of previous packages has failed
dpkg --configure -a
#Start or stop Apache
sudo /etc/init.d/apache2 stop | start | restart
#install PHP mod_php for Apache
sudo apt-get install php5 libapache2-mod-php5
echo '' > /var/www/test.php
#install mysql server
sudo apt-get install mysql-server
#when prompted type in your password
#if not prompted set the password with the following:
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('xxxxxx');
#run the mysql with:
mysql -uroot -pTypeHereYourVarySecretPass
#install the php admin
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
#when prompted configure the type of servers
Simple FAQ
How to change the keyboard input language:
System - Preferences - Keyboard - Layouts - Add
How to assign keyboard shortcuts ?
System - Preferences - Keyboard - Layout options - (for example AltGr + T )could start the terminal
tips & tricks
history > /var/www/history.log
cat /path/file >/var/www/copypaste.log
http://localhost/copypaste.log
http://localhost/history.log
update Ubuntu
You can only directly upgrade to Ubuntu 7.10 ("Gutsy Gibbon") from Ubuntu 7.04 ("Feisty Fawn"
sudo apt-get install update-manager-core
if fails run
sudo do-release-upgrade
#install any application from the Ubuntu software repositories
apt-get install eclipse ; apt-get install geany
>
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!