18.04 – xrdp session does not start

I’m trying to use xrdp on ubuntu 18.04. I am able to make an initial connection (using remmina), and get a login prompt/box. When I give credentials, the logs (below) seem to show that the credentials were successful and that the window manager started, but it also seems to show that it stopped again essentially immediately (based on the timestamps).

I had originally done nothing to configure the system, this was all “out of the box”.

I also started putting a bunch of debug messages in the Xsession file. This file does get executed, and seems to hang up at the very last point, where it’s evidently “sourced” the file /etc/X11/Xsession.d/99x11-common_start That file in its turn has just run exec /usr/bin/ssh-agent /usr/bin/im-launch /bin/bash /home/xxxxx/.xsession… but there originally was no .xsession file.

Since that initial realization that there was no .xsession, I created one, and I’ve tried a few things in there including echoing a message to a file–so I know it’s executing that file, and starting a gnome-terminal. The text output is successful, but the terminal doesn’t start.

This is the current .xsession file:

echo RUNNING DOT X-SESSION >> /tmp/xsession.out
xeyes &

that output message is dumped into the output file, but neither xeyes nor gnome terminal starts.

Further, after several minutes, the session shows a dialog box:

enter image description here

After hitting “OK” on that dialog, it returns to the login prompt/window.

What might I be missing, how should this work?

(20200531-15:28:27) (DEBUG) xrdp_wm_log_msg: connecting to sesman ip port 3350

==> /var/log/xrdp-sesman.log <==
(20200531-15:28:27) (INFO ) A connection received from ::1 port 50352

==> /var/log/xrdp.log <==
(20200531-15:28:27) (INFO ) xrdp_wm_log_msg: sesman connect ok
(20200531-15:28:28) (DEBUG) xrdp_wm_log_msg: sending login info to session manager, please wait...
(20200531-15:28:28) (DEBUG) return value from xrdp_mm_connect 0

==> /var/log/xrdp-sesman.log <==
(20200531-15:28:28) (INFO ) ++ created session (access granted): username xxxxx, ip ::ffff: - socket: 12
(20200531-15:28:28) (INFO ) starting Xorg session...
(20200531-15:28:28) (DEBUG) Closed socket 9 (AF_INET6 :: port 5910)
(20200531-15:28:28) (DEBUG) Closed socket 9 (AF_INET6 :: port 6010)
(20200531-15:28:28) (DEBUG) Closed socket 9 (AF_INET6 :: port 6210)

==> /var/log/xrdp.log <==
(20200531-15:28:28) (INFO ) xrdp_wm_log_msg: login successful for display 10

==> /var/log/xrdp-sesman.log <==
(20200531-15:28:28) (DEBUG) Closed socket 8 (AF_INET6 ::1 port 3350)
(20200531-15:28:28) (INFO ) calling auth_start_session from pid 30078

==> /var/log/xrdp.log <==
(20200531-15:28:28) (DEBUG) xrdp_wm_log_msg: started connecting

==> /var/log/xrdp-sesman.log <==
(20200531-15:28:28) (DEBUG) Closed socket 7 (AF_INET6 ::1 port 3350)
(20200531-15:28:28) (DEBUG) Closed socket 8 (AF_INET6 ::1 port 3350)
(20200531-15:28:28) (INFO ) /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
(20200531-15:28:28) (CORE ) waiting for window manager (pid 30079) to exit
(20200531-15:28:29) (CORE ) window manager (pid 30079) did exit, cleaning up session
(20200531-15:28:29) (INFO ) calling auth_stop_session and auth_end from pid 30078
(20200531-15:28:29) (DEBUG) cleanup_sockets:
(20200531-15:28:29) (DEBUG) cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdp_chansrv_socket_10
(20200531-15:28:29) (DEBUG) cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdpapi_10
(20200531-15:28:29) (DEBUG) cleanup_sockets: failed to delete /var/run/xrdp/sockdir/xrdpapi_10
(20200531-15:28:29) (INFO ) ++ terminated session:  username xxxxx, display :10.0, session_pid 30078, ip ::ffff: - socket: 12

==> /var/log/xrdp.log <==
(20200531-15:28:31) (DEBUG) Closed socket 17 (AF_UNIX)

user research – Best Practice for video start image

Personally, I don’t think you should always pick an image from the video. It actually depends on the situation.

I’ve got an example from my recent UX review: a product site with a short video, demonstrating product features, etc.

This video was surrounded with a text, describing the main product idea. And the start image for this video was a random image from the video itself, but, as we all know, picture worth a thousand words, so I suggested to get an refined image describing the main product idea and place it as video start image.

Now we have a text, an illustration for that text and a demo video combined together.

Another example is about an image from the movie itself. There is a local online tv-series streaming service which I use every day. It has a lot of titles, which are grouped by seasons and for every season there is a single page with all episodes. And every episode has a start image taken from the episode itself. It’s okey, until start image is a spoiler image, i.e. something I don’t really expect to see before I watch the epicode by myself!

From the other hand, at YouTube I wish to have a video starting image taking from the video itself so I can decide whatever it’s a right video to watch (there are a lot of music videos with a different video track, etc).

So, it actually depends on the situation.

So when neo-Nazis protest there are “very fine people on both sides,” but when black and brown people protest it’s time to “start shooting”?

It is also important to examine motives. 

The Charlottesville protest was triggered by the plan to remove a statue honoring a treasonous leader of rebel forces that took up arms against his own country and was responsible for killing over 600,000 Americans or 2% of the US population which would be the equivalent today of killing 6 million. They were traders. The purpose of their treason was to protect the immoral institution of holding blacks in slavery. 

The more recent protests we’re about the latest in a string of murders committed under the color of law by government agents (police) targeting the same group that Robert E Lee fought to keep in bondage. 

Clearly there is an imbalance in the motives of the two protests and Trump’s comments demonstrate which side he favors. 

ubuntu – Ruby program start from console but fail from service & shell script

I’m a developer.
I have a ruby program and I have to launch it as daemon.

This program has a shell script

while sleep 60
    if pgrep -fa bin/bot >/dev/null
        echo 'works'
     pkill -f bin/bot
        ruby $dir/bin/bot >> $dir/logs/bot.log 2>&1 &!

    if pgrep -fa mongod >/dev/null
        echo 'mongo works'
        mongod --fork --logpath /var/log/mongod.log

I’m not the author.
I fix the ruby script.

If I launch in console from the right folder

ruby $dir/bin/bot >> $dir/logs/bot.log 2>&1 &!

The script works.

When I use the shell script in a service I have ‘mongo works’ but my ruby process fail.

❓ASK – What Is Bitcoin? START HERE! | Proxies123.com

Most people seem to claim that Bitcoin was born on the 31st of October in 2008 by a group of people who took on the name of Satoshi Nakamoto. However, on the other hand, there is some that claim that Bitcoin wasn’t born until the beginning of 2009. The exact date that Bitcoin was introduced to the world doesn’t really matter, what matters is understanding what Bitcoin is.

What Is Bitcoin.jpg

When Bitcoin was introduced to the world by the group of people who created the currency they explained to everyone that this currency was known as a decentralized digital currency. They went on to claimed that it would allow people to send currency around the world in real time without the need of a third-party to perform the transactions. This meant that you no longer needed PayPal, Visa or even a bank to transfer currency anywhere in the world.

Bitcoin is actually separated into two separate components. The first component is the bitcoin-the-token that is actually a snippet of code that represents the ownership of the digital currency. You can think of this as a virtual IOU. The second component of Bitcoin is the bitcoin-the-protocol. This is the network that distributes and maintains all the ledgers of balances for the bitcoin-the-token. When you combine the two together, you now have Bitcoin.

Bitcoins are not a printed currency that you can take to a market to buy merchandise, but instead, they are a currency that is produced by computers worldwide that use a free software. As the concept started to grow and people started to invest in electronic currency people started to characterize this currency as a cryptocurrency.

The developers of Bitcoin explained the system as an electronic payment system that was based on mathematical proof. The idea behind Bitcoin was to produce a new means of exchange that was independent of any central authority. This gave people the chance to transfer currency electronically in a secure environment that used a verifiable and immutable way to complete the transactions.

The world still has no idea who actually developed Bitcoin. Some claim it was a single man that called himself Satoshi Nakamoto. While other indications show us that it was a group of software developers that came up with this idea and developed the program. The members of the group called themselves Satoshi Nakamoto.

Bitcoin has grown in popularity for the simple reason it is decentralized. No single institution or government controls the Bitcoin network. Instead, the network is maintained and controlled by a group of volunteer codes that are run on an open network. The network is maintained by groups of dedicated computers that are spread around the world.

Bitcoin has solved the double spending problem of electronic currencies. In the electronic fiat currencies that banks control the digital assets can be copied and re-used. Banks around the world have control over the traditional system. However, with Bitcoin no-one has control because the transactions are distributed by an open network.

With Fiat currency, a bank can print as many dollars, euros, yens or whatever currency they choose. There is an unlimited supply of Fiat currency that a bank has. The problem with this system is that banks can manipulate the value of this currency. This is a problem for the holders of this currency. They are the ones who bear the cost in the end.

The supply of Bitcoins is tightly controlled by an algorithm. Each hour a small amount of Bitcoin is produced. This will continue on until the cap is reached. Once 21 million Bitcoin has been produced it stops. The supply and demand of Bitcoin are very attractive. Since there is a cap on how many Bitcoins will be produced, but there is no cap on the demand of this currency. Therefore, as the demand grows so does the value of Bitcoins.

As an owner of Bitcoins, your identity is kept secret. There are no governmental agencies that need to verify who you are. Furthermore, there are no controls set in place demanding that you prove who you are when purchasing Bitcoins. Therefore, this makes the Bitcoin currency ideal for criminals, money-launderers, and terrorists. Your identity is kept a secret when making all transactions online.

Bitcoins are broken down into units. The smallest unit of a Bitcoin is called a satoshi. The Satoshi is one hundred millionth of a Bitcoin or 0.000000001. This Satoshi is worth around one-hundredth of a cent. The Satoshi conceivably enables microtransactions possible where traditional electronic money can’t perform these types of transactions.

Why do multihop LN payments start settling from the recipient’s end?

In HTLC, after all the parties have locked their funds in the contract, claiming payment happens in a reverse way, starting with the receiver who reveals the preimage of the corresponding payment hash.

What would be the problem if it had started with the sender? After the receiver confirms receipt of the contract, it sends an acknowledgment to sender. Sender releases preimage, timelock set in increasing order across the path, contract initiated by sender having the least locktime. Receiver is the last node to settle the payment.

enter image description here

For reference, I am adding a picture so that one can visualize what I am trying to say.

How to start your own writing business

Reading through the preceding nineteen posts, I somewhat have mixed feelings for the topic at hand; it might be the case that I am too out of touch of how things operate in today’s day and age but clearly we have come a long way when you look back at how things were done – let’s say 5-6 years ago. I started a writing business when I was in grade 10 (High School), this may sound prehistoric but I am talking about almost 2007/08; these were the days when Blogging, Tumblr and other stuff we’re still in their infancy.

My initial breakthroughs were presented from writing email templates for Russian clients but once when I discovered that I could have a good turn around writing promotional articles I started marketing myself as an article writer through freelancing platforms :cool: (Odesk to be specific) and within a span of two months I landed healthy projects concerning the health and fitness niche.

With the inflow of constant work I had to find collaborators to distribute the work load – fast forward 8 months later I was managing a team of 9 people (including an administrator) and churning out project after project for clients from literally every major country. The income was quite decent, I was in the final year of my O’levels and making almost as much as anyone out there; put it simply life was good.

In the above span of almost a year I had made decent enough contacts to ensure that the inflow of work was there to:

(a) Make sure my employees were covered – payroll
(b) Expenses of the label to be covered – expenditure
(C) Profitability for me
(d) Generating Capital to reinvest into the Business for Growth

Mind you at this point in time I didn’t even have formal high school certification; I was completing my senior year and barely an 18 year old. This particular feature of my life lasted maybe for another 6-7 months and as it is with every good thing in life, the latter period diminished when due to some personal family issues I had to sell this setup for a surge in cash. One of the collaborators that I worked with previously offered a good price; it was exactly what I needed on an absolute urgent basis but in return I had to walk away from two years of my gut busting hard work – I had no other choice so I did what was needed.

When my personal family crisis was over (It almost took a couple of years) I turned to writing once again; the rules had changed quite a bit with new Google updates, better indexing algorithms and what not so initially I was quite suspect of whether or not I would be able to reinvent the wheel – like how I did two years ago. I was quite demotivated, to be honest, hence instead of going towards article writing I jumped ship and started with academic literature.

Having no prior experience, and no idea where to begin I had to literally pull all nighters in learning the art of conjuring academic thesis and papers; One thing I noticed right away was that academic writing, although quite challenging pays relatively handsomely when compared to article writing therefore seeing a lucrative assurance in investing my time for the next 1 year I took up the said occupation on a full time basis.

Now these kind of writing gigs were not my cup of tea hence I wasn’t doing that well individually. It was just enough to pay the bills and feed me by the skin of it’s teeth. I was really not happy with where my life was headed so I dropped everything, picked up whatever savings I had and migrated from Karachi, Pakistan to Kuala Lumpur, Malaysia in the mid of 2013; primarily looking for greener pastures. Ever since (Two and half years to be exact) I have been working here – doing other things (not writing business) when until very recently I realized that I should come back and give article writing another go.

The first contact that came to my head was the guy I previously sold my label to; I picked up the phone and called him directly. To my surprise what I found out was that the business had gone bankrupt almost 3/4 years ago due to some Google Panda update and they packed up shop somewhere during mid of 2012 – Right now the dude is working for a private studio (facepalm). Hearing this from someone who I literally left a budding business I decided to dig deeper and contact other competitors from that time; eighty five (85) percent of the companies that offered article writing or marketing services in 2009/2010, in Pakistan had literally gone out of business – The survivors we’re distributed in two categories.

(a) Businesses who trickled down from other major establishments – Such as leading software houses, web development companies etc
(b) Businesses who targeted a single niche / area of expertise and stuck their guns to become the brand associated with it

The second trend (labeled (b)) I believe is the true reflection of how a writing business can survive in the long run i.e. take up a single area of expertise; that you genuinely know stuff about – develop something that is original, massively filled with quality facts and figures and is something that you can consider the back of your hand while having an absolute passion about it.

Once you develop content of such quality, your articles become relevant for longer periods of time and therefore a label gets more depth as a business; I understand that it narrows down the horizon for a writing business but I believe that same business would survive longer since becoming an expert on a given genre helps market your content better. Basically you’re bottling the spectrum of what you do as a business so that irrelevant clients are filtered through and you work with people who

(I) Are looking for content that you have expertise in
(II) Will be willing to negotiate with you better

Another plus for this kind of tactic could be the pricing that you can demand from the client. Since these articles / content would be as intensive as anything the client might find for a good price or two – you can literally dictate on how much one particular piece of written material is worth for. If the client really really needs what you have to offer; there isn’t any doubt that he/she would be willing to pay – to get that unpublished, original and high value content.

As an individual I do not believe that becoming the jack of all trades is something that would bring in more business; for the short term yes, it could help create new revenue streams but at the end of the day, a label would be sacrificing quality for more work inflow which in the long run can potentially damage a writing business’s image and henceforth – profitability.

Develop content that you’re really good at and make sure it’s highly original and can fully relate to the target market – you do this correctly; you survive the ups and downs of the industry and ride the way until shiner and merry days come along.

P.S. I myself am planning on resuming article writing for the things that I love i.e. (Cricket – The Sport); Been watching, playing and breathing this game since I was 4 years old and now my plan is to do something that I love and am a diehard fan off.


[ Politics ] Open Question : When does the Race War start?

I’m thinking 💩 starts getting real in about ten to fifteen years. There’s been nothing but Race war throughout history. There’s a lot worse than Obongo. Wait till a Stacey Abrams type is President. Or AOC. Blueninja, I don’t have a problem with people of other Races. I have a problem with Whites being erased from their Homelands via mass non white immigration. Ichabod, I agree. We need to trash Christian moral standards. Even atheists have them, but don’t realize it. MAGA, sorry my dude, but Christ Cuckery morality is why Whites are on the ropes. I’m glad you’re listening to E. Michael Jones, at least.

Making a ‘Darkvision’ Mechanic for a Unity C# Game, Not Sure Where to Start

I am endeavoring to make a small multiplayer dungeon crawler and would like to introduce a mechanic like ‘Darkvision’ from table-top RPGs. The desired effect would be that where there is some illumination, it would be brighter, and where there is no illumination, there would be a black-and-white FLIR effect out to a little distance from the player (~20 meters/units) and nothing after that. This would only be for some players and not for everyone.

Thank you for your time,

android development – Where do I start coding an App with little Time and no Experience?

I have a project for university which involves building a mobile App. My own part is the development of the App and the GUI, but I’m new to programming actual Software and Apps. So I just started doing some tutorials from the official Android Studio Website, but I don’t really have that much time to get to know every little Detail there is to know about coding an App. So that leads me to my question: Can you give me some hints on which topics and tools I should start checking out that are important for my Project and especially where I find some sort of “tutorial” on those? Basically all the app has to do is:

  1. Take Picture (but not from Camera Activity, it should preview the picture with a sort of a “mask” over the picture
  2. Prompt user for various inputs (Free Text, Checkbox, DropDown Menu etc.)
  3. Send inputs + Image to server