Andrii Sergiienko

Software developer, Entrepreneur, Author

How to remove iOS simulator

Sep 20, 20:01

Tried to install previous version of iOS simulator, but the downed process failed and nothing has been installed. Nevertheless, Xcode now shows that I have iOS simulator installed.

To remove the problematic simulator from XCode:

  1. sudo rm -rf /Applications/
  2. rm -rf /Users/andreysergienko/Library/Caches/
  3. restart XCode

Configuring SFTP only user access on Ubuntu

Jul 28, 18:38

Let's say we want to configure SFTP access for a user. We want the user to be able using SFTP (i.e. download/upload files on his WWW folder), but we don't want him to login over SSH and execute any commands on the server.

Edit /etc/ssh/sshd_config file and add the following at the end:

Match Group sftpusers
 ChrootDirectory /home/%u
 ForceCommand internal-sftp

Restart SSH: sudo service ssh restart

Add sftpusers group: sudo groupadd sftpusers

Add a user if necessary, and put it to sftpusers group: sudo usermod -a -G sftpusers %username%

Disable login to console for the user: sudo usermod -s /bin/false %username%

Now, the user will be able to connect using SFTP and do file operations using programs like WinSCP, but it will be unable to login over SSH and execute any commands on the server.

Building Erlang development environment for Windows

Jul 27, 10:47
  1. download Erlang for Windows and install it
  2. add path to Erlang bin directory (i.e. c:\Program Files\erl6.1\bin) to the system PATH variable
  3. download Git for Windows
  4. install Git for Windows — when installing, choose Use Git from Windows Command Prompt option
  5. go to a temporary folder
  6. in the command line execute git clone — it will download Rebar Erlang build tool
  7. now go to rebar folder and execute bootstrap.bat — it will build Rebar tool
  8. copy rebar and rebar.cmd files from the rebar folder to the Erlang bin folder (i.e. c:\Program Files\erl6.1\bin)

Now you have installed Erlang, Git and Rebar.

My new book is published

Jun 1, 2014, 22:05

My new book on WebRTC just became available on Amazon:

41e1-ggY1qL._BO2,204,203,200_PIsitb-sticker-v3-big,TopRight,0,-55_SX278_SY278_PIkin4,BottomRight,1,22_AA300_SH20_OU01_.jpg WebRTC Blueprints

An error occurred while loading or saving gnome-terminal

Nov 8, 2013, 16:12

...nautilus, whatever

If you see this message, you can try to do this:

chmod 700 /tmp/gconfd-username/

You should also restart the machine or X server or VNC server (in case if you're working via VNC).

p.s. you need to replace 'username' in this command with your actual username

Ctrl + ↓ Earlier