You are heresize

size


RDP, Terminal Server, and 2 Annoyances

I use terminal server a lot with my clients. I was trying to set up RDP sessions to run a certain program and quit (rather than just opening up an RDP session and running the program from there). I do this so that I can run a program and get out. For instance, I have some web-based server management interfaces that are only available from inside the network (like for the phone systems) and if I just want to go in and fix something, I don't want to have to run a VPN session and I don't want to get a full desktop to start a browser, so I just fire off the browser as a program in an RDP session and I'm in and out!

However, I was running into 2 annoyances:

1) I would set up an RDP session to run one program, but the session would hang when the program exited. The session would stay hung so that when I came back and re-connected, I got the same hung desktop session back!

2) No matter what I changed in the RDP settings or on the server, every time I opened an RDP sessions file, my window would have scroll bars with my desktop bigger than the window that RDP opened!

Both were pretty annoying and had different solutions.

Tip: Largest Files in Linux

Here's a quick tip on how to find the largest files on your Linux system. If you are running low on disk space, knowing your largest files can be very handy for getting rid of especially large unneeded files and getting things going, again. I know I sometimes set aside a backup of a database that might be 20GB or more, such as during a migration or upgrade or debug session, then end up forgetting I have it sitting there. When space gets tight, I look for the largest files first, then I don't have to spend a lot of time getting things back where they belong.

This command will list the 30 largest files on your system and sort from largest file size down in size. This 2015 version is improved and takes into account filenames with spaces or escaped characters:




find / -mount -type f -printf '%s|"%h/%f"\n' | \
 awk '{FS="|"; printf "%10d MB\t%s\n",($1/1024)/1024,$2}' | \
 sort -rnk1 | head -30

Run it as all one line.

Did this help you? You can help me!


Did you find this information helpful? You can help me back by linking to this page, purchasing from my sponsors, or posting a comment!


+One me on Google:


Follow me on twitter: http://twitter.com/mojocode









Affiliation Badges