Find Files and DElete it on Linux

Run first:
find . -name "*.bak" -type f

If you decided to delete run:
find . -name "*.bak" -type f -delete

No Comments »

admin on February 5th 2017 in IT, Linux

Install OwnCloud on Debian

I already made once a tutorial how to install OwnCloud on Debian. But since then you can find it in the repository of aptitude and is therefore much easier to install.

  1. apt-get update
  2. apt-get install owncloud
  3. apt-get install mysql-server mysql-client
  4. Create DB and User
    mysql –u root –p
    CREATE DATABASE owncloud;
    CREATE USER owncloud@localhost IDENTIFIED BY ‘password’;
    GRANT ALL PRIVILEGES ON owncloud.* TO owncloud@localhost;
    flush privileges;
    quit
  5. Create Directories
    mkdir /var/owncloud
    chown www-data:www-data /var/owncloud
    chmod 750 /var/owncloud
  6. Run owncloud
    http://yourip/owncloud/
  7. Username: owncloud
    Password: Password you have picked for the DB.
    DB Name: owncloud
    Hostname: localhost
  8. Activate HTTPS
    a2enmod ssl
    a2ensite default-ssl
    service apache2 restart

After that you just need to install the OwnCloud clients on your devices and then you are ready to go.

No Comments »

admin on August 1st 2016 in Cloud, Internet, IT, Linux

Quick and Dirty Stock Market Ticker for bash shell

No Comments »

admin on August 8th 2012 in IT, Linux

sendEmail from Bash over GMail

The syntax is following:
sendEmail -v –f $EMAIL_FROM -s smtp.gmail.com:587 -xu p$USERNAME –xp $PASSWORD –t $EMAIL_TO -o tls=yes –u $SUBJECT –m $MESSAGE

But after I tried it I got following message:
ERROR => No TLS support!  SendEmail can’t load required libraries. (try installing Net::SSLeay and IO::Socket::SSL

This fixed the problem:
apt-get install libio-socket-ssl-perl libnet-ssleay-perl

No Comments »

admin on February 10th 2012 in Linux

Color LInux Prompt

vi ~/.bashrc

To color it red change PS1 to:
export PS1=’\[\e[1;31m\][\u@\h \W]\$\[\e[0m\] ‘

After that you need to save it and reload it with:
source ~/.bashrc

No Comments »

admin on February 8th 2012 in IT, Linux

Treesize in Linux Command Console

I love the program treesize on windows and I was looking for a script to do the same on linux.

Thanks to Andrew who made this neat script:

No Comments »

admin on January 31st 2012 in Linux

How to find out if linux is 32 bit or 64 bit

Run the following command in your console:

# uname –a

32-bit

  • i386/i686

64-bit

  • x86_64

No Comments »

admin on May 20th 2011 in IT, Linux

Rename Host Name Linux

Just edit the name in these two files:
# vi /etc/hostname
# vi /etc/hosts

After that restart the server:
# shutdown –r now

You could also just restart the network. But this was the lazy and easier way;-)

No Comments »

admin on January 25th 2011 in IT, Linux

Search a string in Linux

This is a full text search in all the files in the current directory and subdirectories.

grep –r “test” .

No Comments »

admin on December 3rd 2010 in Linux

Mount Windows Shares from Linux

Lists Shares
smbclient –U %USERNAME% –L %SERVER%

Command  
get Get Files from the Remote Machine
put Put Files on the Remote Machine

Mount Shares
Create a Mount directory and connect to it
mkdir %SHARENAME%
mount –t smbfs –o username=%USERNAME%,password=%PASSWORD% //%SHARENAME% %MOUNTDIRECTORY%

No Comments »

admin on November 11th 2010 in Linux




Check out new movies online website. Download and buy movies now.
12