https://wiki.archlinux.org/api.php?action=feedcontributions&user=Betrunkenaffe&feedformat=atomArchWiki - User contributions [en]2024-03-29T06:14:59ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=PS3_Mediaserver&diff=218181PS3 Mediaserver2012-08-16T15:51:10Z<p>Betrunkenaffe: Updated information to reflect some changes to config file</p>
<hr />
<div>[[Category:Networking]]<br />
Server implemented in java. Has very good default transcoding profiles for several clients, but lacks good information for headless servers.<br />
<br />
Install [http://aur.archlinux.org/packages.php?ID=22165 pms] from AUR.<br />
<br />
The default install location is /opt/pms and the config file is at /opt/pms/PMS.conf, there are comments describing what each option is for.<br />
<br />
If running headless on a server<br />
{{hc|Operating Mode|<br />
minimized &#61; true}}<br />
<br />
If you don't want your entire filesystem to be shown<br />
{{hc|Media Locations|<br />
folders &#61; /directory.you.want.shared/,/another.directory<br />
}}<br />
<br />
If you run into issues with the wrong audio track playing (example: English desired)<br />
{{hc|Audio language priority|<br />
mencoder_audiolangs &#61; eng,und<br />
}}<br />
<br />
Example of english subtitles desired, no subtitles by default on English programs<br />
{{hc|Subtitle language priority|<br />
mencoder_sublangs &#61; loc,eng,und<br />
}}<br />
<br />
A list with all options can be found [http://ps3mediaserver.org/forum/viewtopic.php?f=3&t=254&hilit=pms.conf#p15283 here].<br />
* In order to run it as a daemon:<br />
{{hc|May not be necessary on all systems|<br />
# mkdir /opt/pms/database<br />
# chown <username> /opt/pms/database<br />
# chown <username> /var/log/pms.log<br />
# /etc/rc.d/pms start<br />
}}<br />
* Use your web browser to go to: <nowiki>http://<ip-address-of-your-server>:5001/console/home</nowiki> and click on 'index files and folders'<br />
* (optionally) watch the output with 'tail -f /var/log/pms.log' or 'tail -f /opt/pms/debug.log' for any problems.<br />
* After the indexing has ended, you are done.<br />
<br />
Use the following modified daemon script (originally from pms-svn).<br />
{{hc|/etc/rc.d/pms|<br />
#!/bin/bash<br />
<br />
. /etc/rc.conf<br />
. /etc/rc.d/functions<br />
. /etc/conf.d/pms<br />
<br />
PID&#61;`cat /var/run/pms.pid 2> /dev/null`<br />
[ -z "$PID" ] && PID&#61;`ps -Ao pid,command &#124; grep java &#124; grep pms.jar &#124; awk '{print $1}'`<br />
<br />
case "$1" in<br />
start)<br />
stat_busy "Starting PS3 Media Server"<br />
if [ -z "$PID" ]; then<br />
if [ -n "$PMS_USER" ]; then<br />
su -s '/bin/sh' $PMS_USER -c "/usr/bin/ps3mediaserver &>> /var/log/pms.log" &<br />
else<br />
/usr/bin/ps3mediaserver &>> /var/log/pms.log &<br />
fi<br />
PID&#61;$!<br />
if [ $? -gt 0 ]; then<br />
stat_fail<br />
else<br />
echo $PID > /var/run/pms.pid<br />
add_daemon pms<br />
stat_done<br />
fi<br />
fi<br />
;;<br />
stop)<br />
stat_busy "Stopping PS3 Media Server"<br />
[ ! -z "$PID" ] && kill $PID &> /dev/null<br />
while ps -p $PID &> /dev/null; do sleep 1; done<br />
if [ $? -gt 0 ]; then<br />
stat_fail<br />
else<br />
rm /var/run/pms.pid 2> /dev/null<br />
rm_daemon pms<br />
stat_done<br />
fi<br />
;;<br />
restart)<br />
$0 stop<br />
sleep 1<br />
$0 start<br />
;;<br />
*)<br />
echo "usage: $0 {start&#124;stop&#124;restart}"<br />
;;<br />
esac<br />
exit 0<br />
}}<br />
<br />
{{hc|/etc/conf.d/pms|2=<br />
PMS_USER='<user name to run it as>'<br />
}}</div>Betrunkenaffehttps://wiki.archlinux.org/index.php?title=Beginners%27_guide/Post-installation&diff=192599Beginners' guide/Post-installation2012-04-02T15:43:07Z<p>Betrunkenaffe: /* Start X */</p>
<hr />
<div><noinclude><br />
[[Category:Getting and installing Arch (English)]] [[Category:About Arch (English)]]<br />
[[Category:Website Resources]]<br />
{{i18n|Beginners' Guide/Extra}}<br />
{{Tip|This is part of a multi-page article for The Beginners' Guide. '''[[Beginners' Guide|Click here]]''' if you would rather read the guide in its entirety.}}<br />
</noinclude><br />
==Extra==<br />
You should now have a completely functional Arch system which will act as a suitable base for you to build upon based on your needs. However, most people are interested in a desktop system, complete with sound and graphics. This part of the guide will provide a brief overview of the procedure to acquire these extras.<br />
<br />
===Sudo===<br />
Install Sudo:<br />
{{bc|# pacman -S sudo}}<br />
To add a user as a sudo user (a &quot;sudoer&quot;), the visudo command must be run as root.<br />
<br />
By default, the visudo command uses the editor [[vi]]. If you do not know how to use vi, you may set the EDITOR environment variable to the editor of your choice, such as in this example with the editor "nano":<br />
# EDITOR=nano visudo<br />
{{Note|Please note that you are setting the variable and starting visudo on the same line at the same time. This will not work properly as two separated commands.}}<br />
<br />
If you are comfortable using vi, issue the visudo command without the EDITOR=nano variable:<br />
{{bc|# visudo}}<br />
This will open the file {{ic|/etc/sudoers}} in a special session of vi. visudo copies the file to be edited to a temporary file, edits it with an editor, (vi by default), and subsequently runs a sanity check. If it passes, the temporary file overwrites the original with the correct permissions.<br />
<br />
{{Warning|Do not edit {{ic|/etc/sudoers}} directly with an editor; errors in syntax can cause annoyances (like rendering the root account unusable). You '''must''' use the ''visudo'' command to edit {{ic|/etc/sudoers}}.}}<br />
<br />
In the previous section we added your user to the "wheel" group. To give users in the wheel group full root privileges when they precede a command with &quot;sudo&quot;, uncomment the following line:<br />
%wheel ALL=(ALL) ALL<br />
Now you can give any user access to the sudo command by simply adding them to the wheel group.<br />
<br />
For more information, such as sudoer <TAB> completion, see [[Sudo]].<br />
<br />
===Sound===<br />
If you want sound, proceed to [[Advanced Linux Sound Architecture]] for instructions. Alternatively, proceed to the [[#Graphical User Interface|next section]] first, and set up sound later.<br />
<br />
{{Note|ALSA usually works out-of-the-box, it just needs to be unmuted.}}<br />
<br />
The [[Wikipedia:Advanced Linux Sound Architecture|Advanced Linux Sound Architecture]] (ALSA) is included with the kernel and it is recommended to try it first. However, if it does not work or you are not satisfied with the quality, the [[Wikipedia:Open Sound System|Open Sound System]] is a viable alternative. OSSv4 has been released under a free license and is generally considered a significant improvement over the older OSSv3 which was replaced by ALSA. Instructions can be found in the [[OSS|OSS article]].<br />
<br />
If you have advanced audio requirements, take a look at [[Sound]] for an overview of various articles.<br />
<br />
==='''G'''raphical '''U'''ser '''I'''nterface===<br />
<br />
====Install X====<br />
The [[Wikipedia:X Window System|X Window System]] (commonly '''X11''', or '''X''') is a networking and display protocol which provides windowing on bitmap displays. It provides the standard toolkit and protocol to build graphical user interfaces (GUIs).<br />
<br />
Now we will install the base '''[[Xorg]]''' packages using pacman.<br />
<br />
Install the base packages:<br />
{{bc|# pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils}}<br />
<br />
Install [[Wikipedia:Mesa 3D (OpenGL)|mesa]] for 3D support:<br />
{{bc|# pacman -S mesa}}<br />
<br />
The 3D utilities glxgears and [http://dri.freedesktop.org/wiki/glxinfo glxinfo] are included in the '''mesa-demos''' package. Install if needed:<br />
{{bc|# pacman -S mesa-demos}}<br />
<br />
{{Note|If you are installing Arch as a Virtualbox guest, you need a different way to complete X installation. See [[Arch Linux VirtualBox Guest]], then jump to the configuration part below.}}<br />
<br />
====Install video driver====<br />
Next, you should install a driver for your graphics card.<br />
<br />
You will need knowledge of which video chipset your machine has. If you do not know, use the {{ic|/usr/sbin/lspci}} program:<br />
{{bc|<nowiki>$ lspci | grep VGA</nowiki>}}<br />
<br />
{{Note| The '''vesa''' driver is the most generic, and should work with almost any modern video chipset. If you cannot find a suitable driver for your video chipset, vesa ''should'' work with any video card, but it offers only unaccelerated 2D performance.}}<br />
<br />
For a complete list of all '''open-source''' video drivers, search the package database:<br />
{{bc|<nowiki>$ pacman -Ss xf86-video | less</nowiki>}}<br />
<br />
{{Note|Proprietary drivers for NVIDIA and ATI are covered in the next sections. If you plan on doing heavy 3D processing such as gaming, consider using these.}}<br />
<br />
Use pacman to install the appropriate video driver for your video card/onboard video. Example for the Savage driver:<br />
{{bc|# pacman -S xf86-video-savage}}<br />
<br />
{{Tip|For some Intel graphics cards, configuration may be necessary to get proper 2D or 3D performance, see [[Intel]] for more information.}}<br />
<br />
=====NVIDIA Graphics Cards=====<br />
NVIDIA users have three options for drivers (in addition to the vesa driver):<br />
* The open-source nouveau driver, which offers fast 2d acceleration and basic 3d support which is good enough for basic compositing (note: does not fully support powersaving yet). [http://nouveau.freedesktop.org/wiki/FeatureMatrix Feature Matrix.]<br />
* The open-source (but obfuscated) nv driver, which is very slow and only has 2d support.<br />
* The proprietary nvidia drivers, which offer good 3d performance and powersaving. Even if you plan on using the proprietary drivers, it is recommended to start with nouveau and then switch to the binary driver after you have X set up and working. Nouveau often works out-of-the-box, while nvidia will require configuration and likely some troubleshooting. See [[NVIDIA]] for more information.<br />
<br />
The open-source nouveau driver should be good enough for most users and is recommended:<br />
{{bc|# pacman -S xf86-video-nouveau}}<br />
<br />
For experimental 3D support:<br />
{{bc|# pacman -S nouveau-dri}}<br />
<br />
{{Tip|For advanced instructions, see [[Nouveau]].}}<br />
<br />
=====ATI Graphics Cards=====<br />
ATI owners have two options for drivers (in addition to the vesa driver):<br />
* The open source '''radeon''' driver provided by the '''xf86-video-ati''' package. See the [http://wiki.x.org/wiki/RadeonFeature radeon feature matrix] for details.<br />
* The proprietary '''fglrx''' driver provided by the [https://aur.archlinux.org/packages.php?O=0&K=catalyst&do_Search=Go catalyst] package located in the [[AUR]]. It supports only newer devices (HD2xxx and newer). It was once a package offered by Arch in the '''extra''' repository, but as of March 2009, official support has been dropped because of dissatisfaction with the quality and speed of development of the proprietary driver. See [[ATI Catalyst]] for more information.<br />
<br />
The open-source driver is the recommended choice. Install the '''radeon''' ATI Driver:<br />
{{bc|# pacman -S xf86-video-ati}}<br />
<br />
{{Tip|For advanced instructions, see [[ATI]].}}<br />
<br />
=====SiS Graphics Cards=====<br />
SiS cards are not officially supported on Linux. Despite this fact 3 more or less outdated drivers can be installed from the [[official repositories]]:<br />
{{bc|# pacman -S xf86-video-sis}}<br />
or<br />
{{bc|# pacman -S xf86-video-sisusb}}<br />
or<br />
{{bc|# pacman -S xf86-video-sisimedia}}<br />
<br />
If neither of them works for you, searching in the [[AUR]] and compiling a driver (with possible downgrading of {{pkg|xorg-server}}) is the only option.<br />
<br />
{{Tip|<br />
*You can learn more about current state of sis drivers at http://dri.freedesktop.org/wiki/SiS.<br />
*For advanced instructions, see [[SiS]].}}<br />
<br />
====Install input drivers====<br />
Udev should be capable of detecting your hardware without problems and evdev ('''xf86-input-evdev''') is the modern, hotplugging input driver for almost all devices so in most cases, installing input drivers is not needed. At this point, evdev has already been installed as a dependency of Xorg.<br />
<br />
If evdev does not support your device, install the needed driver from the xorg-input-drivers group.<br />
<br />
For a complete list of available input drivers, invoke a pacman search:<br />
{{bc|<nowiki># pacman -Ss xf86-input | less</nowiki>}}<br />
{{Note|You only need xf86-input-keyboard or xf86-input-mouse if you plan on disabling hotplugging, otherwise, evdev will act as the input driver.}}<br />
<br />
Laptop users (or users with a touchscreen) will also need the synaptics package to allow X to configure the touchpad/touchscreen:<br />
{{bc|# pacman -S xf86-input-synaptics}}<br />
<br />
{{Tip|For instructions on fine tuning or troubleshooting touchpad settings, see the [[Touchpad Synaptics]] article.}}<br />
<br />
====Configure X (Optional)====<br />
{{Warning|Proprietary drivers usually require a reboot after installation along with configuration. See [[NVIDIA]] or [[ATI Catalyst]] for details.}}<br />
<br />
X Server features auto-configuration and therefore can function without an {{ic|xorg.conf}}. If you still wish to manually configure X Server, please see the [[Xorg]] wiki page.<br />
<br />
=====Non-US keyboard=====<br />
If you do not use a standard US keyboard, you need to set the keyboard layout in {{ic|/etc/X11/xorg.conf.d/10-evdev.conf}}:<br />
<br />
Section "InputClass"<br />
Identifier "evdev keyboard catchall"<br />
MatchIsKeyboard "on"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "evdev"<br />
'''Option "XkbLayout" "be"'''<br />
EndSection<br />
<br />
If, for example, you wish to use a variant of the US keyboard, add the following into the same section from the previous example:<br />
Option "XkbLayout" "us"<br />
Option "XkbVariant" "dvorak"<br />
<br />
{{Note|The '''XkbLayout''' key may differ from the keymap code you used with the km or loadkeys command. A list of many keyboard layouts and variants can be found in {{ic|/usr/share/X11/xkb/rules/base.lst}} (see text after line beginning with {{ic|<nowiki>! layout</nowiki>}}). For instance the layout: '''gb''' corresponds to "English (UK)".<br />
}}<br />
<br />
====Testing X====<br />
This section will explain how to start a very basic graphical environment in order to test '''X'''. This uses the simple default '''X''' window manager, twm.<br />
<br />
Install the default test environment:<br />
<br />
{{bc|# pacman -S xorg-twm xorg-xclock xterm}}<br />
<br />
The default X environment is rather bare. [[#Choose and install a graphical interface|This section below]] will deal with installing a desktop environment or window manager of your choice to supplement X.<br />
<br />
If you installed Xorg before creating your regular user, there will be an empty {{ic|.xinitrc}} file in your $HOME that you need to either delete or edit in order to start a graphical environment. Simply deleting it will cause '''X''' to run with the default environment (twm, xclock, xterm).<br />
<br />
{{bc|$ rm ~/.xinitrc}}<br />
<br />
=====Message bus=====<br />
{{Note|[[dbus]] is likely required for many of your applications to work properly, if you know you do not need it, skip this section.}}<br />
<br />
Install [[dbus]]:<br />
{{bc|# pacman -S dbus}}<br />
<br />
Start the dbus daemon:<br />
{{bc|# rc.d start dbus}}<br />
<br />
{{Note|{{ic|/usr/sbin/rc.d}} is an Arch-peculiar command which acts as a shortcut for executing [[daemon]] actions in place of using the full {{ic|/etc/rc.d/''daemon''}} path commonly used in other distributions.}}<br />
<br />
Add dbus to the {{ic|DAEMONS}} array in {{ic|/etc/rc.conf}} so it starts automatically on boot:<br />
{{bc|1=DAEMONS=(... dbus ...)}}<br />
<br />
=====Start X=====<br />
{{Note|The Ctrl-Alt-Backspace shortcut traditionally used to kill X has been deprecated and will not work to exit out of this test. You can enable Ctrl-Alt-Backspace by editing {{ic|xorg.conf}}, as described [[Xorg#Ctrl-Alt-Backspace_does_not_work|here]].}} Both the following commands can be found in the xorg-xinit package if you have troubles running them.<br />
Finally, start Xorg:<br />
{{bc|$ startx}}<br />
<br />
or:<br />
{{bc|$ xinit -- /usr/bin/X -nolisten tcp}}<br />
<br />
A few movable windows should show up, and your mouse should work. Once you are satisfied that '''X''' installation was a success, you may exit out of '''X''' by issuing the {{ic|exit}} command into the prompts until you return to the console.<br />
<br />
If the screen goes black, you may still attempt to switch to a different virtual console (CTRL-Alt-F2, for example), and login blindly as root, followed by <Enter>, followed by root's password followed by <Enter>.<br />
<br />
You can attempt to kill the '''X''' server with {{ic|/usr/bin/pkill}} (note the capital letter '''X'''):<br />
{{bc|# pkill X}}<br />
<br />
If '''pkill''' does not work, reboot blindly with:<br />
{{bc|# reboot}}<br />
<br />
=====In case of errors=====<br />
If a problem occurs, look for errors in {{ic|/var/log/Xorg.0.log}}. Be on the lookout for any lines beginning with {{ic|(EE)}} which represent errors, and also {{ic|(WW)}} which are warnings that could indicate other issues.<br />
{{bc|$ grep EE /var/log/Xorg.0.log}}<br />
<br />
Errors may also be searched for in the console output of the virtual console from which '''X''' was started.<br />
<br />
See the [[Xorg]] article for detailed instructions and troubleshooting.<br />
<br />
=====Need Help?=====<br />
If you are still having trouble after consulting the [[Xorg]] article and need assistance via the Arch forums, be sure to install and use '''wgetpaste''':<br />
<br />
{{bc|# pacman -S wgetpaste}}<br />
Use '''wgetpaste''' and provide links for the following files when asking for help in your forum post:<br />
* ~/.xinitrc<br />
* /etc/X11/xorg.conf<br />
* /var/log/Xorg.0.log<br />
* /var/log/Xorg.0.log.old<br />
Use it like so:<br />
{{bc|$ wgetpaste </path/to/file>}}<br />
Post the corresponding links given within your forum post. Be sure to provide appropriate hardware and driver information as well.<br />
{{Note|It is very important to provide detail when troubleshooting X. Please provide all pertinent information as detailed above when asking for assistance on the Arch forums.}}<br />
<br />
====Install Fonts====<br />
At this point, you may wish to save time by installing visually pleasing, true type fonts, before installing a desktop environment/window manager. DejaVu is a set of high quality, general-purpose fonts.<br />
<br />
Install with:<br />
{{bc|# pacman -S ttf-dejavu}}<br />
<br />
*Refer to [[Font Configuration]] for how to configure font rendering and [[Fonts]] for font suggestions and installation instructions.<br />
*Steps to install Microsoft fonts are detailed in the [[MS Fonts]] article.<br />
<br />
====Choose and install a graphical interface====<br />
The X Window System provides the basic framework for building a graphical user interface (GUI).<br />
<br />
{{Note|Choosing your DE or WM is a very subjective and personal decision. Choose the best environment for ''your'' needs.}}<br />
<br />
;Window Manager (WM) : Controls the placement and appearance of application windows in conjunction with the X Window System. '''See [[Window Manager#Window managers|Window managers]] for more information.'''<br />
<br />
;Desktop Environment (DE): Works atop and in conjunction with X, to provide a completely functional and dynamic GUI. A DE typically provides a window manager, icons, applets, windows, toolbars, folders, wallpapers, a suite of applications and abilities like drag and drop.''' See [[Desktop Environment#Desktop environments|Desktop environments]] for more information.'''<br />
<br />
{{Note|You can build your own DE by using a WM and the applications of your choice.}}<br />
<br />
After installing a graphical interface, you may wish to continue with [[General Recommendations]] for post-installation instructions.<br />
<br />
====Methods for starting your Graphical Environment====<br />
=====Manually=====<br />
You might prefer to start X manually from your terminal rather than booting straight into the desktop. For DE-specific commands, please see the wiki page corrosponding to your DE for more information. For more generic '''X''' commands, please see the [[Xorg#Methods for starting your Graphical Environment|section on the Xorg page]].<br />
<br />
=====Automatically=====<br />
You might prefer to have the desktop start automatically during boot instead of starting X manually. See [[Display Manager]] for instructions on using a login manager or [[Start X at Boot]] for two lightweight methods that do not rely on a display manager.<br />
<br />
==Appendix==<br />
For a list of applications that may be of interest, see [[Common Applications]].<br />
<br />
See [[General Recommendations]] for post-installation tutorials like setting up CPU frequency scaling or font rendering.<noinclude><br />
{{Beginners' Guide navigation}}</noinclude></div>Betrunkenaffehttps://wiki.archlinux.org/index.php?title=Minecraft&diff=189604Minecraft2012-03-15T20:19:34Z<p>Betrunkenaffe: </p>
<hr />
<div>{{i18n|Minecraft}}<br />
<br />
Minecraft is a commercial game very popular with geeks. It's a game about blocks. You can build a computer out of the game thanks to logical switches. There is a parallel world. Zombies, pigs, spiders, sheeps, wolves that you can tame, etc...<br />
This wiki page is here to help you install the game :)<br />
<br />
==Installation==<br />
You can install [https://aur.archlinux.org/packages.php?ID=39434 minecraft] by using the available package in [[AUR]]. This package provides the official launcher and a convenient script for launching minecraft. Upon running minecraft it will procced to download the lastest version and install it in {{ic|~/.minecraft/}}<br />
<br />
==Setting Up Java==<br />
Minecraft should work out-of-the-box with a couple of the various Java JREs.<br />
<br />
===openJDK6===<br />
Minecraft should just work with openjdk6 in community.<br />
# pacman -S openjdk6<br />
<br />
===openJDK7===<br />
If on openJDK7 minecraft gets stuck in the pause menu, you may be able to get it to work following these instructions:<br />
<br />
Manually forcing minecraft to use LWJGL 2.8.1 seems to solve the pause screen problem (and, as a bonus, fixes the sticky keys issue). [http://www.reddit.com/r/Minecraft/comments/miag5/cant_close_pause_menu_100_bug_linux_only/c31ui2d Credit goes to MrIso on reddit]. LWJGL 2.8.1 can be downloaded [http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.8.1/lwjgl-2.8.1.zip/download here]:<br />
<br />
Replace the following files in .minecraft/bin/ with the corresponding versions in lwjgl-2.8.1/jar<br />
<br />
jinput.jar<br />
lwjgl.jar<br />
lwjgl_util.jar <br />
<br />
And from .minecraft/bin/natives/ with lwjgl-2.8.1/natives/linux<br />
<br />
libjinput-linux.so<br />
libjinput-linux64.so<br />
liblwjgl.so<br />
liblwjgl64.so<br />
libopenal.so<br />
libopenal64.so<br />
<br />
==Play the game==<br />
Run minecraft with :<br />
$ java -jar $HOME/.minecraft/minecraft.jar<br />
<br />
If you want to allocate it more ram, do like this :<br />
$ java -jar -Xms1024M -Xmx2048M $HOME/.minecraft/minecraft.jar<br />
<br />
==Extras==<br />
There are several [http://www.minecraftwiki.net/wiki/Programs_and_editors programs and editors] which can make your Minecraft experience a little easier to navigate. The most common of these programs are map generators. Using one of these programs will allow you to load up a Minecraft world file and render it as a 2D image, providing you with a top-down map of the world.<br />
===Minutor===<br />
Minutor is described as a minimalistic map generator for Minecraft. Don't let this mislead you, it generates maps of existing worlds, not the other way around. You are provided with a simple GTK based interface for viewing your world. Several rendering modes are available, as well as custom coloring modes and the ability to slice through z-levels. Minutor is available in the [[AUR]].<br />
<br />
==Minecraft Server==<br />
Minecraft is also available as a server, which will allow you to share a world with other players over the Internet. Here's what you'll need to do:<br />
* Follow the steps above to install [[Java]] (or [https://wiki.archlinux.org/index.php/Java#OpenJDK_JVM OpenJDK])<br />
* [http://www.minecraft.net/download.jsp Download] the multiplayer beta server jar from the Minecraft site<br />
* Just run the jarfile:<br />
(You can sub the -Xmx and -Xms values for the amount of memory you want your server to use. A good rule of thumb is one GB per ten users.)<br />
$ java -jar -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui<br />
* To configure the server, take a look at this [http://www.minecraftwiki.net/wiki/Server.properties wiki page].<br />
===Extras===<br />
* You may wish to create a specific folder for the server (/srv/minecraft, for example)<br />
* Establishing a Minecraft-specific user is recommended for security. The reason for this is that Minecraft, being beta software, may still contain security holes. By setting it to a specific, unprivileged user account, anyone who successfully exploits your Minecraft server will have only gotten access to your unprivileged user. (Meaning, do not ever run the server as root!) Here's how:<br />
** Use 'adduser' to add the user<br />
** Disable that user's individual login by removing the password (you can still 'sudo su - mineserver' to open a shell as the user)<br />
** Set the new user as owner of all the server files (generated on the first run) by running 'chown -R mineserver:nobody /path/to/server'<br />
* To leave the server running unattended, take a look into [[tmux]], [http://ss64.com/bash/nohup.html nohup] or [[screen]]<br />
* Taking this a step further, you may even decide to create an init script for it, such as [https://github.com/Ahtenus/minecraft-init this one].<br />
** (Please note that the script at that link doesn't quite work with Arch entirely. I haven't had the opportunity to troubleshoot it fully yet, but anyone with time and expertise to do so is encouraged to post one on my [[User_talk:DUc0N|talk page]] and I'll find a proper place for it.)<br />
* Finally, you may wish to modify your server, to provide additional features:<br />
** [http://www.minecraftwiki.net/wiki/Programs_and_editors#Server_Wrappers Server Wrappers] are one way to add administrative capabilities<br />
** [http://bukkit.org/ Bukkit] is a powerful modding API, with a wide variety of plugins available<br />
*** If installing the Dynmap plugin, you will need to install fontconfig and libcups to get it to work.<br />
* You might even set up a cron job with a [http://www.minecraftwiki.net/wiki/Programs_and_editors#Mappers mapper] to generate periodic maps of your world<br />
* ...or you could use [[rsync]] to perform routine backups (though this is one function of the init script above)<br />
<br />
==Useful links==<br />
* Main site : http://www.minecraft.net/<br />
* The recipes for crafting things : http://www.minecraftwiki.net/wiki/Crafting<br />
* Data values (useful in multiplayer mode) : http://www.minecraftwiki.net/wiki/Data_values<br />
* The reddit community : http://www.reddit.com/r/minecraft<br />
* The main dev twitter : https://twitter.com/#!/notch<br />
* The forum : http://www.minecraftforum.net/<br />
<br />
[[Category:Gaming (English)]]</div>Betrunkenaffe