Archivo de la categoría: Ubuntu

Compiling QMC2 (Mame)

Ubuntu 17.04

svn co https://svn.code.sf.net/p/qmc2/code/trunk qmc2-svn

cd qmc2-svn/

make os-detect

sudo apt-get install libSDL1.2-dev libsdl2-dev

sudo dpkg-reconfigure dash

Choose No

sudo apt-get install libqtwebkit-dev

sudo apt-get install libphonon-dev

make

sudo make install

For Arcade

 

sudo apt-get install libqt4-opengl-dev libqt4-declarative-shaders libqt4-declarative-particles qtmobility-dev
make arcade DISTCFG=1
sudo make arcade-install DISTCFG=1

For CHDMAN

 

make qchdman DISTCFG=1

sudo make qchdman-install DISTCFG=1

Optionally convert & install the man-pages:

make man
sudo make man-install

http://wiki.batcom-it.net/index.php?title=The_%27ultimate%27_guide_to_QMC2#Building_and_installing_QMC2_from_source

Linux Server Daily Reboot

Schedule a daily reboot with cron

Type:

sudo crontab -e
[sudo] password for user:
no crontab for root - using an empty one

Select an editor. To change later, run 'select-editor'.
 1. /bin/nano <---- easiest
 2. /usr/bin/vim.tiny

Choose 1-2 [1]:
crontab: installing new crontab

Add:

# m h dom mon dow command
40 1 * * * /sbin/reboot

In this case Every Day at 01:40 AM

Thanks to https://stackoverflow.com/questions/15393875/using-cron-to-reboot

Add Tomcat as Service Linux (Systemd)

Create file tomcat-systemd on  /etc/systemd/system/tomcat-systemd.service

nano /etc/systemd/system/tomcat-systemd.servicee

 

# Systemd unit file for tomcat
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target

[Service]
Type=forking

Environment=JAVA_HOME=/opt/tomcat/jdk1.8.0_121
Environment=CATALINA_PID=/opt/tomcat/apache-tomcat-7.0.75/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat/apache-tomcat-7.0.75/
Environment=CATALINE_BASE=/opt/tomcat/apache-tomcat-7.0.75/
Environment='CATALINE_OPTS=-Xms1G -Xmx1G -Djava.net.preferIPv4Stack=true'
Environment='JAVA_OPTS=-Djava.awt.haedless=true -Djava.security.egd=file:/dev/./urandom'

ExecStart=/opt/tomcat/apache-tomcat-7.0.75/bin/startup.sh
ExecStop=/opt/tomcat/apache-tomcat-7.0.75/bin/shutdown.sh
#ExecStop=/bin/kill -15 $MAINPID

User=tomcat
Group=tomcat

[Install]
WantedBy=multi-user.target

Enable and start service

systemctl enable tomcat-systemd.service
systemctl start tomcat-systemd.service

We can test OK with:

ps -ef |grep java
systemctl status tomcat-systemd.service

Thanks to https://gist.github.com/obatiuk/15c84fb25826d4f39a303a454087e85a for systemd Script.

How to configure iLO from command line (HPe)

Si nos encontramos que tenemos que reconfigurar la IP de la placa ILO (OOB para HP) y no tenemos acceso desde esa LAN por algun motivo, podemos:

Teniendo instalado “HP Lights-Out Online” incluído en el “Service Pack for ProLiant”

 

Goto C:\Program Files\HP\hponcfg> or %ProgramFile%\HP\hponcfg

 

Then type:

hponcfg /w ilo.xml

this dumps iLO configuration into ilo.xml file

<RIBCL VERSION=”2.0″>
<LOGIN USER_LOGIN=”user” PASSWORD=”password”>
<RIB_INFO MODE=”WRITE” >
<MOD_NETWORK_SETTINGS>
<IP_ADDRESS VALUE = “x.x.x.x”/>
<SUBNET_MASK VALUE = “x.x.x.x”/>
<GATEWAY_IP_ADDRESS VALUE = “x.x.x.x”/>
<PRIM_DNS_SERVER value = “x.x.x.x”/>
<DHCP_ENABLE VALUE = “N”/>
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
</LOGIN>
</RIBCL>

NOTE: The USER_LOGIN and PASSWORD tags are required, and must contain data, although any data is accepted.

 

Change IP related values and:

hponcfg /f ilo.xml

this writes new configuration back to the iLO and voilá.

 

Based on  Scripting Toolkit for Windows – Using HPONCFG also available on Linux.

 

Thanks to https://srvops.wordpress.com/2012/02/13/how-to-configure-ilo-from-command-line/

 

Add Davmail as Service Linux (Systemd)

Create file davmail-systemd on  /etc/systemd/system/davmail-systemd.service

nano /etc/systemd/system/davmail-systemd.service
[Unit]
Description=DavMail gateway service
After=syslog.target
After=network.target

[Service]
Type=simple
User=root
Group=root
ExecStart=/opt/davmail/davmail.sh /opt/davmail/davmail.properties
TimeoutSec=120

[Install]
WantedBy=multi-user.target

 

systemctl enable davmail-systemd

systemctl start davmail-systemd

We can test trafic with:

tail -f /opt/davmail/nohup.out

Thanks to https://github.com/stdevel/davmail-initscript/blob/master/davmail-systemd for systemd Script.

Compilar fglrx 15.200 en Ubuntu 15.04 Vivid Kernel 3.19.0.26-25

A muchos al Querer instalar el paquete fglrx les pudo haber pasado que falló por un error:

+ [FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol
+ ‘pci_ignore_hotplug’]

La solución es downgradear nuestro kernel a 3.19.0.25-24 o inferior como se explica en http://askubuntu.com/questions/138284/how-to-downgrade-a-package-via-apt-get

O dejar de usar el repositorio “Proposed”

Otra opción sería patchear este módulo.

Para ello guardamos con nano o nuestro editor preferido lo siguiente con el nombre fglrx_ignore_hotplug.diff

Seguir leyendo Compilar fglrx 15.200 en Ubuntu 15.04 Vivid Kernel 3.19.0.26-25

NVIDIA 295.49 llegó!

Luego de mùltiples problemas con la versiòn 295.40, obligàndonos a volver a usar la versiòn 295.33 desde x-swat.

Para ello agregamos desde la consola

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

Si usamos Ubuntu 12.04 aùn no se liberò asi que debemos instalarlo manualmente

Lo bajamos desde acà (32bit or 64bit)
Y luego:

cd ~/Descargas

(O donde lo bajamos)

sudo sh ./NVIDIA-Linux-x86-295.49.run

y seguimos las instruciones

MATE en Ubuntu 11.10 Oneiric

Mate en Ubuntu

Is Open is Free

Gracias a Linux Mint 12 Lisa a sus repositorios, y por la apuesta que están haciendo sobre MATE. Ahora los usuarios Ubuntu 11.10 Oneiric, disponen de una opción más sobre el escritorio a elegir.

Para todos aquellos usuarios que creyeron perder Gnome 2, lo pueden recuperar gracias MATE, eso sí, tienen que saber que este escritorio esta en pleno desarrollo y que falta mucho por hacer por lo que deberán ser muy cautos en su uso. Como comente en un anterior post, todavía no es posible personalizar mucho nuestro tema de escritorio, apenas el cambio de wallpaper, cambio de iconos y entorno de ventanas.

La instalación muy simple pasa por añadir el repositorio de Mint e instalar el paquete mint-meta-mate el cual tiene todo lo necesario para su funcionamiento.

Desde el terminal:

$ sudo gedit /etc/apt/sources.list

Nos vamos al final del archivo he insertamos las siguientes lineas:

#Linux…

Ver la entrada original 242 palabras más

Install Lubuntu Software Center Lightweight USC Alternative For Lubuntu 11.10 ~ Web Upd8: Ubuntu / Linux blog

Visto en WEB UPD8
Lubuntu Software Center

 

Lubuntu Software Center is a new project that aims to be a lightweight alternative to Ubuntu Software Center, for Lubuntu (Ubuntu based on LXDE).
The project is in its early development stages, but you can already browse various software categories, install or remove software or see detailed package information. To install some applications you must click the “Add to the Apps Basket” button and then head over to the App Basked where you must click the “Install” button.


Lubuntu Software Center 11.10

 

LUbuntu Software Center



Also, just like in Ubuntu Software Center, you can select to see all packages or only “real” applications. This can be done by clicking the “Preferences” button above the categories and selecting between “Beginner” or “Expert” modes. But, unlike USC, Lubuntu Software Center displays the dependencies that will be installed for your selected packages:

 

Lubuntu Software Center




There are no fancy features in Lubuntu Software Center and everything is very basic for now – no ratings, comments, history and so on (although some of these might be implemented in future versions). But in the end, that’s the whole idea: create a lightweight, fast and simple software manager for Lubuntu. Although maybe Python isn’t the best way to achieve this.



Install Lubuntu Software Center

 

Lubuntu Software Center is available in the Lubuntu Desktop PPA so if you’re using Lubuntu 11.10, use the commands below to install it:
sudo add-apt-repository ppa:lubuntu-desktop/ppa sudo apt-get update sudo apt-get install lubuntu-software-center

 

Once installed, press ALT + F2 (or open a terminal) and type: “lubuntu-software-center”. If it doesn’t start (that was the case in my test), run the following command:
leafpad ~/.config/lsc/LSC.ini


And remove the spaces in front of each line in the LSC.ini file.


Report any bugs you may find @ Launchpad.