Archive for the ‘admin’ Category

Access Denied Error Messages When Accessing Hidden Shares in Windows 7

Tuesday, March 19th, 2013

1. Start Registry Editor (Regedit.exe). If you get the UAC prompt, acknowledge it.

2. Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

3. On the Edit menu, select New and then click DWORD (32-bit) Value.

4. Type LocalAccountTokenFilterPolicy to name the new entry, and then press Enter.

5. Right-click LocalAccountTokenFilterPolicy, and then click Modify.

6. In the Value data box, type 1, and then click OK.

7. Exit Registry Editor. There is no need to reboot the machine.

Could not create the ‘/mnt/hgfs’ directory. Install hgfs and vmware-tools on debian linux.

Monday, March 21st, 2011

Error:

Could not create the '/mnt/hgfs' directory.
The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

Solution:

aptitude install gcc-4.3 linux-headers-`uname -r` -y
tar xzf VMwareTools-8.1.3-203739.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl -d
./bin/vmware-config-tools.pl -d

File duplikációk megszüntetése az fdupes segítségével

Thursday, January 6th, 2011

Az alábbi példa kitöröl minden file ismétlődést a megnevezett könyvtárakból, tehát ha olyan filet talál aminek a tartalma megegyezik egy már korábban vizsgált file tartalmával, akkor törli azt, íly módon minden fileból csak az először megtalált példány marad meg.

fdupes -r -d -N /store /incoming

A program elérhető linux és windows (cygwin) alatt is.

http://en.wikipedia.org/wiki/Fdupes

Compile and install a 3rd party kernel module in debian

Monday, March 15th, 2010

KVER=$(uname -r | sed 's,-.*,,g')
aptitude install linux-headers-$(uname -r) linux-source-$KVER build-essential
cd /usr/src
tar jxf linux-source-$KVER.tar.bz2
ln -s /usr/src/linux-source-$KVER /lib/modules/$(uname -r)/source

Download the required module source and unpack it
Enter module source directory

make
make install
To make the module visible to your running kernel, you may like to run
depmod -a
modprobe modulename

Original from: Alien Glow

http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html

compile vanilla kernel on debian linux

Friday, July 10th, 2009
 - aptitude install kernel-package fakeroot

- download and uncompress the kernel source and copy the current config from /boot or /proc to .config

- make oldconfig
- export CONCURRENCY_LEVEL=4
- fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image

- install the deb package

kettő vagy több default route linux alatt

Friday, May 22nd, 2009

A legegyszerűbb verzió, 2 parancsból:

Van két interface-ünk eth0: 192.168.1.2, eth1: 192.168.2.2 és két átjárónk gw1: 192.168.1.1, gw2: 192.168.2.1

A default route a gw1 fele van (a main nevű routing táblában), de nem arra akarjuk küldeni az eth1 címéről kimenő csomagokat.

route add default gw 192.168.1.1

Ezért létrehozunk egy másik default route-ot a  default nevű routing táblában.

ip route add default via 192.168.2.1 table default

Az ip szabályok szerint (lsd. ip rule) alapesetben a main tábla default route-ja korábban kerül feldolgozásra mint a default tábláé, ezért létrehozunk egy szabályt ami az eth1-hez társított ipcímről kimenő csomagokat a default routing táblára dobja.

ip rule add from 192.168.2.2 table default

Példa /etc/network/interfaces:

auto eth0
iface eth0 inet static
        address 192.168.1.2
        netmask 255.255.255.0
        gateway 192.168.1.1

auto eth1
iface eth1 inet static
        address 192.168.2.2
        netmask 255.255.255.0
        post-up ip route add default via 192.168.2.1 table default
        post-up ip rule add from 192.168.2.2 table default
        post-down ip rule del from 192.168.2.2 table default

save putty config

Friday, February 13th, 2009

 

regedit /e "putty.reg" HKEY_CURRENT_USER\\Software\\Simontatham

debian linux network bonding

Wednesday, June 25th, 2008

apt-get install ifenslave

debian:~# cat /etc/modprobe.d/arch-aliases
options bonding mode=0 miimon=100

#mode=0 for round-robin
#mode=4 for 802.3ad

debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug bond0
auto bond0
iface bond0 inet dhcp
slaves eth0 eth1

Linux bonding driver infos

php mint cgi

Saturday, June 21st, 2008

AddHandler php4-script .php
Action php4-script /cgi-bin/php

phpmyadmin session timeout

Friday, September 7th, 2007

/usr/share/phpmyadmin/config/config.inc.php:
$cfg['Servers'][$i]['LoginCookieValidity'] = 86400;

OR

/etc/phpmyadmin/config.inc.php:
$cfg['LoginCookieValidity'] = 86400;