Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/v166574/fusca/wiki/includes/MagicWord.php on line 675
Unix / Linux Hilfe Allgemein – Mein Wiki

Unix / Linux Hilfe Allgemein

Aus Mein Wiki

Wechseln zu: Navigation, Suche
(Konsolen-Fernzugriff)
(Testen)
 
Zeile 1: Zeile 1:
[[Linux Desktop]]
[[Linux Desktop]]
= Konsole =
= Konsole =
 +
== System / info ==
 +
* Version anzeigen:
 +
** $ uname -a
 +
* oder
 +
** $ cat /proc/version
 +
* Prozesse / Taskmanager
 +
** $ top
 +
== Netzwerk ==
== Netzwerk ==
=== Mounten ===
=== Mounten ===
  mount -t nfs 192.168.8.221:/data /media/nas1
  mount -t nfs 192.168.8.221:/data /media/nas1
 +
==== Mounten einer Windows Freigabe von Ubuntu ====
 +
sudo mount -t cifs //127.0.0.1/c$ /mnt -o user=nutzer
 +
http://www.thomas-krenn.com/de/wiki/Windows_Freigabe_unter_Linux_mounten
 +
 +
===== Auto-Mounting Windows Share =====
 +
* $ sudo apt-get install gigolo gvfs-fuse
 +
* Launch Gigolo, setup your shares as bookmarks and mark them as “Auto-Connect”.
 +
* During (first) connection, you will be prompted for your password and you have the possibility to store it in the GNOME keyring (and here it’s encrypted, not in plain-text!).
 +
* You should also configure the Gigolo preferences so that it starts minimized in the system tray (because we’re going to run it on session startup):
 +
* Add new startup programm:
 +
** /usr/bin/gigolo
 +
* The main limitation is that those shares are not real mounts, instead they are available within GNOME’s virtual file system (GVFS). If you use only 100% GNOME application, then it’s not a problem but otherwise it’s pretty annoying. You can’t “cd” in those shares from a terminal for example.
 +
* There’s a workaround though, it’s called “gvfs-fuse” and you installed it right at the start of this HOWTO. This service hooks into GVFS and exports all the virtual filesystem(s) in a real fuse-based mount that is automatically setup in ~/.gvfs/. However for this to work, the user must be in the “fuse” group. So you should run something like this:
 +
* $ sudo adduser $USER fuse
 +
* By the way, I haven’t found a way to use a non-hidden directory so if you want this directory to be more visible, I suggest that you create a symlink pointing to it.
 +
* Quelle:
 +
** http://raphaelhertzog.com/2012/10/30/auto-mounting-windows-shares-in-gnome-with-gigolo-and-gvfs-fuse/#comment-73737
 +
 +
==== Mounten von ftp / sftp ====
 +
* http://www.exanto.de/sftp-und-ftp-unter-linux-mounten.html
 +
* $ sudo aptitude install sshfs curlftpfs
 +
* $ sudo adduser USER fuse
 +
* $ sudo chgrp fuse /dev/fuse
 +
* $ sudo mkdir -p /mnt/mein_ftp
 +
* $ sudo chown USER.USER /mnt/mein_ftp
 +
* $ curlftpfs USERNAME:PASSWORT@beispiel.de /mnt/mein_ftp/
 +
* $ sshfs USER@beispiel.de:/ /mnt/mein_ftp/
 +
* $ fusermount -u /mnt/mein_ftp/
 +
 +
* http://jerret.de/informationstechnik/linux-ftp-server-mounten.html/comment-page-1#comment-3907
 +
** $ curlftpfs gelma:gelmapasswd@123.456.789.111 /FTP-Verzeichnis
 +
 +
==== Mounten des Netzwlaufwerks von all-inkl ====
 +
* $ mount -t cifs '//sxxxxxxx.kasserver.com/sxxxxxxx' /mountpoint -o
 +
uid=1000,gid=1000,rw,username='sxxxxxxx.kasserver.com
 +
/sxxxxxxx',password=********
 +
 +
* unter Linux geht dies wie folgt:
 +
 +
Mounten des Netzlaufwerkes kann man nur als Root (per Hand) oder in der fstab (als system beim starten) wichtig ist hier wenn Sie per VPN zugreifen, können Sie das fstab NICHT mounten weil die VPN Verbindung erst zustande kommt nachdem das System hoch gefahren ist.
 +
 +
Manuelles mounten:
 +
mount -t cifs '\\sxxxxxxx.kasserver.com\sxxxxxxx' /mountpoint -o uid=1000,gid=1000,rw,username='sxxxxxxx.kasserver. com\sxxxxxxx',password=passwortdeskunden
 +
 +
Der Mountpoint ist der Punkt unter dem eingehangen wird zum Bsp. /media oder /mnt. Wichtig ist nur, dass der Ordner existiert.
 +
 +
Mounten per fstab:
 +
//sxxxxxxx.kasserver.com\sxxxxxxx /mountpoint cifs sxxxxxxx.kasserver.com\sxxxxxxx,user,rw,noatime 0 0
 +
 +
Die uid und gid können je nach System abweichen. Diese können Sie sich aber mit einem less /etc/passwd anzeigen lassen.
 +
 +
===== über ssh-Zugang =====
 +
* Nachteil: nur ein Account möglich
 +
* per sshfs:
 +
** Anleitung http://www.heise.de/ct/hotline/Dateisystem-per-SSH-320860.html
 +
** $ sudo apt-get install sshfs
 +
** $ sshfs ssh-konto@ssh-server:[Pfad] mount-point
 +
** oder:
 +
*** $ sshfs ssh-v166574@fusca.de:/www/htdocs/v166574/ /home/sebastian/mount/fusca.de -C
 +
** Logout / Unmount:
 +
*** $ fusermount -u mount-point
=== Konsolen-Fernzugriff ===
=== Konsolen-Fernzugriff ===
Zeile 22: Zeile 91:
Schlecht verlegte Kabel können es nötig machen, dass man den Netzwerkdurchsatz drosselt.
Schlecht verlegte Kabel können es nötig machen, dass man den Netzwerkdurchsatz drosselt.
  ethtool -s eth0 speed 10 duplex full autoneg off
  ethtool -s eth0 speed 10 duplex full autoneg off
 +
 +
== Festplatten ==
 +
=== Testen ===
 +
* Geschwindigkeit testen
 +
** http://wiki.ubuntuusers.de/Festplatten-Geschwindigkeitstest
 +
** mit Cache
 +
<code>sudo hdparm -tT /dev/sda </code>
 +
 +
** ohne Cache
 +
<code>sudo hdparm -tT --direct /dev/sda</code>
 +
 +
== RAID ==
 +
=== Rebuild ===
 +
* http://www.cyberciti.biz/faq/howto-rebuilding-a-raid-array-after-a-disk-fails/
 +
 +
== Archive im Dateisystem ==
 +
=== Rar ===
 +
* http://home.gna.org/unrar/
 +
* Quelle: https://www.linux.com/learn/tutorials/442423-handling-rar-and-7-zip-archives-in-linux
 +
 +
=== 7Zip ===
 +
* per Pakat p7zip ist die Unterstützung wohl recht komfortabel.
 +
* https://www.linux.com/learn/tutorials/442423-handling-rar-and-7-zip-archives-in-linux
 +
* http://www.thegeekstuff.com/2010/04/7z-7zip-7za-file-compression/

Aktuelle Version vom 17:17, 27. Jun. 2013

Persönliche Werkzeuge