Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Tópicos - Arthur Bernardes

Páginas: [1] 2 3 ... 8
1
Café com Ubuntu / Implementações de MPLS e VPLS
« Online: 23 de Outubro de 2014, 13:13 »
Olá, não sei se essa é a área correta e me perdoem por quaisquer erros.

Trabalho no ramo de provedores de internet e o coração da nossa rede (e de meus clientes) é o MPLS, e hoje trabalho com equipamentos MikroTik (RouterOS) que tem muito bem implementado o OSPF, MPLS e VPLS.

A Ubiquiti lançou agora a linha EdgeMax (Edge Router e Edge Switch) que nada mais que um Debian (com Quagga e chamado VyOS) compilado para MIPS.

E ansioso sobre a chegada do MPLS/VPLS nessa nova linha, entrei numa discussão no fórum oficial da UBNT onde o supervisor técnico nos disse:

Citar
The problem with that is that MPLS development on Linux stopped long ago. Simply nobody was really interested in the project enough to work on developing it.

BSD has a half-assed implementation that is missing many features.

That's not to say that it couldn't happen... one day.

Gostaria de saber como andam hoje essas implementações? Quais distribuições Linux estão interessadas nesse segmento?

Se o tópico estiver fora do contexto Linux, por favor podem trancar/apagar o tópico.

2
Distribuições Derivadas do Ubuntu / Notebook trava ao executar VLC
« Online: 30 de Setembro de 2014, 08:49 »
Olá amigos, estou enfrentando um problema muito chato com o Linux Mint 17.

Ao executar um vídeo qualquer em ".mp4" no "totem", ele trava e só ouço o áudio mas o vídeo não sai.

Ao executar o mesmo vídeo no VLC o sistema congela, só funciona o mouse, o restante trava geral, tenho que reiniciar no dedo.  :-[

Estou usando o kernel 3.13.0.24 e estou usando driver nativo para minha Geforce 310M.

3
Distribuições Derivadas do Ubuntu / APT com problemas
« Online: 12 de Julho de 2014, 10:13 »
Olá, estou enfrentando um problema no meu desktop.

Ao executar o comando sudo apt-get update, tenho essa resposta:

Código: [Selecionar]
Hit http://security.ubuntu.com precise-security Release.gpg
Get:1 http://packages.linuxmint.com maya Release.gpg [198 B]                   
Hit http://archive.ubuntu.com precise Release.gpg                             
Hit http://archive.ubuntu.com precise-updates Release.gpg                     
Hit http://archive.ubuntu.com precise-backports Release.gpg                   
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://archive.canonical.com precise Release.gpg                           
Hit http://security.ubuntu.com precise-security Release                       
Get:2 http://packages.linuxmint.com maya Release [18.6 kB]                     
Hit http://archive.ubuntu.com precise Release                                 
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://archive.canonical.com precise Release                               
Hit http://security.ubuntu.com precise-security/main i386 Packages             
Hit http://archive.ubuntu.com precise-updates Release                         
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://security.ubuntu.com precise-security/restricted i386 Packages       
Hit http://security.ubuntu.com precise-security/universe i386 Packages         
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages       
Hit http://security.ubuntu.com precise-security/main TranslationIndex         
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex   
Hit http://archive.canonical.com precise/partner i386 Packages                 
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex   
Hit http://security.ubuntu.com precise-security/universe TranslationIndex     
Get:3 http://packages.linuxmint.com maya/main i386 Packages [18.2 kB]         
Hit http://archive.ubuntu.com precise-backports Release                       
Hit http://archive.ubuntu.com precise/main i386 Packages                       
Hit http://archive.ubuntu.com precise/restricted i386 Packages                 
Hit http://archive.ubuntu.com precise/universe i386 Packages                   
Hit http://archive.ubuntu.com precise/multiverse i386 Packages                 
Hit http://archive.ubuntu.com precise/main TranslationIndex                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://security.ubuntu.com precise-security/main Translation-en           
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://archive.canonical.com precise/partner TranslationIndex             
Get:4 http://packages.linuxmint.com maya/upstream i386 Packages [10.6 kB]     
Get:5 http://packages.linuxmint.com maya/import i386 Packages [42.0 kB]       
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex             
Hit http://archive.ubuntu.com precise/restricted TranslationIndex             
Hit http://archive.ubuntu.com precise/universe TranslationIndex               
Hit http://archive.ubuntu.com precise-updates/main i386 Packages               
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages         
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages           
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages         
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex           
Hit http://security.ubuntu.com precise-security/multiverse Translation-en     
Hit http://security.ubuntu.com precise-security/restricted Translation-en     
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Get:6 http://packages.linuxmint.com maya/backport i386 Packages [62.6 kB]     
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex     
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex     
Hit http://security.ubuntu.com precise-security/universe Translation-en       
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex       
Hit http://archive.ubuntu.com precise-backports/main i386 Packages             
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages       
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages         
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages               
Ign http://ppa.launchpad.net precise/main TranslationIndex           
Hit http://ppa.launchpad.net precise/main Sources                     
Hit http://ppa.launchpad.net precise/main i386 Packages               
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex         
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex   
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex   
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex     
Hit http://archive.ubuntu.com precise/main Translation-en                     
Hit http://archive.ubuntu.com precise/main Translation-pt                     
Hit http://archive.ubuntu.com precise/multiverse Translation-en               
Hit http://archive.ubuntu.com precise/multiverse Translation-pt       
Ign http://ppa.launchpad.net precise/main TranslationIndex           
Hit http://ppa.launchpad.net precise/main Sources                     
Hit http://ppa.launchpad.net precise/main i386 Packages               
Ign http://ppa.launchpad.net precise/main TranslationIndex           
Hit http://archive.ubuntu.com precise/restricted Translation-en       
Hit http://archive.ubuntu.com precise/restricted Translation-pt       
Ign http://packages.linuxmint.com maya/backport TranslationIndex     
Ign http://packages.linuxmint.com maya/import TranslationIndex       
Ign http://packages.linuxmint.com maya/main TranslationIndex         
Ign http://packages.linuxmint.com maya/upstream TranslationIndex     
Hit http://archive.ubuntu.com precise/universe Translation-en         
Hit http://archive.ubuntu.com precise/universe Translation-pt         
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-pt
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-pt
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en       
Hit http://archive.ubuntu.com precise-updates/restricted Translation-pt       
Hit http://archive.ubuntu.com precise-updates/universe Translation-en         
Hit http://archive.ubuntu.com precise-updates/universe Translation-pt         
Hit http://archive.ubuntu.com precise-backports/main Translation-en           
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en     
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en     
Hit http://archive.ubuntu.com precise-backports/universe Translation-en       
Ign http://archive.canonical.com precise/partner Translation-en               
Ign http://archive.canonical.com precise/partner Translation-pt               
Ign http://ppa.launchpad.net precise/main Translation-en                   
Ign http://ppa.launchpad.net precise/main Translation-pt                   
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://packages.linuxmint.com maya/backport Translation-en
Ign http://packages.linuxmint.com maya/backport Translation-pt
Ign http://packages.linuxmint.com maya/import Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://packages.linuxmint.com maya/import Translation-pt
Ign http://packages.linuxmint.com maya/main Translation-en                     
Ign http://ppa.launchpad.net precise/main Translation-pt                       
Ign http://ppa.launchpad.net precise/main Translation-en                       
Ign http://ppa.launchpad.net precise/main Translation-pt                       
Ign http://packages.linuxmint.com maya/main Translation-pt                     
Ign http://packages.linuxmint.com maya/upstream Translation-en                 
Ign http://packages.linuxmint.com maya/upstream Translation-pt                 
Fetched 152 kB in 6s (22.7 kB/s)                                               
Reading package lists... Done

Até aqui tudo bem, mas quando dou um sudo apt-get upgrade, eu obtenho essa resposta:

Código: [Selecionar]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libc6 : Depends: libgcc1 but it is not installed
         Depends: tzdata but it is not installed
E: Unmet dependencies. Try using -f.

Se executo o sudo apt-get -f install, tenho essa resposta:

Código: [Selecionar]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  apt-utils coreutils debconf debconf-i18n dpkg libacl1 libapt-inst1.4
  libapt-pkg4.12 libattr1 libbz2-1.0 libdb5.1 libgcc1 liblocale-gettext-perl
  liblzma5 libselinux1 libstdc++6 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl perl-base tar tzdata xz-utils zlib1g
Suggested packages:
  debconf-doc debconf-utils whiptail dialog gnome-utils
  libterm-readline-gnu-perl libgtk2-perl libnet-ldap-perl libqtgui4-perl
  libqtcore4-perl apt bzip2 ncompress xz-lzma
The following NEW packages will be installed:
  apt-utils coreutils debconf debconf-i18n dpkg libacl1 libapt-inst1.4
  libapt-pkg4.12 libattr1 libbz2-1.0 libdb5.1 libgcc1 liblocale-gettext-perl
  liblzma5 libselinux1 libstdc++6 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl perl-base tar tzdata xz-utils zlib1g
0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/9286 kB of archives.
After this operation, 29.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_TIME = "pt_BR.UTF-8",
LC_MONETARY = "pt_BR.UTF-8",
LC_ADDRESS = "pt_BR.UTF-8",
LC_TELEPHONE = "pt_BR.UTF-8",
LC_NAME = "pt_BR.UTF-8",
LC_MEASUREMENT = "pt_BR.UTF-8",
LC_IDENTIFICATION = "pt_BR.UTF-8",
LC_NUMERIC = "pt_BR.UTF-8",
LC_PAPER = "pt_BR.UTF-8",
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: regarding .../libgcc1_1%3a4.6.3-1ubuntu5_i386.deb containing libgcc1, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.
dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.6.3-1ubuntu5_i386.deb (--unpack):
 pre-dependency problem - not installing libgcc1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.6.3-1ubuntu5_i386.deb
E: Internal Error, No file name for libc6
W: Could not perform immediate configuration on 'multiarch-support:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Sub-process /usr/bin/dpkg returned an error code (1)

Se tento instalar a dependência libgcc1, tenho essa mesma resposta:

Código: [Selecionar]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libc6 : Depends: tzdata but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Estou usando Linux Mint 13, o diretório /var/lib/dpkg está dessa maneira:

Código: [Selecionar]
alternatives   cmethopt        info   statoverride  triggers
available      diversions      lock   status        updates
available-old  diversions-old  parts  status-old

Obrigado a quem puder me ajudar.  ;D

4
Olá amigos, estou com um certo problema aqui.

Tenho um notebook LG A410 com Intel Core i5, 4GB de RAM e Geforce 310M.

Segue o hardware abaixo.

Código: [Selecionar]
*-cpu                  
       descrição: CPU
       produto: Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz
       fabricante: Intel Corp.
       ID físico: 2a
       informações do barramento: cpu@0
       versão: 6.5.5
       serial: 0002-0655-0000-0000-0000-0000
       slot: CPU
       tamanho: 1199MHz
       capacidade: 1199MHz
       largura: 64 bits
       clock: 1066MHz

Com um uso normal (somente navegação, office e etc) a temperatura fica normal aos 48°C (aqui em SP anda quente), mas ao assistir vídeos no Youtube ou no VLC ou até mesmo ouvir música, a temperatura sobe para 60-70°C e nisso ele desliga, comecei a desconfiar do TLP que uso aqui para otimizar minha bateria, mas não anda virando.

Uso em dual-boot com Windows$ 7 e lá isso não acontece.

O que posso fazer para o notebook não desligar? Isso me atrapalha demais.

O meu TLP está em default.

Código: [Selecionar]
# ------------------------------------------------------------------------------
# tlp - Parameters for power save

# Hint: some features are disabled by default, remove the leading # to enable them

# Set to 0 to disable/1 to enable TLP
TLP_ENABLE=1

# Seconds laptop mode has to to wait after the disk goes idle before doing a sync.
# Non-zero value enables, zero disables laptop mode.
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2

# Dirty page values (timeouts in secs).
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60

# Select a cpu frequency scaling governor: ondemand/powersave/performance/conservative
# Important:
# - You *must* disable your distribution's governor settings or conflicts will occur
# - ondemand is sufficient for *almost all* workloads, you should know what you're doing!
#CPU_SCALING_GOVERNOR_ON_AC=ondemand
#CPU_SCALING_GOVERNOR_ON_BAT=ondemand

# Set the min/max frequency available for the scaling governor.
# Possible values strongly depend on your cpu. For available frequencies see
# tlp-stat output, Section "+++ Processor".
# Hint: Parameters are disabled by default, remove the leading # to enable them,
#       otherwise kernel default values are used.
#CPU_SCALING_MIN_FREQ_ON_AC=0
#CPU_SCALING_MAX_FREQ_ON_AC=0
#CPU_SCALING_MIN_FREQ_ON_BAT=0
#CPU_SCALING_MAX_FREQ_ON_BAT=0

# Set the cpu "turbo boost" feature: 0=disable / 1=allow
# Requires an Intel Core i processor and kernel 3.7 or later.
# Important:
# - This may conflict with your distribution's governor settings
# - A value of 1 does *not* activate boosting, it just allows it
#CPU_BOOST_ON_AC=1
#CPU_BOOST_ON_BAT=0

# Minimize number of used cpu cores/hyper-threads under light load conditions
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1

# Kernel NMI Watchdog
# 0=disable (default, saves power) / 1=enable (for kernel debugging only)
NMI_WATCHDOG=0

# Change CPU voltages aka "undervolting" - Kernel with PHC patch required
# Freq:voltage pairs are written to /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
# CAUTION: only use this, if you thoroughly understand what you are doing!
#PHC_CONTROLS="F:V F:V F:V F:V"

# Hard disk devices, separate multiple devices with spaces (default: sda).
# Devices can be specified by disk id too (lookup with: tlp diskid).
DISK_DEVICES="sda sdb"

# Hard disk advanced power management level: 1(max saving)..254(off)
# Levels 1..127 may spin down the disk.
# Separate values for multiple devices with spaces.
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"

# Hard disk spin down timeout:
# 0:        spin down disabled
# 1..240:   timeouts from 5s to 20min (in units of 5s)
# 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
# (see 'man hdparm' for details)
#DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
#DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"

# Select io scheduler for the disk devices: noop/deadline/cfq (Default: cfq)
# Separate values for multiple devices with spaces.
#DISK_IOSCHED="cfq cfq"

# SATA aggressive link power management (ALPM):
# min_power/medium_power/max_performance
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power

# PCI Express Active State Power Management (PCIe ASPM):
# default/performance/powersave
# Hint: needs kernel boot option pcie_aspm=force on some machines
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave

# Radeon graphics clock speed (profile method): low/mid/high/auto/default
# auto = mid on BAT, high on AC; default = use hardware defaults
# (Kernel >= 2.6.35 only, not with fglrx driver!)
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low

# New radeon dynamic power management method (dpm): battery/performance
# (Kernel >= 3.11 only, requires boot option radeon.dpm=1)
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery

# New radeon dpm performance level: auto/low/high (auto is recommended)
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto

# WiFi power saving mode: 1=disable/5=enable
# (Linux 2.6.32 and later, some adapters only!)
WIFI_PWR_ON_AC=1
WIFI_PWR_ON_BAT=5

# Disable wake on lan: Y/N
WOL_DISABLE=Y

# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
# A value of 0 disables / >=1 enables power save.
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1

# Disable controller too (HDA only): Y/N
SOUND_POWER_SAVE_CONTROLLER=Y

# Set to 1 to power off optical drive in UltraBay (ThinkPads only)
# when running on battery. A value of 0 disables this Feature (Default).
# Drive can be powered on again by releasing (and reinserting) the
# eject lever or by pressing the disc eject button on newer models.
# Note: an UltraBay hard disk is never powered off.
BAY_POWEROFF_ON_BAT=0
# Optical drive device to power off (default sr0)
BAY_DEVICE="sr0"

# Runtime Power Management for pci(e) bus devices
# (Kernel >= 2.6.35 only): on=disable/auto=enable
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto

# Runtime PM for *all* pci(e) bus devices, expect backlisted ones:
# 0=disable / 1=enable
# Warning: experimental option, could cause system instabilities
RUNTIME_PM_ALL=0

# Exclude pci(e) device adresses the following list from Runtime PM
# (separate with spaces). Use lspci to get the adresses (1st column).
#RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"

# Set to 0 to disable/1 to enable usb autosuspend feature
USB_AUTOSUSPEND=1

# Devices from the following list are excluded from usb autosuspend
# (separate with spaces). Use lsusb to get the ids.
# Note: input devices (usbhid) are excluded automatically
#USB_BLACKLIST="1111:2222 3333:4444"

# WWAN devices are excluded from usb autosuspend:
# 0=do not exclude / 1=exclude
# Note: works for ids 05c6:* 0bdb:* 1199:* only
USB_BLACKLIST_WWAN=1

# Set to 1 to disable autosuspend before shutdown/0 to do nothing
# (workaround for usb devices that cause shutdown problems)
#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1

# Restore radio device state (bluetooth, wifi, wwan) from previous shutdown
# on system startup: 0=disable/1=enable
# Hint: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
#       are ignored when this is enabled!
RESTORE_DEVICE_STATE_ON_STARTUP=0

# Radio devices to disable on startup: bluetooth wifi wwan
#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"

# Radio devices to enable on startup: bluetooth wifi wwan
#DEVICES_TO_ENABLE_ON_STARTUP="wifi"

# Radio devices to disable on shutdown: bluetooth wifi wwan
# (workaround for devices that are blocking shutdown)
#DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"

# Radio devices to enable on shutdown: bluetooth wifi wwan
# (to prevent other operating systems from missing radios)
#DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"

# Radio devices to enable when wireless radio switch is turned on:
# bluetooth wifi wwan (Ubuntu + ThinkPad only)
#DEVICES_TO_ENABLE_ON_RADIOSW="wifi wwan"

# Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module required)
# Charging starts when the remaining capacity falls below the START_CHARGE_TRESH
# value and stops when exceeding the STOP_CHARGE_TRESH value.
# Main battery (values in %)
#START_CHARGE_THRESH_BAT0=75
#STOP_CHARGE_THRESH_BAT0=80
# Ultrabay or slice battery (values in %)
#START_CHARGE_THRESH_BAT1=75
#STOP_CHARGE_THRESH_BAT1=80

# Set to 1 to disable use of tpacpi-bat on Sandy Bridge or newer Thinkpads
# and force usage of tp-smapi instead
#DISABLE_TPACPIBAT=1

# ------------------------------------------------------------------------------
# tlp-rdw - Parameters for the radio device wizard
# Possible devices: bluetooth/wifi/wwan

# Hint: parameters are disabled by default, remove the leading # to enable them

# Radio devices to disable on connect
#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"

# Radio devices to enable on disconnect
#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""

# Radio devices to enable/disable when docked
#DEVICES_TO_ENABLE_ON_DOCK=""
#DEVICES_TO_DISABLE_ON_DOCK=""

# Radio devices to enable/disable when undocked
#DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
#DEVICES_TO_DISABLE_ON_UNDOCK=""

Obs: Estou usando o Linux Mint 13 com Mate.

5
Olá amigos!

Estou precisando criar um script em "bash" para fazer um login automático via telnet no RouterOS!

Esse login automático é necessário já fornecer o usuário e senha, e se possível já executar algum comando!

Depois de muito pesquisar, consegui um script em "sh" que já fornece o usuário e senha (à partir de variáveis) e faz o login automaticamente, mas o "prompt" não fica disponível aparecendo alguns caracteres e logo desconecta, gostaria de saber onde está o erro.

O script em questão é esse: http://paste.ubuntu.com/6869484/

Vi também que o script em "expect" tem mais sucesso, mas não consegui usá-lo por não ter em "/usr/bin", somente o "/usr/bin/bash" e "/usr/bin/sh".

Sei que isso pode comprometer a segurança, mas é para testes em máquina virtual, é para conhecimento mesmo!

Sobre o "expect" já fiz as seguintes pesquisas, porém sem sucesso!

[1] http://stackoverflow.com/questions/11250564/how-to-automate-telnet-session-using-expect
[2] http://smacak.wordpress.com/2010/08/15/automatic-login-expect-scripts-telnet-and-ssh/
[3] http://en.kioskea.net/faq/4736-shell-script-for-telnet-and-run-commands
[4] http://stackoverflow.com/questions/7789710/expect-script-to-automate-telnet-login

A foto do terminal é essa abaixo:



Desde já agradeço toda a ajuda!

6
Distribuições Derivadas do Ubuntu / Linux Mint 13 trava teclas Home e End
« Online: 10 de Dezembro de 2013, 10:45 »
Quando o meu notebook alcança uma temperatura de 59~62ºC, as teclas "Home", "Page Up", Page Down" e "End" param de funcionar, sendo necessário reiniciar o notebook para funcionarem novamente. O que será isso?

Estou usando Linux Mint 13 com kernel 3.8. Obrigado à todos.

7
Aplicativos / Iniciar Virtualbox automaticamente após o login [Resolvido]
« Online: 17 de Novembro de 2013, 09:18 »
Olá amigos!!

Estou com um problema, preciso iniciar uma máquina virtual (VirtualBox) automaticamente após o login, sei que tenho que colocar no "Aplicativos de Sessão", e o comando do atalho que inicia a máquina virtual é esse:

Código: [Selecionar]
/usr/lib/virtualbox/VirtualBox --comment "Mikrotik L6" --startvm "69c5d1ed-6603-4eb4-8fe9-cdb7e2abd61c"
Coloquei esse comando no "Aplicativos de Sessão", mas ao efetuar login, a máquina não inicia, sendo necessário ligá-la manualmente, há uma forma de fazer no VirtualBox ou vou ter que migrar pro Vmware Player?

Obrigado!

8
Café com Ubuntu / Lançado WattOS 5.0 RC7
« Online: 05 de Novembro de 2013, 12:41 »
"wattOS é uma distribuição Linux para desktop, que oferece um desempenho rápido, além da distribuição ser baseada no Ubuntu. Usando o gerenciador de janelas Openbox como a sua interface padrão, a distribuição se esforça bastante para ser tão eficiente possível em termos de energia, de modo que ele pode ser utilizado em computadores de baixa especificação.

A mais recente liberação de wattOS veio com o Release Candidate 7 de sua versão 5.0, divulgada no dia 10 de outubro deste ano. Ele disponibiliza o MATE e o LXDE como ambiente desktop padrão, os sistemas de arquivo Btrfs, ext3, ext4, JFS, ReiserFS, XFS, além de algumas atualizações para pacotes de software que compõem a distribuição."


9
Aplicativos / VirtualBox 4.3 não funciona
« Online: 18 de Outubro de 2013, 18:39 »
Amigos, ontem caí na besteira de instalar o VirtualBox 4.3 para testar aqui.

Só que ao abrir o programa, me retorna esse erro:



Como faço para corrigir isso? Preciso disso, até hoje não consegui instalar o Mikrotik Router OS no Vmware, só consegui no VirtualBox, e me dá esse erro. :(

Obrigado à todos pela ajuda!!



Consegui baixar o VirtualBox 4.2 pelo seguinte link.


De qualquer forma, quero resolver o problema do 4.3 :)

10
Olá amigos, acabei de instalar o Linux Mint 13 aqui no meu computador, e tenho 3 scripts para instalar os programas que mais necessito, assim não fico rachando a cabeça guardando o nome dos pacotes, mas acontece que quando chegou na instalação do Google Chrome, dava problema.

O script para instalar o Google Chrome é o seguinte:

Código: (google_chrome_stable) [Selecionar]
#!/bin/bash

#### Google Chrome 32 Bits/64 Bits ####

arch=`uname -m`
if  [ $arch = i686 ] || [ $arch = i386 ]; then

wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb

sudo dpkg -i /tmp/google-chrome-stable_current_i386.deb

elif [ $arch = "x86_64" ]; then

wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb

else
        echo "Arquitetura não suportada"
fi

Na hora de instalar, com o comando dpkg -i, ele dá erro de dependência e fica com pacotes quebrados, as dependências faltantes são essas:

Código: ($) [Selecionar]
lib32gcc1
lib32stdc++6
libc6-i386
libnss3

Mas ao executar um apt-get -f install, ele não instala as dependências, apenas remove o pacote google-chrome-stable, então adicionei o repositório do Google no meu Linux Mint, usando os seguintes comandos:

Código: ($) [Selecionar]
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

E tentei instalar usando os seguintes comandos:

Código: ($) [Selecionar]
apt-get update
apt-get install google-chrome-stable

Mas ele nem chegava a baixar e dava o mesmo erro de dependência.

Fui tentar instalar as dependências na mão, usando o Synaptic, elas não são encontradas, usei o Google e encontrei-as, mas elas só estão disponíveis para arquitetura 64 Bits, tanto o Linux Mint instalado quanto meu desktop são 32 Bits, agora não sei o que fazer.

Obrigado à quem ajudar.

11
Internet, Redes e Segurança / Bloquear IP's por Iptables [Resolvido]
« Online: 16 de Outubro de 2013, 09:21 »
Olá amigos.

Senti necessidade agora de bloquear um certo IP aqui na rede, mas já tentei todo tipo de regra e ainda não consegui bloquear, o IP bloqueado consegue acessar a internet, vejam as regras que já tentei.

Código: (/etc/init.d/firewall) [Selecionar]
iptables -A INPUT -s 172.16.0.3 -j DROP
iptables -A INPUT -i $iflocal1 -s 172.16.0.3 -j DROP

Mas aí me toquei que essa regra só irá bloquear qualquer pacote desse IP destinado ao gateway, e eu quero bloquear o acesso à internet, então tentei isso.

Código: (/etc/init.d/firewall) [Selecionar]
iptables -A INPUT -i $iflocal1 -s 172.16.0.3 -j DROP
iptables -A FORWARD -i $iflocal1 -s 172.16.0.3 -j DROP

Mas ainda assim a máquina acessa a internet, veja meu firewall atual.

Código: (/etc/init.d/firewall) [Selecionar]
#!/bin/bash

echo "Declarando variáveis"

# Interface da Internet:
ifinternet="eth4"

# IP da Internet
ip_internet="192.168.1.2"

# Interface da rede local
iflocal="eth3"

# IP da Rede Local
rede_local="10.0.0.0/24"

# Interface da rede local 1
iflocal1="eth3:0"

# IP da Rede Local 1
rede_local1="172.16.0.0/23"

# Portas à serem liberadas
portas_liberadas="21,23,25,53,110,143,22,80,443,3128,3306,3389,5432,5900,9091"

#### Função "start" ####

iniciar(){

echo "Carregando módulos"

modprobe ip_tables
modprobe iptable_mangle
modprobe iptable_nat

echo "Módulos carregados"

echo "Limpando regras"

iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
iptables -Z
iptables -t nat -Z
iptables -t mangle -Z

echo "Regras limpas"

echo "Definindo política padrão"

iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

echo "Política padrão definida"

echo "Habilitando roteamento"

echo 1 > /proc/sys/net/ipv4/ip_forward

echo "Roteamento ativado"

echo "Compartilhando internet"

iptables -t nat -A POSTROUTING -o $ifinternet -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter

echo "Internet compartilhada"

echo "Manter conexões establecidas"

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

echo "Negando pacotes inválidos"

iptables -A INPUT -m state --state INVALID -j DROP
iptables -A FORWARD -m state --state INVALID -j DROP

echo "Liberando portas"

iptables -A INPUT -m multiport -p tcp --dport $portas_liberadas -j ACCEPT
iptables -A FORWARD -m multiport -p tcp --dport $portas_liberadas -j ACCEPT
iptables -A OUTPUT -m multiport -p tcp --dport $portas_liberadas -j ACCEPT
iptables -A INPUT -m multiport -p udp --dport $portas_liberadas -j ACCEPT
iptables -A FORWARD -m multiport -p udp --dport $portas_liberadas -j ACCEPT
iptables -A OUTPUT -m multiport -p udp --dport $portas_liberadas -j ACCEPT

echo "Portas liberadas"


echo "Hosts indesejados serão bloqueados"

iptables -A INPUT -i $iflocal1 -s 172.16.0.3 -j DROP
iptables -A FORWARD -i $iflocal1 -s 172.16.0.3 -j DROP

echo "Liberando tráfego"

iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i $iflocal -j ACCEPT
iptables -A INPUT -i $iflocal1 -j ACCEPT
iptables -A FORWARD -i lo -j ACCEPT
iptables -A FORWARD -i $iflocal -j ACCEPT
iptables -A FORWARD -i $iflocal1 -j ACCEPT

echo "Tráfego liberado"

}

parar(){
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
iptables -Z
iptables -t nat -Z
iptables -t mangle -Z
}

status(){
iptables -L -v -n
}

case "$1" in
"start") iniciar ;;
"stop") parar ;;
"restart") parar; iniciar ;;
"status") status;;
*) echo "Use os parâmetros start ou stop"
esac

12
Quarentena / Re: Mensagem estranha e persistente do cairo-dock
« Online: 13 de Outubro de 2013, 23:59 »

13
Café com Ubuntu / O que mudou na velha batalha Linux x Windows
« Online: 10 de Outubro de 2013, 14:09 »
Estava lendo notícias em vários sites na internet, e me deparei com esse "Tira-dúvidas" do G1, achei bastante interessante.


14
Café com Ubuntu / NSA invade computadores de usuários do Tor
« Online: 07 de Outubro de 2013, 18:00 »
"Tor é um software que promete deixar internautas anônimos e apresentação da agência afirma que Tor 'fede'.

Duas reportagens do jornal "The Guardian" publicadas na sexta-feira (4) apontam que a Agência Nacional de Segurança (NSA) dos Estados Unidos tem realizados repetidas tentativas para comprometer usuários da The Onion Router (Tor), uma rede criada pelo software de mesmo nome e que tem como objetivo deixar os internautas anônimos em sua navegação pela web. Apesar de ter tido sucesso em identificar alguns usuários, um slide da apresentação da NSA ainda diz que "Tor fede".
As informações são baseadas em documentos compartilhados com o "The Guardian" por Edward Snowden, o ex-colaborador terceirizado da NSA que está em exílio na Rússia.
Os dados apontam que a NSA tem sim operado os chamados "nós de saída" da rede Tor, por onde passam as comunicações antes de se chegarem ao seu destino. O "nó de saída" pode ter acesso à totalidade dos dados transmitidos. Segundo os documentos, porém, o sucesso com essa técnica foi mínimo.
Em vez disso, a NSA utiliza um kit de ataque que usa o codinome de "FoxAcid" junto de outros sistemas de monitoramento de internet que automaticamente identificam conexões que tiveram origem na rede Tor. Essas conexões são redirecionadas para servidores com o FoxAcid, que é capaz de explorar vulnerabilidades no Tor Browser, o mais conhecido pacote para acesso à rede Tor.
Com isso, os computadores são comprometidos pela NSA, permitindo a identificação dos usuários.
O redirecionamento é possível graças ao uso de servidores especiais, chamados de "Quantum", e que são instalados em provedores de internet parceiros da NSA. Graças a isso, o servidor falso é capaz de responder a uma solicitação antes do servidor legítimo, interferindo com a conexão da vítima da espionagem.
O ataque é desenvolvido por um grupo interno da NSA que usa a sigla de "TAO". Os códigos são capazes de transmitir à NSA informações sobre a localização do computador, burlando o anonimato oferecido pela rede Tor. Em 2008, a operação na rede Tor estava obtendo tantos dados que necessitou de um sistema específico para gerenciá-los, segundo o documento."


Usuários do Tor, se sentem seguros ainda? Ainda acreditam que há 100% de privacidade na internet?

15
Olá galera, criei um simples script em bash para facilitar a instalação do LibreOffice 4.1.1.2 no Debian e Ubuntu/Derivados.

Crie um arquivo de texto com o comando sudo gedit /tmp/libreoffice_4, cole o seguinte conteúdo dentro dele.

Código: (/tmp/libreoffice_4) [Selecionar]
#!/bin/bash
 
#### Créditos de: http://dagoland.blogspot.com.br/2013/09/libreoffice-4112-no-debian-e-derivados.html ####
 
#### Script criado por Arthur Bernardes ####
 
#### arthur.bernardes@gmail.com ####
 
#### (17)99199-1157 / 99641-2300 / 98162-4722 ####
 
#### https://www.facebook.com/natalia.bernardes.3382 ####
 
#### ubuntuforum-br.org/index.php?action=profile;u=109667 ####
 
cd /tmp
 
#### Instalação para 32 Bits ####
 
arch=`uname -m`
if  [ $arch = i686 ] || [ $arch = i386 ]; then
 
#### Download dos Arquivos ####
 
echo "Realizando download dos arquivos"
 
wget -O LibreOffice_4.1.1.2_Linux_x86_deb.tar.gz http://goo.gl/BkVAip
 
wget -O LibreOffice_4.1.1.2_Linux_x86_deb_langpack_pt-BR.tar.gz http://goo.gl/9yITWy
 
wget -O LibreOffice_4.1.1.2_Linux_x86_deb_helppack_pt-BR.tar.gz http://goo.gl/V8l381
 
#### Descompactando arquivos ####
 
echo "Descompactando arquivos"
 
tar -zxf LibreOffice_4.1.1.2_Linux_x86_deb.tar.gz
 
tar -zxf LibreOffice_4.1.1.2_Linux_x86_deb_langpack_pt-BR.tar.gz
 
tar -zxf LibreOffice_4.1.1.2_Linux_x86_deb_helppack_pt-BR.tar.gz; cd /home/`whoami`
 
#### Desinstalando LibreOffice ####
 
echo "Desinstalando LibreOffice"
 
sudo apt-get purge libreoffice* -y
 
#### Instalando LibreOffice ####
 
echo "Instalando LibreOffice"
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86_deb/DEBS/*.deb
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86_deb/DEBS/desktop-integration/*.deb
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86_deb_langpack_pt-BR/DEBS/*.deb
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86_deb_helppack_pt-BR/DEBS/*.deb
 
#### Instalação para 64 Bits ####
 
elif [ $arch = "x86_64" ]; then
 
#### Download dos arquivos ####
 
echo "Realizando download dos arquivos"
 
wget -O LibreOffice_4.1.1.2_Linux_x86-64_deb.tar.gz http://goo.gl/XfhmfL
 
wget -O LibreOffice_4.1.1.2_Linux_x86-64_deb_langpack_pt-BR.tar.gz http://goo.gl/FZEFX4
 
wget -O LibreOffice_4.1.1.2_Linux_x86-64_deb_helppack_pt-BR.tar.gz http://goo.gl/E5X3EK
 
#### Descompactando arquivos ####
 
echo "Descompactando arquivos"
 
tar -zxf LibreOffice_4.1.1.2_Linux_x86-64_deb.tar.gz
 
tar -zxf LibreOffice_4.1.1.2_Linux_x86-64_deb_langpack_pt-BR.tar.gz
 
tar -zxf LibreOffice_4.1.1.2_Linux_x86-64_deb_helppack_pt-BR.tar.gz; cd /home/`whoami`
 
#### Desinstalando LibreOffice ####
 
echo "Desinstalando LibreOffice"
 
sudo apt-get purge libreoffice* -y
 
#### Instalando LibreOffice ####
 
echo "Instalando LibreOffice"
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86-64_deb/DEBS/*.deb
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86-64_deb/DEBS/desktop-integration/*.deb
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86-64_deb_langpack_pt-BR/DEBS/*.deb
 
sudo dpkg -i /tmp/LibreOffice_4.1.1.2_Linux_x86-64_deb_helppack_pt-BR/DEBS/*.deb
 
sudo rm -rf /tmp/LibreOffice*
 
echo "Instalação do LibreOffice 4 concluída"
 
else
        echo "Arquitetura não suportada"
fi

Dê permissão de execução com o comando sudo chmod +x /tmp/libreoffice_4, e então execute-o com sudo bash /tmp/libreoffice_4

Qualquer coisa, reclamem aqui!! ;D

Páginas: [1] 2 3 ... 8