Category Archives: Uncategorized
Commandline in Google
COPY OUTLOOK THE NAMES IN AUTOCOMPLETE TO ANOTHER COMPUTER
IMPORTANT
You must exit Outlook before starting the following procedure. The names will be included in AutoComplete when you restart Outlook.
On the computer with the saved AutoComplete names, go to drive:\Documents and Settings\user name\Application Data\Microsoft\Outlook.
change only filepermissions
to be tested:
find . -type f -print0 | xargs -0 chmod 444
Burn ISO to DVD on the Command Line
Don’t mess around with graphical burners that get get in the way of your workspace. Simpler to use the command line:
growisofs -dvd-compat -Z /dev/dvd=/path/to/image.iso
And then while it’s happening you can get on with your real work.
Netzwerk zeichnen
Dia ist ein gutes Tool um Netzwerke zu zeichnen.
zusätzlich kann man hübsche Icons installieren.
wie diese hier:
cmd scrip to add a printer
@echo off
echo —=== Deleting any old LPT1-setting ===—
net use lpt1: /d
echo —=== now installing the LPT1 ===—
net use lpt1: \\IP\sharedprinter /user:”username” /persistent:yes password
rsync von Synology zu Synology
install ssh
ssh root@192.168.59.12
ssh-keygen -t rsa -N “”
cd etc/bin
vi test
Beispiel: touch /bin/backup`date ‘+%A’`
rsync -e ssh -vz -r –delete root@192.168.59.11:geschickt /volume1/backup`date ‘+%A’`
cat ~/.ssh/id_rsa.pub | ssh root@192.168.59.11 “mkdir -p .ssh; cat >> .ssh/authorized_keys”
rsync -e ssh -vz -r /root/.ssh/id_rsa.pub 192.168.59.11:/root/.ssh/id_rsa.pub
rsync -e ssh -vz -r /root/.ssh/id_rsa.pub 192.168.59.11:/root/.ssh/known_hosts
chmod 755 test
./test
/usr/syno/etc/rc.d
vi S04crond.sh
start)
if [ -x “$CROND” ] ; then
mkdir -p /var/spool/cron/crontabs/
cp /etc.defaults/crontab /etc/crontab <-geändert
ln -sf /etc/crontab /var/spool/cron/crontabs/root
echo "Starting crond..."
$CROND
fi
;;
:
stop)
cd etc.defaults
cp crontab crontabback
vi crontab
#minute hour mday month wday who command
*/1 * * * * root /bin/test
bsp von synczh:
0 */6 * * * /home/itpenguin/u5/rsync_stuff/get_th.sh
R = 4
W = 2
X = 1
-
/usr/bin/rsync -e ssh -vz -r --delete root@turk.office-on-the.net:/volume1/Project/1?share/1?Projects/ /mnt/spcserver/1\ share/1\ Projects/Mirror_Region_Turkey/ 2>&1 > /mnt/spcserver/1\ share/1\ Projects/1.6\ Sync_log/mex_get_project_`date +%Y-%m-%d`.rtf
key genrieren
ssh-keygen -t rsa -N “”
cd
id kopieren/
ssh-copy-id root@spcsaf.office-on-the.net
man ssh-copy-id
mounts anzeigen
more /home/itpenguin/.smbcredentials
mount
ausführbar machen
chmod 755 send2_zh.sh
hier ausführen
./send2_zh.sh
datum ausgeben
date +%Y-%m-%d
textfile anzeigen
more /etc/crontab send2_zh.
mit Detail listen
ls -la
schauen ob crontab läuft
/etc/init.d/cron status
ps aux | grep cron
log anschauen
tail -f /var/log/lastlog
tail -f /var/log/messages
tail -f /var/log/debug
init 6 -> reboot
How To mount a Samba share
Mit Linux
sudo mount -t cifs -o username=xxx,password=xxx,workgroup=xxx,iocharset=utf8 //servername/hiddensharename-$ /path
mit Windows
net use q: \\servername\share /user:"username" /persistent:yes "password"
Migrate to Ubuntu?
Zu Linux migrieren?
http://www.ubuntu.com/business/desktop/webcast
http://www.freeformdynamics.com/fullarticle.asp?aid=1261&searchFor=[REPORTS]
cool, lustig, stressig, hölle…?