Jun 22

The work is done with files on Windows using the Explorer. That works quite well so far, if not in a directory in the first level are over 100,000 files. If one tries thus to open a directory with the Explorer does, is because once nothing more.

But how does one determine the number of files in such a directory?

If the Windows PowerShell installed, this is possible with this command:

  (Get-ChildItem D: \ data). Count 

If you have XP and not PowerShell offers to Cygwin as an alternative. Cygwin is an implementation of Unix tools for Windows. Those of you work, which I prefer Unix-based systems, pull the power and certainly before the bash shell to determine the number of files in this way:

  find / cygdrive / D / data-type f | wc-l 

Fast finish was in my case Cygwin. Yet one more reason to install this useful tool if you have to work even with Windows. A switch to Linux or MacOS is thus easier. :-)

Similar items:

posted by gklinkmann \ \ tags: ,

Nov 30

As a keyboard junkie, I must add my voice to this campaign easy. :-)

klick dich nicht weg
Source: aptgetupdate

via: aptgetupdate

Similar items:

posted by gklinkmann \ \ tags: ,

Sep 30

, I just did an article on the 100 vim Commands read, the programmer should know everyone.
The vim (Vi IMproved) I have here in the blog once before in brief .

In reviewing the list of 100 best vim commands, I have once again learned a lot about these consoles editor, but also well-known old and dear derived features discovered. My absolute favorites are:

  • : To turn on syntax highlighting of the syntax (syntax highlighting)
  • the commands to indent code
    : Set autoindent turn on indenting
    : Set intelligent indentation turn smartindent
    : Set shiftwidth = 4 define four spaces as Einrückgröße
    ctrl-t, ctrl-d A / disengaging the insert mode
    >> Indentation in the command mode
    <<Disengagement in the command mode
  • Interacting with Unix
    :! Run by pwd "pwd" unix command and then return to vim
    ! Run by pwd "pwd" unix command and paste the output into the file
    : Sh temporary trip to the Unix Shell
  • :% S / old / new / g replace "old" with "new" in the whole file

What are editors for the console you use? And if vim is, on what commands Could not do without her?

Similar items:

posted by gklinkmann \ \ tags: , , ,

Sep 25

To the desktop of a remote host PC to get on his There are different solutions. In the Windows environment, there Remote Desktop for 1:1 connections and otherwise the terminal server for multiple users to simultaneously access the remote desktop.
A large commercial providers, many of which also may be aware, is Citrix.

If you want to spend money no one ends up quickly in VNC and its derivatives (such as UltraVnc).

I personally use for Windows is also Microsoft's own Remote Desktop solution, since it clearly in terms of performance, the nose is the front. For a Linux desktop (KDE by the way also because it is faster than Gnome), I had to hint at VNC.

Dissatisfied with the performance of this solution, I already have all the time looking for an alternative to and they now FreeNX from NoMachine found. FreeNX is not only better performance but is also gentle on the server version of the system resources to deal with. In the free version of FreeNX is limited to 3 concurrent users (which I personally goes well).

After the download (for Kubuntu are available on the NoMachine site *. deb packages available), the packages for the server operation (that is, on the Linux system, which will provide the desktop) order will be recorded in the following:

  -i nxclient_3.3.0- 6 _i386.deb > Sudo dpkg-i-6 nxclient_3.3.0 _i386.deb
     ...
     Libaudiofile0 package is not installed.
     ...
 # Resolve the dependencies
 safe-upgrade > Sudo aptitude safe-upgrade
 -i nxnode_3.3.0- 22 _i386.deb > Sudo dpkg-i nxnode_3.3.0-22 _i386.deb
 -i nxserver_3.3.0- 27 _i386.deb > Sudo dpkg-i nxserver_3.3.0-27 _i386.deb 

After the server is now available and can be used. For more configurations, you should install you the notes under /usr/NX/share/documents/server/install-notices read (rtfm :-) ).

FreeNX Client Optionen

Clients are available for Windows, Linux and Macs. They can be installed just as painless, as the server part. In my use of Windows client (the MacOS client, I will also test it) you can install using a wizard to connect to the Linux system to build and then both KDE (in all its beauty) as well as individual programs use the.



Other Linux desktops (like Gnome or XFCE) work just as well, of course. :-)

Links:
Wiki ubuntuusers.de: FreeNX

Similar items:

posted by gklinkmann \ \ tags: , , ,

Sep 14

Linux for old rabbit that is a Klax, but since it usually only once per computer, makes me wonder every time in case a computer with Windows and Linux - how was that again?

It's actually not that hard. First you have the UID's of the Windows partitions to determine:

  blkid > Sudo blkid
 sda2: UUID = "8A4831E44831CFA5" LABEL = "Volume" TYPE = "ntfs" / Dev / sda2: UUID = "8A4831E44831CFA5" LABEL = "Volume" TYPE = "ntfs"
 sda5: UUID = "A020173420B4E2A8" TYPE = "ntfs" / Dev / sda5: UUID = "A020173420B4E2A8" TYPE = "ntfs" 

then create directories for the mount points:

  / media / windows > Sudo mkdir / media / windows
 / media / windows / C > Sudo mkdir / media / windows / C
 / media / windows / D > Sudo mkdir / media / windows / D 

then the file / etc / fstab change the partitions permanently integrate:

  / etc / fstab > Sudo vi / etc / fstab
 # Add the lines
 media / windows / C   ntfs-3g   defaults, nls =utf8, uid = 0 , gid = 46 0 0 UUID = 8A4831E44831CFA5 / media / windows / C ntfs-3g defaults, nls = utf8, uid = 0, gid = 46 0 0
 media / windows / D   ntfs-3g   defaults, nls =utf8, uid = 0 , gid = 46 0 0 UUID = A020173420B4E2A8 / media / windows / D ntfs-3g defaults, nls = utf8, uid = 0, gid = 46 0 0 

For the mount of ntfs-3g driver is used, which is already the major distributions (tested on Kubuntu 9.04) is a component. What's missing is the actual mount:

  -a > Sudo mount-a 

Done.

Links:
ubuntuusers.de - Windows partitions Embed

Similar items:

posted by gklinkmann \ \ tags: , , , , ,