JuiceBlog A TFC - Internet - Debian - Juice blog. Formerly named the most famous orange juice of the world, ever!
Posts with the tag screen:

Direct Connect with NCDC

A proper DC++ / ADC compatible implementation was one of the more important reasons I got my server. In a graphical environment I use EiskaltDC++ as a client, so I had no experience with text-based DC clients. Today, I finally had time to set up NCurses Direct Connect. First, I compiled it myself. You should always compile things yourself if they aren’t available in your repository. Then I created a new user ’ncdc’ to run the programme. adduser ncdc I created a very basic, simple init.d/ script that executes this line: su -c screen\ -U\ -dmS\ ncdc\ ncdc ncdc This will start NCDC with its own user (giving it limited rights) and in a UTF-8 enabled screen that is automatically detached.

Detached Screens

If you want to start something automatically, you can use these commands either after logging in (user startup) or without logging in (system startup). But what if you want to run something from init.d/, you’re going to have to exec it as a specific user. See my previous post on NCDC to see why anyone would ever need that. First off, I had to find out how I’d start a detached screen and execute a command. That was pretty easy: screen -dmS screenname command But since I wanted to create an init.d/ script, I had to change the user with su first - or even better, just execute a command as the user.