Start Raspberry Pi without login [closed] - raspberry-pi

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I would like to ask you if there is any way to start raspberry pi (using Raspbian) without login and password and to move directly to the GUI. Like Windows for example.

Raspbian Wheezy:
Following was taken from eLinux.org RPi Debian Auto Login page:
Auto Login:
In Terminal:
sudo nano /etc/inittab
Scroll down to:
1:2345:respawn:/sbin/getty 115200 tty1
and change to
#1:2345:respawn:/sbin/getty 115200 tty1
Under that line add:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
Ctrl+X to exit, Y to save followed by enter twice
Auto StartX (Run LXDE):
In Terminal:
sudo nano /etc/rc.local
Scroll to the bottom and add the following above exit 0:
su -l pi -c startx
Raspbian Jessie:
Use raspi-config. If, for some magic reason this tool is not present on your system, install it:
sudo apt-get install raspi-config
Hard way:
Link. Link.
UPDATE 2019.05
In recent distro there's a simpler way to fix this:
At command prompt, type sudo raspi-config, then:
select option 3 in menu (Boot Options)
select option B1 (Desktopp/CLI)
select option B2 (Console Autologin)
Hit OK, exit all the way and restart.
Update 2019.05 credit belongs to Hasan A Yousef.

Related

Failed to restart containerd.service: Unit not found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have installed containerd 1.5.4 by following below steps in CentOS 7.9:
wget -c https://github.com/containerd/containerd/releases/download/v1.5.4/containerd-1.5.4-linux-amd64.tar.gz
tar -zxvf containerd-1.5.4-linux-amd64.tar.gz -C /
mkdir -p /etc/containerd
containerd config default > /etc/containerd/config.toml
I have followed the docs from here and also created the config according to them. But when I try to start containerd:
[root#iZuf62lgwih3vksz3640gnZ sysctl.d]# systemctl start containerd
Failed to start containerd.service: Unit not found.
What should I do to fix this problem?
The main issue is that you are only copying binary files, you are not creating any systemd service.
Be careful when using -C / flag with the tar command. On my CentOS 7 machine, two first commands:
wget -c https://github.com/containerd/containerd/releases/download/v1.5.4/containerd-1.5.4-linux-amd64.tar.gz
tar -zxvf containerd-1.5.4-linux-amd64.tar.gz -C /
led to overwrite the /bin directory which destroyed the OS.
Back to the question, it seems like you are mixing two different instructions for installing containerd package. The instructions from official Kubernetes wiki that you mentioned in your question are pretty-forward and good to follow. Try them:
Step 1. Install the containerd.io package from the official Docker repositories:
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y containerd.io
Step 2. Configure containerd:
sudo mkdir -p /etc/containerd
containerd config default | sudo tee /etc/containerd/config.toml
Step 3. Restart containerd:
systemctl restart containerd

supervisord http://localhost:9001 refused connection [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Despite much effort trying all solutions posted on stackoverflow, I still cannot manage solving this.
The problem (Case 1):
$ sudo supervisorctl -c /app/vpn_bot/supervisord.conf
http://localhost:9001 refused connection
Case 2:
$ sudo supervisorctl -c /app/vpn_bot/supervisord.conf
unix:///tmp/supervisorctl.sock refused connection
Here is the relevant supervisord.conf file:
[supervisord]
# nodaemon=true
[supervisorctl]
# case 1: serverurl=http://127.0.0.1:9001
serverurl=unix:///tmp/supervisorctl.sock # case 2
[unix_http_server]
file=/tmp/supervisorctl.sock
[inet_http_server]
port=127.0.0.1:9001
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
I have made sure sudo supervisord -c /app/vpn_bot/supervisord.conf is running, and port 9001 is not used by any other process.
Any one can offer some help here?

Syncing Time on a Pi [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I've tried doing the NTP, but this pi travels from various places at various times a month and doesn't always have the proper access for NTP. Is there a way I can have it sync with Colorado's atomic clock during its booting sequence?
I currently running Raspian OS on the 512 version of Model B
There are three options by which you can sync your raspberry pi time.
Solution 1: you can use RTC or any hardware clock and you can sync your RPi time with the clock.
Solution 2: Use a GPS module and sync the time with that.This will not work properly until your get you GPS locked.
Solution 3: You can use NTP server to sync your Raspberry Pi time. At this case you need your RPi connected to Internet.
First install ntp to your Pi.
$ sudo apt-get install ntpdate
Then reconfigure your tzdata with your location and local time by typing
$ sudo dpkg-reconfigure tzdata
Now you need to run this following commands to sync your RPi time with NTP server.
$ sudo service ntp stop
$ sudo ntpdate -s time.nist.gov
$ sudo service ntp start`
If you want to sync your time with web on start/reboot, you have to add it in your cronjob.
Assuming I have understand the question correctly – if syncing manually to the internet time whenever online and then let the local RTC do its job when offline is good enough, then you should use an external RTC module, like this one (or this one) and follow the instructions on how to configure the Linux to get the time locally instead from internet. On the adafruit's 'Set RTC Time' page it says "Once the time is correct [i.e. from the internet] (...), run sudo hwclock -w to write the system time to the RTC", so I assume this command can be used later at anytime to sync again the local clock with the defined NTP clock (but cannot check this for myself, as I don't have a hardware RTC yet).
As for the timezone, if using Raspbian this can be set via sudo raspi-config > Internationalisation Options (when in command line mode) or via Menu > Preferences > Raspberry Pi Configuration > Localisation (when in desktop mode).
I was stuck on this for a while. Was able to sync to the NTP server but was always 9 hours ahead. Fixed it by forcing a timezone change to Pacific.
$ sudo dpkg-reconfigure tzdata

accessing MATLAB from a different user account [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have MATLAB installed in my home directory on a linux machine which has multiple users. I want to allow one specific user and not all users to be able to run MATLAB from his user login. How can I do this?
I believe that one way to do this is to change the permissions of my home directory so that it's accessible to all users but I don't want to do that.
You can change the permissions on just the MATLAB install.
If MATLAB is installed to /home/*squirly*/MATLAB, you could run the command below to make it accessible to all users.
chmod -R a+rw /home/*squirly*/MATLAB
If you do not own the directory you will need to prepend the command with sudo.
BONUS:
If you want to allow only some users to use MATLAB.
Make a group called matlab:
sudo groupadd matlab
Make matlab the group owner of the matlab install:
sudo chgrp -R matlab /home/*squirly*/MATLAB
Allow the group to read/write to the matlab directory:
sudo chmod -R g+rw /home/*squirly*/MATLAB
Add users who will use matlab to the matlab group:
sudo usermod -aG matlab *squirly*

How to make MongoDB Server start on Linux Startup (CentOS) [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm using Linux CentOS 5.4, I installed MongoDB now it's availabled as a Daemon and Service
When I execute service mongod start is says : [OK] --> in green as if the service started but when I try to connect to it I find it not working.
but when I try to run "mongod" from the shell normally it starts but if I closed the shell connections it stops.
how do I add it to the start up of the OS ? or how do I run it in the background ?
add /usr/bin/mongod to /etc/rc.local this will make it start with the startup scripts
I think you need to create basic init scripts to start Mongodb as daemon and create mongodb user. Detailed information can be found here: Mongo DB installation