Tuesday, June 4, 2013

Netlogon Log File Error Codes

Netlogon Log File Error Codes

Each event in the Netlogon log contains a corresponding error code. The following table describes these error codes.
Table 3 Netlogon Log Error Codes

 

Log Code Description
0x0
Successful login
0xC0000064
The specified user does not exist
0xC000006A
The value provided as the current password is not correct
0xC000006C
Password policy not met
0xC000006D
The attempted logon is invalid due to a bad user name
0xC000006E
User account restriction has prevented successful login
0xC000006F
The user account has time restrictions and may not be logged onto at this time
0xC0000070
The user is restricted and may not log on from the source workstation
0xC0000071
The user account's password has expired
0xC0000072
The user account is currently disabled
0xC000009A
Insufficient system resources
0xC0000193
The user's account has expired
0xC0000224
User must change his password before he logs on the first time
0xC0000234
The user account has been automatically locked

Sunday, April 7, 2013

Samba File Server

sudo apt-get install samba
        /etc/samba/smb.conf 
sudo cp -p smb.conf smb.conf.ori 
 
   workgroup = EXAMPLE
   ...
   security = user   # I don't use this
[share]
    comment = Ubuntu File Server Share
    path = /srv/samba
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755
 
[transmission]
    comment = Ubuntu File Server Share
    path = /srv/transmission
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0775 
 
sudo mkdir -p /srv/samba
sudo chown nobody.nogroup /srv/samba
 

sudo restart smbd
sudo restart nmbd  
 

Saturday, April 6, 2013

Transmission

 http://1000umbrellas.com/2010/10/04/updated-transmission-installationconfiguration-on-ubuntu-server

sudo apt-get install transmission-daemon

sudo mkdir -p /srv/transmission/downloading
sudo mkdir -p /srv/transmission/seeding
sudo mkdir -p /srv/transmission/watch
sudo mkdir -p /srv/transmission/complete
sudo usermod -a -G debian-transmission chris
sudo chown -R debian-transmission:debian-transmission /srv/transmission


sudo chmod 775 /srv/transmission/*
   
cd /etc/transmission-daemon
sudo cp -p settings.json settings.json.ori
sudo vi settings.json

{
    "alt-speed-down": 500,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 480,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 0,
    "alt-speed-up": 10,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/srv/transmission/seeding",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "encryption": 2,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/srv/transmission/downloading",
    "incomplete-dir-enabled": true,
    "lazy-bitfield-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-congestion-algorithm": "",
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 44435,
    "peer-port-random-high": 20599,
    "peer-port-random-low": 20500,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "prefetch-enabled": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": false,
    "proxy-port": 80,
    "proxy-type": 0,
    "ratio-limit": 0.2500,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{344d5fb95fa67ba00ccb188d79809bee0957b674fAWT0o9G",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "transmission",
    "rpc-whitelist": "127.0.0.1,192.168.88.*",
    "rpc-whitelist-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "speed-limit-down": 5120,
    "speed-limit-down-enabled": true,
    "speed-limit-up": 512,
    "speed-limit-up-enabled": true,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 2,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 4,
    "utp-enabled": true,
    "watch-dir": "/srv/transmission/watch",
    "watch-dir-enabled": true
}

 
$ sudo service transmission-daemon reload 
   $ sudo service transmission-daemon restart

transmission-daemon -p 9091 -f -T     

update to new version

sudo aptitude install software-properties-common
sudo add-apt-repository ppa:transmissionbt/ppa