Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, 6 February 2016

Recuperar/respaldar archivos de un equipo Mac con Ubuntu CD Live








ATENCION!!
El disco duro debe estar en buen estado, si el disco tiene daño fisico o logico es casi que imposible recuperar esa informacion con este metodo, aunque puedes intentar...



El problema



Si el sistema OS X no inicia y quieres recuperar la informacion, puedes usar un DVD live de Ubuntu y con ejecutar unos comandos necesarios puedes leer los archivos de una particion HFS+

Con Ubuntu puedes ver algunas carpetas y/o ciertas carpetas del usuario te puede mostrar un mensaje como: No tiene los permisos suficientes para ver el contenido, y si intentas entrar como sudo te mostrara el mensaje: No se pudo cambiar el propietario nombre_usuario_del_mac...

Para solucionar esto basta con crear un usuario administrador con el mismo nombre y uid 501, que es el primer usuario que esta en el equipo Mac y asi respaldar la informacion del disco duro



Opcional




Otra cosa que debes saber, es que no puedes crear ni modificar archivos o carpetas en la particion HFS+, para hacerlo debes deshabilitar journaling, por lo que he leido es complicado hacerlo desde Linux, si tu Mac inicia, ejecuta este comando en el terminal:

sudo diskutil disableJournal /dev/disk0s2

Donde disk0s2 es el disco donde quieres deshabilitar journaling



Requisitos




  • Es MUY IMPORTANTE saber el nombre de usuario de dicho equipo mac, es el usuario que aparece cuando abres un terminal, este debe ser el primer usuario que se creo al iniciar el Mac por primera vez
  • Descargar la imagen ISO de Ubuntu y quemarlo en un DVD
  • Tener algun dispositivo de almacenamiento, como un pendrive o disco externo para guardar la informacion
  • Obviamente un equipo Mac con procesador Intel


Respaldar informacion




  • Insertar el DVD de Ubuntu en el equipo Mac
  • Encender el equipo Mac, despues de presionar el boton de encendido presiona la tecla C por unos segundos y la sueltas, esto le dira que arranque desde el DVD, aqui mas info
  • Debera aparecerte un fondo morado, en ese momento presiona la tecla de flecha arriba para que te muestre el menu de idioma, selecciona el idioma y presiona Enter
  • Luego selecciona: Probar Ubuntu sin instalar y presiona Enter, y espera a que te muestre el escritorio de Ubuntu
  • En el panel izquierdo deberia de aparecerte la particion del equipo Mac, deberia de llamarse algo como: Macintosh HD, si das click en ella puedes ver los archivos, pero seguro que no te dejara entrar a la carpeta de usuario o a ciertas carpetas
  • Ahora crearemos un usuario temporal, abre una ventana del terminal, presiona al mismo tiempo Ctrl + Alt + T, y escribe:
    sudo useradd -d /home/tempuser -m -s /bin/bash -G sudo tempuser
  • Luego crearemos una contraseña para dicha cuenta, escribe:
    sudo passwd tempuser
    , te pedira que crees la contraseña para ese usuario
  • Ahora debes crear un usuario, este usuario DEBE ser el mismo que el que tienes en el equipo Mac
  • Te vas el boton de configuracion que esta arriba a la derecha y seleccionas: Configuracion del sistema... -> Cuentas de usuario, click en el icono en forma de cruz + para agregar un usuario, Tipo de cuenta: Administrador, Nombre completo: (este campo no es importante pero debes rellenarlo) Nombre de usuario: (escribe el nombre exacto que esta en el equipo Mac), luego click en Añadir
  • Con el usuario seleccionado, en la parte derecha, click en: Contraseña y selecciona: Iniciar sesion sin contraseña, click en: Cambiar
  • Te vas el boton de configuracion que esta arriba a la derecha y seleccionas: Cerrar sesion...
  • Entra con el usuario tempuser y escribe la contraseña
  • Ahora al usuario recien creado para Mac le asignaremos la uid 501, que es la primera cuenta creada al inicar el Mac, esta cuenta debe ser root
  • Abre una ventana del terminal, presiona al mismo tiempo Ctrl + Alt + T, y escribe:
    sudo usermod --uid 501 nombre_usuario_del_mac
  • Dar permisos Administrativos al directorio del usuario Mac en Ubuntu, para eso escribe:
    sudo chown -R 501: nombre_de_usuario_del_mac /home/nombre_de_usuario_del_mac
  • Si no te muestra ningun error quiere decir que ha salido todo bien
  • Y por ultimo:
    sudo nautilus
  • Alli te abrira el explorador de archivos y en la izquierda selecciona la particion del disco de Mac y entra en la carpeta: /Users/nombre_de_usuario_del_mac
  • Alli ya deberias ver los archivos
  • Listo... a respaldar!!


Publicado en tttony.blogspot.com

Friday, 27 December 2013

Install and Configure Apache Traffic Server on Ubuntu Server 12.04

Apache Traffic server is a reverse proxy, cache proxy and forward proxy. Web proxy caching enables you to store copies of frequently accessed web objects and then serve this information to users on demand. It improves performance and frees up Internet bandwidth for other tasks.


appach

Installation


Installation of Apache Traffic Server is bit tricky on Ubuntu due to absence of standard apt-get easy installer package. Well but its not that difficult though. I am writing down step by step process for easy understandability.

Download latest tar.bz2 from apache website and put that on Ubuntu server any directory.

wget http://www.apache.org/dyn/closer.cgi/trafficserver/trafficserver-4.0.1.tar.bz2

tar xf trafficserver-4.0.1.tar.bz2

cd trafficserver-4.0.1

 sudo apt-get install g++ libssl-dev tcl-dev libexpat1-dev libpcre3-dev libcap-dev libcap2

 ./configure

 $ make

 $ sudo make install

Server level configuration

 

After successful installation, open ld.so.conf (sudo vi /etc/ld.so.conf) and add following line.
include /usr/local/libexec/trafficserver

Run the following command: 
sudo ldconfig

Steps for Start and stop


To start Traffic Server manually, issue the following command, passing in the attribute start. This command starts all the processes that work together to process Traffic Server requests as well as manage, control, and monitor the health of the Traffic Server system.

sudo service trafficserver start/stop

All the configuration parameter related to cache are located in /usr/local/etc/trafficserver/records.config file after making any configuration changes do run command traffic_line -x to apply the configuration changes.

Installation Directories


When we install traffic server, we had not provide the installation directories for config files and executable. These stuffs has been placed with default conventions.

All configurations files :

/usr/local/etc/trafficserver/

All executables :

/usr/local/libexec/trafficserver

Important Configuration Files & Usage

 

sudo vi /usr/local/etc/trafficserver/records.config

For changing default port as well as connection time out etc. related data.
Don't forget to execute following command in case of minor rule change:

sudo traffic_line -x

In case of severe change like port etc please make sure you had restarted the server:

sudo service trafficserver restart

For Configuring the mapping 

 

sudo vi /usr/local/etc/trafficserver/remap.config

In the above file, we can provide as many map, reverse map, redirect, reverse redirect configurations.

Apache Virtual Host Specific Configuration

 

Step 1:
sudo vi /usr/local/etc/trafficserver/records.config

In the file make following changes so config read like below
CONFIG proxy.config.reverse_proxy.enabled INT 1
CONFIG proxy.config.url_remap.pristine_host_hdr INT 1 (It make sure host name in http header doesn't change)
CONFIG proxy.configurl_remap.remap_required INT 1

Step 2:
sudo traffic_line -x

Step 3:
sudo vi /usr/local/etc/trafficserver/remap.config

Step 4:
sudo traffic_line -x
Above configuration is sufficient for setting the initial reverse proxy to listen on default port and serve the request based on domain name from provider (Apache)


Cache Configuration


CONFIG proxy.config.cache.ram_cache.size INT -1 (default value 1 MB per 1 GB Disk Space, alternatively you can set 20971520 (20 MB))

Monitoring Traffic & Log File


Log file location - var/log/trafficserver


source ; inuxsystemhacks.com

red more: 

 Configuration serveur apache

 
 

Monday, 23 December 2013

How to Set up a Network in Ubuntu

Configuring networks such as a Digital Subscriber Line (DSL) or Asynchronous Digital Subscriber Line (ADSL) primarily used for accessing the internet can be a hassle, especially when you aren't using the same operating system as what the directions were originally written for. This article is a starting point for configuring DSL using Ubuntu Linux.

Ad

Edit Steps

  1. How to Set up a Network in Ubuntu
     
    1
    Open Network Connections to set up network settings in Ubuntu. Go to “System”, “Preferences” and chose “Network Connections."
    Ad
  2. How to Set up a Network in  Ubuntu
     
    2
    Under the “Wired” tab, click on “Auto eth0” and select “Edit."
  3. How to Set up a Network in  Ubuntu
     
    3
    Click on “IPV4 Settings” tab. Chose the “Automatic (DHCP)” option if your network has a DHCP server. The DHCP Server has automatically assigned the IP address to your system. Click "Apply."
    • You also chose the “Manual” option from the Method drop-down list and assign the IP address, netmask and gateway manually. You'll also have to assign the DNS Server address. 
    • Click "Apply."
      How to Set up a Network in  Ubuntu
  4. How to Set up a Network in  Ubuntu
     
    4
    Check the IP address settings. Go to “Applications” “Accessories” and chose “Terminal."
  5.  
    5
     
    Type the following command into terminal: “sudo ifconfig” without quotes.
  6. How to Set up a Network in  Ubuntu
     
    6
     
    Get your new addresses. The Ifconfig command will show the inet address, broadcast address and mask address.
Source : wikihow.com

More Article :

 installer chromium ubuntu
 
Tags : How to Set up a Network in Ubuntu ,ubuntu,configure internet linux ubuntu,internet,configure internet linux command line

Wednesday, 4 April 2012

Compilar wxWidgets 2.9.2 en Ubuntu

Con el siguiente comando:


../configure --with-gtk=2 --disable-debug --enable-unicode --disable-universal --disable-monolithic --enable-gui --disable-shared --enable-exceptions --without-odbc --without-opengl --enable-xrc --enable-html --with-regex=builtin --enable-richtext --disable-mediactrl --enable-aui


Recuerda pasar los argumentos que necesites

Publicado en tttony.blogspot.com

Friday, 25 February 2011

Error de Avast en Ubuntu

Si te encuentras con este error en Ubuntu:

An error occured in avast! engine: Invalid argument


Esto se debe a una limitacion del kernel de Linux, segun en este post

Nos explica que:

reason? older kernels have an artificial limitations which dictates the maximum size of one SHM block in bytes. And, one block of our database exceeded this limit. so just, relax them to more reasonable values. that's it.


Traduccion:


Los Kernels viejos tienes una limitacion artificial que dicta el tamaño maximo de un bloque SHM en bytes. Y un bloque de una de las base de datos excede ese limite, asi que, solo debes asignarle un valor razonable, eso es todo


El problema se arregla de esta manera:

sudo sysctl -w kernel.shmmax=100000000


Incrementar el limite del bloque SHM


Publicado en tttony.blogspot.com

Saturday, 19 February 2011

Guardar una lista de paquetes instalados en Debian/Ubuntu

Abres una terminal y escribes:

dpkg --get-selections > installed-software


Se generara un archivo llamado: installed-software en directorio donde tengas abierto el terminal

Si quieres reinstalar de nuevo los programas abres una terminal escribes:

dpkg --set-selections < installed-software


y luego escribes:

dselect



Publicado en tttony.blogspot.com