Application running in a particular directory after installation - installation

I am running Fedora 36. On my way to install Discord, I came through a process, here it is:
Downloaded discord.rar.gz
Unpack the file
Open the extracted directory
Found the file Discord with no extension:
I just double-clicked the file, it started installing (in GUI).
After it was installed, I still could not find it in App Drawer and when I run the same Discord file with no extension, it just opens the Discord app.
I am curious to know what's happening here. How can I get the app in the app drawer? Note that I tried copying the file to another location and then double-clicking it. It did nothing.
I clicked the file Discord in the directory. I was expecting that it was an installer and it would install the application, and it would be available in the app drawer. But, after it was installed, it didn't appear in the app drawer. Also double-clicking the same file again, opens the Discord app.

These are the steps to take if you want to keep changes to a minimum:
Download Discord for Linux tar.gz
Create the directory where you will install Discord
sudo mkdir /usr/share/discord
Extract and store in the directory created in the previous step
sudo tar xvzf discord-0.0.17.tar.gz -C /usr/share/discord
Copy the application launcher to the right place
sudo cp /usr/share/discord/Discord/discord.desktop /usr/share/applications
Point the icon to the right location
sudo sed -i 's|Icon=discord|Icon=/usr/share/discord/Discord/discord.png|g' /usr/share/applications/discord.desktop
Now if you go to Applications > Internet should be there.

Uninstall the app, or delete everything associated with it. Redownload, move to applications, and there open it for the first time (install it), that should do the work

Related

Installing Github .zip files on Chromebook via Linux

I'm using a Linux Debian terminal, trying to install a Github .zip file by following a walkthrough (from Chromebook). They're using a Windows terminal and access the zip file from a G: drive. They run the following:
C:\Users\zasur>G:
G:\>cd filename.zip
G:\filename>npm install
Which installs the Github zip. I've looked all over online and tried a few different solutions but can't get past the second command they run.
I was able to open /mnt/chromeos/MyFiles/Downloads from Linux by sharing the Downloads folder with it.
I'm not sure how to change the directory from here to the filename.zip and/or run commands from it. Whenever I try to run cd filename.zip or cd /mnt/chromeos/MyFiles/Downloads/filename.zip it always fails. Is this even possible on a Chromebook?

wkhtmltopdf opens an application on OSX and doesn't finish its job till I focus this application

As far as I read wkhtmltopdf is using a patched version of Qt so that it can be executed WITHOUT using a graphical server such as Xorg, etc but when I run it in my OSX, it opens an application, it's visible in dock and when I press Command-Tab it's visible in list of applications shown, the icon of this app is a text "exec" in a black background. As soon as I focus this app it gets closed and wkhtmltopdf finishes its job but if I don't focus it, it doesn't finish its job at all.
Any ideas what can I do? I want it to run in background and respond automatically, I can't sit behind the system and Command-Tab each time a request is sent.
Update:
I tried it with an Ubuntu Server and it raises this error:
wkhtmltopdf: cannot connect to X server localhost:10.0
when I try to run wkhtmltopdf directly in command line. Isn't it against to whole purpose of patching Qt so that it doesn't need an X server?
It got solved after I faced the problem in Ubuntu, by searching the error raised in Ubuntu I could find this post wkhtmltopdf: cannot connect to X server which seems led me to install the package from sourceforge (both in OSX and Ubuntu) and it solved my problem (both in OSX and Ubuntu)
You must copy it into directory : /usr/local/bin, make sur it's executable and add symlink of wkhtmltopdf.sh like :
1- the command :
brew cask install wkhtmltopdf
2 - insert the binary in directory /usr/bin so the browser can't have permission to execute in this directory.
You must copy the wkhtmltopdf.sh to directory /usr/local/bin cause the browser have permission in this directory like:
sudo cp /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf.sh
3 - After make sur the binary have permission of execution like :
sudo chmod a+x /usr/local/bin/wkhtmltopdf.sh
4 - so now you can test, it's work like:
/usr/local/bin/wkhtmltopdf.sh http://www.google.com google.pdf
it make download the pdf in the current directory in your terminal
5 - Optional
now you can add symlink in your directory /usr/local/bin like
ln -s /usr/local/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf
6 - copy to the /usr/bin/wkhtmltoimage into /usr/local/bin/wkhtmltoimage like:
sudo cp usr/local/wkhtmltoimage usr/local/bin/wkhtmltoimage
8- make sur this is executable too:
sudo chmod a+x /usr/local/bin/wkhtmltoimage
I Hope it's help you

How to install firefox developer edition?

I downloaded firefox developer edition and extracted it from tar.bz2, tryid to install it by running this ./firefox command but it opens it only temporarily but I wnat to install it to my computer. I use Linux Mint 17 cinnamon
Download it from here - https://www.mozilla.org/en-US/firefox/developer/
Save the folder somewhere and open the file called "firefox" (the one next to firefox-bin)
As a linux Mint user this is the most effective method I have found. It allows me to keep stock Firefox separate from developer.
Download from here https://www.mozilla.org/en-US/firefox/developer/
Extract and move.
$ tar xjf firefox-45.0a2.en-US.linux-x86_64.tar.bz2
$ sudo mv firefox /usr/local/firefox_dev
Create a desktop entry at ~/.local/share/applications/firefox_dev.desktop
OR
on some distros here /usr/share/applications/...
Formatted Like...
[Desktop Entry]
Name=Firefox Developer
GenericName=Firefox Developer Edition
Exec=/usr/local/firefox_dev/firefox
Terminal=false
Icon=/usr/local/firefox_dev/browser/icons/mozicon128.png
Type=Application
Categories=Application;Network;X-Developer;
Comment=Firefox Developer Edition Web Browser.
Should show up in the app panel promptly.
I have upgraded my firefox to firefox-developer using the steps below:
sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
sudo apt-get update
sudo apt-get install firefox/trusty
In Fedora 23, you can intall firefox developer edition, run it like so:
curl -L http://git.io/firefoxdev | sh
Prerequisites
1 File manager nautilus, nemo etc
2 gnome-panel
Steps
Download the firefox developer edition here:
https://www.mozilla.org/en-US/firefox/developer/
Open nautilus file manager in sudo mode by using following command
sudo nautilus
Make Folder firefox-developer inside /opt to save extracted files
a. Using command line
sudo mkdir /opt/firefox-developer
b. Using GUI
Extract the tar file and add firefox folder to /opt/firefox-developer/
a. Using command line
cd /opt/firefox-developer
tar xvjf path_of_tar_file
b. Using archieve manager
Change permission for /opt/firefox-developer folder
a. Using terminal
sudo chmod 777 -R /opt/firefox-developer
we are using -R for repetitive changing because we have to change
permissions for contents inside folders also.
Open /opt/firefox-developer/firefox using nautilus file manager
a. Select file named firefox
b. Open Properties>>Permissions tab >> Allow Executing file as program >> Close
Open Nautilus:
a. Click on files icon at upper-left corner of screen >> Preferences >> Behaviour tab
b. click on “Run executable text files when they are opened”
Open terminal because we have to create launcher for opening application:
gnome-desktop-item-edit ~/.local/share/applications --create-new
new dialog-box will be appeared
a. Name>> Give any suitable name for shortcut e.g. Firefox-Developer
b. Command>> Click on Browse and select path of /opt/firefox-developer/firefox/firefox file
c. Comment>> Add suitable comment for more-info about application
d. icon>> Click on icon at left side box and select your custom icon.
The Firefox Developer Edition is available as part of Ubuntu Make:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
After that just run the Firefox installer without sudo (Choose installation path then language and it's Done ):
umake web firefox-dev

I can't get ShoesRB to install in Ubuntu 14. Is the issue the .run or .install file types?

Whenever I attempt to open the ShoesRB install files for Linux, which are both "script.run" and "script.install" files, they open in a text editor instead of an installer. When I attempt to run them in the terminal, I'm getting strange root authentication errors. I know the root password is correct.
Does anybody know how to correctly install ShoesRB in Ubuntu 14?
First of all download the executable from http://shoesrb.com/downloads/ according to your linux machine. This you have already done. On double clicking the downloaded .run file (say filename.run), you might not be able to run it because it would not be having executable permission -
This you can change by right clicking the script -> properties -> permissions -> Check the 'Allow executing file permission'
Or
from terminal by
chmod +x filename.run
Next you need to run this by:
sudo ./filename.run
Enter correct root password and you are good to go. This script actually make a hidden .shoes directory in your home and all shoes related files and executable are present in there. It also copies a desktop entry for shoes to /user/share/application, which you open to open shoes applications.
Moreover you can copy that desktop entry to your desktop and make it executable by:
cp /usr/share/applications/shoes.desktop ~/Desktop/shoes.desktop
chmod +x ~/Desktop/shoes.desktop
All done! Just double click the shoes icon on your desktop you can open your shoes apps now.
Hope it Helps :)

OSX Equivalent of WinSCP's Fully-Automated Local-Remote SFTP Sync?

I fondly remember working with WinSCP and using the fully automated local-to-remote syncing functionality, where the app would monitor a directory hierarchy and send changes to the remote server as they happened.
Is there an app available on OSX that accomplishes the same thing? I haven't really been able to find anything. When I do find something promising, it always turns out to be a traditional syncing app, where you need to initiate the sync command manually and it then scans the hierarchy to find changed files. That takes too long and isn't automated.
Been looking at the File System Events API, wondering if a small app could be pieced together with a small utility to trigger hierarchy changes and feed the changed directory to rsync or something.
Thanks for any leads!
There are two Mac-specific utilities you may be able to utilize to make your job easier:
Automator (link and link)
Folder Actions (link link and link)
Both tools have AppleScript as a common thread (which can be used to execute shell commands). You might be able to write a small AppleScript that is launched when a folder changes to call rsync and perform the service you require.
Well, I had the same kind of problem and it is possible using these together: rsync, SSH Passwordless Login, Watchdog (a Python sync utility) and Terminal Notifier (an OS X notification utility made with Ruby. Not needed, but helps to know when the sync has finished).
I created the key to Passwordless Login using this tutorial from Dreamhost wiki: http://cl.ly/MIw5
1.1. When you finish, test if everything is ok… if you can't Passwordless Login, maybe you have to try afp mount. Dreamhost (where my site is) does not allow afp mount, but allows Passwordless Login. In terminal, type:
ssh username#host.com
You should login without passwords being asked :P
I installed the Terminal Notifier from the Github page: http://cl.ly/MJ5x
2.1. I used the Gem installer command. In Terminal, type:
gem install terminal-notifier
2.3. Test if the notification works.In Terminal, type:
terminal-notifier -message "Starting sync"
Create a sh script to test the rsync + notification. Save it anywhere you like, with the name you like. In this example, I'll call it ~/Scripts/sync.sh I used the ".sh extension, but I don't know if its needed.
#!/bin/bash
terminal-notifier -message "Starting sync"
rsync -azP ~/Sites/folder/ user#host.com:site_folder/
terminal-notifier -message "Sync has finished"
3.1. Remember to give execution permission to this sh script. In Terminal, type:
sudo chmod 777 ~/Scripts/sync.sh
3.2. Run the script and verify if the messages are displayed correctly and the rsync actually sync your local folder with the remote folder.
Finally, I downloaded and installed Watchdog from the Github page: http://cl.ly/MJfb
4.1. First, I installed the libyaml dependency using Brew (there are lot's of help how to install Brew - like an "aptitude" for OS X). In Terminal, type:
brew install libyaml
4.2. Then, I used the "easy_install command". Go the folder of Watchdog, and type in Terminal:
easy_install watchdog
Now, everything is installed! Go the folder you want to be synced, change this code to your needs, and type in Terminal:
watchmedo shell-command
--patterns="*.php;*.txt;*.js;*.css" \
--recursive \
--command='~/Scripts/Sync.sh' \
.
It has to be EXACTLY this way, with the slashes and line breaks, so you'll have to copy these lines to a text editor, change the script, paste in terminal and press return.
I tried without the line breaks, and it doesn't work!
In my Mac, I always get an error, but it doesn't seem to affect anything:
/Library/Python/2.7/site-packages/argh-0.22.0-py2.7.egg/argh/completion.py:84: UserWarning: Bash completion not available. Install argcomplete.
Now, made some changes in a file inside the folder, and watch the magic!
I believe transmit does this.

Resources