Skip to content

Instantly share code, notes, and snippets.

@d3m3vilurr
Last active August 29, 2016 19:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save d3m3vilurr/5c1ce70afffca3f30bb57836f8bf982e to your computer and use it in GitHub Desktop.
Save d3m3vilurr/5c1ce70afffca3f30bb57836f8bf982e to your computer and use it in GitHub Desktop.
Windows On Linux

Upgrade ubuntu release version

sudo -s
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
do-release-upgrade -f DistUpgradeViewNonInteractive -d
dpkg --configure -a
apt-get update
apt-get dist-upgrade

X Server

Install Xming then type this in bash shell

echo "export DISPLAY=:0.0" >> ~/.bashrc

Fix DBUS problem

sudo -s
cd /usr/bin
ln -s /bin/dbus* .
sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf

sshd daemon

sudo -s
aptitude install openssh-server
vi /etc/ssh/sshd_config
# append or edit this values
ListenAddress 0.0.0.0
UsePrivilegeSeparation no
PasswordAuthentication yes

service ssh restart

This daemon not autoload at the startup bash terminal. So if you need sshd daemon, need to start ssh service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment