Just finish setup my ubuntu vm box to host mailarchiva. It is running on tomcat it is running on port 8090 and with subfolder /mailarchiva. Since i'm using it in a domain i'm thinking why i don't just make a subdomain for it so it will be easier for the user to remember the URL.
Now it is currently hosted as 10.8.8.50:8090/mailarchiva it would be just nice if the user can visit the site just by mylarchiva.domain.com
I've set in the AD in the DNS host(A) to point myarchiva.domain.com to point to 10.8.8.50 in both reverse and forward lookup zone.
Install apache2 in the server so you can have it redirect to the tomcat server.
** installing apache2
sudo apt-get install apache2
Edit the apache2 httpd.conf (located at /etc/apache2/) to set the redirection.
sudo vi /etc/apache2/httpd.conf
This command will use the vi editor to edit the httpd.conf file
press I to insert the redirect roles, type in
Redirect / http://myarchiva.domain.com:8090/mailarchiva
press esc once you have finish edit and pres : and follow by wq! to save (w denote write & q denote quite)
** if you have done something wrong just press : follow by q! to quit and not saving
restart the apache server !
/etc/init.d/apache2 restart
Now when you type in myarchiva.domain.com in your browser it should redirect you to http://myarchiva.domain.com:8090/mailarchiva
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Wednesday, December 05, 2012
Wednesday, November 21, 2012
mounting window share folder in ubuntu
I wanted to install mailarchiva on my ubuntu box but i don't want to permanent mount the folder to my ubuntu box as i just need it to access some file during the setup.
here are the command to temp mount the folder to your ubuntu box
1) make a dir , i choose to do in mnt as easier to remember
mkdir /mnt/setupfile
2) let start to mount the file from window share to my ubuntu box
sudo mount -t cifs //win_share_location/folder /mnt/setupfile -o user=username,domain=domain,pass=password
done ! :)
once you are done and wish to un-mount the folder just type
sudo umount /mnt/setupfile
1) make a dir , i choose to do in mnt as easier to remember
mkdir /mnt/setupfile
2) let start to mount the file from window share to my ubuntu box
sudo mount -t cifs //win_share_location/folder /mnt/setupfile -o user=username,domain=domain,pass=password
done ! :)
once you are done and wish to un-mount the folder just type
sudo umount /mnt/setupfile
sudoers in ubuntu
For linux beginner like me i found it is kinda hard when working on a non-gui enviroment. I've created a new user in my ubuntu box for mail-archiva. When i try to sudo and it return with the error message "not in sudoers list". It does give me a headache to switch account back and forth.
that should do the trick :)
Here are the simple fix (the text in bold is command line) :-
1) groups <username> ; to check the group that the user account are currently associated with.
2) sudo adduser <username> sudo ; to add the new user to the sudo group
that should do the trick :)
Tuesday, June 07, 2011
ubuntu - change primary display
Recently just got an dual monitor setup for my workstation. As my setup consist of a notebook and 1 external monitor; the default primary screen are to my notebook screen and I wanted to change it to my external monitor as the primary and I notice that there is not such option in the Display / Monitor option, only clone setup are available.
After a goggling attempt I found an easy way :-
At Terminal you can just do : xrandr (it will display a list of available output)
type in : xrandr --output HDMI-0 --primary (as i wanted my HDMI out connection to my Monitor as primary)
Labels:
display,
linux,
switch primary display,
ubuntu,
xrandr
Subscribe to:
Posts (Atom)
