Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see: https://github.com/rvm/rvm/issues/3212 - rvm

I use AWS Cloud9 as my development environment. Occasionally, when I open an new terminal tab (Alt T), I get the error message below.
Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see: https://github.com/rvm/rvm/issues/3212

Run >sudo reboot
Usually there will be one terminal tab open that does not contain the error message,
I keep this tab open and close any other tabs that show the error message.
Then, in the 'clean terminal tab', I run sudo reboot. AWS Cloud9 will show a 'Reconnecting' message, and when it has completed reconnecting,
I open a new terminal tab (Alt T) and the error is gone. Then I close the original tab that I ran sudo reboot in.
Now I can open as many terminal tabs as I need with no error messages.

Related

Thunderbird crashes when trying to attach a file

I am using thunderbird 91.7.0 with Ubuntu 20.04.4 LTS
I got some issues with no enough free space to make updates (I'm on a laptop) and so I used the command sudo apt autoremove and was then able to make the updates. However, since then, whenever I try to attach a file (either on a new email or in a response) in thunderbird, it instantly crashes without any warning or crash report.
I tried to launch thunderbird in safe-mode with the same result, and the message I get in the terminal as the process finishes is:
~/ $> thunderbird --safe-mode
Gtk-Message: 15:22:22.654: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:22:22.656: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: libpci missing
(thunderbird:30046): Gtk-WARNING **: 15:22:37.510: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../src/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/thunderbird/195/data-dir/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../src/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/thunderbird/195/data-dir/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Redirecting call to abort() to mozalloc_abort
ExceptionHandler::GenerateDump cloned child 30391
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Exiting due to channel error.
N.B. #1: it doesn't matter if I click on the 'attach' paperclip button or if I use the short-cut Ctrl-Shift-A command.
N.B. #2: the same occurs if I try to save an attached file from an email in my inbox, but curiously not if I just display it in a new tab in Thunderbird.
N.B. #3: everything else seems working properly...
Any help would be greatly appreciated, because I do not know how to live without TB anymore...
EDIT: here is the crash report
https://crash-stats.thunderbird.net/report/bp-c8db5ddd-d87a-4c89-b006-3c76b1220323

How to set React_Editor to PhpStorm so that when you click on the error it jumps to the code?

I'm using PhpStorm in Mac to code and i want to debug my errors. I have a message in my terminal to set the editor for React Native tools.
PRO TIP
When you see Red Box with stack trace, you can click any
stack frame to jump to the source file. The packager will launch your
editor of choice. It will first look at REACT_EDITOR environment
variable, then at EDITOR.
To set it up, you can add something like
export REACT_EDITOR=atom to your ~/.bashrc or ~/.zshrc depending on
which shell you use.
I've added these lines to ~/.bashrc but nothing happened when i click on the error :
export PATH=$PATH:/usr/local/bin/pstorm
export REACT_EDITOR=pstorm
How can i set correctly REACT_EDITOR to PhpStorm so that when i click on the error it jumps to my code?
For mac os you need to add to ~/.bashrc or .zprofile:
Add export REACT_EDITOR="webstorm" or pstorm
Don't forget to close all of your terminal windows and restart the react-native packager before you try it.
Create a shortcut to open WebStorm:
Open WebStorm
Press ⇧ twice to open the search window
Type “Create Command Line Launcher…” and press Enter
Click OK
That's it.
/usr/local/bin should be in the PATH environment variable by default. You should be able to run webstorm from anywhere in the shell. Run webstorm /usr/local/bin/webstorm to test the command.
You can find a code which opens editors here or in your project node_modules/#react-native-community/cli-tools/build/launchEditor.js
I solved this problem by creating symlink.
sudo ln -s /Applications/WebStorm.app/Contents/MacOS/webstorm /usr/local/bin/webstorm

How do you make Chromium command line switches on a Chromebook?

I recently saw that ChromeOS added the functionality to do split screen windows in tablet mode in the most recent dev releases. So I put my Chromebook R11 in dev mode for the first time and updated to version 62.
The flag is one of the many on this list https://peter.sh/experiments/chromium-command-line-switches/
The only resources for actually executing these switches was http://www.chromium.org/for-testers/command-line-flags
So I tried following the steps. I went to the crosh shell with Ctrl-Alt-T. Then I typed "shell". Then "sudo su". Then I tried to modify with "sudo vim /etc/chrome_dev.conf", but it was readonly so it didn't save.
So I visited here www dot chromium dot org/chromium-os/poking-around-your-chrome-os-device and followed the steps to making changes to the filesystem and disabling rootfs verification. But the command it told me to enter just gave me an error: "make_dev_ssd.sh: ERROR: IMAGE /dev/mmcblk0 IS NOT MODIFIED."
I'm running out of ideas and resources here..
make_dev_ssd.sh is how you disable rootfs verification and modify files in the rootfs. If that's not working, that might be a bug in that script that should be reported & fixed upstream (e.g. https://crbug.com/new).
That said, are you sure you need to pass a command line flag ? Look at chrome://flags and see if the feature you want to access is available there. Many command line flag is also available on that page.
Try this:
sudo su
cp /etc/chrome_dev.conf /usr/local/
mount --bind /usr/local/chrome_dev.conf /etc/chrome_dev.conf
echo "--arc-availability=officially-supported " >> /etc/chrome_dev.conf

Arch Linux shutdown

Whenever I shutdown my Arch Linux system and then restart it I find that the work I did in terminal or I left any window open before shutting down are back again on the screen again , I can find my last used commands by pressing up arrow key on the keyboard . How to just get everything new whenever I boot up my PC .
P.S - I'm new to Arch
Append a line containing unset HISTFILE to ~/.bashrc.
Type unset HISTFILE; rm HISTFILE.
Reopen the terminal.
Bash wiki for further reference: http://wiki.bash-hackers.org/syntax/shellvars#histfile
To revert old behaviour: remove the line that was appended.

How to keep weblogic running after closing putty window

I’ve started weblogic through putty:
./startWebLogic.sh
After that server started successfully.
But when I close the putty window, the server stops working
How can I keep weblogic running after I close the putty window?
Thanks!
You will want to use something like the following:
nohup ./startWebLogic.sh &
Nohup is a unix command, used to start another program, in such a way that it does not terminate when the parent process is terminated.
You can also output it to a file if you'd like:
nohup ./startWebLogic.sh > admin_server.out &
Simple Steps:
after the login through putty follow the below steps:
Go directory of server where "startWebLogic.sh" this command located.
typed command "screen" press enter (A new Screen will opened)
In the new screen type your run command "./startWebLogic.sh".
Press Ctrl+a then press d(without holding Ctrl) you will return back previous screen)
if like to go again your server log screen typed command "screen -r"
Akbar