"Amigos y nadie más. El resto, la selva"
-- Jorge Guillén



Minecraft server on Ubuntu

From the minecraft-server-properly dept. (267)

Minecraft Logo

This is a short article describing how to properly setup a Minecraft server running under Ubuntu desktop under an upstart session for an unprivileged user. For clarity, and brevity, here is the current setup:

After you've downloaded the necessary items, follow these simple steps:

  • You'll need to create a Debian package for Oracle's Java by doing the following from Gnome Terminal:
sudo apt-get install java-package # installs Java packager
cd ~/Downloads # goes to the directory where you downloaded Java tarball
make-jpkg jre-7u60-linux-x64.tar.gz # create .deb package
sudo dpkg -i oracle-java7-jre_7u60_amd64.deb # installs Java
java -version # verifies current version. Be sure this returns a string like java version "1.7.0_60"
  • Create a user account "familia" and set it to automatically login to its desktop (Gnome -> Users. Create user and select to auto-login). Or you may use sudo adduser familia from the Gnome Terminal and then switch to this user account to continue setup
  • Create a directory ~familia/Minecraft and copy the minecraft server .jar into this directory: mkdir ~familia/Minecraft
  • Create a file ~familia/.config/upstart/minecraft.conf with the following content:
cat > ~familia/.config/upstart/minecraft.conf <<-EOF
description "Minecraft server on port 25565"
author "Luis Mondesi <lemsx1@gmail.com>"
start on desktop-start
respawn
exec ${XDG_CACHE_HOME:-$HOME}/Minecraft/minecraft_server
EOF
  • You may optionally create the following text files: touch ~familia/Minecraft/{ops.txt,white-list.txt}
  • You will also need to agree to the end-user license by editing the eula.txt file with eula=true

At this point your server installation is setup. All we need is the wrapper scripts to allow easy access to the service:

  • Create a wrapper script for the minecraft_server.jar:
cd ~familia/Minecraft
ln -sf minecraft_server.1.7.10.jar  minecraft_server.jar
cat > minecraft_server <<-EOF
#!/bin/bash
cd /home/familia/Minecraft && \
# append "nogui" if you want to run it from the terminal without a GUI
java -Xmx1024M -Xms1024M -jar minecraft_server.jar 2>&1 |zenity --timeout=90 --text-info -
cd -
EOF
  • Make the script executable: chmod a+rx minecraft_server
  • Create a .desktop file:
cat > MinecraftServer.desktop <<-EOF
# Minecraft
[Desktop Entry]
Version=1.0
Name=Minecraft Server
Name[es]=Servidor de Minecraft
Comment=Serve Minecraft
Comment[es]=Sirve Minecraft
GenericName=Minecraft Server
Keywords=Internet;Game;Minecraft
Exec=/home/familia/Minecraft/minecraft_server
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/familia/Minecraft/mc.png
#Categories=GNOME;GTK;Network;WebBrowser;
StartupNotify=false
#Actions=NewWindow;NewPrivateWindow;
EOF
  • Be sure to download a nifty icon for your .desktop file and call it mc.png. Example Minecraft icon Minecraft server icon
  • Make the .desktop file executable: chmod a+rx MinecraftServer.desktop
  • Make a link to the desktop with: ln -s ~familia/Minecraft/MinecraftServer.desktop ~/Desktop/

More...



Presión Sanguínea

From the Salud dept. (283)

Presión Sanguínea

Lo que sube la presión sanguínea es fácil de entender: saturación en la sangre por azúcar, sal o grasas acumuladas en las arterias/venas o abdomen.

Para bajarla debes de:
1. Beber agua
2. Comer menos soluto (sales, azúcar, grasas)
3. Perder peso (tener grasa en las arterias, venas, y abdomen no ayudan)

Beber agua elimina la grasa y diluye la sangre haciendo que el corazón trabaje menos. Comer avena y cosas así, eliminan la grasa porque actúan como esponja al absorber la grasa del torrente sanguíneo y eliminarla en forma de orina o evacuadas de otras formas.
Tomar bebidas con azúcar crea grasa y soluto en la sangre -- al igual que la sal y varias otras sustancias.

¡Beber agua es esencial!

More...



How to synchronize your iOS notes to your Mac or iCloud?

From the apple-ios dept. (821)

Once upon a time you could simple plug in your Apple iOS device to your computer and it will magically sync everything up for you. Then later Apple changed things so that the only way you could do this is to "plug" to the cloud. However, what happens if you missed the boat and you still have a lot of Notes in your "On my phone" folder for your Notes.app? Well, this is a bit of a hack to get this sync done:

iExplorer for Mac

  1. Get a copy of the Mac application iExplorer or use Ubuntu Linux
  2. Plug in your iOS device (iPhone, iPad, etc..) to your Mac or PC
  3. Open iExporer (click Continue with Demo) and surf to iTunes Backups or Backups > Notes
  4. Click on Export all notes, which will ask you to pay a license for iExplorer, or if you're on a budget you may Copy/Paste on your Mac to your Notes app
  5. If your're using Ubuntu you will be able to Browse the filesystem of the iOS and the Notes directly

More...



Cuestionando a Darwin

From the evolucion dept. (957)

Charles Darwin

Photo credit: Biography.com

Terminé de ver el documental "Cuestionando a Darwin" (Questioning Darwing) en HBO.

Trailer

Si pueden encontrarlo en la internet, se los recomiendo. Esta hecho desde el punto de vista de los cristianos y creyentes en la creación. Las ideas que más me llamaron al atención fueron:

  • "Dios creó el mundo hacen 6 mil años y los dinosaurios y los hombres co-existieron durante esos años... Los dinosaurios eran vegetarianos y no fue hasta el pecado original de Adan y Eva que los dinosaurios comenzaron a comerse entre ellos y a morir de cáncer" -- Ken Ham, fundador del museo de la creación

  • "Yo no puedo negar la existencia de Dios como los ateos. Creo que la idea de Dios es algo muy grande para los humanos poder comprender. Es lo mismo que un perro tratando de entender la mente de Newton" -- Charles Darwin

Charles Darwin tomó 20 años dedicando mas de 12 horas al día al desarrollo metódico de su teoría. Se mantuvo en correspondencia con científicos a través del mundo entero quienes le enviaban especímenes de los animales que él necesitaba. Catalogó y utilizó un ojo crítico antes de publicar "El origen de las especies" (libro que fue vendido a plenitud en unos días después de ser publicado y que inmediatamente fue aceptado en las comunidades científicas como una teoría irrefutable dado a la cantidad de atención que Darwin puso en los datos empíricos para formular la teoría.)

Creo que es muy difícil desarraigar la idea de Dios en la mente humana, y no creo que esa fue la intención de Darwin. En realidad no hay forma de completamente entender la mente de Dios o de poder ver si existe o no de una forma metódica y científica. Lo mejor que podemos hace es especular. Para mi especula es una pérdida absoluta del tiempo, por tanto, la idea de debatir la existencia de Dios es completamente innecesaria. Ahora, el debatir la validez de la teoría de la evolución es algo en que si podemos concentrar nuestras energías en entender la naturaleza.

More...



Running remote applications from Linux on a Windows system using FreeRDP

From the windows-the-ever-present-necessity dept. (1001)

As stated previously on my FreeRDP article, the xfreerdp command line utility is very useful as it allows you to run a full Windows desktop from your Linux system.

Sometimes you just want to run a single, i.e. arbitrary, application from your Windows server or desktop, inside Linux. For this you can use the RemoteApp, or rail, plugin

Here is an example on how to run a terminal, cmd.exe, from your Windows desktop using xfreerdp on Linux:

xfreerdp -u Administrator -p Password --app --plugin rail --data "%windir%\system32\cmd.exe" -- mywindows.local

Where mywindows.local is the hostname or IP for your Windows desktop. Note that you may use variables substitutions as defined in your user's environment under Windows. Very neat!

Be sure to checkout the documentation on Github for example usage and changes.

More...



Compiling and deploying binary Ruby gems

From the ruby dept. (986)

If, like me, you need to deploy a set of Ruby gems to a number of servers that do not have a way to compile on its own, you will need to figure out a way to include native extensions into the gem itself. The question is, how does one properly do this? The process is a very simple if you already know how Gem works. For the rest of us, here is a simple guide to follow step by step.

Say that you attempt to create a binary gem using gem-compiler and it produces the right file:

gem fetch ffi --platform ruby
gem install gem-compiler
gem compile ffi*.gem
ls ffi-1.9.3-x86_64-linux.gem

Ideally, you should be able to transfer ffi-1.9.3-x86_64-linux.gem to a remote location and install it right? Wrong! gem-compiler does not handle well this and many other gems so you would have to hack the gems slightly to make them work.

gem unpack ffi-1.9.3-x86_64-linux.gem
cd ffi-1.9.3-x86_64-linux

Then make changes to the ffi.gemspec file so that you comment out the extconf.rb entry that's added to the s.extensions, and you also need to change the s.files so that .so$ is not ignored. The working gemspec file should look like the following:

s.files = %w(ffi.gemspec LICENSE COPYING README.md Rakefile) + Dir.glob("{ext,gen,lib,spec,libtest}/**/*").reject { |f| f =~ /(lib\/[12]\.[089]|\.bundle$)/ }
#s.extensions << 'ext/ffi_c/extconf.rb'

Now you can repack your gem and you're good to go!

gem build ffi.gemspec
mv -f ffi-1.9.3.gem ../ffi-1.9.3-x86_64-linux.gem

Note that if you have both ffi-1.9.3.gem and ffi-1.9.3-x86_64-linux.gem in a single directory, Rubygem will choose the proper native gem for your system when you try to install a gem that depends on it. This is a very nice feature!

Hope that helps somebody out there...

More...



Gnome Shell Dynamic Workspaces

From the tip-for-the-impatient dept. (2121)

Say you want to turn off dynamic workspaces in Gnome 3 gnome-shell, all you need to do is:

gsettings set org.gnome.shell.overrides dynamic-workspaces false

Type that in a terminal and you're set! The default is 4 static workspaces.

More...



Adding Emoji to Ubuntu

From the eye-candy dept. (3613)

You can add Emoji fonts to your Ubuntu system by simply doing:

sudo apt-get install ttf-ancient-fonts

To verify, go to the Emoji page on Wikipedia. The fonts are not as cool looking as the ones on your iOS devices, but at least you won't be missing on the fun while browsing Twitter 😊.

You can follow some of the bugs in launchpad reporting this missing functionality in Ubuntu.

More...



Using Windows from Linux via FreeRDP

From the windows-the-ever-present-necessity dept. (2889)

So you have to actually use a Windows desktop for some internal application for which there is no similar application on Linux? You have no choice but to run windows either on a virtual machine or a physical machine, and then use some for of OOB (out of band) remote control to manage it?

No problem! This is a simple tip that would create a seamless FreeRDP Window screen embeded in one of your Linux Gnome 3 workspaces:

  1. Create a GnuPG encrypted document with your password ~/Documents/Private.gpg
  2. sudo apt-get install xfreerdb-x11
  3. Create a script called ~/bin/windows

    xfreerdp --sec nla --ignore-certificate -d mydomain -u myuser
    -p $(gpg -d < ~/Documents/Private.gpg 2>&1|tail -1) -x l --plugin cliprdr
    --gdi hw -g 100% -D -x 100 -x 80 x.x.x.x &

Note: make sure this command is on a single line

Now when you execute windows it will open a screen that fits nicely in an workspace area.

FreeRDP screenshot

More...



Carnine and now choline linked to heart disease

From the health dept. (2955)

Fried Egg

Time to switch to a vegan diet? You betcha! Eggs, Too, May Provoke Bacteria to Raise Heart Risk. it appears that egg yolk contains a substance that the bacteria in our guts convert to choline and the liver converts it also to TMAO (like carnine), which causes heart problems and other cardiovascular issues (including strokes)

More...




Advertisement