• Home
  • Projects
Koz.TV
  • Home
  • Projects
    Loading posts...
  • Allow ssh password authentication on remote server

    1. Connect to the server and check ssh properties: sudo nano /etc/ssh/sshd_config # Change to no to disable tunnelled clear text passwords PasswordAuthentication yes PasswordAuthentication should be set to yes. 2. Now restart ssh service: service ssh restart 3. Try to make ssh connection with authentication by password: ssh username@domain Don't forget to replace username and domain…
    December 5, 2017
  • Create admin user in ubuntu linux

    1. Login as super user: sudo su 2. Run the following command: adduser username Don't forget to replace username with the name of user that you want to create. 3. Add the user to the sudo group: usermod -aG sudo username 4. Switch to the new user: su username 5. Check that new user has admin rights:…
    December 5, 2017
  • Migrate from tfs to git

    First of all download git-tfs from there: http://git-tfs.com Right click on My Computer -> Properties -> Advanced system settings -> Environment variables -> System variables -> Path Add ;C:\TfsMigration\GitTfs-0.25.1 to the end of Path variable. Open Command Prompt as Administrator and exec following commands, don't forget to change commands with your variables: git tfs clone http://myserver:8080/tfs/DefaultCollection…
    May 18, 2017
  • Cron task for handling email in redmine

    Go to redmine folder and copy use_redmine file: cp use_redmine proceed_mail Edit new document: nano ./proceed_mail Replace text with following (put your variables): #!/bin/bash . /opt/redmine-3.3.2-2/scripts/setenv.sh rake -f /opt/redmine-3.3.2-2/apps/redmine/htdocs/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=mail_server [email protected] password=your_password move_on_success=read move_on_failure=failed To run Cron config, exec command: crontab -e Add following line to the end of the file (put your…
    April 17, 2017
  • Add event log source in Windows

    Run powershell as Administrator and run following command: New-EventLog -Source "TestApi" -LogName "Application"
    March 29, 2017
  • Add proxy settings to IIS Applications with web.config

    To set proxy settings for your IIS Application, just add following block to your web.config file: <system.net> <defaultProxy> <proxy proxyaddress="http://192.168.0.1:8080" bypassonlocal="true" /> </defaultProxy> </system.net> Put your proxy server settings in field "proxyaddress" .
    March 28, 2017
  • Setup WebClient timeout in PowerShell

    If you want to setup timeout value for downloadString method of WebClient Class in PowerShell, you need to extend WebClient Class, because property Timeout isn't public. So, in the next example I inherited new ExtendedWebClient Class from WebClient Class. And I add public field Timeout to the new class. Then I overrode GetWebRequest Method to use…
    November 10, 2016
  • Sendmail config when MX record points to another server

    If your domain mail is hosted on mail server in a different domain, you should tell your sendmail about it. Otherwise if you try to send a mail to a user in your local domain, you will get an error from sendmail at /vat/log/mail.log: User unknown. It means that sendmail is trying to find user, that…
    May 22, 2016
  • Telegram
  • Facebook
  • LinkedIn
  • Instagram

© 2014...2022
[email protected]