background preloader

Linux

Facebook Twitter

Gedit

NTFS-3G Questions at Tuxera. This section documents and answers the most common questions about the NTFS-3G driver. Please see the driver release history and make sure you have the latest one. How can I hotplug and automount NTFS devices? The NTFS hotplug and automount support is highly distribution specific regarding the used technologies and the preferred mount configuration. This is what should happen on a higher level: Detect storage hardware.Detect NTFS on the hardware.Start the NTFS-3G driver with the user and distribution preferred mount options.Mount the NTFS volume.

The NTFS-3G file system developers are working only on item 4. Solution: If you would like to have this feature in your distribution then please ask your distribution vendor or developers to support this feature. Workarounds: Either of the following could help. Status: Not NTFS-3G problem. Missing, disappeared files or directories?

If the top directory is completely empty then it’s very probably that the NTFS volume is not mounted. Powercfg /h off. Nano editor tutorials. Nano command line editor is a text editor that can be run from a command prompt via a telnet or ssh session. It allows you to create or edit HTML, text, scripts or practically any text file. Although it is not as easy as a GUI based editor you may be used to it does afford you the luxury of being able to create and edit your site files from almost any computer in the world. nano is a small, free and friendly editor which aims to replace Pico,the default editor included in the non-free Pine package.

Rather than just copying Pico's look and feel, nano also implements some missing (or disabled by default) features in Pico, such as "search and replace" and "go to line number". Install nano in Debian #apt-get install nano Now we are going to craete a test file in nano editor At the prompt type the following and hit enter.

#nano test.htm Now you have launched nano with a new blank file named "test.htm". The first thing you may notice is the "GNU nano 1.3.12″ in the upper left corner. Searching for a String in Multiple Files With Grep. Ever need to search through all your files for a certain word or phrase? I did, and to make matters more complicated, the files were all in different sub-directories. A quick Google search turned up a few scripts involving multiple commands and temporary files. Then I found a simpler solution. If you're a Unix/Linux/BSD user, you probably know about the grep command, but did you know it's recursive? That's right, grep can search through your entire directory tree, scanning every file along the way.

It will even return the results in multiple formats! Here's an example. Grep -r "modules" . By using the "-r" switch, we're telling grep to scan files in the current directory and all sub-directories. If you'd rather just get the file names and skip the rest of the output, use the "-l" switch, like so: grep -lr "modules" . Here's another tip: grep also supports regular expressions, so matching against a wildcard pattern is easy: grep -lr "mod.

*" . You can also use grep to search for multiple words: Console productivity hack: Discover the frequent; then make it the easy. More resources The best book I know of for console hacks is Linux Server Hacks: 100 Industrial-Strength Tips and Tools. It's loaded with fiendishly creative scripts and shortcuts. (Almost all of the hacks apply to any Unix-derived OS, including Mac OS X.) It turns out that my colleague Eric Eide did a masters thesis on an adaptive interface to a Unix shell, Valet. Logging and mining console activity Before you can exploit the principle of frequency, you need an unbiased record of what it is that you do most frequently.

Fortunately, shells like bash already have some of that data in the form of the history command. You should periodically examine your frequently used commands, and find ways to execute them quickly. To find frequent commands, you'll need a script to compute counts for the contents of the history file. It counts the number of times that each line occurs on stdin, and then dumps out a report.

For example: Logging directories to MySQL Setting up the table is straightforward: Linux Certification – Certificação LPI Linux 101 « Ruby On Genio. Devido a necessidades profissionais vou dedicar meus esforços a bem falada prova de certificação LPI Linux , criada com objetivo de “certificar” que o caboblo manja de linux a prova tem um custo considerável e tem que ser marcada no instituto de sua preferência , podendo optar pelos idiomas português e inglês.

Para aprender e fixar o conhecimento minha tática é escrever sobre o que eu li e porque não compartilhar com meus leitores …. eu acho que tem alguém lendo o que eu escrevo não é ……. Beleza , como tenho alguns amigos que já são certificados algumas dicas que recebi já vou disponibilizar para a galera. A prova normalmente é feita em uma cabine com os seguintes itens : - Computador completo onde serão apresentadas entre 60 e 90 perguntas de linux - Câmera Filmadora – ela seguirá seus passos portanto não pense em colar , você vai perder dinheiro e tempo. Estudos direcionados. Dicas importantes que recebi: Vi-teclado.png (imagem PNG, 1024×724 pixels) - Redimensionada (86. Swap FAQ. Introduction This FAQ is aimed at Linux novices. People always wonder how much swap they should create at install time, or after installing they may think, "have I made a large enough swap? Should I reinstall with a larger swap?

" This FAQ will tell you how much swap you need and how to add more swap after installation. What is swap? Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Why do I need swap? Memory consuming programs Sometimes, a large program (like LibreOffice, Neverwinter Nights, or a video editor) make the entire system need extra memory.

Hibernation (suspend-to-disk) The hibernation feature (suspend-to-disk) writes out the contents of RAM to the swap partition before turning off the machine. How much swap do I need? As a base minimum, it's highly recommended that the swap space should be equal to the amount of physical memory (RAM). Example Scenarios Save. A Short Guide To Open-Source And Similar Licenses - Smashing Magazine. Advertisement Many developers and designers want to release their work into the world as open-source projects. They want others to be able to build on and share their code. The open-source community is vibrant because of this. Open-source software is available for virtually any application you could think of. Most designers use open-source software or code on a regular basis (WordPress, Drupal and many other CMS’ are open source). But many developers and designers don’t have a clear picture of what the different open-source licenses really mean.

What Is Licensing? A lot of confusion is out there about what exactly licensing means. Licensing is a great alternative to just releasing your work into the public domain or granting permissions on a case-by-case basis. Open-source licenses2 make it easy for others to contribute to a project without having to seek special permission. GNU General Public License Copy the software. GNU Lesser General Public License BSD License MIT License Apache License. []OFF-TOPIC] Usando #screen em seu terminal « Ruby On Genio. O Screen permite ter terminais(console) dentro de uma única sessão efetuando a troca entre elas com a vantagem de se manter no mesmo local da primeira sessão aberta , evitando acessar novamente o mesmo caminho toda vez que abrir uma aba ou novo terminal.

Para os usuários de Fedora e Ubuntu como eu é uma mão na roda , pois dentro do projeto rails posso no $bash 0 mexer com os models no $bash1 mexer nos controllers e no $bash2 mexer nas views. (Vlw Prodis) No home criar o arquivo .screenrc com os seguintes dados : shell /bin/bash #caption always “%3n %t%? @%u%? %? #startup_message off hardstatus on hardstatus alwayslastline # Status string, last line hardstatus string ‘%{= kG}[ %{G}%H %{g}][%= %{= kw}%? Para acessar o ambiente do screen : screen -S nomequalquer Comandos para utilizar o screen Comando base : ctrl + A depois o Comando Criando novas instâncias ctrl + a (depois) c Matando todas as instâncias ctrl + a (depois) k Movendo entre instâncias Saindo do Screen ctrl + a (depois) p para mais detalhes.

Executando aplicações gráficas remotamente - Devin. Muitas instalações de servidores Linux têm como um requisito não instalar o ambiente gráfico e seus programas. Isso é bem plausível pelo fato de que quando você faz isso, você economiza no tamanho do banco de dados dos pacotes, no espaço em disco, na gerência e atualizações destes pacotes, entre outros.

E em um servidor, não ter uma interface gráfica não é tão problemático, pois geralmente ninguém fica na frente da tela utilizando a máquina. Mas e se por acaso você quiser utilizar algum programa que só funciona através de uma interface gráfica neste servidor? Isto é o que acontece em alguns programas como por exemplo o banco de dados Oracle que possui uma interface gráfica de instalação. Se o servidor não possui uma interface gráfica, então como instalar isso? Ou como utilizar esses programas? No Linux, o ambiente gráfico (X11/Xorg) possui a capacidade de executar aplicações gráficas remotamente. IP do Servidor: 192.168.0.1IP do Cliente: 192.168.0.2 Método 1: X11 Forwarding via SSH 1.1. Programação do Shell. Zypper/Uso - openSUSE. Este artigo é sobre como usar o zypper, o gerenciador de pacotes em linha de comando usando a biblioteca Libzypp.

Ele contém informações complementares à página do manual do zypper (man zypper). O que você não encontrar aqui, você deverá encontrar na página do manual e vice versa. Referência rápida Isto é o que você provavelmente irá usar mais frequentemente: zypper # exibir a lista de opções e comandos globais zypper help search # exibir a ajuda para o comando search zypper lu # ver quais correções são necessárias zypper up # aplicar as correções zypper se sqlite # procurar por 'sqlite' zypper rm sqlite2 # remover o 'sqlite2' zypper in sqlite3 # instalar o 'sqlite3' zypper in yast* # instalar todos os pacotes que coincidam com 'yast*' zypper up -t package # atualizar todos os pacotes instalados com versões novas, onde for possível Uso geral A sintaxe geral do zypper é: zypper [opções_globais] comando [opções_do_comando] [argumentos] ... zypper update zypper --non-interactive update Vocabulário.

Ssh-keygen. NOTE: click here if you get an empty page. SSH-KEYGEN(1) BSD General Commands Manual SSH-KEYGEN(1) ssh-keygen - authentication key generation, management and conversion ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment] [-f output_keyfile] ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] ssh-keygen -i [-f input_keyfile] ssh-keygen -e [-f input_keyfile] ssh-keygen -y [-f input_keyfile] ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] ssh-keygen -l [-f input_keyfile] ssh-keygen -B [-f input_keyfile] ssh-keygen -D reader ssh-keygen -F hostname [-f known_hosts_file] ssh-keygen -H [-f known_hosts_file] ssh-keygen -R hostname [-f known_hosts_file] ssh-keygen -U reader [-f input_keyfile] ssh-keygen -r hostname [-f input_keyfile] [-g] ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] ssh-keygen -T output_file -f input_file [-v] [-a num_trials] [-W generator] ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8) J.

Galbraith and R. Fstab. The configuration file /etc/fstab contains the necessary information to automate the process of mounting partitions. In a nutshell, mounting is the process where a raw (physical) partition is prepared for access and assigned a location on the file system tree (or mount point). In general fstab is used for internal devices, CD/DVD devices, and network shares (samba/nfs/sshfs). Removable devices such as flash drives *can* be added to fstab, but are typically mounted by gnome-volume-manager and are beyond the scope of this document. Options for mount and fstab are similar. For usage with network shares, see SettingUpNFSHowTo , SettingUpSamba and SSHFS. The syntax of a fstab entry is : [Device] [Mount Point] [File System Type] [Options] [Dump] [Pass] Please refer to the examples section for sample entries.

Device By default, Ubuntu now uses UUID to identify partitions. UUID=xxx.yyy.zzz To list your devices by UUID use blkid sudo blkid Alternative ways to refer to partitions: Mount point Examples: Dump. Permissões - Devin. O que vocë precisa saber para controlar quem acessa o que no seu sistema Linux. Permissões de Acesso Todo arquivo ou diretório tem, além de seu nome e conteúdo, propriedades que restringem o seu uso.

Como o Linux é um sistema operacional multi-usuário, arquivos e diretórios têm de pertencer à um certo usuário e grupo. O diretório /root por exemplo pertence ao usuário root e grupo root. Devido às permissões deste diretório, apenas o usuário dono (root) pode entrar e mexer nele. Este tipo de funcionalidade é essencial em um sistema multi-usuário real. O comando ls -l mostra uma listagem detalhada dos arquivos do diretório atual e isso inclui suas permissões. . $ ls -l drwxr-xr-x 2 coletivo coletivo 4096 2008-08-29 13:35 apostila Na parte do comando ls aprendemos que depois do primeiro caracter (tipo de arquivo), os próximos 9 caracteres são uma sequência de permissões.

Letra r – leitura (read) Letra w – escrita (write) Letra x – execução (execute) Estas três letras se encaixam em 3 campos: Utilizando alias para agilizar comandos no Linux. Alguém já se deparou com aquele comando que nunca fixa na cabeça e talvez seja um dos que você utiliza frequentemente? Caramba! Que falta de memória a nossa. Eu mesmo já enviei diversos e-mails para meu próprio endereço só para lembrar mais tarde de um comando que contemplasse alguma das minhas implementações. Bom, essa dica vem em boa hora para amparar os esquecidinhos de plantão.

Eu falo dos "alias" ou "atalhos/apelidos". Essas belezinhas nos disponibilizam uma boa forma de agilizarmos nossos processos e lembrarmos dos nossos comandos mais utilizados. A sintaxe a ser seguida: alias apelido='comando' Abaixo alguns casos que costumo utilizar. Espaço em disco: $ alias df='df -h' Listando arquivos e pastas: $ alias ls='ls -la' Obs.: Nos dois exemplos acima eu não usei apelidos e sim atalhos, embutindo parâmetros mais utilizados nos seus respectivos comandos.

Para acessar um servidor via ssh: $ alias acessossh='ssh user@ipdoservidor' Para atualizar as lista de repositórios: Ex $ buscar samba Abraço, t+. Darwin Streaming Server on Ubuntu. Home - NETWAYS GmbH. All commands. Linux: Increasing the number of open file descriptors. See additional more recent notes at the bottom of this file A small number of open file descriptors (sockets) can significantly reduce both the performance of an Internet Server and the load that workload generator like httperf can generate.

This is meant to provide some information about how to increase the limits on the number of open file descriptors (sockets) on Linux. Note: the actual numbers used below are examples. The numbers you should use will depend on weather you are modifying a system that will be used as a client or a server and the load being generated. In this example we increase the limit to 65535.

Also note that some of these steps may or may not be required depending on whether you are using PAM and if some of the stuff is being done remotely using ssh. To check and modify system limits. Tutorial: Como instalar Compiz-Fusion e Emerald Theme. ShUnit2 2.1.x Documentation. 10 Tips for Writing Efficient Bash Scripts | HACKTUX. Bash commands - Linux MAN Pages. Linux Shell Scripting Tutorial - A Beginner's handbook. Advanced Bash-Scripting Guide. Programando em shell-script - Devin. Configurar NIS - nsswitch.conf.