Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Tuesday, February 28, 2023

MousePad Text Editor Bug

This issue is happening in Ubuntu 22.04 with the MousePad text editor version 0.5.8 

Files are automatically saved in a directory at: ~/.local/share/Mousepad

The files have no extension, they get the name "autosave-0", "autosave-1", "autosave-2", . . . , "autosave-n".

At some point, after a reboot, if you have not saved any of those files and you try to open the MousePad text editor, it won't come up unless you call it through the command line and you will get the following message:


(mousepad:21465): Mousepad-WARNING **: 19:56:09.717: Some 'autosave-*' files in directory '~/.local/share/Mousepad' do not correspond to any session backup anymore. They will not be deleted automatically: please do it manually to remove this warning.


You can go there and delete those files, or save them, or move them to another directory; they are plain text files, you can open those with VIM, NANO, or any other text editor. After those files are removed from that default directory the MousePad text file app will work fine and it will respond to the calls from the GUI.

----

Saturday, October 01, 2016

Mounting the Android Phone in Ubuntu 16.04

I was getting the following pop up message 'Unable to mount Android Device' every time that I plugged my Android smartphone in my Linux Ubuntu 16.04 machine.

I found the solution taking as a reference the following thread.

First I used the following command:

lsusb

That gives me:
Bus 001 Device 004: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy (MTP)

Then I included this info:
# Samsung LTD Galaxy
ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

in the following file:
sudo vim /lib/udev/rules.d/69-libmtp.rules

And the following line:
ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666"

In the following file:

sudo vim /lib/udev/rules.d/61-persistent-storage-android.rules

And that's all. After a reboot my Linux PC can mount without problems my Android phone.

-----///

Wednesday, June 18, 2008

SUDO PASWORD IN UBUNTU

One way to gain root prompt is to launch a shell as root. Therefore, using sudo you can type:

:~$ sudo sh
Password:
sh-3.1#

And there you are, you have a root shell.

If you want to be able to login as root, you need to define a password for root:

:~$ sudo passwd
Password:
Enter new UNIX password:
Retype new UNIX password:

Now you can login as root with su.

Re-disabling your root account

If for some reason you have enabled your root account and wish to disable it again, open a terminal and issue the following command:

sudo passwd -l root

Friday, October 26, 2007

ATI X1300 3D effects in Linux

To install XGL:
Code:
sudo apt-get install xserver-xgl
To check if you have direct rendering:
Code:
glxinfo | grep "direct rendering"
And if you change a setting you shouldn't have and need reconfigure XGL:
Code:
sudo dpkg-reconfigure -phigh xserver-xorg
Instructions to install it in the Open Source ATI driver.

I got the next message after installing xserver-xgl.
===================
Xgl server setup changed

The Xgl server will now be started automatically next time you login. It is no longer necessary to use any special X session to start Xgl, and such sessions will likely fail to work properly. Please select a regular session from your session manager next time you log in. To disable Xgl autostart for this user, create a file named ~/.config/xserver-xgl/disable

===================
To check your ATI hardware do:
lspci | grep ATI
I get:
01:00.0 VGA compatible controller: ATI Technologies Inc M52 [Mobility Radeon X1300]
==================
After trying this my 3D effects still not working.
:o(
===================
The new ATI driver version 8.42.3 supports AIGLX but is kind of buggy.
http://ati.amd.com/support/drivers/linux/linux-radeon.html
http://ati.amd.com/online/rss/atilinuxdriver.rss?OTC-rssfeedlinux
http://ati.amd.com/support/driver.html