Kali

How To Fix Unable To Run Google Chrome as a Root Error in Linux

Fadıl

This problem is most frequently seen in many Linux distributions such as Kali Linux, Backtrack and many others.

The error message is:

“Google Chrome can not be run as root. Please start Google Chrome as a normal user. To run as root, you must specify alternate –user-data-dir for storage of profile information.”

If you are running Ubuntu then you don’t need to worry about this error, because in Ubuntu you are not logged in as root. read this article to know how to install chrome in Ubuntu.

How To Batch Image Resize?

Fadıl

If you want to resize your photos to put them on your blog or website. As you know, you can’t upload your photos on a webpage with the highest resolution because a web gallery became inaccessible and too slow to load. Then maybe you have a folder containing every photo of your holidays and you want to resize it at 768 of width maintaining the original aspect ratio. To make a resize there are many tools but here I suggest a command-line tool called “mogrify”. This tool will be installed with ImageMagick Libraries, so all you have to do is installing ImageMagick.

Unable to start the settings manager ‘gnome-settings-daemon

Fadıl

Problem description

After logged in or went to ” System -> Preferences -> Appearance“, you saw the system give the following error message:

Unable to start the settings manager gnome-settings-daemon.
Without the GNOME settings manager running, some preferences may not take effect. This could indicate a problem with Bonobo, or a non-GNOME (e.g. KDE) settings manager may already be active and conflicting with the GNOME settings manager.

There are several solutions that worked for several guys, such as:

Reboot And Shutdown System

Fadıl

Question

How can I reboot or shutdown BSD (FreeBSD) based system? (Command shutdown -h 0 is not working.)

Answer

FreeBSD or other BSD uses the shutdown or halt command to shutdown system. To reboot FreeBSD/BSD box use reboot command.

Shutdown FreeBSD

Use shutdown command to close down the system at a given time. You can type the following command to shutdown system immediately:

# shutdown -h  now

or

# halt

Reboot FreeBSD

Use the following command:

How can I Access a Freebsd Server With ssh?

Fadıl

By default, remote root access is disabled for security reasons. However, you can still enable it by configuring sshd.
Enable Root Login

vi /etc/ssh/sshd_config

Replace the in:

#PermitRootLogin no

with

PermitRootLogin yes

save and close it.
Auto Start SSH

vi /etc/rc.conf

If there is no such a line

sshd_enable="YES"

add it, then save it.
Restart sshd

/etc/rc.d/sshd restart