One of my good friend Fabrice Pasquier was helping me a lot while testing and installing JBoss in Linux Ubuntu.
Ubuntu is one of best breed from Linux family, its simple but very powerful.
You can install Ubuntu as a separate OS or as a dual OS with windows OS.
Some useful commands
- ls- all :: lists files/folder with access details
- chmod a+x <filename> :: helps to execute the files with extensions like .sh, .rpm .bin etc.,
- ./shutdown.sh -s :: helps to shutdown jboss from where its started.
- ps - A :: shows a snapshots of current processes
- ps -A | grep bash :: shows processes started using bash
- ps - A Top
- ps - A U username
- kill -9 <PID number> :: kill the particular process whose PID can be found using ps -A
- env :: shows the environment variables of the system
- env | grep path :: shows the PATH environment variable alone
- $PATH :: shows the path variable
- Ctrl + z :: pressing this will help you get the command prompt from a running process, just after this type bg and move the process to run in background.
- Ctrl + Atl + Backspace key :: restarts the graphical interface of the current user.
- sudo mv <original location> <new location> , move files/folders
- less /etc/profile :: similar to more or type command, but this lets you also edit the file upon pressing hot keys
- ln -S :: creates a symbolic link of the file.
- which <filename> :: find and displays the filename location, escp for executable file
- find / -name "mozilla" :: find and displays where the file/folder mozilla is located
- smbclient and samba server helps for networking with windows drives
- webmin and webmin-mysql helps to admin the system via web interface
- /etc/init.d/webmin start :: starts/restarts webmin
- gedit :: will open simple text editor
- gnome-terminal will open command window
- sudo xterm passwd :: will open x-terminal window for root user
- alien <-rpm file> :: alien -i <-rpm file> :: will helps to unpack and install rpm based files in debian system
- rm :: remove file
- rmdir :: remove directory
- mv :: move file
- cp :: copy file
- gphoto
- df
- du -s < file/directory name> will list the file/directory size in kb,mb format
- alias
- env :: displays the enviroment and syatem variable settings
- export $PATH=$PATH:... sets paths
- chgrp :: change file/folder group
- chusr :: chnage file/folder user
- cat /proc/meminfo- to tell what memory used by processes
- free- show free memory
- watch "ls -al" monitors the current folder
- watch "du -s" monitors current folder byte size
- scp <filename> username@servername:directory location makes SSL copy
- rsync Synchronize one folder to another across network
- tar - tar archive tool
- touch - update the file properties with current date and time
- mysqldump -u username -p UNeMED_dbo generates sql scripts, mysql script /home/balaji/somefile.sql
To install JRE in firefox, try to find the jre plugin file under the jdk/jre folder and make a symbolic to it inside the firefox directory...
////////////////************ Draft document, yet to finish fully **************/////////////////////////////
By the way, if you like ubuntu linux, you will like this pic ;-)
TrackBacks[0]
Comments[17]
Posted by balajidl on 08 March 2006 10:46:08 CET
/etc/rc3.d/
rc0- Halt, rc1- Single user, rc2 - Basic network, rc5 - graphics, rc6- reboot.
rc0- Halt, rc1- Single user, rc2 - Basic network, rc5 - graphics, rc6- reboot.
Comment from Anonymous on 16 May 2006 10:46:37 CEST
how to set the jdk and jboss path in linux and how to run the application in linux console
Comment from dinesh on 02 June 2006 09:12:50 CEST
Hi
To set jdk path, first try to locate where the jsdk is installed in your PC then use the export command.
For example
export $PATH=$PATH:/usr/local/jdk1.5/bin
To run the application in linux console, click Application -> Accessories ->Terminal or press the hotkey F1 or F2 or F3
I dont know what you mean by jboss path.
For any further questions please consult jboss user group or Javaranch Saloon.
Also please read the topic How to ask questions
To set jdk path, first try to locate where the jsdk is installed in your PC then use the export command.
For example
export $PATH=$PATH:/usr/local/jdk1.5/bin
To run the application in linux console, click Application -> Accessories ->Terminal or press the hotkey F1 or F2 or F3
I dont know what you mean by jboss path.
For any further questions please consult jboss user group or Javaranch Saloon.
Also please read the topic How to ask questions
Comment from Balaji on 02 June 2006 09:41:12 CEST
The first $ is wrong in
"export $PATH=$PATH:/usr/local/jdk1.5/bin"
this should be:
"export PATH=$PATH:/usr/local/jdk1.5/bin"
Comment from Anonymous on 11 November 2006 00:23:40 CET
hi
Comment from girish on 09 October 2007 13:37:19 CEST
run.sh: Missing required file: Dinesh/DownLoads/server/jboss-4.0.4.GA/bin/run.jar
Comment from dinesh on 02 June 2006 12:12:01 CEST
Steps For Run The JBOSS4.0.4 Application Server
------------------------------------------------------
1.export JAVA_HOME=/usr/java/jdk1.5.0.06
2.export Path=%JAVA_HOME%bin:%Path%;
3.export JBOSS_HOME=/root/Dinesh/DownLoads/server/jboss-4.0.4.GA
4.sh run.sh
thses are rhe steps i followed now server run
but how to deploy the jsp in that server
i need that steps
Comment from dinesh on 02 June 2006 15:12:23 CEST
nmap localhost
provides list of services provided by the linux machine,
provides list of services provided by the linux machine,
Comment from Balaji on 18 July 2006 15:41:32 CEST
- Ctrl-Alt-F1 to F6 to switch to the console.
- Ctrl-Alt-F7 to switch back to Desktop mode
Comment from Balaji on 20 July 2006 15:22:42 CEST
free -m shows memory used.
top shows live CPU memory usage.
top shows live CPU memory usage.
Comment from Balaji on 25 July 2006 09:56:18 CEST
To open "File browser" with root permission
Press Alt-F2 and type gksudo nautilus
Press Alt-F2 and type gksudo nautilus
Comment from Balaji on 09 August 2006 11:11:51 CEST
Samba server is located at \etc\init.d\
then use .\samba start
then use .\samba start
Comment from Balaji on 17 October 2006 15:07:36 CEST
du - h -max_depth=1 \var\lib\mysql
Comment from Balaji on 06 November 2006 11:36:46 CET
Hi all,
I need help on something. Does anybody knows how to run a .sql file on ubuntu? Thanks!
Comment from Moses Liao on 23 February 2007 07:55:11 CET
If you're using MySQL, then use:
source <filename>
Here <filename> is the name of a file in the current directory from which user has logged into MySQL.
Comment from Mohan Murali G on 12 April 2007 20:18:05 CEST
To create a symbolic link use this
sudo ln -s /opt/java/jdk1.5.0_10/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so libjavaplugin_oji.so
Firefox plugins were installed at /usr/lib/firefox/plugins directory or /usr/lib/mozila/plugins
Regards
Vikas
sudo ln -s /opt/java/jdk1.5.0_10/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so libjavaplugin_oji.so
Firefox plugins were installed at /usr/lib/firefox/plugins directory or /usr/lib/mozila/plugins
Regards
Vikas
Comment from Vikas Hazrati on 08 May 2007 08:32:05 CEST
TrackBack to http://radio.javaranch.com/balajidl/addTrackBack.action?entry=1141811168533
apt-get install mysql-server
then execute mysql_install_db
then create the root user as
mysqladmin -r root password 'new password'
A detailed info can be found at http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html