We have to change the value shown by:
>cat /proc/sys/net/ipv4/tcp_keepalive_time
-usually is 7200
To change it:
- >sudo vi /etc/rc.local #to remain after boot
- echo "900" > /proc/sys/net/ipv4/tcp_keepalive_time #to modify
- >sudo /etc/rc.local #to have it
Other way:
- >sudo sysctl -w net.ipv4.tcp_keepalive_time=1800
marți, 29 iunie 2010
miercuri, 23 iunie 2010
Moving from Windows XP to Linux Ubuntu
It was easy because all you have to is to just copy a folder, usually from 'Documents and Settings\\Application Data', to your home directory /export/home/:
-email - Thunderbird - the profile folder
-text editor - Jedit - the .jedit folder
-DB client - Squirrel - .squirrel
-IM - pidgin - .purple
-email - Thunderbird - the profile folder
-text editor - Jedit - the .jedit folder
-DB client - Squirrel - .squirrel
-IM - pidgin - .purple
miercuri, 9 iunie 2010
Automate Windows XP services management
When are problems and don't want to manually process all Windows XP services, the tool below can be used :
(thx to http://commandwindows.com/sc.htm )
services_automate.bat :
@echo off
set lp=%~dp0
cd %lp%
rem sc [command] [service name] ...
rem interesting is also the "config" command
echo "Starting setting of services to automatic"
for /F "delims= " %%i in (%lp%\services_names.txt) do (
echo "%%i"
sc start %%i
)
echo End
rem pause
(I got it from web, but can't find now the source to mention :( )
services_names.txt :
ALG
AppMgmt
AudioSrv
BITS
Browser
CryptSvc
DcomLaunch
Dhcp
dmadmin
dmserver
Dnscache
ERSvc
Eventlog
EventSystem
IDriverT
IISADMIN
lanmanserver
lanmanworkstation
LmHosts
MDM
MSDTC
MSFtpsvc
napagent
NetDDE
NetDDEdsdm
Netlogon
Netman
NetSvc
Nla
NMSAccess
NtLmSsp
NtmsSvc
ntrtscan
OfcPfwSvc
PlugPlay
PolicyAgent
ProtectedStorage
RasMan
RemoteAccess
RpcLocator
RpcSs
SamSs
Schedule
seclogon
SENS
SharedAccess
ShellHWDetection
SMTPSVC
Spooler
srservice
SSDPSRV
stisvc
TapiSrv
TermService
Themes
tmlisten
TrkWks
upnphost
UPS
VSS
W32Time
W3SVC
WebClient
winmgmt
Wmi
WmiApSrv
wuauserv
WZCSVC
(thx to http://commandwindows.com/sc.htm )
services_automate.bat :
@echo off
set lp=%~dp0
cd %lp%
rem sc
rem interesting is also the "config" command
echo "Starting setting of services to automatic"
for /F "delims= " %%i in (%lp%\services_names.txt) do (
echo "%%i"
sc start %%i
)
echo End
rem pause
(I got it from web, but can't find now the source to mention :( )
services_names.txt :
ALG
AppMgmt
AudioSrv
BITS
Browser
CryptSvc
DcomLaunch
Dhcp
dmadmin
dmserver
Dnscache
ERSvc
Eventlog
EventSystem
IDriverT
IISADMIN
lanmanserver
lanmanworkstation
LmHosts
MDM
MSDTC
MSFtpsvc
napagent
NetDDE
NetDDEdsdm
Netlogon
Netman
NetSvc
Nla
NMSAccess
NtLmSsp
NtmsSvc
ntrtscan
OfcPfwSvc
PlugPlay
PolicyAgent
ProtectedStorage
RasMan
RemoteAccess
RpcLocator
RpcSs
SamSs
Schedule
seclogon
SENS
SharedAccess
ShellHWDetection
SMTPSVC
Spooler
srservice
SSDPSRV
stisvc
TapiSrv
TermService
Themes
tmlisten
TrkWks
upnphost
UPS
VSS
W32Time
W3SVC
WebClient
winmgmt
Wmi
WmiApSrv
wuauserv
WZCSVC
Etichete:
command line,
script,
services,
windows
Abonați-vă la:
Postări (Atom)