Category: Linux

0

How to install Oracle linux on Ubuntu

the web upd8 team has already packaged it nicely for us sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer set environment variables with sudo apt-get install oracle-java7-set-default Verify Oracle Java installation with...

How to add user to samba share 0

How to add user to samba share

Assuming the user already exists smbpasswd -a [username] This will prompt you to add a password. This is normal as the samba password and the unix password is stored in different databases

How to search inside files in linux 0

How to search inside files in linux

To search within files we can use the command grep (man grep). Basic usage is as follows: grep -Ril “mail” /var/www/ This will search our web root folder (/var/www/) for any text with the...

How to open ports on Cent OS/Fedora/Red Hat 0

How to open ports on Cent OS/Fedora/Red Hat

To open port XY Open flle /etc/sysconfig/iptables: # vi /etc/sysconfig/iptables Append rule as follows: -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport XY -j ACCEPT Save and close the file. Restart...

How to login to a ftp server in linux 0

How to login to a ftp server in linux

From your command line type ftp ftp > open ftp.myserver.com Or Alternatively, ftp ftp.myserver.com It will prompt you for a username and/or password and you can just fill those in. After you are in,...