Summer Nights

A blog on embedded and real-time systems as well as on general computing issues


Share Data using FTP Server

First create an appropriate user, with no shell access, belonging to ftp-users group and chrooted jail at /srv/ftp/xxxx: useradd ftp-userxx -G ftp-users -s /bin/false -d /srv/ftp/xxxx Now assign a password to the user, and make it the owner of the shared folder: passwd ftp-userxx chown -R ftp-userxx /srv/ftp/xxxx Now copy the files to be shared […]

Reset USB 3.0 Device from the Linux Shell

If you are getting errors like: cdc_acm 3-11:1.2: acm_submit_read_urb – usb_submit_urb failed: -12 or xhci_hcd 0000:00:14.0: ERROR no room on ep ring or tty_port_close_start: tty->count = 1 port count = 0. then most probably xhci (USB3) module is causing this problem. Generally you can fix this problem (at least temporarily) by removing and re-inserting the […]

php does not show any output

If the php from the linux cli is not showing any output, then most probably it is crashing with a fatal error. It will not show any output if the errors are turned off in /etc/php5/cli/php.ini. Turn on the errors by setting display_errors = On and you will find out what is causing the problem […]

Using svn+ssh from Eclipse through Pageant & Plink under Windows 7 64-bit

So I just want to use my svn repositories that are already configured and ready to use with svn+ssh protocol. I can check them out through TortoiseSVN as I have explained in one of my previous posts. Now the next step is to integrate it directly in the Eclipse IDE. Here are the steps needed […]

backur: A Configurable Python Utility for Optimized Incremental Backups

I have been on the lookout for an efficient small utility to incrementally backup my Linux server to an external drive. I have looked at various options like Back in Time and Backup PC. They are however too advanced and too automated for my purpose. My requirements are the following: Incremental backups Console based Preservation […]

Setting up svn+ssh on Ubuntu Server and Tortoise SVN as client on Windows PC

First you need to setup the basic ssh connectivity using e.g. putty and sshd. This is not the focus of this short report. On the Windows, use Pageant to cache the ssh key. The target in the “Shortcut to Pageant” should be similar to: “C:\Program Files (x86)\PuTTY\pageant.exe” C:\path\private_sshkey Check again that you can now connect […]

Write your own Python Plugin for Dreambox Newnigma2 and Map to a QuickButton

I have a Samsung TV that is connected to the Dreambox 800SE. The audio output of the dreambox goes to a Sony Blu Ray player. I can turn on the Sony Blu Ray player through Samsung TV remote control but not through Dreambox remote. This always requires also having the Samsung remote handy. What I […]

Samsung TV Remote Control over LAN/WLAN using Python

For quite some time, I have been looking for a method to control my Samsung UE55C8000 TV using Linux scripts. Finally, I found this forum post on SamyGo that provides an example using Perl. As I like to do scripting in Python, so I have translated the script to Python with some minor changes. As […]

Remote Desktop to a Virtual Machine on VirtualBox running on a Headless Server

I have followed the excellent directions given by Falko Timme at howtoforge. I am copying his directions here with some changes to install a Windows 7 system. First you need to add the VirtualBox repo to the Ubuntu resources.lst: emacs /etc/apt/sources.list Add the following line to it: deb oneiric contrib Then download and install […]

Useful tmux Commands

tmux is a powerful console window manager. The most valuable feature of tmux is the ability to detach from a running tmux session, exit the ssh session, relogin to ssh again and resume the tmux session. This is simply beautiful. Here I list some handy tmux commands. tmux starts the tmux. ^b d detaches from […]

Previous Posts Next posts