Tag: ubuntu

Linux, Ubuntu

Ubuntu – List remote host shared folders

Usage: smbclient -U <username> -L <hostname>smbclient -U <username> -L <hostname> smbclient -U <username> -L <ip address>smbclient -U <username> -L <ip address> Example: smbclient -U test -L -U test -L Results: Enter test’s password: Domain=[TESTING] OS=[Windows 7] Server=[Windows 7] Sharename Type Comment ——— —- ——- ADMIN$ Disk Remote Admin C$ Disk Default share E …

Linux, Ubuntu

Change the hostname or computer name in linux

1. Open a terminal window. 2. Type the following command and hit Enter: sudo gedit /etc/hostnamesudo gedit /etc/hostname 3. Replace the current computer name with the desired new name and save. 4. Type the following command: sudo gedit /etc/hostssudo gedit /etc/hosts 5. Change the old line to your new hostname. 6. Reboot


Introduction to Apt

All of these commands must be run as root or with superuser privileges. Installation apt-get install package_nameapt-get install package_name or apt-get install package_name1 package_name2 package_name3apt-get install package_name1 package_name2 package_name3 apt-get build-dep package_nameapt-get build-dep package_name This command searches the repositories and installs the build dependencies for package_name. Maintenance apt-get updateapt-get update Run this command periodically to …

Glassfish, Ubuntu

Installing Glassfish 3.1 on Ubuntu

Download Glassfish Get Glassfish from here. Download the file glassfish-3.1.2.zip.   Install JDK sudo apt-get install openjdk-7-jdksudo apt-get install openjdk-7-jdk   Unzip Archive unzip /home/username/Downloads/glassfish-3.1.2.zipunzip /home/username/Downloads/glassfish-3.1.2.zip   Start Server Change directory to bin folder and execute the following command: ./asadmin start-domain./asadmin start-domain The command starts the default domain, domain1.   Start the Java DB Server …

Apache, MySQL, Programming, Ubuntu

Install LAMP on Ubuntu 11.10

Let’s see how we can install LAMP – Linux, Apache, MySQL & PHP on Ubuntu 11.10! ¬†Install Apache Open terminal and execute the following command: sudo apt-get install apache2sudo apt-get install apache2   Install MySQL Open terminal and execute the following command: sudo apt-get install mysql-serversudo apt-get install mysql-server   Install PHP Open terminal and …


How to install MARY TTS

1. Download MARY TTS installer from here. 2. Run installer by issuing the following command: java -jar openmary-standalone-install-4.3.1.jarjava -jar openmary-standalone-install-4.3.1.jar 3. Follow MARY installation wizard and install MARY TTS in your home directory. For ex. /home/gkarpouzas/.MARY_TTS/ 4. Open your project in NetBeans and add references to these three jar files: /home/username/.MARY_TTS/java/mary-common.jar /home/username/.MARY_TTS/java/log4j-1.2.15.jar and /home/username/.MARY_TTS/java/freetts.jar   …

Programming, Ubuntu

How to setup and use FreeTTS in Ubuntu

Install FreeTTS (A speech synthesizer written entirely in the Java) using apt-get. sudo apt-get install freettssudo apt-get install freetts Open your project in NetBeans and select to add a jar/folder to the project. Navigate to /usr/share/java and add a reference to freetts.jar file. You are ready to write java code to convert text to speech! …


How to install PEAR and MDB2 in Ubuntu

Install the following packages if you need MDB2 library to connect to a MySQL database server. Install MySQL package for MDB2: sudo apt-get install php-mdb2-driver-mysqlsudo apt-get install php-mdb2-driver-mysql Install PEAR: sudo apt-get install php-pearsudo apt-get install php-pear Install MDB2 library: sudo pear install MDB2sudo pear install MDB2 Install MDB2 MySQL Driver: sudo pear install MDB2_Driver_Mysqlsudo …

Firewall, Ubuntu, Ubuntu Server, UFW

Iptables made easy with ufw

UFW is a front-end for iptables and is here to make your life easier! ¬†Default Rule To deny all incoming connections: sudo ufw default denysudo ufw default deny To allow all incoming connections: sudo ufw default allowsudo ufw default allow   Enable or Disable ufw To enable ufw: sudo ufw enablesudo ufw enable To disable …

Browsers, Ubuntu

Installing Opera on Ubuntu

If you like Opera, like i do, then you are a few steps away from installing it on Ubuntu! 1. Keep a backup for file /etc/apt/sources.list 2. Append to this file the lines below: #opera deb http://deb.opera.com/opera/ stable non-free 3. Add the Opera PGP Key wget -qO – http://deb.opera.com/archive.key | sudo apt-key add – 4. …