Archive for the ‘Linux’ tag
Dicas de VI
Dez dicas de eficiência em consoles Unix
Artigo interessante da IBM mostrando dez dicas de como ser mais eficiente ao se utilizar a linha de comando de sistemas Unix:
UNIX tips: Learn 10 good UNIX usage habits
Ten good habits to adopt are:
1. Make directory trees in a single swipe.
2. Change the path; do not move the archive.
3. Combine your commands with control operators.
4. Quote variables with caution.
5. Use escape sequences to manage long input.
6. Group your commands together in a list.
7. Use xargs outside of find.
8. Know when grep should do the counting — and when it should step aside.
9. Match certain fields in output, not just lines.
10. Stop piping cats.
Referências para desenvolvedores X10 no Linux
http://cwoodward.linux-site.net/x10/
all about the CM15A for Home Automation
MisterHouse –> open source home automation program written in Perl
Installing VMware Tools with VMware Player
Full article: http://www.brandonhutchinson.com/Installing_VMware_Tools_with_VMware_Player.html
Summary: 1. Download the latest “Archived Version” of VMware Workstation in .tar.gz format at www.vmware.com/download/ws/. You do not need to be registered nor have a VMware Workstation license key to download this version.
Example: $ wget download3.vmware.com/software/wkst/VMware-workstation-5.5.0-18463.tar.gz
2. Locate and extract the windows.iso VMware Tools image from the tarball.
Locate the windows.iso file (example): $ tar ztvf VMware-workstation-5.5.0-18463.tar.gz | grep windows.iso vmware-distrib/lib/isoimages/windows.iso
Extract the windows.iso file (example): $ tar zxvf VMware-workstation-5.5.0-18463.tar.gz vmware-distrib/lib/isoimages/windows.iso
Or, to extract windows.iso without creating the vmware-distrib/lib/isoimages directory structure, use pax: $ pax -zrvf VMware-workstation-5.5.0-18463.tar.gz -s,vmware-distrib/lib/isoimages/,, vmware-distrib/lib/isoimages/windows.iso
3. Mount the windows.iso file as a loopback file system, and either share the loopback file system with Samba, or copy the VMware Tools files to a location accessible by your guest system.
$ mkdir /tmp/vmware_tools $ mount -o loop windows.iso /tmp/vmware_tools
4. In your guest system, run setup.exe from the VMware Tools directory.
Installing SMART in SUSE
smart config –set http-proxy=http://username:password@proxy-ip:port
smart config –set ftp-proxy=http://username:password@proxy-ip:port
Resetando senhas do WINDOWS
Tutorial de como trocar a senha do Windows caso não consiga mais entrar com o Linux e o programa chntpw:
http://linuxparaoresgate.com/artigos/resetando_senhas_windows.php
Repositorios do SUSE
Dicas de repositorios para o SUSE 10.2
http://opensuse-community.org/Package_Sources/10.2
http://www.susebr.org/forum/index.php?PHPSESSID=81ea85491783c6b606c7396cf610f0fd&/topic,2778.0.html
Matéria no Guia do Hardware com dicas e repositórios detalhados por assunto:
Repositórios no openSUSE 10.2:
http://www.guiadohardware.net/artigos/repositorios-opensuse-10/
Repositórios (http e ftp) apt-get para o SUSE 10.0 x86_64:
http://ftp.gwdg.de/pub/linux/suse/apt/SuSE/10.0-x86_64/examples/
este último site tem outras versões e arquiteturas de SUSE desde o SUSE 7 subindo uns diretórios …
Splitting Large Files to Span Multiple Disks using TAR
Splitting the File
The example below shows the syntax used. Lets say the largefile.tgz is 150 Meg and we need to fit the file on two 100 Meg Zip drives.
tar -c -M –tape-length=102400 –file=disk1.tar largefile.tgz
The value 102400 is 1024 x 100, which will create a 100 Meg file called disk1.tar and then Tar will prompt for volume 2 like below:
Prepare volume #2 for disk1.tar and hit return:
In the time of tape drives you would have taken the first tape out of the machine and inserted a new tape, and pressed returned to continue. As we want Tar to create the remaining 50 Meg in a separate file, we issue the following command:
n disk2.tar
This instructs Tar to continue writing the remaining 50 Meg of largefile.tgz to a file named disk2.tar. You will then be prompted with the line below, and you can now hit return to continue.
Prepare volume #2 for disk2.tar and hit return:
You would repeat this process until your large file has been completely processed, increasing the disk number in the file each time you are prompted.
Putting the File Back Together
tar -x -M --file=disk1.tar largefile.tgz Prepare volume #2 for disk1.tar and hit return: n disk2.tar Prepare volume #2 for disk2.tar and hit return:
Original tutorial (with more information):
http://www.cgi-interactive-uk.com/splitting_large_files.html
sshfs: Como montar diretórios remotos via ssh
“O sshfs é um comando muito útil para quem precisa acessar servidores (ou máquinas virtuais) remotos. Com este comando, em vez de precisarmos executar o ssh para logarmos ou o scp para copiarmos arquivos entre o desktop e os servidores, podemos montar localmente um diretório remoto.”
http://ggarnier.wordpress.com/2008/03/24/como-montar-diretorios-remotos-via-ssh/
Pidgin with Sametime 4 Linux
How to compile Pidgin with support to Sametime in SUSE:
In summary:
you need (o have MSN, Google Talk, and Sametime IM protocol support):
gnutls gnutls-devel meanwhile meanwhile-devel
use (32 bits):
./configure --prefix=/usr --with-gnutls-includes=/usr/include/gnutls/ --with-gnutls-libs=/usr/lib/
use (64 bits):
./configure --prefix=/usr/local --with-gnutls-includes=/usr/include/gnutls/ --with-gnutls-libs=/usr/lib64/
make
make install









