header image
Home arrow LUG How Tos arrow How To Tips 101
How To Tips 101 Print
Jun 18, 2007 at 07:39 PM

# Find current java version
    java -version

# Switch to default java:
    sudo update-alternatives --config java

# Sync your date vith NTP (time) server
    sudo ntpdate ntp.ubuntu.com

# Restart network interfaces:
    sudo /etc/init.d/networking restart


# Nautilus Advanced Permissions Dialog:
# To activate the dialog:
    gconftool-2 --type bool --set /apps/nautilus/preferences/show_advanced_permissions True

# To deactivate the dialog and revert to the default settings:
    gconftool-2 --type bool --set /apps/nautilus/preferences/show_advanced_permissions False


# ls = list command
    sudo dmidecode
    sudo lshw   --> list hardware
    sudo lspci   --> list pci
    sudo lsusb  --> list usb devices
    sudo lsof    --> list open files   --->   sudo lsof -i -l List of open network files
              lshal  --> list HAL   --->   lshal | grep system.firmware.version  (check your bios version)
              lsmod--> list kernel modules that are loaded


# create TAR file:
    tar -cvf mystuff.tar mystuff/
    tar -czvf mystuff.tgz mystuff/

# Archive whole directory:
    tar cvf archive.tar *
    tar cvf archive.tar source_dir_name

# extracting TAR file:
    tar -xvf mystuff.tar
    tar -xzvf mystuff.tgz

# testing/viewing:
    tar -tvf mystuff.tar
    tar -tzvf mystuff.tgz


# Package sources file:
    sudo vi /etc/apt/sources.list

# update package database:
    sudo apt-get update
# upgrade packages:
    sudo apt-get upgrade


# Set the database password for the "root" database user (this is not the local machine's root account).
    mysql -u root

You should get a welcome message and a MySQL prompt. Continue typing the following:
mysql> UPDATE
               mysql.user
             SET
               Password=PASSWORD('your_new_password')
             WHERE User='root';

mysql> FLUSH PRIVILEGES;
mysql> quit

# Now we need to create a new database for Drupal. In this example we'll name the database "drupal".
    mysqladmin -u root -p create drupal

# Create a symbolic link from /usr/share/drupal to that directory in our website's document root, /var/www:
    sudo ln -s /usr/share/drupal /var/www/drupal

# Restart the web server:
    sudo /etc/init.d/apache2 restart

EC_LUG -Eau Claire Linux users group is an informal group of Linux and open source software enthusiasts.

We meet each Thursday at 7 p.m. at  420 Cafe, 420 Washington Ave. Eau Claire, Wisconsin.

Linux 101:
What's All The Fuss? video...

Mac vs. PC: How Would Linux Fit?
video1...

video2...
video3...

Linux User GroupsLug Link Logo