How can I set a flatpak application to run on startup? - linux

I wanted to post this because I didn't find the answer elsewhere and this might just help someone else.
I have Slack installed on my Ubuntu 18.04 Bionic Beaver via FlatPak and would like to have it launch as soon as I login.
Because it is installed via FlatPak, I cannot find it in /usr/share/applications in order to add it to startup applications

You need to install FlatPak applications via Gnome Tweaks. If you haven't already installed Gnome tweaks then run
sudo apt install gnome-tweaks
Launch Gnome Tweaks and navigate to "Startup Applications".
The flatPak applications are easily found from here.

You could add an entry to your .gnomerc, .Xinitrc etc such as
snap run (program)

Related

run visual studio code in linux

I just use 'code' in ubuntu.
i download code_1.74.2-1671533413_amd64.deb in site
sudo apt install ./code_1.74.2-1671533413_amd64.deb
then update package
sudo apt-get install apt-transport-https
sudo apt-get update
apt-get install code # or code-insiders
then i have problem like this.
/mnt/c/Users/jhyun/Desktop$ code
To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the code command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyway? [y/N]
how can i solve this?
You have two options when running VSCode under WSL:
Run the Linux version, as you are doing currently.
The Linux version should run fine, but is limited to compiling, running, and debugging Linux applications. It will not be able to use the Windows versions of any of your development tools. This may or may not be a problem for you. If you only plan to use Linux toolchains from WSL, then the Linux version of VSCode will handle those just fine.
Run the Windows version and install the WSL Extension or the Remote Development Extension Pack (which includes the WSL Extension).
This has the advantage of being able to use Linux tools (through a "shim server" that is automatically installed in WSL when you launch code) or native Windows tools.
As a native Windows application, it should also be a bit better integrated with the Windows desktop.
There are just very few reasons (and I can't think of any of them at the moment) why you would want to use the Linux version in this case.

Install package managers over SSH & FTP

i have an device running on Pure Linux, there is no Package installer installed on that, the only thing i have is SSH and therefore also an Terminal. Commands like apt-get, dpkg, yum dont work.
How do i install apt-get over SSH? I've saw some suggestions that use yum, make or dpkg to install apt-get, but since i've neither of them...
For debian based systems exists a tool called apt-offline. That's perfect in that scenario.
https://wiki.ubuntuusers.de/apt/apt-offline/

Ubuntu Server Install GUI and Remote Access

How can I install a GUI for a remote server and then access it over RDP (or similar)
I've done a sudo apt-get install ubuntu-desktop and sudo apt-get install xrdp, but when I go to access it and login, I just get a blank screen. I presume the windowing system hasn't started?
Thanks
Did the desktop fail to start up because there is no display attached?
I think the easiest approach is to use LXDE (Lightweight X11 Desktop Environment) with xrdp.
Refer This Link

Install Gnome without using yum on centos 4

I'm using CentOS 4.8 , i386.
I would appreciate if any one can help me to install Gnome (or any other GUI) while there is no yum available.
I tried to install yum but since It's a company's server with many things installed on it,
I faced with many problems.
However I decided to find a way to install Gnome without using yum
And please take note:
I'm a neophyte!
Did you try getting the source-code and building it manually?
You can get the code from
http://www.gnome.org/getting-gnome/
GNOME also provides a build tool to make the installation easier.
But, as it has already been pointed out - Servers are best managed over command line. It will give you more power and control over what you are doing.

How to install libmysql under Cygwin?

I am trying to build db-mysql extension for NodeJS under Cygwin. The problem is, that it requires libmysql development libraries and include files. I have no idea how to install (and where to get) this stuff to work with Cygwin. Under Ubuntu i would write something like this:
sudo apt-get install libmysqlclient-dev
But this is not possible under Cygwin. Also there is no available libmysql package when I run Cygwin's setup.exe. Does anybody know how to solve this isue?
I have installed wamp under Windows which includes MySQL database. I would like to use databases from that installation under Cygwin, is that possible?
Thanks
It's available from Cygwin Ports, a large repository of additional Cygwin packages that can be installed through Cygwin's setup.exe.

Resources